tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Дмитрий Верещагин <dmitr...@park.ru>
Subject custom classloader
Date Fri, 30 Jul 2004 09:32:02 GMT
Hi All,
I'm trying to implement my own ClassLoader enabling to load encrypted classes into web application
context under Tomcat 4.0.6. My classloader implements as recommended. But unfortunately I've
got the following runtime exception:

javax.servlet.ServletException: Wrapper cannot find servlet class org.apache.jasper.servlet.JspServlet
or a class it depends on
 at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:873)
 at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:810)
 at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3279)
 at org.apache.catalina.core.StandardContext.start(StandardContext.java:3421)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java:638)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
 at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
 at org.apache.catalina.core.StandardService.start(StandardService.java:388)
 at org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
 at org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:261)
 at org.apache.catalina.startup.CatalinaService.execute(CatalinaService.java:172)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:428)
----- Root Cause -----
java.lang.ClassNotFoundException: org.apache.jasper.servlet.JspServlet
 at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:1127)
 at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:992)
 at com.wald.license.checker.LicenseClassLoader.loadClass(LicenseClassLoader.java:76)
 at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:867)
 at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:810)
 at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3279)
 at org.apache.catalina.core.StandardContext.start(StandardContext.java:3421)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java:638)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
 at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
 at org.apache.catalina.core.StandardService.start(StandardService.java:388)
 at org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
 at org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:261)
 at org.apache.catalina.startup.CatalinaService.execute(CatalinaService.java:172)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:428)

Could You give me a sample ClassLoader wich works correclty? I look through org.apache.catalina.loader.WebappClassLoader
but it didn't make the sutuation more clear.
Thanks in advance
Dmitry
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message