Help get this topic noticed by sharing it on Twitter, Facebook, or email.

Cannot run example code

I am running Java SE 6 u25 and the "Helios Service Release 2" version of Eclipse on Windows Vista x64. When I try to run the first example in the book (running the TimeServerPublisher class), in Eclipse, it tells me "Launch Error: Selection does not contain a main type." In the command window, I get:

chapter1>java ch01.ts.TimeServerPublisher
Exception in thread "main" java.lang.NoClassDefFoundError: javax/wsdl/WSDLException
at org.apache.axis2.jaxws.description.impl.DescriptionFactoryImpl.createServiceDescriptionFromDBCMap(DescriptionFactoryImpl.java:255)
at org.apache.axis2.jaxws.description.impl.DescriptionFactoryImpl.createServiceDescription(DescriptionFactoryImpl.java:215)
at org.apache.axis2.jaxws.description.impl.DescriptionFactoryImpl.createServiceDescription(DescriptionFactoryImpl.java:205)
at org.apache.axis2.jaxws.description.DescriptionFactory.createServiceDescription(DescriptionFactory.java:510)
at org.apache.axis2.jaxws.server.endpoint.EndpointImpl.initialize(EndpointImpl.java:81)
at org.apache.axis2.jaxws.server.endpoint.EndpointImpl.(EndpointImpl.java:63)
at org.apache.axis2.jaxws.spi.Provider.createAndPublishEndpoint(Provider.java:47)
at javax.xml.ws.Endpoint.publish(Unknown Source)
at ch01.ts.TimeServerPublisher.main(TimeServerPublisher.java:36)
Caused by: java.lang.ClassNotFoundException: javax.wsdl.WSDLException
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)
... 9 more

Any ideas on how to get this working would be greatly appreciated...

Dan Jonsen
dejonsen@gmail.com
1 person has
this problem
+1
Reply