Ok, turns out the WSDL had an additional type definition than my included
schema, so i had to build XMLBeans by pointing at the WSDL.
I am now running into another issue, seems like its attempting to generate
TestServicePortType twice. The WSDL is created by XFire, and I have
"overwrite" = true on wsgen.
May 1, 2007 10:26:03 AM
org.codehaus.xfire.gen.jsr181.AbstractServiceGenerator generate
INFO: Creating class com.test.wsdl.TestServicePortType
May 1, 2007 10:26:03 AM
org.codehaus.xfire.gen.jsr181.AbstractServiceGenerator generate
INFO: Creating class com.test.wsdl.TestServicePortType
com.sun.codemodel.JClassAlreadyExistsException
at com.sun.codemodel.JPackage._class(JPackage.java:180)
at com.sun.codemodel.JCodeModel._class(JCodeModel.java:178)
at org.codehaus.xfire.gen.jsr181.AbstractServiceGenerator.generate(
AbstractServiceGenerator.java:92)
at org.codehaus.xfire.gen.jsr181.AbstractServiceGenerator.generate(
AbstractServiceGenerator.java:64)
at org.codehaus.xfire.gen.jsr181.ServiceInterfaceGenerator.generate(
ServiceInterfaceGenerator.java:48)
at org.codehaus.xfire.gen.jsr181.AbstractServiceGenerator.generate(
AbstractServiceGenerator.java:51)
On 5/1/07, Tomek Sztelak <[EMAIL PROTECTED]> wrote:
Looks like you don't have them in classpath. Check again if beans are
really visible in classpath.
On 5/1/07, Vipul Sabhaya <[EMAIL PROTECTED]> wrote:
> I am trying to generate Client code from a WSDL and i am getting
> NullPointerException. I have generated the XMLBeans separately, and
have
> them in my classpath for the WsGen call. I am using v.1.2.5 of XFire.
>
> java.lang.NullPointerException
> at
> org.apache.xmlbeans.impl.common.QNameHelper.hexsafedir(QNameHelper.java
:176)
> at
>
org.apache.xmlbeans.impl.schema.SchemaTypeLoaderImpl.typeSystemForComponent
(SchemaTypeLoaderImpl.java:249)
> at
> org.apache.xmlbeans.impl.schema.SchemaTypeLoaderImpl.findDocumentTypeRef
(SchemaTypeLoaderImpl.java:430)
> at
> org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.findDocumentType(
SchemaTypeLoaderBase.java:129)
> at
> org.codehaus.xfire.gen.xmlbeans.XmlBeansSchemaSupport.getType(
XmlBeansSchemaSupport.java:51)
> at
> org.codehaus.xfire.gen.xmlbeans.XmlBeansSchemaSupport.getType(
XmlBeansSchemaSupport.java:25)
> at
> org.codehaus.xfire.gen.jsr181.AbstractServiceGenerator.generateOperation
(AbstractServiceGenerator.java:162)
--
-----
When one of our products stops working, we'll blame another vendor
within 24 hours.
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email