if(object == null)
{
System.out.println("The registy returned a null object!");
}
AdminBean remoteAdmin = null;
if(object != null && object instanceof AdminBean)
{
remoteAdmin = (AdminBean)object;
}
else
{
System.out.println("Unable to retrieve object from remote registry");
}
return remoteAdmin;
}
}
// end of 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
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:
Jun 10, 2009 10:24:22 AM org.apache.axis.transport.http.AxisServlet
logException
INFO: Exception:
java.lang.NoClassDefFoundError: com/corda/cvserver/admin/AdminBean
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
at java.lang.Class.getDeclaredMethod(Unknown Source)
at
org.apache.axis.description.JavaServiceDesc.loadServiceDescB yIntrospection(JavaServiceDesc.java:874)
at
org.apache.axis.providers.java.JavaProvider.initServiceDesc( JavaProvider.java:477)
at
org.apache.axis.handlers.soap.SOAPService.getInitializedServ iceDesc(SOAPService.java:286)
at
org.apache.axis.deployment.wsdd.WSDDService.makeNewInstance( WSDDService.java:500)
at
org.apache.axis.deployment.wsdd.WSDDDeployableItem.getNewIns tance(WSDDDeployableItem.java:274)
at
org.apache.axis.deployment.wsdd.WSDDDeployableItem.getInstan ce(WSDDDeployableItem.java:260)
at
org.apache.axis.deployment.wsdd.WSDDDeployment.getService(WS DDDeployment.java:427)
at
org.apache.axis.configuration.FileProvider.getService(FilePr ovider.java:231)
at org.apache.axis.AxisEngine.getService(AxisEngine.java:311)
at
org.apache.axis.MessageContext.setTargetService(MessageConte xt.java:756)
at org.apache.axis.handlers.http.URLMapper.invoke(URLMapper.jav a:50)
at
org.apache.axis.strategies.InvocationStrategy.visit(Invocati onStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.server.AxisServer.invoke(AxisServer.java:239 )
at org.apache.axis.transport.http.AxisServlet.doPost(AxisServle t.java:699)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at
org.apache.axis.transport.http.AxisServletBase.service(AxisS ervletBase.java:327)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFi lter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(App licationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(Standar dWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(Standar dContextValve.java:175)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHo stValve.java:128)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorRepo rtValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(Standard EngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAd apter.java:263)
at
org.apache.coyote.http11.Http11Processor.process(Http11Proce ssor.java:844)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHand ler.process(Http11Protocol.java:584)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoin t.java:447)
at java.lang.Thread.run(Unknown Source)
Why does adminBean have anything to do with my heyprint method?