Yup. You need to generate the XMLBeans yourself. Regards, - Dan
On 12/10/06, Tomek Sztelak <[EMAIL PROTECTED]> wrote:
Hi This exceptions ( as i remeber :) means that XFire can't find your xmlbeans classes in classpath. On 12/9/06, William (Yi) Zhu <[EMAIL PROTECTED]> wrote: > Hi All, > > In xfire 1.2.3. > I have built the .war file for the example "book" server, and > deployed to Tomcat 5.5 server. Everything goes well. > And I can see the WSDL file via URL: > > http://localhost:8080/xfire-book-1.2.3/services/BookService?wsdl > > Then, I try to generate the web service client from this WSDL using > XMLBeans binding. > > But I got the following exceptions > ================================================= > > INFO: Generating code for WSDL at > http://localhost:8080/xfire-book-1.2.3/services/BookService?wsdl > with a base URI of > http://localhost:8080/xfire-book-1.2.3/services/BookService?wsdl > > 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.FaultGenerator.generateExceptionClass > (FaultGenerator.java:86) > at > org.codehaus.xfire.gen.jsr181.FaultGenerator.generate( FaultGenerator.java:69) > at > org.codehaus.xfire.gen.jsr181.FaultGenerator.generate( FaultGenerator.java:46) > at > org.codehaus.xfire.gen.Wsdl11Generator.generate(Wsdl11Generator.java :156) > at org.codehaus.xfire.gen.WsGen.main(WsGen.java:132) > Exception in thread "main" java.lang.NullPointerException > at org.codehaus.xfire.gen.WsGen.main(WsGen.java:136) > > ============================================= > > I have tried the same steps in xfire-1.2.2, and it works everytime, > but on xfire-1.2.3, it never work. > > The following is my script used: > ============================================= > set ant_home=g:\apps\ant > set xfire_lib=g:\apps\xfire-1.2.3\lib > set java_home=f:\jdk1.5.0 > > set > gpath=.;%xfire_lib%\..\xfire-all-1.2.3.jar;%ant_home%\lib\ant.jar; > %xfire_lib%\jaxb-api-2.0.jar;%xfire_lib%\stax-api-1.0.1.jar; > %xfire_lib%\jdom-1.0.jar;%xfire_lib%\jaxb-impl-2.0.1.jar; > %xfire_lib%\jaxb-xjc-2.0.1.jar;%xfire_lib%\wstx-asl-3.0.1.jar; > %xfire_lib%\commons-logging-1.0.4.jar;%xfire_lib%\activation-1.1.jar; > %xfire_lib%\wsdl4j-1.5.2.jar;%xfire_lib%\XmlSchema-1.1.jar; > %xfire_lib%\xfire-jsr181-api-1.0-M1.jar; > > %java_home%\bin\java -cp %gpath% org.codehaus.xfire.gen.WsGen > -wsdl > http://localhost:8080/xfire-book-1.2.3/services/BookService?wsdl > -o . -p pl.tomeks.client > -b xmlbeans -overwrite true > ============================================== > > Do someone know what's wrong there? Is this a bug in xfire-1.2.3? > > Thanks, > Yi (William) Zhu > > > > --------------------------------------------------------------------- > To unsubscribe from this list please visit: > > http://xircles.codehaus.org/manage_email > > -- ----- 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
-- Dan Diephouse Envoi Solutions http://envoisolutions.com | http://netzooid.com/blog
