You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Adam Paeth <to...@fortdearborn.com> on 2001/12/18 17:36:49 UTC
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 shows, 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>(MissingResourceException.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(StringManager.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.loadConfigFile(ServerXmlRea
der.java:172)
at
org.apache.tomcat.modules.config.ContextXmlReader.engineInit(Compiled Code)
at org.apache.tomcat.core.ContextManager.init(Compiled Code)
at
org.apache.tomcat.startup.EmbededTomcat.initContextManager(Compiled 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(Jdk12Support.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(IntrospectionUtils.java:87
)
at org.apache.tomcat.startup.Main.execute(Main.java:313)
at org.apache.tomcat.startup.Main.main(Main.java:140)
--
To unsubscribe: <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>