tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerteis, Roman" <gert...@emarketag.ch>
Subject javax.servlet.jsp.JspTagException: ClassNotFoundException Error
Date Sun, 01 Jul 2001 22:46:02 GMT
 
-----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/webap
ps/eJob/WEB-INF/lib/US_export_policy.jar:/usr/local/tomcat/webapps/eJo
b/WEB-INF/lib/local_policy.jar:/usr/local/tomcat/webapps/eJob/WEB-INF/
lib/jce1_2_1.jar:/usr/local/tomcat/webapps/eJob/WEB-INF/lib/ivjdab.jar
:/usr/local/tomcat/webapps/eJob/WEB-INF/lib/db2java.jar:/usr/local/tom
cat/webapps/eJob/WEB-INF/lib/jasper.jar:/usr/local/tomcat/webapps/eJob
/WEB-INF/lib/jce.jar:/usr/local/tomcat/webapps/eJob/WEB-INF/lib/sunjce
_provider.jar:/usr/local/tomcat/webapps/eJob/WEB-INF/lib/webserver.jar


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(PageCont
extImpl.java:459)
	at
web._0002fweb_0002fErrorMessage_0002ejspErrorMessage_jsp_0._jspService
(_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(JspServ
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:372)
	at
org.apache.tomcat.facade.RequestDispatcherImpl.forward(RequestDispatch
erImpl.java:194)
	at
org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java
:421)
	at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageCont
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(JspServ
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:372)
	at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.j
ava:797)
	at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
	at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConn
ection(Ajp12ConnectionHandler.java:166)
	at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:4
16)
	at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:
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._jspService
(_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(JspServ
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:372)
	at
org.apache.tomcat.facade.RequestDispatcherImpl.forward(RequestDispatch
erImpl.java:194)
	at
org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java
:421)
	at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageCont
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(JspServ
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:372)
	at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.j
ava:797)
	at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
	at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConn
ection(Ajp12ConnectionHandler.java:166)
	at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:4
16)
	at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:
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-----

Mime
View raw message