users@jaxb.java.net

Resolve the schema location from the classpath?

From: James Mao <james.mao_at_iona.com>
Date: Thu, 16 Nov 2006 15:31:08 +0800

Hi,

I have a problem to resolve the schema location from the classpath, i
don't know if the jaxb xjc can resolve the schema location from classpath?
for example:

I have a xsd in which i have an import statement like following:
<xs:import namespace="http://schemas.xmlsoap.org/wsdl/"
schemaLocation="/schemas/wsdl/wsdl.xsd"/>

I have the wsdl.xsd included in the schemas.jar!/schemas/wsdl/wsdl.xsd.
and the jar is in my classpath

I use the xjc maven2 plugin to generate the java artifacts, but it will
fail due to it can not find the wsdl.xsd in the jar file.

Any suggestions?

Thanks in advance,
James.