File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Web Services
Bookmark "NoClassDefFoundError" Watch "NoClassDefFoundError" New topic


Tony Visconti

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

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:
subject: NoClassDefFoundError
It's not a secret anymore!