>From the command line on linux, I ran this:
$
gpath=./xfire-all-1.2.6.jar:/usr/local/lib/ant-1.6.5.jar:./lib/commons-logging-1.0.4.jar:./lib/jaxb-xjc-2.0.1.jar;
$ java -cp $gpath org.codehaus.xfire.gen.WsGen -wsdl
somepath/connection.wsdl -o . -p project.client
and got this:
Running WsGen...
wsdl : somepath/connection.wsdl
package : project.client
output : .
binding :
externalBindings :
baseURI :
profile :
explictAnnotation : false
overwrite : false
serverStub : true
forceBare : false
Exception in thread "main" java.lang.NoClassDefFoundError
at
org.codehaus.xfire.aegis.type.DefaultTypeMappingRegistry.class$(DefaultTypeMappingRegistry.java:64)
at
org.codehaus.xfire.aegis.type.DefaultTypeMappingRegistry.createDefaultMappings(DefaultTypeMappingRegistry.java:406)
at
org.codehaus.xfire.aegis.type.DefaultTypeMappingRegistry.createDefaultMappings(DefaultTypeMappingRegistry.java:311)
at
org.codehaus.xfire.aegis.type.DefaultTypeMappingRegistry.<init>(DefaultTypeMappingRegistry.java:131)
at
org.codehaus.xfire.aegis.type.DefaultTypeMappingRegistry.<init>(DefaultTypeMappingRegistry.java:137)
at
org.codehaus.xfire.aegis.type.DefaultTypeMappingRegistry.<init>(DefaultTypeMappingRegistry.java:118)
at
org.codehaus.xfire.jaxb2.JaxbTypeRegistry.<init>(JaxbTypeRegistry.java:15)
at
org.codehaus.xfire.gen.jaxb.JAXBSchemaSupport.<init>(JAXBSchemaSupport.java:47)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at
org.codehaus.xfire.gen.Wsdl11Generator.loadSupport(Wsdl11Generator.java:216)
at
org.codehaus.xfire.gen.Wsdl11Generator.loadSchemaSupport(Wsdl11Generator.java:180)
at
org.codehaus.xfire.gen.Wsdl11Generator.generate(Wsdl11Generator.java:105)
at org.codehaus.xfire.gen.WsGen.main(WsGen.java:138)
Caused by: java.lang.ClassNotFoundException: org.jdom.Element
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
... 18 more
whi jar do I have to add ?
cheers
David
--
View this message in context:
http://www.nabble.com/problem-when-running-WsGen-tp25010083p25010083.html
Sent from the XFire - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email