More likely there is something going wrong with modules-myapp.xml. Perhaps there is an problem reading a separate "modules" file and context local modules. I recall something like this happening to me a while back, but I forget exact problem and cause. I'll try investigating. In the mean time, try adding the CustomRealm declaration directly in modules.xml instead of using modules-myapp.xml and see what happens.
Cheers, Larry > -----Original Message----- > From: Adam Paeth [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, January 22, 2002 12:21 PM > To: Tomcat Users List > Subject: RE: Config/Startup problem contextInit() not running > > > OK, I have more clues, but no answer yet. Here's what I did: > > 1> Change javaClass in modules-myapp.xml to a non-existant class. > Result: no error messages. > > 2> change modules-myapp.xml to _modules-myapp.xml in an > attempt to make TC > think there is no such file > Result: no error messages. > > 3> change <CustomRealm /> to <BadClass /> in apps-myapp.xml > Result: no error messages. > > It appears to be ignoring my apps-myapp.xml file all > together. TOMCAT_HOME > is set properly to /opt/local/tomcat. I'm not sure what is > happening. I > feel completely lost at this point. > > AP > > > -----Original Message----- > > From: Larry Isaacs [mailto:[EMAIL PROTECTED]] > > Sent: Tuesday, January 22, 2002 7:35 AM > > To: 'Tomcat Users List' > > Subject: RE: Config/Startup problem contextInit() not running > > > > > > If there aren't any System.out.println's or log output being > > generated by your CustomRealm, you can try temporarily removing > > the myapp.tomcat.CustomRealm class from your installation and > > see if Tomcat complains. It should complain if it is acting on > > your <CustomRealm /> entry but can't find the class. An > > alternative is to modify modules-myapp.xml to specify > > an incorrect class name. > > > > Cheers, > > Larry > > > > > -----Original Message----- > > > From: Adam Paeth [mailto:[EMAIL PROTECTED]] > > > Sent: Monday, January 21, 2002 5:05 PM > > > To: Tomcat Users List > > > Subject: RE: Config/Startup problem contextInit() not running > > > > > > > > > That is a great question, how do I check since I can't find > > > anything in a > > > log file? > > > > > > Thanks, > > > Adam > > > > > > > -----Original Message----- > > > > From: Larry Isaacs [mailto:[EMAIL PROTECTED]] > > > > Sent: Monday, January 21, 2002 3:53 PM > > > > To: 'Tomcat Users List' > > > > Subject: RE: Config/Startup problem contextInit() not running > > > > > > > > > > > > I'll investigate for Tomcat 3.3a/3.3.1-dev. Do you know if your > > > > <CustomRealm /> is being loaded, as opposed to being ignored? > > > > > > > > Cheers, > > > > Larry > > > > > > > > > -----Original Message----- > > > > > From: Adam Paeth > [mailto:[EMAIL PROTECTED]] > > > > > Sent: Monday, January 21, 2002 4:10 PM > > > > > To: Tomcat User List > > > > > Subject: Config/Startup problem contextInit() not running > > > > > > > > > > > > > > > > > > > > I'm going crazy trying to figure this out... > > > > > > > > > > I've re-written a customized realm that we used for our > > > > > Tomcat 3.2.1 (now > > > > > for 3.3). For some reason the debug messages that I've > > > put into the > > > > > contextInit() method are not showing up on the console or any > > > > > log files. It > > > > > doesn't appear that the method is running. Can anyone tell > > > > > me why this is > > > > > happening and the best approach to fixing it? > > > > > > > > > > After getting some advice from a previous post I setup the > > > > > config files as > > > > > such: > > > > > > > > > > apps-myapp.xml > > > > > -------------- > > > > > <?xml version="1.0" encoding="ISO-8859-1"?> > > > > > <webapps> > > > > > <Context path="/myapp" > > > > > docBase="webapps/myapp" > > > > > debug="1" > > > > > reloadable="true" > > > > > > <CustomRealm /> > > > > > <LogSetter name="myapp_tc.log" > > > path="logs/myapp.log" /> > > > > > <LogSetter name="myapp_servlet_log" > > > > > path="logs/servlet_myapp.log" > > > > > servletLogger="true"/> > > > > > </Context> > > > > > > > > > > </webapps> > > > > > > > > > > modules-myapp.xml > > > > > ----------------- > > > > > <?xml version="1.0" encoding="UTF-8"?> > > > > > <modules> > > > > > <module name="CustomRealm" > > > javaClass="myapp.tomcat.CustomRealm"/> > > > > > </modules> > > > > > > > > > > Thanks, > > > > > Adam Paeth > > > > > > > > > > > > > > > -- > > > > > To unsubscribe: > > > <mailto:[EMAIL PROTECTED]> > > > > > For additional commands: > > > <mailto:[EMAIL PROTECTED]> > > > > > Troubles with the list: > > > <mailto:[EMAIL PROTECTED]> > > > > > > > > > > > > > -- > > > > To unsubscribe: > > > <mailto:[EMAIL PROTECTED]> > > > > For additional commands: > > > <mailto:[EMAIL PROTECTED]> > > > > Troubles with the list: > > > <mailto:[EMAIL PROTECTED]> > > > > > > > > > > > > > > > > > -- > > > To unsubscribe: > <mailto:[EMAIL PROTECTED]> > > > For additional commands: > <mailto:[EMAIL PROTECTED]> > > > Troubles with the list: > <mailto:[EMAIL PROTECTED]> > > > > > > > -- > > To unsubscribe: > <mailto:[EMAIL PROTECTED]> > > For additional commands: > <mailto:[EMAIL PROTECTED]> > > Troubles with the list: > <mailto:[EMAIL PROTECTED]> > > > > > > > -- > To unsubscribe: <mailto:[EMAIL PROTECTED]> > For additional commands: <mailto:[EMAIL PROTECTED]> > Troubles with the list: <mailto:[EMAIL PROTECTED]> > -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>