You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Gilson Nascimento D Elrei <gi...@cpm.com.br> on 2002/04/01 17:09:52 UTC

RES: Cannot find message resources - URGENT

       Look on struts.jar path, remember that this file must to be on your
WEBAPP\WEB-INF\LIB directory not in WEBCONTAINER\WEB-INF\LIB public
directory. It commonly occur when your WEBServer container find struts.jar
in another LIB directory (It looks first in CLASSPATH) that doesn't is your
WEBAPP\WEB-INF\LIB directory (it be lost!). I had this same problem and I
did resolve it erasing struts.jar from CLASSPATH directories that wasn't my
TRULY my WebAPP\WEB-INF\LIB. Try it, find all struts.jar and remove
struts.jar lost... You don't need keep struts.jar in your CLASSPATH only put
it in your Webapp\WEB-INF\LIB. 
       If struts.jar doesn't is correctly installed in WEBAPP\WEB-INF\LIB
directory itsn't get to find your MESSAGE RESOURCE files.
       
       Another thing, check WEB.XML file for path errors on your message
resource files, if you're using JRUN (like me) put it in
WEBAPP\WEB-INF\Classes directory, doesn't use a long url like
WEBAPP\WEB-INF\Classes\org\sub1\sub2\etc\etc\etc... I had problems using it.
       Below is my WEB.XML configuration for my message resource file.

       <init-param>
         <param-name>application</param-name>
         <param-value>ApplicationResources</param-value>
       </init-param>
       
       Sorry, english is not my first language.
       good luck.
       Gilson DElrei
       

