axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marepalli, Somesh" <Somesh.Marepa...@ca.com>
Subject RE: Problems with Axis deployment...
Date Thu, 18 Mar 2004 19:26:04 GMT
This is my deployment descriptor below...
I am running my web services within axis web app itself...
When I run this descriptor - it does not complain. But when I use
AxisServlet to list the services, it gives exception
Also, I have arrays as return types, how do I specify them

Descriptor:
<deployment xmlns="http://xml.apache.org/axis/wsdd/"
            xmlns:java="http://xml.apache.org/axis/wsdd/providers/java"
            xmlns:cpasNS="urn:deployment.cpas.cleverpath.ca.com"
 
xmlns:trialNS="urn:trial.webservice.deployment.cpas.cleverpath.ca.com">

 <service name="trial" provider="java:RPC">
	<parameter name="className"
value="com.ca.cleverpath.cpas.deployment.webservice.trial.trialImpl"/>
	<parameter name="allowedMethods" value="loadModel, unloadModel,
applyRecord, applyRecords, getMethodStatistics, ping, upTime"/>
	<parameter name="CPAS_DEPLOYMENT_ServiceName" value="trial"/>
	<parameter name="CPAS_DEPLOYMENT_ModelName"
value="myOflnRegressionModel"/>
        
	<beanMapping qname="cpasNS:DeploymentMethodStats"
languageSpecificType="java:com.ca.cleverpath.cpas.deployment.DeploymentM
ethodStats"/>
	<beanMapping qname="cpasNS:DeploymentException"
languageSpecificType="java:com.ca.cleverpath.cpas.deployment.DeploymentE
xception"/>
	<beanMapping qname="trialNS:trialInputs"
languageSpecificType="java:com.ca.cleverpath.cpas.deployment.webservice.
trial.trialInputs"/>
	<beanMapping qname="trialNS:trialResults"
languageSpecificType="java:com.ca.cleverpath.cpas.deployment.webservice.
trial.trialResults"/>		
 </service>
</deployment>


Exception trace:

javax.servlet.ServletException: Servlet execution threw an exception
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:269)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:193)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:256)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:191)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:241
7)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:180)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
	at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa
lve.java:171)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:641)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:172)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:641)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:174)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:193)
	at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:78
1)
	at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC
onnection(Http11Protocol.java:549)
	at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:58
9)
	at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:666)
	at java.lang.Thread.run(Thread.java:534)
----- Root Cause -----
java.lang.NoClassDefFoundError
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:219)
	at org.apache.axis.utils.ClassUtils$2.run(ClassUtils.java:187)
	at java.security.AccessController.doPrivileged(Native Method)
	at
org.apache.axis.utils.ClassUtils.loadClass(ClassUtils.java:171)
	at org.apache.axis.utils.ClassUtils.forName(ClassUtils.java:154)
	at
org.apache.axis.utils.cache.ClassCache.lookup(ClassCache.java:123)
	at
org.apache.axis.providers.java.JavaProvider.getServiceClass(JavaProvider
.java:582)
	at
org.apache.axis.providers.java.JavaProvider.initServiceDesc(JavaProvider
.java:615)
	at
org.apache.axis.handlers.soap.SOAPService.getInitializedServiceDesc(SOAP
Service.java:342)
	at
org.apache.axis.deployment.wsdd.WSDDService.makeNewInstance(WSDDService.
java:507)
	at
org.apache.axis.deployment.wsdd.WSDDDeployment.getDeployedServices(WSDDD
eployment.java:559)
	at
org.apache.axis.configuration.FileProvider.getDeployedServices(FileProvi
der.java:321)
	at
org.apache.axis.transport.http.AxisServlet.reportAvailableServices(AxisS
ervlet.java:681)
	at
org.apache.axis.transport.http.AxisServlet.doGet(AxisServlet.java:262)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
	at
org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.j
ava:339)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:247)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:193)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:256)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:191)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:241
7)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:180)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
	at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa
lve.java:171)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:641)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:172)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:641)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:174)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:193)
	at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:78
1)
	at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC
onnection(Http11Protocol.java:549)
	at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:58
9)
	at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:666)
	at java.lang.Thread.run(Thread.java:534)


