I am using Jonas 2.2.4 with Jakarta/Tomcat 3.2.1 on Redhat 6.1 system.
Everything is set up and working, except for security. When I try
adding the SecurityCtxInterceptor31 to the server.xml file, I get an
exception about not finding the getRequestSecurityProvider() method.
I've had Jonas/Tomcat working with a previous version of Tomcat,
although I'm not sure which version number it was (possibly 3.1.x).
Has something changed with the newer Tomcat version? I see in the
security section of the Jonas installation documentation that it
refers to Tomcat 3.1 (not 3.2).
Here are the details:
When I add these security lines to the server.xml file:
<RequestInterceptor
className="org.apache.tomcat.request.SecurityCheck"
/>
<RequestInterceptor
className="org.objectweb.security.tomcat.interceptor.SecurityCtxInterceptor31"
/>
I get this NoSuchMethodError exception thrown when trying to run the
basic SnoopServlet example (which works fine if the security lines are
removed):
java.lang.NoSuchMethodError: org.apache.tomcat.core.Context: method
getRequestSecurityProvider()Lorg/apache/tomcat/core/RequestSecurityProvider; not found
at org.apache.tomcat.request.SecurityCheck.authenticate(SecurityCheck.java:130)
at
org.apache.tomcat.core.ContextManager.doAuthenticate(ContextManager.java:837)
at org.apache.tomcat.core.RequestImpl.getRemoteUser(RequestImpl.java:341)
at
org.apache.tomcat.facade.HttpServletRequestFacade.getRemoteUser(HttpServletRequestFacade.java:250)
at SnoopServlet.doGet(SnoopServlet.java:109)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
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.java:797)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:166)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:475)
My tomcat classpath (defined in tomcat.sh) includes the jonas
RMI_jonas.jar file after the jakarta/tomcat jars.
Thanks for any information about this,
Laurie Tynor
[EMAIL PROTECTED]
----
To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe jonas-users".
For general help, send email to [EMAIL PROTECTED] and
include in the body of the message "help".