DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26174>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26174 NoClassDefFoundError when calling getNamedDispatcher with security manager Summary: NoClassDefFoundError when calling getNamedDispatcher with security manager Product: Tomcat 4 Version: 4.1.24 Platform: PC OS/Version: Linux Status: NEW Severity: Normal Priority: Other Component: Catalina AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] In the default RPM installation, the following servlet code causes a NoClassDefFoundError when running under the security manager. RequestDispatcher rd = servletcontext.getNamedDispatcher("default"); This problem was solved by putting the following into catalina.policy: permission java.lang.RuntimePermission "accessClassInPackage.org.apache.catalina.*"; permission java.lang.RuntimePermission "accessClassInPackage.org.apache.catalina"; permission java.lang.RuntimePermission "defineClassInPackage.org.apache.catalina.*"; permission java.lang.RuntimePermission "defineClassInPackage.org.apache.catalina"; I propose that either (A) getNamedDispatcher be modified so that it doesn't generate this error or (B) the above lines get added by default to catalina.policy. (Possibly this is too liberal. Maybe there is a more specific setting that should be applied). As a side note, the RPM (rightly so, I believe) installs Tomcat with the security manager on by default. This makes it important that catalina.policy settings allow servlets and JSP files to work smoothly. Trace: java.lang.NoClassDefFoundError: org/apache/catalina/core/ApplicationDispatcher java.lang.NoClassDefFoundError: org/apache/catalina/core/ApplicationDispatcher at org.apache.catalina.core.ApplicationContext.getNamedDispatcher (Unknown Source) at org.apache.catalina.core.ApplicationContextFacade.getNamedDispatcher (Unknown Source) at com.forio.servlet.plugin.implement.ServeFile.sendFileResponse (Unknown Source) at com.forio.servlet.plugin.implement.ServeFile.processRequest(Unknown Source) at com.forio.servlet.SimServlet.handleRequest(Unknown Source) at com.forio.servlet.util.VelocityServletAlt.doRequest(Unknown Source) at com.forio.servlet.util.VelocityServletAlt.doGet(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (Unknown Source) at org.apache.catalina.core.ApplicationFilterChain.access$0(Unknown Source) at org.apache.catalina.core.ApplicationFilterChain$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source) at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source) --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]