-----Original Message-----
From: smcardle@spansurf.com [mailto:smcardle@spansurf.com] 
Sent: Thursday, March 18, 2004 2:16 PM
To: axis-user@ws.apache.org
Subject: RE: Problems with Axis deployment...

Hi Somesh,

You should have a been mapping yes.

Just let me get this straight, are you deploying your service to axis or
do you 
have your own context that you deploy your web service to i.e. NOT under

axis/WEB-INF and that context has the axis jar files in its lib
directory

Regards

Steve


Quoting "Marepalli, Somesh" <Somesh.Marepalli@ca.com>:

> Thanks Steve.
> axis.jar is part of webapps\axis\WEB-INF\lib folder. AxisFault clas
sis
> part of this .jar file. 
> When I undeploy my service, all other services come up fine...
> 
> I have an operation throwing an exception class which derives from
> AxisFault. I have no beanmapping entry for that. Do u think this could
> be a problem....
> 
> Please advise?
> 
> Regards
> -Somesh
> 
> -----Original Message-----
> From: smcardle@spansurf.com [mailto:smcardle@spansurf.com] 
> Sent: Thursday, March 18, 2004 10:13 AM
> To: axis-user@ws.apache.org
> Subject: Re: Problems with Axis deployment...
> 
> Hi Somesh,
> 
> The root cause is 
> java.lang.NoClassDefFoundError: org/apache/axis/AxisFault
> 
> The Axis jar files are not available to your service. In your service
> WEB-
> INF/lib directory ensure all of the Axis jar files are present and
> resart 
> Tomcat.
> 
> Regards
> 
> Steve
> 
> 
> Quoting "Marepalli, Somesh" <Somesh.Marepalli@ca.com>:
> 
> > 
> > Hi:
> >    I am trying to deploy a we service. All the classes needed for it
> are
> > part of .jar files in Axis lib folder and Tomcat common lib folder.
> > 
> >    When I run my deployment descriptor, everything seems to be fine.
> > However, when I try to refresh the Axis servlet, I just see this
> message
> > 
> >   "And now... Some Services" 
> >    
> >    And no services listed (not even Admin and Version). The log file
> > shows the exception trace below...
> > 
> >    When I undeploy my service, the list of services comes back....
> > 
> >    Please help....
> > 
> > Regards
> > -Somesh
> > 
> > javax.servlet.ServletException: Servlet execution threw an exception
> > 	at
> >
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
> > tionFilterChain.java:269)
> > 	at
> >
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
> > erChain.java:193)
> > 	at
> >
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
> > e.java:256)
> > 	at
> >
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
> > nvokeNext(StandardPipeline.java:643)
> > 	at
> >
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
> > 80)
> > 	at
> >
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> > 	at
> >
>
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
> > e.java:191)
> > 	at
> >
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
> > nvokeNext(StandardPipeline.java:643)
> > 	at
> >
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
> > 80)
> > 	at
> >
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> > 	at
> >
>
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:241
> > 7)
> > 	at
> >
>
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
> > :180)
> > 	at
> >
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
> > nvokeNext(StandardPipeline.java:643)
> > 	at
> >
>
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa
> > lve.java:171)
> > 	at
> >
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
> > nvokeNext(StandardPipeline.java:641)
> > 	at
> >
>
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
> > :172)
> > 	at
> >
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
> > nvokeNext(StandardPipeline.java:641)
> > 	at
> >
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
> > 80)
> > 	at
> >
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> > 	at
> >
>
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
> > java:174)
> > 	at
> >
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
> > nvokeNext(StandardPipeline.java:643)
> > 	at
> >
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
> > 80)
> > 	at
> >
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> > 	at
> >
>
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:193)
> > 	at
> >
>
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:78
> > 1)
> > 	at
> >
>
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC
> > onnection(Http11Protocol.java:549)
> > 	at
> >
>
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:58
> > 9)
> > 	at
> >
>
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
> > .java:666)
> > 	at java.lang.Thread.run(Thread.java:534)
> > ----- Root Cause -----
> > java.lang.NoClassDefFoundError: org/apache/axis/AxisFault
> > 	at java.lang.ClassLoader.defineClass0(Native Method)
> > 	at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
> > 	at
> >
>
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
> > 	at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
> > 	at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
> > 	at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
> > 	at java.security.AccessController.doPrivileged(Native Method)
> > 	at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
> > 	at
> >
>
org.apache.catalina.loader.StandardClassLoader.findClass(StandardClassLo
> > ader.java:621)
> > 	at
> >
>
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLo
> > ader.java:958)
> > 	at
> >
>
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLo
> > ader.java:857)
> > 	at
> >
>
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLo
> > ader.java:941)
> > 	at
> >
>
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLo
> > ader.java:857)
> > 	at
> >
>
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader
> > .java:1429)
> > 	at
> >
>
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader
> > .java:1289)
> > 	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
> > 	at java.lang.Class.forName0(Native Method)
> > 	at java.lang.Class.forName(Class.java:219)
> > 	at org.apache.axis.utils.ClassUtils$2.run(ClassUtils.java:187)
> > 	at java.security.AccessController.doPrivileged(Native Method)
> > 	at
> > org.apache.axis.utils.ClassUtils.loadClass(ClassUtils.java:171)
> > 	at org.apache.axis.utils.ClassUtils.forName(ClassUtils.java:154)
> > 	at
> > org.apache.axis.utils.cache.ClassCache.lookup(ClassCache.java:123)
> > 	at
> >
>
org.apache.axis.providers.java.JavaProvider.getServiceClass(JavaProvider
> > .java:582)
> > 	at
> >
>
org.apache.axis.providers.java.JavaProvider.initServiceDesc(JavaProvider
> > .java:615)
> > 	at
> >
>
org.apache.axis.handlers.soap.SOAPService.getInitializedServiceDesc(SOAP
> > Service.java:342)
> > 	at
> >
>
org.apache.axis.deployment.wsdd.WSDDService.makeNewInstance(WSDDService.
> > java:507)
> > 	at
> >
>
org.apache.axis.deployment.wsdd.WSDDDeployment.getDeployedServices(WSDDD
> > eployment.java:559)
> > 	at
> >
>
org.apache.axis.configuration.FileProvider.getDeployedServices(FileProvi
> > der.java:321)
> > 	at
> >
>
org.apache.axis.transport.http.AxisServlet.reportAvailableServices(AxisS
> > ervlet.java:681)
> > 	at
> >
org.apache.axis.transport.http.AxisServlet.doGet(AxisServlet.java:262)
> > 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> > 	at
> >
>
org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.j
> > ava:339)
> > 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > 	at
> >
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
> > tionFilterChain.java:247)
> > 	at
> >
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
> > erChain.java:193)
> > 	at
> >
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
> > e.java:256)
> > 	at
> >
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
> > nvokeNext(StandardPipeline.java:643)
> > 	at
> >
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
> > 80)
> > 	at
> >
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> > 	at
> >
>
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
> > e.java:191)
> > 	at
> >
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
> > nvokeNext(StandardPipeline.java:643)
> > 	at
> >
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
> > 80)
> > 	at
> >
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> > 	at
> >
>
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:241
> > 7)
> > 	at
> >
>
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
> > :180)
> > 	at
> >
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
> > nvokeNext(StandardPipeline.java:643)
> > 	at
> >
>
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa
> > lve.java:171)
> > 	at
> >
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
> > nvokeNext(StandardPipeline.java:641)
> > 	at
> >
>
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
> > :172)
> > 	at
> >
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
> > nvokeNext(StandardPipeline.java:641)
> > 	at
> >
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
> > 80)
> > 	at
> >
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> > 	at
> >
>
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
> > java:174)
> > 	at
> >
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
> > nvokeNext(StandardPipeline.java:643)
> > 	at
> >
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
> > 80)
> > 	at
> >
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> > 	at
> >
>
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:193)
> > 	at
> >
>
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:78
> > 1)
> > 	at
> >
>
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC
> > onnection(Http11Protocol.java:549)
> > 	at
> >
>
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:58
> > 9)
> > 	at
> >
>
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
> > .java:666)
> > 	at java.lang.Thread.run(Thread.java:534)
> > 
> > 
> > 
> 
> 
> 
> 
> ---------------------------------------------------
> This message was sent using Spansurf Web Mail
> Internet access in Spain - http://www.spansurf.com/
> 
> 
> 
> 
> 




---------------------------------------------------
This message was sent using Spansurf Web Mail
Internet access in Spain - http://www.spansurf.com/





Mime
View raw message