axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jayachandra <jayachan...@gmail.com>
Subject Re: javax.servlet.ServletException: javax/xml/rpc/Service
Date Wed, 04 Jan 2006 10:26:12 GMT
The issue would be that there is one more jar file which is implementing the
javax.xml.rpc package and it doesn't have the needed class. You may want to
delete that jar if its not needed.

HTH
Jaya

On 1/3/06, mukesh <mukesh@hungama.com> wrote:
>
>  Well I've added all the jars which contains jax and rpc in their name but
> is of no use
>
>
>  ------------------------------
>
> *From:* Jonathan Roberts [mailto:j_droberts@yahoo.co.uk]
> *Sent:* Tuesday, January 03, 2006 12:53 AM
> *To:* axis-user@ws.apache.org
> *Subject:* Re: javax.servlet.ServletException: javax/xml/rpc/Service
>
>
>
> hi
>
>
>
> ensure that
>
>
>
> javax/xml/rpc/Service
>
>
>
> is in your web app servers classpath!
>
>
>
> J
>
> *mukesh <mukesh@hungama.com>* wrote:
>
> Hi friends,
>
> I am able to access web service via command prompt using "java
> -cp $AXISCLASSPATH ws.TestService" but getting following error when trying
> to access a web service via browser (jsp page)
>
> cause
> java.lang.NoClassDefFoundError: javax/xml/rpc/Service
> java.lang.ClassLoader.defineClass1(Native Method)
> java.lang.ClassLoader.defineClass(ClassLoader.java:620)
>
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
> java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
> java.net.URLClassLoader.access$100(URLClassLoader.java:56)
> java.net.URLClassLoader$1.run(URLClassLoader.java:195)
> java.security.AccessController.doPrivileged(Native Method)
> java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
> java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>
> org.apache.catalina.loader.WebappClassLoader.loadClass(
> WebappClassLoader.jav
> a:1253)
>
> org.apache.catalina.loader.WebappClassLoader.loadClass(
> WebappClassLoader.jav
> a:1187)
>
> org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:127)
>
> org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:65)
> java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
> java.lang.Class.getDeclaredConstructors0(Native Method)
> java.lang.Class.privateGetDeclaredConstructors(Class.java:2328)
> java.lang.Class.getConstructor0(Class.java:2640)
> java.lang.Class.newInstance0(Class.java:321)
> java.lang.Class.newInstance(Class.java:303)
>
> org.apache.jasper.servlet.JspServletWrapper.getServlet(
> JspServletWrapper.jav
> a:138)
>
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java
> :3
> 05)
>
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>
> note The full stack trace of the root cause is available in the Apache
> Tomcat/5.5.12 logs.
>
> ////////////// STACK Trace from log file
>
> 2006-01-02 21:18:10,375 [TP-Processor5] ERROR
> org.apache.catalina.core.ContainerBase
> .[Catalina].[localhost].[/axis].[jsp]
> - Servlet.service() for servlet jsp threw exception
>
> java.lang.NoClassDefFound Error: javax/xml/rpc/Service
>
> at java.lang.ClassLoader.defineClass1(Native Method)
>
> at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
>
> at
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
>
> at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
>
> at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
>
> at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
>
> at java.security.AccessController.doPrivileged(Native Method)
>
> at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>
> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
>
> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>
> at
> org.apache.catalina.loader.WebappClassLoader.loadClass(
> WebappClassLoader.jav
> a:1253)
>
> at
> org.apache.catalina.loader.WebappClassLoader.loadClass(
> WebappClassLoader.jav
> a:1187)
>
> at
> org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:127)
>
> at
> org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:65)
>
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
>
> at java.lang.Class.getDeclaredConstructors0(Native Method)
>
> at java.lang.Class.privateGetDeclaredConstructors(Class.java:2328)
>
> at java.lang.Class.getConstructor0(Class.java:2640)
>
> at java.lang.Class.newInstance0(Class.java:321)
>
> at java.lang.Class.newInstance(Class.java:303)
>
> at
> org.apache.jasper.servlet.JspServletWrapper.getServlet(
> JspServletWrapper.jav
> a:138)
>
> at
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java
> :3
> 05)
>
> at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
>
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
>
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
> (Application
> FilterChain.java:252)
>
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter
> (ApplicationFilterCh
> ain.java:173)
>
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(
> StandardWrapperValve.ja
> va:213)
>
> at
> org.apache.catalina.core.StandardContextValve.invoke(
> StandardContextValve.ja
> va:178)
>
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
> :126
> )
>
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
> :105
> )
>
> at
> org.apache.catalina.core.StandardEngineValve.invoke(
> StandardEngineValve.java
> :107)
>
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java
> :148)
>
> at
> org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:199)
>
> at
> org.apache.jk.common.HandlerRe quest.in voke(HandlerRequest.java:282)
>
> at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:744)
>
> at
> org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java
> :674)
>
> at
> org.apache.jk.common.ChannelSocket$SocketConnection.runIt(
> ChannelSocket.java
> :866)
>
> at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
> ThreadPool.jav
> a:684)
>
> Please help to get rid of it.
> -mukesh
>
>
>
>  ------------------------------
>
> To help you stay safe and secure online, we've developed the all new *Yahoo!
> Security Centre*<http://us.rd.yahoo.com/mail/uk/taglines/default/security_centre/*http:/uk.security.yahoo.com/>
> .
>



--
-- Jaya

Mime
View raw message