You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Jack <st...@jakarta.apache.org> on 2002/01/04 00:44:06 UTC
javax.servlet.ServletException: Cannot find message resources under key org.apache.struts.action.MESSAGE
What causes this exception: javax.servlet.ServletException: Cannot find
message resources under key org.apache.struts.action.MESSAGE?
I thought it was because the resources file couldn't be found. I verified
my app's deployment descriptor sets the application param value as follows:
<web-app>
<servlet>
<servlet-name>FeiActionServlet</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>application</param-name>
<param-value>com.fei.common.ApplicationResources</param-value>
</init-param>
...
However, after deploying a WebApp.WAR file into Tomcat 4.0's webapps
directory and starting Tomcat, I verified there is a file,
ApplicationResources.properties, in the Tomcat 4.0
webapps/WebApp/WEB-INF/classes/com/fei/common subdirectory.
I'm sure I'm overlooking something obvious, but am not sure what it is.
Thanks.
Jack
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: javax.servlet.ServletException: Cannot find message resources under key org.apache.struts.action.MESSAGE
Posted by Reid Pinchback <re...@yahoo.com>.
Jack <st...@jakarta.apache.org> wrote:
What causes this exception: javax.servlet.ServletException: Cannot find
message resources under key org.apache.struts.action.MESSAGE?
I ran into this repeatedly trying to get Struts working within JBuilder.
I found two things I had to fix:
1. Never rename 'struts.jar' (otherwise you break the OpenTool for JBuilder
that removes Struts from the classpath before launching Tomcat)
2. Use the load-on-startup tag in web.xml (it shouldn't be necessary, and
isn't if you deploy to a Tomcat server, but for some oddball reason seemed
to sometimes matter when using the Tomcat integrated with JBuilder).
---------------------------------
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail.
Re: javax.servlet.ServletException: Cannot find message resources under key org.apache.struts.action.MESSAGE
Posted by Andy Timm <ja...@yahoo.com>.
Jack, I just had this problem while migrating from an
NT box to Linux. My problem was that I had struts.jar
not only in the WEB-INF/lib directory, but also in the
Tomcat classpath. I took the jar file out of the
classpath and all was good. Hope this is your
problem, Andy
--- Jack <st...@jakarta.apache.org> wrote:
> What causes this exception:
> javax.servlet.ServletException: Cannot find
> message resources under key
> org.apache.struts.action.MESSAGE?
>
> I thought it was because the resources file couldn't
> be found. I verified
> my app's deployment descriptor sets the application
> param value as follows:
>
> <web-app>
> <servlet>
> <servlet-name>FeiActionServlet</servlet-name>
>
>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
> <init-param>
> <param-name>application</param-name>
>
>
<param-value>com.fei.common.ApplicationResources</param-value>
> </init-param>
> ...
>
> However, after deploying a WebApp.WAR file into
> Tomcat 4.0's webapps
> directory and starting Tomcat, I verified there is a
> file,
> ApplicationResources.properties, in the Tomcat 4.0
> webapps/WebApp/WEB-INF/classes/com/fei/common
> subdirectory.
>
> I'm sure I'm overlooking something obvious, but am
> not sure what it is.
>
> Thanks.
>
> Jack
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
__________________________________________________
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.com
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>