Have you compiled your custom realm against Tomcat 3.3? A lot of code was moved around in Tomcat 3.3 relative to where it was in Tomcat 3.2.x. A class that makes use of Tomcat internal classes would likely need some adjustment to go from 3.2.x to 3.3.
Also, if it matters, web applications do not have access to Tomcat internal classes by default in Tomcat 3.3. This differs from Tomcat 3.2.x where the web server classes are on the CLASSPATH where they are visible to all web applications. Cheers, Larry > -----Original Message----- > From: Adam Paeth [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, December 18, 2001 11:52 AM > To: Tomcat User List > Subject: Custom Realm looking for LocalStrings in wrong package > > > I'm continuing my attempt to get my 3.2.1 app to run on 3.3. > While I'm > making progress, I'm now stuck with the error at the end of this post. > I believe the error happens when it tries to load my custom > realm. I'm > assuming that it is looking for the LocalStrings.properties or an > associated file in the org.apache.tomcat.resources package, but as the > error shos, it is looking in the org.apache.tomcat.request > package which > no longer exists in 3.3. None of the custom realm classes > reference the > LocalStrings file directly. Any ideas on how to get this fixed is > appreciated. > > Thanks in advance (again), > Adam Paeth > > ---- Errror Message from console ---- > > 2001-12-18 10:12:53 - ContextXmlReader: Context > config=$TOMCAT_HOME/conf/apps-myapp.xml > EmbededTomcat: exception initializing ContextManager > java.lang.ExceptionInInitializerError: > java.util.MissingResourceException: Can't find resource for base name > org.apache.tomcat.request.LocalStrings, locale en_US > at java.lang.Throwable.fillInStackTrace(Native Method) > at java.lang.Throwable.fillInStackTrace(Compiled Code) > at java.lang.Throwable.<init>(Compiled Code) > at java.lang.Exception.<init>(Compiled Code) > at java.lang.RuntimeException.<init>(RuntimeException.java:47) > at > java.util.MissingResourceException.<init>(MissingResourceExcep > tion.java:54) > at java.util.ResourceBundle.getBundle(Compiled Code) > at java.util.ResourceBundle.getBundle(ResourceBundle.java:353) > at > org.apache.tomcat.util.res.StringManager.<init>(StringManager. > java:120) > at > org.apache.tomcat.util.res.StringManager.<init>(StringManager. > java:111) > at > org.apache.tomcat.util.res.StringManager.getManager(StringMana > ger.java:289) > at <Unloaded Method> > at java.lang.Class.newInstance0(Native Method) > at java.lang.Class.newInstance0(Compiled Code) > at java.lang.Class.newInstance(Compiled Code) > at > org.apache.tomcat.util.xml.ObjectCreate.start(Compiled Code) > at > org.apache.tomcat.util.xml.XmlMapper.matchStart(Compiled Code) > at > org.apache.tomcat.util.xml.XmlMapper.startElement(Compiled Code) > at > org.xml.sax.helpers.XMLReaderAdapter.startElement(Compiled Code) > at > org.apache.crimson.parser.Parser2.maybeElement(Compiled Code) > at org.apache.crimson.parser.Parser2.content(Compiled Code) > at > org.apache.crimson.parser.Parser2.maybeElement(Compiled Code) > at org.apache.crimson.parser.Parser2.content(Compiled Code) > at > org.apache.crimson.parser.Parser2.maybeElement(Compiled Code) > at > org.apache.crimson.parser.Parser2.parseInternal(Compiled Code) > at org.apache.crimson.parser.Parser2.parse(Parser2.java:304) > at > org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433) > at > org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223) > at > org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:310) > at > org.apache.tomcat.modules.config.ServerXmlReader.loadConfigFil > e(ServerXmlRea > der.java:172) > at > org.apache.tomcat.modules.config.ContextXmlReader.engineInit(C > ompiled Code) > at org.apache.tomcat.core.ContextManager.init(Compiled Code) > at > org.apache.tomcat.startup.EmbededTomcat.initContextManager(Com > piled Code) > at > org.apache.tomcat.startup.EmbededTomcat.execute1(EmbededTomcat > .java:564) > at > org.apache.tomcat.startup.EmbededTomcat$1.run(EmbededTomcat.java:548) > at > org.apache.tomcat.util.compat.Jdk12Support$PrivilegedProxy.run > (Jdk12Support. > java:183) > at java.security.AccessController.doPrivileged(Native Method) > at > org.apache.tomcat.util.compat.Jdk12Support.doPrivileged(Jdk12S > upport.java:10 > 1) > at > org.apache.tomcat.startup.EmbededTomcat.execute(EmbededTomcat. > java:546) > at java.lang.reflect.Method.invoke(Native Method) > at > org.apache.tomcat.util.IntrospectionUtils.execute(Introspectio > nUtils.java:87 > ) > at org.apache.tomcat.startup.Main.execute(Main.java:313) > at org.apache.tomcat.startup.Main.main(Main.java:140) > > > -- > 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]>
