Skip to main content

Unsupported binding namespace "". Perhaps you meant ""?

Please note these forums are being decommissioned and use the new and improved forums at
1 reply [Last post]
Joined: 2011-10-21

Hello and thank you for reading this.

I'm trying to use an extarnal binding schema but i keep getting this error: "Unsupported binding namespace "". Perhaps you meant ""?" at line 2 of my schema:

<?xml version="1.0" encoding="ISO-8859-1"?>
<xs:schema xmlns:xs="">

My jaxb binding file looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<jxb:bindings xmlns:jxb="" xmlns:xs=""
version="2.1" jxb:extensionBindingPrefixes="xs">
<jxb:bindings schemaLocation="../src/ro/crispico/tethys/jaxb/schema/Mareva.xsd" node="/xs:schema">
<jxb:bindings node=".//xs:element[@name='time']">
<jxb:javaType name="java.lang.String"/>

I've also tried without the extensionbindingprefixes or with xjc namespace or any other namespaces configuration. Without the binding the generation work ok.

I've verified every similar error that i could find on google but i wasn't able to find the problem. I'm now using the 2.2.4 version of jaxb. In the past i was using jaxb 1 and the generation was working properly. I'm using xjc with ant. Thanks a lot!

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2011-10-21

I was receving the error because the jxb: was missing in the <baseType> tag.

The correct version is: <jxb:baseType>