Apache 2.0.46, tomcat 4.1.24 and jk2 connector, struts-1.1-rc2 In my original posting, I said I am frustrated because,
- if I start index.jsp first which is simply a meta refresh, I didn't receive the exception, and then I can access .../mylink.do?... from browser. - if I access .../mylink.do?... first, I got this error. I looked into catalina.out, there was no permission exception. -----Original Message----- From: Jean-Francois Arcand [mailto:[EMAIL PROTECTED] Sent: June 23, 2003 4:42 PM To: Tomcat Users List Subject: Re: [REPOST]Tomcat with security manager + NoClassDefFoundError Hi, that's a bug in Tomcat. You should not received that exception, which means that the classloader is unable to load some package protected classes. The org/apache/coyote/tomcat4/CoyoteRequest$PrivilegedGetSession needs to be loaded when Tomcat starts, not when you do your first invokation (Tomcat 5 handles the current case). Which Tomcat version are you using (4.1.?)? -- Jeanfrancois Phillip Qin wrote: >I have already added that one, plus > >- ReflectPermission "suppressAccessChecks" for a commons-beanutils bug >- FilePermission for log4j > >-----Original Message----- >From: Jason Bainbridge [mailto:[EMAIL PROTECTED] >Sent: June 23, 2003 3:48 PM >To: Tomcat Users List >Subject: Re: [REPOST]Tomcat with security manager + NoClassDefFoundError > >Was just doing a bit of reading: > >http://jakarta.apache.org/struts/userGuide/installation.html > >Running Struts Applications Under A Security Manager > >Many application servers execute web applications under the control of a >Java >security manager, with restricted permissions on what classes in the web >application can do. If you utilize form beans with mapped properties, you >may >encounter security exceptions unless you add the following permission to the > >set of permissions granted to your Struts application's codebase: > >permission java.lang.RuntimePermission "accessDeclaredMembers"; > >It still seems strange though that it was throwing a NoClassDefFoundError, >can >you maybe try the above as an alternative fix and see if that resolves the >problem? > >Regards, > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]