Hello All!
Is there somebody who used wadl2java tool provided in jersey?
I've tried to use it by:
cd <Jersey0.8_path>/lib
java -jar wadl2java.jar
c:\jersey-0.8-ea\lib>java -jar wadl2java.jar
Exception in thread "main" java.lang.NoClassDefFoundError:
com/sun/xml/ws/util/localization/LocalizableMessageFactory
at
com.sun.research.ws.wadl2java.Wadl2JavaMessages.<clinit>(Wadl2JavaMessages.j
ava:15)
at com.sun.research.ws.wadl2java.Main.printUsage(Main.java:57)
at com.sun.research.ws.wadl2java.Main.main(Main.java:66)
Caused by: java.lang.ClassNotFoundException:
com.sun.xml.ws.util.localization.LocalizableMessageFactory
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
... 3 more
c:\jersey-0.8-ea\lib>
Any ideas? Maybe this Factory class or library has been forgotten in Jersey?
The same effect if I run this as the following:
c:\jersey-0.8-ea\lib>java -classpath
activation.jar;ant.jar;jaxb-api.jar;jaxb-impl.jar;jaxb-xjc.jar;jaxws-api.jar
;jaxws-rt.jar;jsr173_api.jar;resolver.jar;sjsxp.jar;resourcegen.jar;wadl2jav
a.jar com.sun.research.ws.wadl2java.Main
Konstantin