This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Web Services and the fly likes NoClassDefFoundError Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "NoClassDefFoundError" Watch "NoClassDefFoundError" New topic
Author

NoClassDefFoundError

Tony Visconti
Greenhorn

Joined: Jun 10, 2009
Posts: 2
I am trying to create a web service from the following java class:



While creating the web service and I first get this warning:
The service class "CVPassword" does not comply to one or more requirements of the JAX-RPC 1.1 specification, and may not deploy or function correctly.
The value type "com.corda.cvserver.admin.AdminBean" used via the service class "CVPassword" does not have a public default constructor. Chapter 5.4 of the JAX-RPC 1.1 specification requires a value type to have a public default constructor, otherwise a JAX-RPC 1.1 compliant Web service engine may be unable to construct an instance of the value type during deserialization.

I dont think this would cause a problem because I am not returning an instance of
adminBean from any function.

The webservice starts up fine and just for testing purpose i want to see if my heyprint method could be invoke, but when I try to do so I get this error:


Why does adminBean have anything to do with my heyprint method?
Here is the wsdl file if that helps at all
Tony Visconti
Greenhorn

Joined: Jun 10, 2009
Posts: 2
I checked the errors and found under warnings:

Classpath entry C:/Documents …/CenterViewServer.jar will not be exported or published. Runtime ClassNotFoundExceptions may result.

Fell like this should have gone under errors...

This lead to quick fix that solved my problems:
Mark the associated raw classpath entry as a publish/export dependency.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: NoClassDefFoundError
 
Similar Threads
Problem with mapping Array String into HashMap in Axis
How do I consume Web Services in Swing
org.apache.axis.client.Call invoke method always returning string type
Webservice throwing Nullpointer exception
Axis 1.2RC3 and .NET using arrays