> ----- Mensagem original -----
> De:		Sanjay Choudhary [SMTP:java_sc@yahoo.com]
> Enviada em:		sexta-feira, 29 de março de 2002 19:45
> Para:		Struts Users Mailing List
> Assunto:		Cannot find message resources - URGENT
> 
> Hi Gurus,
> 
> Help me out with this one pls.
> 
> -Sanjay
> 
> 
> 
> --- Sanjay Choudhary <ja...@yahoo.com> wrote:
> > Yes, I am using xerces.jar
> > 
> > -Sanjay
> > --- srinivas <sv...@intensit.de> wrote:
> > > do u have the XML parsers in your class path.
> > > 
> > > -----Original Message-----
> > > From: Sanjay Choudhary [mailto:java_sc@yahoo.com]
> > > Sent: Friday, March 29, 2002 10:50 PM
> > > To: Struts Users Mailing List
> > > Subject: Cannot find message resources - URGENT
> > > 
> > > 
> > > Hi,
> > > I am getting the following error
> > > 
> > > ServletException in:/delegateIds1.jsp] Cannot find
> > > message resources under key
> > > org.apache.struts.action.MESSAGE'
> > > 
> > > I tried looking at the archive but none of the
> > > solution mentioned in there resolved it.
> > > 
> > > I am using nightly build from 03/27. I am also
> > using
> > > tiles defination to create my pages.
> > > 
> > > Following is my JSP.
> > > 
> > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
> > > Transitional//EN">
> > > <%@ page language="java"%>
> > > <%@ taglib uri="/WEB-INF/struts-html.tld"
> > > prefix="html"%>
> > > <%@ taglib uri="/WEB-INF/struts-bean.tld"
> > > prefix="bean"%>
> > > <%@ taglib uri="/WEB-INF/struts-logic.tld"
> > > prefix="logic"%>
> > > <%@ taglib uri="/WEB-INF/struts-nested.tld"
> > > prefix="nested" %>
> > > 
> > > <!--html:html-->
> > > <% System.out.println("Inside delegateIds1.jsp");
> > %>
> > > <html:form action="/delegatordelegatename.do">
> > > <CENTER>
> > > <TABLE border="0" cellpadding="0" cellspacing="0">
> > >     <TBODY>
> > >         <TR>
> > >             <TD colspan="12" align="center"
> > > class="pageHeader"><bean:message
> > > key="title.DELEGATOR_DELEGATE_DETAILS"/></TD>
> > >         </TR>
> > >         <TR>
> > >             <TD>&nbsp;</TD>
> > >             <TD>&nbsp;</TD>
> > >             <TD>&nbsp;</TD>
> > >             <TD></TD>
> > >             <TD></TD>
> > >             <TD></TD>
> > >             <TD></TD>
> > >             <TD></TD>
> > >             <TD>&nbsp;</TD>
> > >             <TD>&nbsp;</TD>
> > >             <TD>&nbsp;</TD>
> > >         </TR>
> > >         <TR class="pageHeader">
> > >             <TD >&nbsp;</TD>
> > >             <TD>&nbsp;</TD>
> > >             <TD align="center"><bean:message
> > > key="prompt.LASTNAME"/></TD>
> > >             <TD></TD>
> > >             <TD class="pageHeader"
> > > align="center">&nbsp;<bean:message
> > > key="prompt.FIRSTNAME"/></TD>
> > >             <TD></TD>
> > >             <TD></TD>
> > >             <TD></TD>
> > >             <TD>&nbsp;</TD>
> > >             <TD>&nbsp;</TD>
> > >             <TD>&nbsp;</TD>
> > >         </TR>
> > >         <TR class="cellTooLightGrayBGFont9">
> > >             <TD>&nbsp;</TD>
> > >             <TD><bean:message
> > > key="prompt.DELEGATOR"/>&nbsp; </TD>
> > >             <TD><html:text size="15"
> > > property="delegator.last_Name"/></TD>
> > >             <TD></TD>
> > >             <TD><html:text size="15"
> > > property="delegator.first_Name"/></TD>
> > >             <TD>&nbsp;</TD>
> > >             <TD>
> > >             <html:link name="FDAForm"
> > > 			           property="delegator.name"
> > > 
> > > titleKey="prompt.SEARCHDELEGATORNAME"
> > > 
> > > href="javascript:openWindow('searchPeople.jsp?')">
> > >      	    ?
> > >      	    </html:link>
> > > 	    </TD>
> > > 
> > >
> > <TD>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
> > >             <TD><bean:message
> > > key="prompt.TITLE"/>&nbsp;</TD>
> > >             <TD>
> > >                   <html:select
> > > property="delegator.title_Desc">
> > > 	            	<html:options  property="titles"/>
> > > 	          </html:select>
> > >             </TD>
> > >             <TD>&nbsp;</TD>
> > >         </TR>
> > >         <TR class="pageSubHeaderNOFont">
> > >             <TD>&nbsp;<input type="hidden"
> > > name="Page"
> > > value=""></TD>
> > >             <TD><bean:message
> > > key="prompt.DELEGATE"/>&nbsp; </TD>
> > >             <TD><html:text size="15"
> > > property="delegate.last_Name"/></TD>
> > >             <TD></TD>
> > >             <TD><html:text size="15"
> > > property="delegate.first_Name"/></TD>
> > >             <TD>&nbsp;</TD>
> > >             <TD>
> > >             <html:link name="FDAForm"
> > > 	    	           property="delegate.name"
> > > 	    	          
> > > titleKey="prompt.SEARCHDELEGATENAME"
> > > 
> > > href="javascript:openWindow('searchPeople.jsp');">
> > > 	        ?
> > >      	    </html:link>
> > > 	    </TD>
> > > 
> > >
> >
> <TD>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
> > >             <TD><bean:message key="prompt.TITLE"/>
> > > &nbsp;</TD>
> > >             <TD>
> > >             <html:select
> > > property="delegate.title_Desc">
> > > 	    	<html:options name="FDAForm"
> > > property="titles"/>
> > > 	    </html:select>
> > >             </TD>
> > >             <TD>&nbsp;</TD>
> > >         </TR>
> > >         <TR>
> > >             <TD>&nbsp;</TD>
> > >             <TD>&nbsp;</TD>
> > >             <TD>&nbsp;</TD>
> > >             <TD></TD>
> > >             <TD></TD>
> > >             <TD></TD>
> > >             <TD></TD>
> > >             <TD></TD>
> > >             <TD>&nbsp;</TD>
> > >             <TD>&nbsp;</TD>
> > >             <TD>&nbsp;</TD>
> > >         </TR>
> > >         <TR class="cellTooLightGrayBG">
> > >             <TD align="center" colspan="3"><IMG
> > > src="images/showDetails.jpg" width="123"
> > height="20"
> > > border="0"
> > > onclick="javascript:Delegate('Go');"></TD>
> > >             <TD></TD>
> > >             <TD></TD>
> > >             <TD></TD>
> > >             <TD></TD>
> > >             <TD></TD>
> > >             <TD colspan="4" align="center"><IMG
> > > src="images/save1.jpg" width="70" height="18"
> > > border="0"></TD>
> > >         </TR>
> > >         <TR>
> > >             <TD>&nbsp;</TD>
> > >             <TD>&nbsp;</TD>
> > >             <TD>&nbsp;</TD>
> > >             <TD></TD>
> > >             <TD></TD>
> > >             <TD></TD>
> > >             <TD></TD>
> > >             <TD></TD>
> > >             <TD>&nbsp;</TD>
> > >             <TD>&nbsp;</TD>
> > >             <TD>&nbsp;</TD>
> > >         </TR>
> > >     </TBODY>
> > > </TABLE>
> > > </CENTER>
> > > </html:form>
> > > 
> > > -Sanjay
> > > 
> > > 
> > > 
> > 
> === message truncated ===
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Greetings - send holiday greetings for Easter, Passover
> http://greetings.yahoo.com/
> 
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Cannot find message resources - URGENT

Posted by Ingo Bruell <ib...@gmx.de>.
Hi,

IB> if use struts without tiles, the resources were found. But if i use
IB> tiles withe the changed action class in web.xml then the resourcefile
IB> is not found.
IB> i am using struts 1.1-b1 with tomcat 4.03 and jdk1.4.
IB> the resourcefile is configured in struts-config.xml

After using the right ActionServlet from tiles (from the example.war)
it works. The docs from tiles seems to be out of sync


so long


Ingo Bruell

---
<ib...@gmx.de>
<In...@epost.de>
<ICQ# 40377720>
Oldenburg    PGP-Fingerprint: CB01 AE12 B359 87C4 BF1C  953C 8FE7 C648 169E E5FC
Germany      PGP-Public-Key available at pgpkeys.mit.edu



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Cannot find message resources - URGENT

Posted by Ingo Bruell <ib...@gmx.de>.
Hi,

if use struts without tiles, the resources were found. But if i use
tiles withe the changed action class in web.xml then the resourcefile
is not found.
i am using struts 1.1-b1 with tomcat 4.03 and jdk1.4.
the resourcefile is configured in struts-config.xml

so long


Ingo Bruell

---
<ib...@gmx.de>
<In...@epost.de>
<ICQ# 40377720>
Oldenburg    PGP-Fingerprint: CB01 AE12 B359 87C4 BF1C  953C 8FE7 C648 169E E5FC
Germany      PGP-Public-Key available at pgpkeys.mit.edu



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>