I have the application resources in a file called application.properties and that is in the following directory structure: [x]/WEB-INF/classes/resources/application.properties. I have put that in the struts config as:
<message-resources parameter="resource.application"/>
That is not right? That is exactly what Ted Husted does with artimus 1.1 using struts 1.1.
What am I missing? You have classes in your suggestion, but Ted doesn't. I don't mean to be argumentative, but are you sure you are right? I have check other examples, and I seem to be following them correctly? Thanks for any help.
Micael
At 10:27 AM 1/23/03 +1300, you wrote:
You have to specify the application resources in the struts-config.xml. Thusly -<struts-config> <!-- ========== Form Bean Definitions --> <form-beans> </form-beans> <!-- ========== Action Mapping Definitions --> <action-mappings> </action-mappings> <message-resources parameter="classes.ApplicationResources"/> </struts-config> -----Original Message----- From: Micael [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 23, 2003 10:21 AM To: Struts Users Mailing List Subject: Re: Error Loading Application Resources in Struts 1.1 Thanks, Craig, Can you tell what it is that is wrong in general terms, or even specifically? I am rather new at this aspect. The error, again, was: C:\michaelmcgrady\tomcat\webapps\michaelmcgrady\WEB-INF\lib\struts.jar 2003-01-22 11:47:06 StandardManager[/michaelmcgrady]: Seeding random number generator class java.security.SecureRandom 2003-01-22 11:47:06 StandardManager[/michaelmcgrady]: Seeding of random number generator has been completed 2003-01-22 11:47:06 StandardWrapper[/michaelmcgrady:default]: Loading container servlet default 2003-01-22 11:47:07 StandardWrapper[/michaelmcgrady:action]: Marking servlet action as unavailable 2003-01-22 11:47:07 StandardContext[/michaelmcgrady]: Servlet /michaelmcgrady threw load() exception javax.servlet.UnavailableException: Parsing error processing resource path at org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.ja va:952) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:468) at javax.servlet.GenericServlet.init(GenericServlet.java:256) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav a:934) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:821) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.j ava:3420) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3608 ) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.ja va:821) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579) at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeploy er.java:257) at org.apache.catalina.core.StandardHost.install(StandardHost.java:772) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java :569) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:411) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:879) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:36 8) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu pport.java:166) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196) at org.apache.catalina.core.StandardHost.start(StandardHost.java:738) Thanks for any assistance, Micael At 12:20 PM 1/22/03 -0800, you wrote: >It's actually complaining about your struts-config.xml file, not your >application resources. > >Craig > >On Wed, 22 Jan 2003, Micael wrote: > > > Date: Wed, 22 Jan 2003 11:52:28 -0800 > > From: Micael <[EMAIL PROTECTED]> > > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]> > > To: [EMAIL PROTECTED] > > Subject: Error Loading Application Resources in Struts 1.1 > > > > I am getting the error shown below when, apparently, the Tomcat > > container > > (4.1.18) cannot load the Struts 1.1 application resources. I have the > > following entry in the web.xml: > > > > > > > > > > <!-- Standard Action Servlet Configuration (with debugging) --> > > <servlet> > > <servlet-name>action</servlet-name> > > <servlet-class>org.apache.struts.action.ActionServlet</servlet-class> > > <init-param> > > <param-name>application</param-name> > > <param-value>resources.application</param-value> > > </init-param> > > <init-param> > > <param-name>config</param-name> > > <param-value>/WEB-INF/struts-config.xml</param-value> > > </init-param> > > <init-param> > > <param-name>debug</param-name> > > <param-value>2</param-value> > > </init-param> > > <init-param> > > <param-name>detail</param-name> > > <param-value>2</param-value> > > </init-param> > > <load-on-startup>2</load-on-startup> > > </servlet> > > > > My file, application.properties is at > > WEB-INF/classes/resources/application.properties. What's up? The > > error message is: > > > > 2003-01-22 11:47:05 HostConfig[localhost]: Deploying web application > > directory michaelmcgrady 2003-01-22 11:47:05 > > StandardHost[localhost]: Installing web application at context path > > /michaelmcgrady from URL > > file:C:\michaelmcgrady\tomcat\webapps\michaelmcgrady > > 2003-01-22 11:47:05 WebappLoader[/michaelmcgrady]: Deploying class > > repositories to work directory > > C:\michaelmcgrady\tomcat\work\Standalone\localhost\michaelmcgrady > > 2003-01-22 11:47:05 WebappLoader[/michaelmcgrady]: Deploy class > > files /WEB-INF/classes to > > C:\michaelmcgrady\tomcat\webapps\michaelmcgrady\WEB-INF\classes > > 2003-01-22 11:47:05 WebappLoader[/michaelmcgrady]: Deploy JAR > > /WEB-INF/lib/commons-beanutils.jar to > > > C:\michaelmcgrady\tomcat\webapps\michaelmcgrady\WEB-INF\lib\commons-be > anutils.jar > > 2003-01-22 11:47:05 WebappLoader[/michaelmcgrady]: Deploy JAR > > /WEB-INF/lib/commons-collections.jar to > > > C:\michaelmcgrady\tomcat\webapps\michaelmcgrady\WEB-INF\lib\commons-co > llections.jar > > 2003-01-22 11:47:05 WebappLoader[/michaelmcgrady]: Deploy JAR > > /WEB-INF/lib/commons-dbcp.jar to > > > C:\michaelmcgrady\tomcat\webapps\michaelmcgrady\WEB-INF\lib\commons-db > cp.jar > > 2003-01-22 11:47:05 WebappLoader[/michaelmcgrady]: Deploy JAR > > /WEB-INF/lib/commons-digester.jar to > > > C:\michaelmcgrady\tomcat\webapps\michaelmcgrady\WEB-INF\lib\commons-di > gester.jar > > 2003-01-22 11:47:05 WebappLoader[/michaelmcgrady]: Deploy JAR > > /WEB-INF/lib/commons-fileupload.jar to > > > C:\michaelmcgrady\tomcat\webapps\michaelmcgrady\WEB-INF\lib\commons-fi > leupload.jar > > 2003-01-22 11:47:05 WebappLoader[/michaelmcgrady]: Deploy JAR > > /WEB-INF/lib/commons-lang.jar to > > > C:\michaelmcgrady\tomcat\webapps\michaelmcgrady\WEB-INF\lib\commons-la > ng.jar > > 2003-01-22 11:47:05 WebappLoader[/michaelmcgrady]: Deploy JAR > > /WEB-INF/lib/commons-logging.jar to > > > C:\michaelmcgrady\tomcat\webapps\michaelmcgrady\WEB-INF\lib\commons-lo > gging.jar > > 2003-01-22 11:47:05 WebappLoader[/michaelmcgrady]: Deploy JAR > > /WEB-INF/lib/commons-pool.jar to > > > C:\michaelmcgrady\tomcat\webapps\michaelmcgrady\WEB-INF\lib\commons-po > ol.jar > > 2003-01-22 11:47:05 WebappLoader[/michaelmcgrady]: Deploy JAR > > /WEB-INF/lib/commons-resources.jar to > > > C:\michaelmcgrady\tomcat\webapps\michaelmcgrady\WEB-INF\lib\commons-re > sources.jar > > 2003-01-22 11:47:05 WebappLoader[/michaelmcgrady]: Deploy JAR > > /WEB-INF/lib/commons-validator.jar to > > > C:\michaelmcgrady\tomcat\webapps\michaelmcgrady\WEB-INF\lib\commons-va > lidator.jar > > 2003-01-22 11:47:05 WebappLoader[/michaelmcgrady]: Deploy JAR > > /WEB-INF/lib/jakarta-oro.jar to > > C:\michaelmcgrady\tomcat\webapps\michaelmcgrady\WEB-INF\lib\jakarta- > > oro.jar > > 2003-01-22 11:47:05 WebappLoader[/michaelmcgrady]: Deploy JAR > > /WEB-INF/lib/jdbc2_0-stdext.jar to > > > C:\michaelmcgrady\tomcat\webapps\michaelmcgrady\WEB-INF\lib\jdbc2_0-st > dext.jar > > 2003-01-22 11:47:05 WebappLoader[/michaelmcgrady]: Deploy JAR > > /WEB-INF/lib/struts.jar to > > C:\michaelmcgrady\tomcat\webapps\michaelmcgrady\WEB-INF\lib\struts.j > > ar > > 2003-01-22 11:47:06 StandardManager[/michaelmcgrady]: Seeding random number > > generator class java.security.SecureRandom > > 2003-01-22 11:47:06 StandardManager[/michaelmcgrady]: Seeding of random > > number generator has been completed > > 2003-01-22 11:47:06 StandardWrapper[/michaelmcgrady:default]: Loading > > container servlet default > > 2003-01-22 11:47:07 StandardWrapper[/michaelmcgrady:action]: Marking > > servlet action as unavailable > > 2003-01-22 11:47:07 StandardContext[/michaelmcgrady]: Servlet > > /michaelmcgrady threw load() exception > > javax.servlet.UnavailableException: Parsing error processing resource path > > at > > > org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet. > java:952) > > at > org.apache.struts.action.ActionServlet.init(ActionServlet.java:468) > > at javax.servlet.GenericServlet.init(GenericServlet.java:256) > > at > > > org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.j > ava:934) > > at > org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:821 > ) > > at > > > org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext > .java:3420) > > at > org.apache.catalina.core.StandardContext.start(StandardContext.java:36 > 08) > > at > > > org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase. > java:821) > > at > org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807 > ) > > at > org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579) > > at > > > org.apache.catalina.core.StandardHostDeployer.install(StandardHostDepl > oyer.java:257) > > at > org.apache.catalina.core.StandardHost.install(StandardHost.java:772) > > at > > > org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.ja > va:569) > > at > org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:411) > > at org.apache.catalina.startup.HostConfig.start(HostConfig.java:879) > > at > org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java: > 368) > > at > > > org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycle > Support.java:166) > > at > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196) > > at org.apache.catalina.core.StandardHost.start(StandardHost.java:738) > > at > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) > > at > org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347) > > at > org.apache.catalina.core.StandardService.start(StandardService.java:49 > 7) > > at > org.apache.catalina.core.StandardServer.start(StandardServer.java:2189 > ) > > at org.apache.catalina.startup.Catalina.start(Catalina.java:512) > > at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) > > at org.apache.catalina.startup.Catalina.process(Catalina.java:180) > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > at > > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.j > ava:39) > > at > > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess > orImpl.java:25) > > at java.lang.reflect.Method.invoke(Method.java:324) > > at > > org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) > > > > 2003-01-22 11:47:07 StandardWrapper[/michaelmcgrady:invoker]: > > Loading container servlet invoker > > > > > > > > LEGAL NOTICE > > > > This electronic mail transmission and any accompanying documents > > contain information belonging to the sender which may be > > confidential and legally privileged. This information is intended > > only for the use of the individual or entity to whom this electronic > > mail transmission was sent as indicated above. If you are not the > > intended recipient, any disclosure, copying, distribution, or action > > taken in reliance on the contents of the information contained in > > this transmission is strictly prohibited. If you have received this > > transmission in error, please delete the > message. Thank you > > > > > > > > -- > > To unsubscribe, > e-mail: <mailto:[EMAIL PROTECTED]> > > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > > > > > >-- >To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> >For additional commands, e-mail: ><mailto:[EMAIL PROTECTED]> LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
LEGAL NOTICE
This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>