Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Apache Tomcat »

AW: RE: Re: AW: RE: Error instantiating servlet class

mzelenkovska@bluewin.ch

2007-02-12

Replies:

Thanks.

It seems that things have moved on, but I get another error now:

exception

javax.servlet.ServletException: Error instantiating servlet class
servlet.CallService
 org.apache.catalina.valves.ErrorReportValve.invoke
(ErrorReportValve.java:105)
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.
java:148)
 org.apache.coyote.http11.Http11Processor.process(Http11Processor.
java:869)
 org.apache.coyote.http11.
Http11BaseProtocol$Http11ConnectionHandler.processConnection
(Http11BaseProtocol.java:664)
 org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket
(PoolTcpEndpoint.java:527)
 org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
(LeaderFollowerWorkerThread.java:80)
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
(ThreadPool.java:684)
 java.lang.Thread.run (Thread.java:595)


root cause

java.lang.NoClassDefFoundError: org/apache/axis/client/Service
 java.lang.ClassLoader.defineClass1(Native Method)
 java.lang.ClassLoader.defineClass (ClassLoader.java:620)
 java.security.SecureClassLoader.defineClass (SecureClassLoader.java:
124)
 org.apache.catalina.loader.WebappClassLoader.findClassInternal
(WebappClassLoader.java:1815)
 org.apache.catalina.loader.WebappClassLoader.findClass
(WebappClassLoader.java:869)
 org.apache.catalina.loader.WebappClassLoader.loadClass
(WebappClassLoader.java:1322)
 org.apache.catalina.loader.WebappClassLoader.loadClass
(WebappClassLoader.java:1201)
 java.lang.ClassLoader.loadClassInternal (ClassLoader.java:319)
 java.lang.Class.getDeclaredConstructors0(Native Method)
 java.lang.Class.privateGetDeclaredConstructors (Class.java:2357)
 java.lang.Class.getConstructor0 (Class.java:2671)
 java.lang.Class.newInstance0 (Class.java:321)
 java.lang.Class.newInstance (Class.java:303)
 org.apache.catalina.valves.ErrorReportValve.invoke
(ErrorReportValve.java:105)
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.
java:148)
 org.apache.coyote.http11.Http11Processor.process(Http11Processor.
java:869)
 org.apache.coyote.http11.
Http11BaseProtocol$Http11ConnectionHandler.processConnection
(Http11BaseProtocol.java:664)
 org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket
(PoolTcpEndpoint.java:527)
 org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
(LeaderFollowerWorkerThread.java:80)
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
(ThreadPool.java:684)
 java.lang.Thread.run (Thread.java:595)


My servlet is using a web service. The client classes of the web
service are put in
C:\tomcat\webapps\StandardCategoryModule\WEB-INF\classes\org and
the web service itself is put in C:\Axis\webapps\axis\WEB-
INF\classes\org.

I have built a web service and web service client in eclipse and I
have managed to invoke the web service with that command line cleint.
Now I am trying to crate a form that invokes a servlet that uses the
client classes to invoke the web service.

Thanks

Regards,
Magdalena

----Ursprüngliche Nachricht----
Von: jppattus@(protected)
Datum: 12.02.2007 11:11
An: "Tomcat Users List"<users@(protected)>,
<mzelenkovska@(protected)>
Betreff: RE: Re: AW: RE: Error instantiating servlet class

in your distribution, put the jar here

C:\tomcat\webapps\StandardCategoryModule\WEB-INF\lib\jaxrpc.jar

-----Message d'origine-----
De : mzelenkovska@(protected)]
Envoyé : lundi 12 février 2007 11:00
À : users@(protected)
Objet : AW: Re: AW: RE: Error instantiating servlet class


I have set up the classpath environmantal variable to include the
path to jaxrpc.jar

Thanks

Magdalena
----Ursprüngliche Nachricht----
Von: delbd@(protected)
Datum: 12.02.2007 10:51
An: "Tomcat Users List"<users@(protected)>
Betreff: Re: AW: RE: Error instantiating servlet class

