You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jaxme-dev@ws.apache.org by Anou Manavalan <an...@hotmail.com> on 2004/02/21 22:34:38 UTC

parse exception

Hi,

I am trying to generator on the uddi xsd  http://uddi.org/schema/uddi_v2.xsd
and the parse is failing. Anything that I am missing to do ?

thanks,
-Anou


BUILD FAILED
C:\projects\run\jaxme\build.xml:15: 
org.apache.ws.jaxme.xs.parser.impl.LocSAXExc
eption: At file:/C:/projects/run/jaxme/xsd/uddi_v2.xsd, line 26, column 35: 
Unab
le to derive package name from an URI, which is no URL: urn:uddi-org:api_v2

this is what I have in build.xml :

<?xml version="1.0"?>
<project name="Jaxri" default="jaxri">
    <target name="jaxri">
      <path id="generate.class.path">
        <pathelement location="C:/apps/incubated-jaxme-0.2/lib/jaxme2.jar"/>
        <pathelement 
location="C:/apps/incubated-jaxme-0.2/lib/jaxmejs.jar"/>
        <pathelement 
location="C:/apps/incubated-jaxme-0.2/lib/jaxmexs.jar"/>
        <pathelement 
location="C:/apps/incubated-jaxme-0.2/lib/jaxmeapi.jar"/>
        <pathelement 
location="C:/apps/incubated-jaxme-0.2/lib/jaxme2-rt.jar"/>
        <pathelement 
location="C:/apps/incubated-jaxme-0.2/lib/jaxmepm.jar"/>
      </path>
      <taskdef name="xjc"
        classname="org.apache.ws.jaxme.generator.XJCTask"
        classpathref="generate.class.path"/>
      <xjc schema="xsd/uddi_v2.xsd" target="src/java">
        <produces includes="org/jj/jaxr/*.java"/>
      </xjc>
    </target>
</project>

_________________________________________________________________
Take off on a romantic weekend or a family adventure to these great U.S. 
locations. http://special.msn.com/local/hotdestinations.armx


---------------------------------------------------------------------
To unsubscribe, e-mail: jaxme-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: jaxme-dev-help@ws.apache.org


Re: parse exception

Posted by Jochen Wiedmann <jo...@ispsoft.de>.
Anou Manavalan wrote:

> BUILD FAILED
> C:\projects\run\jaxme\build.xml:15: 
> org.apache.ws.jaxme.xs.parser.impl.LocSAXExc
> eption: At file:/C:/projects/run/jaxme/xsd/uddi_v2.xsd, line 26, column 
> 35: Unable to derive package name from an URI, which is no URL: urn:uddi-org:api_v2

This is a bug in JaxMe, because it doesn't fully implement section C.5 of 
the specification.

In short, that part of the specification describes how to derive a default
package name from the target namespace. In particular it requests, that
the protocols "http" and "urn" be supported.

The current JaxMe implementation however attempts to convert the target
namespace into an URL. This fails, because by default there is no URLHandler
for the "urn" protocol.

To overcome the problem, use the Ant option package, by changing

     <xjc schema="xsd/uddi_v2.xsd" target="src/java">
       <produces includes="org/jj/jaxr/*.java"/>
     </xjc>

to

     <xjc schema="xsd/uddi_v2.xsd" target="src/java"
          packageName="org.jj.jaxr">
       <produces includes="org/jj/jaxr/*.java"/>
     </xjc>

(Note, that the attribute name "packageName" is a bug as well and
renamed to "package" in the CVS version. This was recently discussed
on this list.


Jochen


P.S: It would be nice, if you could be so kind to file a bug report.

---------------------------------------------------------------------
To unsubscribe, e-mail: jaxme-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: jaxme-dev-help@ws.apache.org