You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by bp...@aep.com on 2002/10/10 15:40:44 UTC
Cannot find message resources under key org.apache.struts.action.MESSAGE
I have installed the struts example within WEBSPHERE 3.5 on OS/390 version
2.10.
I am receiving the following error:
Error 500
An error has occured while processing
request:http://cocb:8081/webapp/strut-ex/index.jsp
Message: Server caught unhandled exception from servlet [jsp_1.1
_support_servlet]: Cannot find
message resources under key org.apache.struts.action.MESSAGE
Target Servlet: jsp_1.1 _support_servlet
I have changed/added the following parms to fix the problem, but must still
be missing something:
In WAS.CONF because setting appserver.compliance.mode=true I changed
deployedwebapp.strut-ex.rooturi=/webapp/strut-ex/ to
deployedwebapp.strut-ex.rooturi=/webapp/strut-ex/*
In /web/web01d/spg/strut-ex/servlets/org/apache/struts/resources/ placed 3
DTD files
struts-config_1_0.dtd
web-app_2_2.dtd
web-app_2_3.dtd
In /web/web01d/spg/strut-ex/servlets/WEB-INF/ web.xml added init parameter
for application
<init-param>
<param-name>application</param-name>
<param-value>org.apache.struts.webapp.example.ApplicationResources</param-value>
</init-param>
What am I missing?? I would think that org.apache.struts.action.MESSAGE
should be in
struts.jar but it's not. And does anybody have complete instructions for
installation on
WEBSPHERE 3.5 for OS/390. I find WEBSPHERE 3.5 installation documentation
for other
platforms but not OS/390. Thanks, Bill
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Message Resource file location in war file.
Posted by "V. Cekvenich" <vi...@users.sourceforge.net>.
All references at run time are to classes folder.
Put it in WEB-INF/classes.
There is a good book "Sun Java Certified Web Component Developer "
.V
Christian Nelson wrote:
> Greetings,
>
> I love struts, but I'm currently getting my ass kicked... please help. :)
>
> I'm trying to use Message Resources in my web application, but I can't get
> struts to find the resources.properties file. This is how I'm trying to
> structure my web-application:
>
> Note: "aaw" is the top-level directory.
>
> aaw/
> aaw/<jsps, etc>
> aaw/WEB-INF/web.xml
> aaw/WEB-INF/struts-config.xml
> aaw/WEB-INF/resources.properties // note this line.
> aaw/WEB-INF/tlds
> aaw/WEB-INF/tlds/<all of the struts tlds>
> aaw/WEB-INF/lib
> aaw/WEB-INF/lib/<all of the struts libs>
> aaw/WEB-INF/classes
> aaw/WEB-INF/classes/<all of my classes>
>
> Now, what do I set the <message-resources .../> tag/parameter to in my
> struts-config.xml so that the resources.properties file above will be
> found???
>
> All of the examples I'm finding have that file in some strange (to me)
> location, like "src/..." or "classes/...". Can't I just have in at the
> top-level of the WEB-INF directory???
>
> Thanks in advance!
> Christian
>
> ---------------------------------------------------------------------------
> Christian 'xian' Nelson cnelson@slac.com
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> "Don't ask yourself what the world needs. Ask yourself what makes
> you come alive, and go do that, because what the world needs is people
> who have come alive." -- Howard Thurman
> ---------------------------------------------------------------------------
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Message Resource file location in war file.
Posted by Christian Nelson <cn...@slac.com>.
Greetings,
I love struts, but I'm currently getting my ass kicked... please help. :)
I'm trying to use Message Resources in my web application, but I can't get
struts to find the resources.properties file. This is how I'm trying to
structure my web-application:
Note: "aaw" is the top-level directory.
aaw/
aaw/<jsps, etc>
aaw/WEB-INF/web.xml
aaw/WEB-INF/struts-config.xml
aaw/WEB-INF/resources.properties // note this line.
aaw/WEB-INF/tlds
aaw/WEB-INF/tlds/<all of the struts tlds>
aaw/WEB-INF/lib
aaw/WEB-INF/lib/<all of the struts libs>
aaw/WEB-INF/classes
aaw/WEB-INF/classes/<all of my classes>
Now, what do I set the <message-resources .../> tag/parameter to in my
struts-config.xml so that the resources.properties file above will be
found???
All of the examples I'm finding have that file in some strange (to me)
location, like "src/..." or "classes/...". Can't I just have in at the
top-level of the WEB-INF directory???
Thanks in advance!
Christian
---------------------------------------------------------------------------
Christian 'xian' Nelson cnelson@slac.com
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"Don't ask yourself what the world needs. Ask yourself what makes
you come alive, and go do that, because what the world needs is people
who have come alive." -- Howard Thurman
---------------------------------------------------------------------------
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>