Re: Cannot find message resources - DESPERATION
Your struts-config: message-resources key=org.apache.struts.action.MESSAGE name=ApplicationResources.properties / I'm using Struts 1.0.2, so I cannot test it, but i think your message ressource bundle should be declared in struts-config with a parameter attribute without the .properties extension: message-resources key=org.apache.struts.action.MESSAGE parameter=ApplicationResources/ Struts_config_1_1.dtd don't have anay name attribute for message-ressource element. Perhaps you may use struts-config validation at startup. Nico Hi! I have the same problem with the messages: Cannot find message resources under key org.apache.struts.action.MESSAGE I have already read here about solutions. None worx for me, or I am so dumb that I can't get it right. I've attached the web.xml and struts-config.xml files. Please help me!!! 10x in advance! Marius ?xml version=1.0 encoding=ISO-8859-1 ? !DOCTYPE struts-config PUBLIC -//Apache Software Foundation//DTD Struts Configuration 1.1//EN http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd; struts-config message-resources key=org.apache.struts.action.MESSAGE name=ApplicationResources.properties / /struts-config ?xml version=1.0? !DOCTYPE web-app PUBLIC '-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN' 'http://java.sun.com/j2ee/dtds/web-app_2_2.dtd' web-app display-nameList/display-name servlet servlet-nameListTag/servlet-name jsp-fileListTag.jsp/jsp-file init-param param-nameapplication/param-name param-valueWEB-INF/ApplicationResources.properties/param-value /init-param init-param param-nameconfig/param-name param-valueWEB-INF/struts-config.xml/param-value /init-param load-on-startup1/load-on-startup /servlet welcome-file-list welcome-fileListTag.jsp/welcome-file /welcome-file-list /web-app -- 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]
Re: Cannot find message resources - DESPERATION
Hi, Nico! I've tried and didn't work also... :((( Marius Nicolas De Loof wrote: Your struts-config: message-resources key=org.apache.struts.action.MESSAGE name=ApplicationResources.properties / I'm using Struts 1.0.2, so I cannot test it, but i think your message ressource bundle should be declared in struts-config with a parameter attribute without the .properties extension: message-resources key=org.apache.struts.action.MESSAGE parameter=ApplicationResources/ Struts_config_1_1.dtd don't have anay name attribute for message-ressource element. Perhaps you may use struts-config validation at startup. Nico -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Cannot find message resources - DESPERATION
Your ApplicationResources file must be referred to as if it were a java class. Remove the /web-inf/ path. It should be referred to using package notation. Since it is considered to be a java class - it must be put below your /web-inf/classes/ directory. If it is in the classes directory - you can refer to it simply as ApplicationResources in your web.xml file. If it is in a package below your classes directory (say mypackage), then put mypackage.ApplicationResources in your web.xml. -Original Message- From: Marius Gabor [mailto:[EMAIL PROTECTED]] Sent: 07 May 2002 11:00 To: Struts Users Mailing List Subject:Re: Cannot find message resources - DESPERATION Hi, Nico! I've tried and didn't work also... :((( Marius Nicolas De Loof wrote: Your struts-config: message-resources key=org.apache.struts.action.MESSAGE name=ApplicationResources.properties / I'm using Struts 1.0.2, so I cannot test it, but i think your message ressource bundle should be declared in struts-config with a parameter attribute without the .properties extension: message-resources key=org.apache.struts.action.MESSAGE parameter=ApplicationResources/ Struts_config_1_1.dtd don't have anay name attribute for message-ressource element. Perhaps you may use struts-config validation at startup. Nico -- 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]
RE: Cannot find message resources - DESPERATION
Hi, you made a mistake in your configuration: WRONG entry in web.xml init-param param-nameapplication/param-name param-valueWEB-INF/ApplicationResources.properties/param-value /init-param RIGHT ENTRY init-param param-nameapplication/param-name param-valueApplicationResources.properties/param-value /init-param With application you give the name of the ApplicationResource which have to be exist in the class path so move it under WEB-INF/classes and the entry above (the new one) will work. Manfred -Original Message- From: Marius Gabor [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 07, 2002 11:31 AM To: Struts Users Mailing List Subject: Cannot find message resources - DESPERATION Hi! I have the same problem with the messages: Cannot find message resources under key org.apache.struts.action.MESSAGE I have already read here about solutions. None worx for me, or I am so dumb that I can't get it right. I've attached the web.xml and struts-config.xml files. Please help me!!! 10x in advance! Marius -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Cannot find message resources - DESPERATION
Didn't work, but thanx! Marius Gruner, Manfred wrote: Hi, you made a mistake in your configuration: WRONG entry in web.xml init-param param-nameapplication/param-name param-valueWEB-INF/ApplicationResources.properties/param-value /init-param RIGHT ENTRY init-param param-nameapplication/param-name param-valueApplicationResources.properties/param-value /init-param With application you give the name of the ApplicationResource which have to be exist in the class path so move it under WEB-INF/classes and the entry above (the new one) will work. Manfred -Original Message- From: Marius Gabor [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 07, 2002 11:31 AM To: Struts Users Mailing List Subject: Cannot find message resources - DESPERATION Hi! I have the same problem with the messages: Cannot find message resources under key org.apache.struts.action.MESSAGE I have already read here about solutions. None worx for me, or I am so dumb that I can't get it right. I've attached the web.xml and struts-config.xml files. Please help me!!! 10x in advance! Marius -- 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]
Re: Cannot find message resources - DESPERATION
Hmmm, thanx! But still not managed to run it... :((( Marius [EMAIL PROTECTED] wrote: Your ApplicationResources file must be referred to as if it were a java class. Remove the /web-inf/ path. It should be referred to using package notation. Since it is considered to be a java class - it must be put below your /web-inf/classes/ directory. If it is in the classes directory - you can refer to it simply as ApplicationResources in your web.xml file. If it is in a package below your classes directory (say mypackage), then put mypackage.ApplicationResources in your web.xml. -Original Message- From: Marius Gabor [mailto:[EMAIL PROTECTED]] Sent: 07 May 2002 11:00 To: Struts Users Mailing List Subject: Re: Cannot find message resources - DESPERATION Hi, Nico! I've tried and didn't work also... :((( Marius Nicolas De Loof wrote: Your struts-config: message-resources key=org.apache.struts.action.MESSAGE name=ApplicationResources.properties / I'm using Struts 1.0.2, so I cannot test it, but i think your message ressource bundle should be declared in struts-config with a parameter attribute without the .properties extension: message-resources key=org.apache.struts.action.MESSAGE parameter=ApplicationResources/ Struts_config_1_1.dtd don't have anay name attribute for message-ressource element. Perhaps you may use struts-config validation at startup. Nico -- 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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Cannot find message resources - DESPERATION
Try this in your struts-config.xml after /action-mappings !-- == Message Resources Definitions === -- message-resources parameter=ApplicationResources/ This would be telling your application that the ApplicationResources.properties file is sitting in your /WEB-INF/classes directory. JM -Original Message- From: Marius Gabor [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 07, 2002 8:10 AM To: Struts Users Mailing List Subject: Re: Cannot find message resources - DESPERATION Didn't work, but thanx! Marius Gruner, Manfred wrote: Hi, you made a mistake in your configuration: WRONG entry in web.xml init-param param-nameapplication/param-name param-valueWEB-INF/ApplicationResources.properties/param-value /init-param RIGHT ENTRY init-param param-nameapplication/param-name param-valueApplicationResources.properties/param-value /init-param With application you give the name of the ApplicationResource which have to be exist in the class path so move it under WEB-INF/classes and the entry above (the new one) will work. Manfred -Original Message- From: Marius Gabor [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 07, 2002 11:31 AM To: Struts Users Mailing List Subject: Cannot find message resources - DESPERATION Hi! I have the same problem with the messages: Cannot find message resources under key org.apache.struts.action.MESSAGE I have already read here about solutions. None worx for me, or I am so dumb that I can't get it right. I've attached the web.xml and struts-config.xml files. Please help me!!! 10x in advance! Marius -- 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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Cannot find message resources - DESPERATION
Put your ApplicationResources.properties file under in WEB-INF/classes/ folder. Right entry in web.xml is thus: init-param param-nameapplication/param-name param-valueApplicationResources/param-value /init-param -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Cannot find message resources - DESPERATION
You don't have put it under the default. You can add a classpath to the webapp.properties. We added an additional path so that we could stick the properties in an area that we will allow customers to configure while keeping the other stuff secure: ex: webapp.classpath=/WEB-INF/classes;/WEB-INF/lib;/WEB-INF/jsp;/custom/config -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 07, 2002 6:33 AM To: [EMAIL PROTECTED] Subject: RE: Cannot find message resources - DESPERATION Your ApplicationResources file must be referred to as if it were a java class. Remove the /web-inf/ path. It should be referred to using package notation. Since it is considered to be a java class - it must be put below your /web-inf/classes/ directory. If it is in the classes directory - you can refer to it simply as ApplicationResources in your web.xml file. If it is in a package below your classes directory (say mypackage), then put mypackage.ApplicationResources in your web.xml. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Cannot find message resources - DESPERATION
What platform are you running on. Is this your first time trying STRUTS? I found that using websphere 3.5 on the os/390 platform, the struts-config had to be placed in WEB-INF under the document root. ie /web/WEB-INF/ If the file was not there, Struts could not find it. Other problems I had were making sure the file permissions allowed websphere to see the file and directory. Steven Banks [EMAIL PROTECTED] 05/07/02 11:31AM Sorry. Just trying to keep it simple. I am no expert, but I felt experienced enough to answer that one! -Original Message- From: Bill Page [mailto:[EMAIL PROTECTED]] Sent: 07 May 2002 15:17 To: Struts Users Mailing List Subject:RE: Cannot find message resources - DESPERATION You don't have put it under the default. You can add a classpath to the webapp.properties. We added an additional path so that we could stick the properties in an area that we will allow customers to configure while keeping the other stuff secure: ex: webapp.classpath=/WEB-INF/classes;/WEB-INF/lib;/WEB-INF/jsp;/custom/config -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 07, 2002 6:33 AM To: [EMAIL PROTECTED] Subject: RE: Cannot find message resources - DESPERATION Your ApplicationResources file must be referred to as if it were a java class. Remove the /web-inf/ path. It should be referred to using package notation. Since it is considered to be a java class - it must be put below your /web-inf/classes/ directory. If it is in the classes directory - you can refer to it simply as ApplicationResources in your web.xml file. If it is in a package below your classes directory (say mypackage), then put mypackage.ApplicationResources in your web.xml. -- 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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Cannot find message resources - DESPERATION
I'm running Struts on Tomcat-JBoss platform and I develop with TogetherJ. But it seems that I do every time something wrong, although I've tried so many possibilities. I don't have enough nerves 4 2day. I'll try tomorrow again. Btw, I have this order: /Web-Inf/struts-config.xml and /classes/mypackage/MyApp.properties And I have already tested Struts, but only 0.9 and 1.0. Steven Banks wrote: What platform are you running on. Is this your first time trying STRUTS? I found that using websphere 3.5 on the os/390 platform, the struts-config had to be placed in WEB-INF under the document root. ie /web/WEB-INF/ If the file was not there, Struts could not find it. Other problems I had were making sure the file permissions allowed websphere to see the file and directory. Steven Banks -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Cannot find message resources - DESPERATION
Marius, you are running 3 non-trivial systems (JBoss, Tomcat, and Struts). Anyone of these three can be daunting by itself. If you are new to all 3 (or just one) then try isolating the problem. Try a clean install of Tomcat and Struts and just get the struts-example web app running. If that works, then try the Tomcat-JBoss and get the struts-example web app running. If that works then try a simple test web app that you created and get it working. Step back and do things incrementally. Don't get frustrated. Struts is a great framework and this mailing list has some heavy weight subscribers that will get you through. Also, the initialization process is managed by ActionServlet. Try digging through the source a little. I have learned quite a bit from just doing a code trace. Good luck. robert -Original Message- From: Marius Gabor [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 07, 2002 1:14 PM To: Struts Users Mailing List Subject: Re: Cannot find message resources - DESPERATION I'm running Struts on Tomcat-JBoss platform and I develop with TogetherJ. But it seems that I do every time something wrong, although I've tried so many possibilities. I don't have enough nerves 4 2day. I'll try tomorrow again. Btw, I have this order: /Web-Inf/struts-config.xml and /classes/mypackage/MyApp.properties And I have already tested Struts, but only 0.9 and 1.0. Steven Banks wrote: What platform are you running on. Is this your first time trying STRUTS? I found that using websphere 3.5 on the os/390 platform, the struts-config had to be placed in WEB-INF under the document root. ie /web/WEB-INF/ If the file was not there, Struts could not find it. Other problems I had were making sure the file permissions allowed websphere to see the file and directory. Steven Banks -- 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]