This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

NoClassDefFoundError

 
Tony Visconti
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic