Hello all,
Sorry to keep harping on this issue but I'd really like to be able to use/understand
it. I have
now downloaded the tomcat source and have been building away. My problem/question
comes in from doing something like this
{package & import statements}
public class MySimpleRealm extends SimpleRealm{
}
Build that (which means MySimpleRealm inherits everything from SimpleRealm) and then
update /build/tomcat/conf/server.xml
<RequestInterceptor
className="org.apache.tomcat.request.MySimpleRealm"
debug="99" />
I would expect that when I viewed /examples/jsp/security/login/login.jsp it'd act the
exact
same as SimpleRealm. Instead, it it tries to direct the page to /login/null After
that though, if
I manually type in /security/protected/index.jsp it picks up the fact that I have a
session, I'm a
valid user in my proper role. Any pointers, tidbits, etc. would be most gratefully
accepted.
>From tomcat.log...
Ctx( /examples ): XmlReader - init /examples webapps/examples
Ctx( /examples ): Reading C:\jakarta\build\tomcat\webapps\examples\WEB-INF\web.xml
Ctx( /examples ): Add user tomcat tomcat tomcat
Ctx( /examples ): Add user role1 tomcat role1
Ctx( /examples ): Add user both tomcat tomcat,role1
Ctx( /examples ): Loading -2147483646 jsp
Ctx( /examples ): Get real path /jsp/security/login/login.jsp
C:\jakarta\build\tomcat\webapps\examples\jsp\security\login\login.jsp
C:\jakarta\build\tomcat\webapps\examples
Ctx( /examples ): Get real path \jsp\security\login\login.jsp
C:\jakarta\build\tomcat\webapps\examples\jsp\security\login\login.jsp
C:\jakarta\build\tomcat\webapps\examples
Ctx( /examples ): Get real path \jsp\security\login\login.jsp
C:\jakarta\build\tomcat\webapps\examples\jsp\security\login\login.jsp
C:\jakarta\build\tomcat\webapps\examples
Ctx( /examples ): Get real path \jsp\security\login\login.jsp
C:\jakarta\build\tomcat\webapps\examples\jsp\security\login\login.jsp
C:\jakarta\build\tomcat\webapps\examples
Ctx( /examples ): Get real path /jsp/security/login/null
C:\jakarta\build\tomcat\webapps\examples\jsp\security\login\null
C:\jakarta\build\tomcat\webapps\examples
Ctx( /examples ): 404 R( /examples + /jsp/security/login/null + null) null
ContextManager: SimpleRealm: Verify user=tomcat pass=tomcat
ContextManager: SimpleRealm: Auth ok, user=tomcat
ContextManager: SimpleRealm: Controled access for tomcat R( /examples +
/jsp/security/protected/index.jsp + null) Ct
(jsp(org.apache.jasper.servlet.JspServlet/null) )
Tell all your friends about wowwowmail.zzn.com
____________________________________________________________
ZapZone Network brought to you by FortuneCity. http://www.fortunecity.com Get 100
megabytes of free
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]