struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig Randall" <csrand...@hotmail.com>
Subject Still cannot access the sample application (000622), but I have more data
Date Thu, 22 Jun 2000 15:25:20 GMT
[Warning, this msg is a bit long due to inline data.]

Well, I still cannot access the sample application on JRun 3.0. However, 
thanks Craig's check-in for the 000622 build, I have more data to provide as 
follows (trying to access http://localhost/struts-example/index.jsp):

~~~~~Browser output~~~~~
500 Internal Server Error
/struts-example/index.jsp:

javax.servlet.ServletException: Exception thrown on line '6' from page 
'E:\\Program 
Files\\Allaire\\JRun\\servers\\default\\Struts-Example\\index.jsp'.
java.lang.ExceptionInInitializerError: java.util.MissingResourceException: 
Can't find resource for base name org.apache.struts.taglib.LocalStrings, 
locale en_US
	at java.util.ResourceBundle.getBundle(ResourceBundle.java:423)
	at java.util.ResourceBundle.getBundle(ResourceBundle.java:339)
	at org.apache.struts.util.MessageResources.(MessageResources.java:102)
	at 
org.apache.struts.util.MessageResources.getMessageResources(MessageResources.java:543)
	at org.apache.struts.taglib.MessageTag.(MessageTag.java:158)
	at java.lang.Class.newInstance0(Native Method)
	at java.lang.Class.newInstance(Class.java, Compiled Code)
	at 
allaire.jrun.jsp.JRunJSPStaticHelpers.createTagHandler(JRunJSPStaticHelpers.java:47)
	at jrun__index2ejspa._jspService(jrun__index2ejspa.java:39)
	at allaire.jrun.jsp.HttpJSPServlet.service(HttpJSPServlet.java:40)
	at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1013)
	at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java, Compiled Code)
	at 
allaire.jrun.servlet.JRunNamedDispatcher.forward(JRunNamedDispatcher.java:34)
	at allaire.jrun.jsp.JSPServlet.service(JSPServlet.java:174)
	at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1013)
	at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java, Compiled Code)
	at 
allaire.jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.java:88)
	at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1131)
	at allaire.jrun.servlet.JvmContext.dispatch(JvmContext.java:330)
	at allaire.jrun.jrpp.ProxyEndpoint.run(ProxyEndpoint.java:354)
	at allaire.jrun.ThreadPool.run(ThreadPool.java, Compiled Code)
	at allaire.jrun.WorkerThread.run(WorkerThread.java, Compiled Code)

~~~~~default-err.log~~~~~
Operating System: Windows NT Version 4.0
Java Virtual Machine: build JDK-1.2.2_005, native threads, symcjit from Sun 
Microsystems Inc.
JRun 3.0 3.00.3694 Starting default...
Current Locale: en_US
Loading scheduler
Loading logging

~~~~~default-event.log~~~~~
06/22 13:24:34 info (JRun) Loading Struts-Example
06/22 13:24:34 info (Struts-Example) Loading scheduler
06/22 13:24:35 info (Struts-Example) Loading logging
06/22 13:24:35 info (session) Loading persistence storage provider 'file'
06/22 13:24:35 info (JRun) Path E:/Program 
Files/Allaire/JRun/servers/default/Struts-Example/WEB-INF/sessions/ created 
for session data
06/22 13:24:35 info (JRun) Loading session
06/22 13:24:35 info (JRun) Loading authentication
06/22 13:24:35 info (JRun) Loading propfile
06/22 13:24:35 info (JRun) Loading jsp
06/22 13:24:35 info (JRun) Loading file
06/22 13:24:35 info (JRun) database: init
06/22 13:24:35 info (JRun) database: Initializing database servlet
06/22 13:24:35 info (JRun) database: Loading database from 'E:\Program 
Files\Allaire\JRun\servers\default\Struts-Example/WEB-INF/database.xml'
06/22 13:24:35 error (JRun) database: Database load exception 
[org.xml.sax.SAXException: org.apache.struts.example.User]
org.xml.sax.SAXException: org.apache.struts.example.User
	at org.apache.struts.digester.Digester.startElement(Digester.java, Compiled 
Code)
	at com.sun.xml.parser.Parser.maybeElement(Parser.java:1391)
	at com.sun.xml.parser.Parser.content(Parser.java:1499)
	at com.sun.xml.parser.Parser.maybeElement(Parser.java:1400)
	at com.sun.xml.parser.Parser.parseInternal(Parser.java:492)
	at com.sun.xml.parser.Parser.parse(Parser.java:284)
	at javax.xml.parsers.SAXParser.parse(SAXParser.java:155)
	at javax.xml.parsers.SAXParser.parse(SAXParser.java:77)
	at org.apache.struts.digester.Digester.parse(Digester.java:743)
	at org.apache.struts.example.DatabaseServlet.load(DatabaseServlet.java:282)
	at org.apache.struts.example.DatabaseServlet.init(DatabaseServlet.java:175)
	at javax.servlet.GenericServlet.init(GenericServlet.java:258)
	at 
allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader.java, 
Compiled Code)
	at 
allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader.java:190)
	at 
allaire.jrun.servlet.JRunServletLoader.loadServlet(JRunServletLoader.java:177)
	at allaire.jrun.servlet.JRunSE.getServletReference(JRunSE.java:1261)
	at allaire.jrun.servlet.JRunSE.preloadServlets(JRunSE.java, Compiled Code)
	at allaire.jrun.servlet.JRunSE.init(JRunSE.java, Compiled Code)
	at allaire.jrun.ServletService.init(ServletService.java, Compiled Code)
	at allaire.jrun.ServletService.init(ServletService.java, Compiled Code)
	at 
allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader.java, 
Compiled Code)
	at allaire.jrun.servlet.JRunSE.initServices(JRunSE.java, Compiled Code)
	at allaire.jrun.servlet.JvmContext.initServices(JvmContext.java:96)
	at allaire.jrun.servlet.JRunSE.init(JRunSE.java, Compiled Code)
	at allaire.jrun.servlet.JvmContext.init(JvmContext.java:35)
	at allaire.jrun.ServletService.init(ServletService.java, Compiled Code)
	at allaire.jrun.ServletService.init(ServletService.java, Compiled Code)
	at JRun.main(JRun.java, Compiled Code)

06/22 13:24:35 error (JRun) Could not pre-load servlet: database 
[javax.servlet.UnavailableException: Cannot load database from 'null']
javax.servlet.UnavailableException: Cannot load database from 'null'
	at org.apache.struts.example.DatabaseServlet.init(DatabaseServlet.java:180)
	at javax.servlet.GenericServlet.init(GenericServlet.java:258)
	at 
allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader.java, 
Compiled Code)
	at 
allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader.java:190)
	at 
allaire.jrun.servlet.JRunServletLoader.loadServlet(JRunServletLoader.java:177)
	at allaire.jrun.servlet.JRunSE.getServletReference(JRunSE.java:1261)
	at allaire.jrun.servlet.JRunSE.preloadServlets(JRunSE.java, Compiled Code)
	at allaire.jrun.servlet.JRunSE.init(JRunSE.java, Compiled Code)
	at allaire.jrun.ServletService.init(ServletService.java, Compiled Code)
	at allaire.jrun.ServletService.init(ServletService.java, Compiled Code)
	at 
allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader.java, 
Compiled Code)
	at allaire.jrun.servlet.JRunSE.initServices(JRunSE.java, Compiled Code)
	at allaire.jrun.servlet.JvmContext.initServices(JvmContext.java:96)
	at allaire.jrun.servlet.JRunSE.init(JRunSE.java, Compiled Code)
	at allaire.jrun.servlet.JvmContext.init(JvmContext.java:35)
	at allaire.jrun.ServletService.init(ServletService.java, Compiled Code)
	at allaire.jrun.ServletService.init(ServletService.java, Compiled Code)
	at JRun.main(JRun.java, Compiled Code)

06/22 13:24:35 info (JRun) action: init
06/22 13:24:35 error (JRun) action: Cannot load internal resources from 
'org.apache.struts.action.ActionResources' 
[java.util.MissingResourceException: Can't find resource for base name 
org.apache.struts.action.ActionResources, locale en_US]
java.util.MissingResourceException: Can't find resource for base name 
org.apache.struts.action.ActionResources, locale en_US
	at java.util.ResourceBundle.getBundle(ResourceBundle.java:423)
	at java.util.ResourceBundle.getBundle(ResourceBundle.java:339)
	at 
org.apache.struts.util.MessageResources.<init>(MessageResources.java:102)
	at 
org.apache.struts.util.MessageResources.getMessageResources(MessageResources.java:543)
	at 
org.apache.struts.action.ActionServlet.initInternal(ActionServlet.java:495)
	at org.apache.struts.action.ActionServlet.init(ActionServlet.java:264)
	at javax.servlet.GenericServlet.init(GenericServlet.java:258)
	at 
allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader.java, 
Compiled Code)
	at 
allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader.java:190)
	at 
allaire.jrun.servlet.JRunServletLoader.loadServlet(JRunServletLoader.java:177)
	at allaire.jrun.servlet.JRunSE.getServletReference(JRunSE.java:1261)
	at allaire.jrun.servlet.JRunSE.preloadServlets(JRunSE.java, Compiled Code)
	at allaire.jrun.servlet.JRunSE.init(JRunSE.java, Compiled Code)
	at allaire.jrun.ServletService.init(ServletService.java, Compiled Code)
	at allaire.jrun.ServletService.init(ServletService.java, Compiled Code)
	at 
allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader.java, 
Compiled Code)
	at allaire.jrun.servlet.JRunSE.initServices(JRunSE.java, Compiled Code)
	at allaire.jrun.servlet.JvmContext.initServices(JvmContext.java:96)
	at allaire.jrun.servlet.JRunSE.init(JRunSE.java, Compiled Code)
	at allaire.jrun.servlet.JvmContext.init(JvmContext.java:35)
	at allaire.jrun.ServletService.init(ServletService.java, Compiled Code)
	at allaire.jrun.ServletService.init(ServletService.java, Compiled Code)
	at JRun.main(JRun.java, Compiled Code)

06/22 13:24:35 error (JRun) Could not pre-load servlet: action 
[javax.servlet.UnavailableException: Cannot load internal resources from 
'org.apache.struts.action.ActionResources']
javax.servlet.UnavailableException: Cannot load internal resources from 
'org.apache.struts.action.ActionResources'
	at 
org.apache.struts.action.ActionServlet.initInternal(ActionServlet.java:499)
	at org.apache.struts.action.ActionServlet.init(ActionServlet.java:264)
	at javax.servlet.GenericServlet.init(GenericServlet.java:258)
	at 
allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader.java, 
Compiled Code)
	at 
allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader.java:190)
	at 
allaire.jrun.servlet.JRunServletLoader.loadServlet(JRunServletLoader.java:177)
	at allaire.jrun.servlet.JRunSE.getServletReference(JRunSE.java:1261)
	at allaire.jrun.servlet.JRunSE.preloadServlets(JRunSE.java, Compiled Code)
	at allaire.jrun.servlet.JRunSE.init(JRunSE.java, Compiled Code)
	at allaire.jrun.ServletService.init(ServletService.java, Compiled Code)
	at allaire.jrun.ServletService.init(ServletService.java, Compiled Code)
	at 
allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader.java, 
Compiled Code)
	at allaire.jrun.servlet.JRunSE.initServices(JRunSE.java, Compiled Code)
	at allaire.jrun.servlet.JvmContext.initServices(JvmContext.java:96)
	at allaire.jrun.servlet.JRunSE.init(JRunSE.java, Compiled Code)
	at allaire.jrun.servlet.JvmContext.init(JvmContext.java:35)
	at allaire.jrun.ServletService.init(ServletService.java, Compiled Code)
	at allaire.jrun.ServletService.init(ServletService.java, Compiled Code)
	at JRun.main(JRun.java, Compiled Code)

06/22 13:24:35 info (JRun) Struts-Example Ready

Per Craig's suggestion, I tweak one of Allaire's sample servlets to access a 
new DateServletResources.properties file (in the .../WEB-INF/classes 
directory where DateServlet.java/.class exist).

Here's my code:
try
{
   ResourceBundle bundle = ResourceBundle.getBundle("DateServletResources");
   out.println( "<p>FOUND my default resources.</p>" );
}
catch (MissingResourceException mre)
{
   out.println( "<p>Could NOT find my default resources.</p>" );
}
Locale myLocale = Locale.getDefault();
try
{
   ResourceBundle bundle = ResourceBundle.getBundle("DateServletResources", 
myLocale);
   out.println( "<p>FOUND my " + myLocale.getDisplayName(myLocale) + " 
resources.</p>" );
}
catch (MissingResourceException mre)
{
   out.println( "<p>Could NOT find my " + myLocale.getDisplayName(myLocale) 
+ " resources.</p>" );
}

Here's the result in the browser:
...
FOUND my default resources.
FOUND my English (United States) resources.
...

Based on this simple test, can we rule out JRun as the source of my resource 
problem? Does my browser/log information trigger any conclusions in anyone 
else's mind? Thanks.

-CraigR
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com


Mime
View raw message