tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerteis, Roman" <gert...@emarketag.ch>
Subject AW: javax.servlet.jsp.JspTagException: ClassNotFoundException Err or
Date Sun, 01 Jul 2001 23:46:26 GMT
 
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hai Roger,

it's not a web.xml thing or unmapped servlets or anything.
I talk a about helperclasses or packages which ARE on the classpath
and not accessible by the classloader somehow. Same to the packages.
The loading of a Context does (at least in my case) not properly bind
the ressources in WEB-INF/classes and WEB-INF/lib onto my
Web-Application.

hmm.m still searching.
thanxs anyways.

roman

- -----Urspr√ľngliche Nachricht-----
Von: Roger Wei [mailto:khw207@cs.nyu.edu]
Gesendet: Montag, 2. Juli 2001 01:29
An: tomcat-user@jakarta.apache.org
Betreff: Re: javax.servlet.jsp.JspTagException:
ClassNotFoundException
Error 


If you run it on windows 9x/Me, please see
http://rogerwei.com/install_secret.txt


- ----- Original Message ----- 
From: "Gerteis, Roman" <gerteis@emarketag.ch>
To: <tomcat-user@jakarta.apache.org>
Sent: Sunday, July 01, 2001 6:46 PM
Subject: javax.servlet.jsp.JspTagException: ClassNotFoundException
Error 


> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hay TomCatters,
> 
> I have some really wired behaviour on my Tomcat 3.2.1 Installation.
> We have some classes laying around in the deployment classes
> folder:  
> 
> $TOMCAT_HOME/webapps/APPNAME/WEB-INF/classes/
> 
> 1.) The classes are physically there.
> 2.) The classpath is build properly and included on startup.  (see
> $1)
> 
> and I get the ClassNotFoundException :(((
> 
> the Class is loaded dynamically with:
> Beans.instantiate(classLoader, "com.eproduction.ResourceProvider");
> 
> So My question (for hours now).... 
> ...where to put the class so that the classLoader can allocate it?
> I have no (more) clue?
> 
> ok. There is a workaround. I can put those classes under:
> $TOMCAT_HOME/classes
> then the whole thing works. But this is exactly not what I wanted.
> I want to pack the application and keep those helper classes in the
> application's classes folder under WEB-INF.
> 
> Any suggestions?
> thx.
> roman
> 
> 
> SERVER.XML
> - ---------------------
>         <!-- The App Context -->
>         <Context path="/eJob" 
>                  docBase="webapps/eJob" 
>                  crossContext="false"
>                  debug="0" 
>                  reloadable="true" >
>         </Context>
> 
> 
> CLASSPATH:
> - ---------------------
> Classpath according to the Servlet Engine is:
> /usr/local/tomcat/webapps/eJob/WEB-INF/classes:/usr/local/tomcat/web
> ap
> ps/eJob/WEB-INF/lib/US_export_policy.jar:/usr/local/tomcat/webapps/e
> Jo
> b/WEB-INF/lib/local_policy.jar:/usr/local/tomcat/webapps/eJob/WEB-IN
> F/
> lib/jce1_2_1.jar:/usr/local/tomcat/webapps/eJob/WEB-INF/lib/ivjdab.j
> ar
> :/usr/local/tomcat/webapps/eJob/WEB-INF/lib/db2java.jar:/usr/local/t
> om
> cat/webapps/eJob/WEB-INF/lib/jasper.jar:/usr/local/tomcat/webapps/eJ
> ob
> /WEB-INF/lib/jce.jar:/usr/local/tomcat/webapps/eJob/WEB-INF/lib/sunj
> ce
> _provider.jar:/usr/local/tomcat/webapps/eJob/WEB-INF/lib/webserver.j
> ar  
> 
> 
> And errormessage:
> - ----------------------
> Error: 500
> Location: /eJob/web/ErrorMessage.jsp
> Internal Servlet Error:
> 
> javax.servlet.ServletException: ClassNotFoundException Error :
> com.eproduction.ResourceProvider
> at
> org.apache.jasper.runtime.PageContextImpl.handlePageException(PageCo
> nt extImpl.java:459)
> at
> web._0002fweb_0002fErrorMessage_0002ejspErrorMessage_jsp_0._jspServi
> ce
> (_0002fweb_0002fErrorMessage_0002ejspErrorMessage_jsp_0.java:296)
> at
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspSe
> rv let.java:177)
> at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:
> 31 8)
> at
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:
> 40 4)
> at org.apache.tomcat.core.Handler.service(Handler.java:286)
> at
> org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:37
> 2) at
> org.apache.tomcat.facade.RequestDispatcherImpl.forward(RequestDispat
> ch erImpl.java:194)
> at
> org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.ja
> va :421)
> at
> org.apache.jasper.runtime.PageContextImpl.handlePageException(PageCo
> nt extImpl.java:446)
> at
> web._0002fweb_0002fController_0002ejspController_jsp_0._jspService(_
> 00 02fweb_0002fController_0002ejspController_jsp_0.java:772)
> at
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspSe
> rv let.java:177)
> at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:
> 31 8)
> at
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:
> 40 4)
> at org.apache.tomcat.core.Handler.service(Handler.java:286)
> at
> org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:37
> 2) at
> org.apache.tomcat.core.ContextManager.internalService(ContextManager
> .j ava:797)
> at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:74
> 3) at
> org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processCo
> nn ection(Ajp12ConnectionHandler.java:166)
> at
> org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java
> :4 16)
> at
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.jav
> a: 498)
> at java.lang.Thread.run(Thread.java:484)
> 
> Root cause: 
> javax.servlet.jsp.JspTagException: ClassNotFoundException Error :
> com.eproduction.ResourceProvider
> at com.eproduction.LabelTag.doEndTag(LabelTag.java:70)
> at
> web._0002fweb_0002fErrorMessage_0002ejspErrorMessage_jsp_0._jspServi
> ce
> (_0002fweb_0002fErrorMessage_0002ejspErrorMessage_jsp_0.java:283)
> at
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspSe
> rv let.java:177)
> at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:
> 31 8)
> at
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:
> 40 4)
> at org.apache.tomcat.core.Handler.service(Handler.java:286)
> at
> org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:37
> 2) at
> org.apache.tomcat.facade.RequestDispatcherImpl.forward(RequestDispat
> ch erImpl.java:194)
> at
> org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.ja
> va :421)
> at
> org.apache.jasper.runtime.PageContextImpl.handlePageException(PageCo
> nt extImpl.java:446)
> at
> web._0002fweb_0002fController_0002ejspController_jsp_0._jspService(_
> 00 02fweb_0002fController_0002ejspController_jsp_0.java:772)
> at
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspSe
> rv let.java:177)
> at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:
> 31 8)
> at
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:
> 40 4)
> at org.apache.tomcat.core.Handler.service(Handler.java:286)
> at
> org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:37
> 2) at
> org.apache.tomcat.core.ContextManager.internalService(ContextManager
> .j ava:797)
> at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:74
> 3) at
> org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processCo
> nn ection(Ajp12ConnectionHandler.java:166)
> at
> org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java
> :4 16)
> at
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.jav
> a: 498)
> at java.lang.Thread.run(Thread.java:484)
> 
> -----BEGIN PGP SIGNATURE-----
> Version: PGPfreeware 7.0.3 for non-commercial use
> <http://www.pgp.com>  
> 
> iQA/AwUBOz+mAE9b2PL+QQl1EQIQqgCfRHV2DGjQFEkHcjzcM6sTh7w65gAAoMlz
> QDPvQtn3Z028MzWH7vjfawzg
> =d1oF
> -----END PGP SIGNATURE-----
> 

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>

iQA/AwUBOz+0J09b2PL+QQl1EQIMJgCfQq752w8fX6AeOTtApIKj06CdvXMAn0wr
JjqotpAIlJUkhbeGvfqO9Efr
=XxXP
-----END PGP SIGNATURE-----

Mime
View raw message