Sunday, March 10, 2013

SOAP Deployment Log


3/10/2013  9:39
try to deploy a web service with one endpoint : PatientWebService
It worked.


3/10/2013  9:50
try to deploy a web service with two endpoint : PatientWebService ProviderWebService



Error An error has occurred
Error occurred during deployment: Exception while loading the app : java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: java.lang.RuntimeException: Servlet web service endpoint '' failure. Please see server.log for more details.



3/10/2013  9:39
try to deploy a web service with one endpoint : ProviderWebService


Error An error has occurred
Error occurred during deployment: Exception while loading the app : java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: java.lang.RuntimeException: Servlet web service endpoint '' failure. Please see server.log for more details.

3/10/2013 10:18
Only Provider

//@WebService(

// endpointInterface="edu.stevens.cs548.clinic.service.web.soap.IProviderWebService",

// targetNamespace="http://cs548.stevens.edu/clinic/service/web/soap/provider", 

// serviceName="ProviderWebService",

// portName="ProviderWebPort")

comment out it. Deploy succeeded!

3/10/2013 10:37
Only Provider
with the annotation of patient (copy paste)
deploy succeeded but there is no endpoint.

Modules and Components (6)
 Module NameButton to sort column Module Name as the primary sort column.
 EnginesButton to sort column Engines as the primary sort column.
 Component NameButton to sort column Component Name as the primary sort column.
 TypeButton to sort column Type as the primary sort column.
Action
ClinicService.jar[ejb]----------------------
ClinicService.jarProviderServiceBeanStatelessSessionBean
ClinicService.jarPatientServiceBeanStatelessSessionBean
ClinicWebService.war[web, webservices]----------------------Launch
ClinicWebService.wardefaultServlet
ClinicWebService.warjspServlet



3/10/2013 10:43

Change from:


@WebService(
endpointInterface="edu.stevens.cs548.clinic.service.web.soap.IPatientWebService",
targetNamespace="http://cs548.stevens.edu/clinic/service/web/soap/patient", //nameSpace for the generated xml
serviceName="PatientWebService",
portName="PatientWebPort")



To

@WebService(
endpointInterface="edu.stevens.cs548.clinic.service.web.soap.IProviderWebService",
targetNamespace="http://cs548.stevens.edu/clinic/service/web/soap/patient", //nameSpace for the generated xml
serviceName="PatientWebService",
portName="PatientWebPort")


error again!... gotcha!



Error An error has occurred
Error occurred during deployment: Exception while loading the app : java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: java.lang.RuntimeException: Servlet web service endpoint '' failure. Please see server.log for more details.




3/11/2013 2:58 pm 
add siteInfo() for providerservice
add operationName for providerWebService

@WebMethod(operationName="create")

public void createProvider(String name, long npi,String specialization) throws ProviderServiceExn;



can deploy provider now, but 
the tester...looks like this

Exceptions details : null


com.sun.tools.ws.wscompile.AbortException at com.sun.tools.ws.wsdl.framework.AbstractDocument.define(AbstractDocument.java:146) at com.sun.tools.ws.wsdl.document.Definitions.add(Definitions.java:95) at com.sun.tools.ws.wsdl.parser.WSDLParser.parseDefinitionsNoImport(WSDLParser.java:316) at com.sun.tools.ws.wsdl.parser.WSDLParser.processImports(WSDLParser.java:259) at com.sun.tools.ws.wsdl.parser.WSDLParser.parseDefinitions(WSDLParser.java:234) at com.sun.tools.ws.wsdl.parser.WSDLParser.buildWSDLDocument(WSDLParser.java:210) at com.sun.tools.ws.wsdl.parser.WSDLParser.parse(WSDLParser.java:177) at com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.buildModel(WSDLModeler.java:132) at com.sun.tools.ws.wscompile.WsimportTool.buildWsdlModel(WsimportTool.java:381) at com.sun.tools.ws.wscompile.WsimportTool.run(WsimportTool.java:198) at com.sun.tools.ws.wscompile.WsimportTool.run(WsimportTool.java:179) at com.sun.tools.ws.util.WSToolsObjectFactoryImpl.wsimport(WSToolsObjectFactoryImpl.java:60) at com.sun.tools.ws.spi.WSToolsObjectFactory.wsimport(WSToolsObjectFactory.java:88) at org.glassfish.webservices.monitoring.WebServiceTesterServlet.wsImport(WebServiceTesterServlet.java:626) at org.glassfish.webservices.monitoring.WebServiceTesterServlet.initializePort(WebServiceTesterServlet.java:522) at org.glassfish.webservices.monitoring.WebServiceTesterServlet.doGet(WebServiceTesterServlet.java:169) at org.glassfish.webservices.monitoring.WebServiceTesterServlet.invoke(WebServiceTesterServlet.java:104) at org.glassfish.webservices.JAXWSServlet.doGet(JAXWSServlet.java:186) at javax.servlet.http.HttpServlet.service(HttpServlet.java:668) at javax.servlet.http.HttpServlet.service(HttpServlet.java:770) at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1550) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:281) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161) at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:331) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231) at com.sun.enterprise.v3.services.impl.ContainerMapper$AdapterCallable.call(ContainerMapper.java:317) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195) at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:860) at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:757) at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1056) at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:229) at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90) at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79) at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54) at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59) at com.sun.grizzly.ContextTask.run(ContextTask.java:71) at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532) at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513) at java.lang.Thread.run(Thread.java:722)


Then,

I commented out some webmethods and found it works....

finally, I narrow down to figure out that there is no overloading in webservice.
A same Method name is not allowed for more than one WebMethod in WebService.

//6. Obtaining a list of treatment DTOs, for all treatments for a particular patient(id) that are supervised by this provider(npi).
@WebMethod
public TreatmentDto[] getTreatments(long id, long npi) 
throws ProviderNotFoundExn, TreatmentNotFoundExn, ProviderServiceExn;
// //7. Obtaining a list of treatment DTOs for the treatments supervised by this provider(npi).
// @WebMethod
// public TreatmentDto[] getTreatments(long npi) throws ProviderServiceExn,ProviderNotFoundExn, TreatmentNotFoundExn;





1 comment:

  1. hello! I'm facing the exactly same problem with you. Could you please tell me how you addressed the problem?

    ReplyDelete