You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by ravi kumar <ra...@yahoo.co.in> on 2007/02/15 13:38:06 UTC
Re: [OT] AW: Re: AW: RE: Re: AW: RE: Error instantiating servlet
class
thankyou....
Even i have these problem in my project..
These conservation help me to troubleshot the
problem...
Thanks a lot once again....
mzelenkovska@bluewin.ch wrote:
>
> Thanks. It is working now.
>
> ----Ursprüngliche Nachricht----
> Von: delbd@oma.be
> Datum: 12.02.2007 11:33
> An: "Tomcat Users List"<us...@tomcat.apache.org>
> Betreff: Re: AW: RE: Re: AW: RE: Error instantiating servlet class
>
> This is same error as before, only the class is different, as long
> as
> you get those errors, just put the libraries you require inside
> your
> WEB-INF/lib folder.
>
> En l'instant précis du 02/12/07 11:28, mzelenkovska@bluewin.ch
> s'exprimait en ces termes:
>> 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@sogitec.fr
>> Datum: 12.02.2007 11:11
>> An: "Tomcat Users List"<us...@tomcat.apache.org>,
>> <mz...@bluewin.ch>
>> 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@bluewin.ch [mailto:mzelenkovska@bluewin.ch]
>> Envoyé : lundi 12 février 2007 11:00
>> À : users@tomcat.apache.org
>> 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@oma.be
>> Datum: 12.02.2007 10:51
>> An: "Tomcat Users List"<us...@tomcat.apache.org>
>> 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@bluewin.ch
>> 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@sogitec.fr
>>> Datum: 12.02.2007 10:20
>>> An: "Tomcat Users List"<us...@tomcat.apache.org>,
>>> <mz...@bluewin.ch>
>>> Betreff: RE: Error instantiating servlet class
>>>
>>> it seems this class javax/xml/rpc/ServiceException
>>> is not in the classpath.
>>>
>>>
>>> -----Message d'origine-----
>>> De : mzelenkovska@bluewin.ch [mailto:mzelenkovska@bluewin.ch]
>>> Envoyé : lundi 12 février 2007 09:39
>>> À : users@tomcat.apache.org
>>> Objet : Error instantiating servlet class
>>>
>>>
>>>
>>> users@tomcat.apache.org
>>>
>>> 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=" "http://www.w3.
>
>> org/2001/XMLSchema-" target="_BLANK">http://www.w3.
>> org/2001/XMLSchema-
>>
>>
>>> instance" xsi:schemaLocation=" "http://java.sun.
>
>> com/xml/ns/j2ee/web-" target="_BLANK">http://java.sun.
>> com/xml/ns/j2ee/web-
>>
>>> 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@tomcat.apache.org
>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>
>>>
>>>
>>>
>>
> ******************************************************************
>>
>>> 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@tomcat.apache.org
>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>
>>
> ---------------------------------------------------------------------
>>
>>> To start a new topic, e-mail: users@tomcat.apache.org
>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>
>>>
>>>
>>
>>
>>
>>
>>
> ---------------------------------------------------------------------
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
>>
>>
>>
>>
>>
> ---------------------------------------------------------------------
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
>>
> ******************************************************************
>> 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@tomcat.apache.org
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
>
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/AW%3A-Re%3A-AW%3A-RE%3A-Re%3A-AW%3A-RE%3A-Error-instantiating-servlet-class-tf3214540.html#a8984633
Sent from the Tomcat - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org