Where did you put it?
En l'instant précis du 02/12/07 10:27, mzelenkovska@(protected)
s'exprimait en ces termes:
> Thanks. I have already put in the classpath the path to jaxrpc.
jar. I
> presume this is the one, but it still doesn't work.
>
> Regards,
> Magdalena
> ----Ursprüngliche Nachricht----
> Von: jppattus@(protected)
> Datum: 12.02.2007 10:20
> An: "Tomcat Users List"<users@(protected)>,
> <mzelenkovska@(protected)>
> Betreff: RE: Error instantiating servlet class
>
> it seems this class javax/xml/rpc/ServiceException
> is not in the classpath.
>
>
> -----Message d'origine-----
> De : mzelenkovska@(protected)]
> Envoyé : lundi 12 février 2007 09:39
> À : users@(protected)
> Objet : Error instantiating servlet class
>
>
>
> users@(protected)
>
> Hi,
>
> I have the following file structure:
>
> 1.  C:\tomcat\webapps\StandardCategoryModule\start.jsp
> 2.  C:\tomcat\webapps\StandardCategoryModule\WEB-INF\web.xml
> 3.  C:\tomcat\webapps\StandardCategoryModule\WEB-
> INF\classes\servlet\CallService
>
> Start.jsp should invoke the CallService servlet , but I am
> getting
> the error below.
>
> type Exception report
> message
> description The server encountered an internal error () that
> prevented it from fulfilling this request.
> exception
> javax.servlet.ServletException: Error instantiating servlet
class
> servlet.CallService
>  org.apache.catalina.valves.ErrorReportValve.invoke
> (ErrorReportValve.java:105)
>  org.apache.catalina.connector.CoyoteAdapter.service
> (CoyoteAdapter.
> java:148)
>  org.apache.coyote.http11.Http11Processor.process
(Http11Processor.
> java:869)
>  org.apache.coyote.http11.
> Http11BaseProtocol$Http11ConnectionHandler.processConnection
> (Http11BaseProtocol.java:664)
>  org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket
> (PoolTcpEndpoint.java:527)
>  org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
> (LeaderFollowerWorkerThread.java:80)
>  org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
> (ThreadPool.java:684)
>  java.lang.Thread.run (Thread.java:595)
> root cause
> java.lang.NoClassDefFoundError: javax/xml/rpc/ServiceException
>  java.lang.Class.getDeclaredConstructors0(Native Method)
>  java.lang.Class.privateGetDeclaredConstructors (Class.java:2357)
>  java.lang.Class.getConstructor0 (Class.java:2671)
>  java.lang.Class.newInstance0 (Class.java:321)
>  java.lang.Class.newInstance (Class.java:303)
>  org.apache.catalina.valves.ErrorReportValve.invoke
> (ErrorReportValve.java:105)
>  org.apache.catalina.connector.CoyoteAdapter.service
> (CoyoteAdapter.
> java:148)
>  org.apache.coyote.http11.Http11Processor.process
(Http11Processor.
> java:869)
>  org.apache.coyote.http11.
> Http11BaseProtocol$Http11ConnectionHandler.processConnection
> (Http11BaseProtocol.java:664)
>  org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket
> (PoolTcpEndpoint.java:527)
>  org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
> (LeaderFollowerWorkerThread.java:80)
>  org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
> (ThreadPool.java:684)
>  java.lang.Thread.run (Thread.java:595)
>
>
>
> My web.xml file contains the following information:
>
>
> <?xml version="1.0" encoding="UTF-8"?>
> <web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.
> com/xml/ns/j2ee" xmlns:xsi="<a href="http://www.w3.
org/2001/XMLSchema-" target="_BLANK">http://www.w3.
org/2001/XMLSchema-
</a>
> instance" xsi:schemaLocation="<a href="http://java.sun.
com/xml/ns/j2ee/web-" target="_BLANK">http://java.sun.
com/xml/ns/j2ee/web-</a>
> app_2_4.xsd">
>  <display-name>
>  StandardCategoryModule</display-name>
>  <servlet>
>    <description>
>    </description>
>    <display-name>
>    CallService</display-name>
>    <servlet-name>CallService</servlet-name>
>    <servlet-class>
>    servlet.CallService</servlet-class>
>  </servlet>
>  
>  <servlet-mapping>
>    <servlet-name>CallService</servlet-name>
>    <url-pattern>/CallService</url-pattern>
>  </servlet-mapping>
>  
>  <welcome-file-list>
>    <welcome-file>index.html</welcome-file>
>    <welcome-file>index.htm</welcome-file>
>    <welcome-file>index.jsp</welcome-file>
>    <welcome-file>default.html</welcome-file>
>    <welcome-file>default.htm</welcome-file>
>    <welcome-file>default.jsp</welcome-file>
>    <welcome-file>start.jsp</welcome-file>
>  </welcome-file-list>
>
> </web-app>
>
> I would appreciate any help on this.
>
> Thanks
>
> Regards,
> Magdalena
>
>
>
>
>
>

---------------------------------------------------------------------
> To start a new topic, e-mail: users@(protected)
> To unsubscribe, e-mail: users-unsubscribe@(protected)
> For additional commands, e-mail: users-help@(protected)
>
>
>
******************************************************************
> Ce message et ses pi�ces jointes sont confidentiels et �tablis
a
> l'intention exclusive de ses destinataires.
> Tout message �lectronique est susceptible d'alt�ration. SOGITEC
> d�cline toute responsabilit� au titre de ce message s'il a �t�
> alt�r�, d�form� ou falsifi�.
> Si vous n'�tes pas destinataire de ce message, merci de le
d�truire
> imm�diatement.
>
******************************************************************
>
>
>
>

---------------------------------------------------------------------
> To start a new topic, e-mail: users@(protected)
> To unsubscribe, e-mail: users-unsubscribe@(protected)
> For additional commands, e-mail: users-help@(protected)
>
>
>
>
>
>

---------------------------------------------------------------------
> To start a new topic, e-mail: users@(protected)
> To unsubscribe, e-mail: users-unsubscribe@(protected)
> For additional commands, e-mail: users-help@(protected)
>
>  




---------------------------------------------------------------------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)






---------------------------------------------------------------------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)


******************************************************************
Ce message et ses pi�ces jointes sont confidentiels et �tablis a
l'intention exclusive de ses destinataires.
Tout message �lectronique est susceptible d'alt�ration. SOGITEC
d�cline toute responsabilit� au titre de ce message s'il a �t�
alt�r�, d�form� ou falsifi�.
Si vous n'�tes pas destinataire de ce message, merci de le d�truire
imm�diatement.
******************************************************************





---------------------------------------------------------------------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.