You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by bryan hansen <bh...@yahoo.com> on 2002/07/12 20:02:27 UTC

[SOLVED]RE: logon.title not found

It would appear that with Jetty and JBoss the
ApplicationResources needs to be in the jar associated
with the ear of your application because it will not
look in the war file to find it. This error was solved
by putting everything in the jar including properties
files and just the jsp(s) and servlets in the war (as
well as config files) and then bundling everything in
an ear and deploying the application.

I had the properties files under the right path and
everything in the WEB-INF classes directory of the war
and it was just ignoring it I am assuming since it was
in an ear.

Thanks for your help everyone.

Bryan

--- mike.witt@honeywell.com wrote:
> Is your ApplicationResources in your class directory
> or just in your src
> directory?  It is easy to forget to copy it if your
> Ant script does not do
> it for you.
> 
> Mike
> 
> -----Original Message-----
> From: bryan hansen [mailto:bh5k@yahoo.com]
> Sent: Friday, July 12, 2002 1:01 PM
> To: Struts Users Mailing List
> Subject: RE: logon.title not found
> 
> 
> I am using 1.0.2 and I am still getting errors after
> trying this about 20 different ways, what a pain!
> 
> In the log file it says that it has loaded the
> ApplicationResources:
> 
> 11:01:26,684 INFO  [Jetty] action: Loading
> application
> resources from resource ApplicationResources
> 
> I see no error messages above or below this in the
> logfile. I have the file in my web.xml file:
> 
> <init-param>
>   <param-name>application</param-name>
>   <param-value>ApplicationResources</param-value>
> </init-param>
> 
> The jsp page dies when it goes to access it:
> 
> <%@ page language="java" %>
> <%@ taglib uri="/WEB-INF/struts-bean.tld"
> prefix="bean" %>
> <%@ taglib uri="/WEB-INF/struts-html.tld"
> prefix="html" %>
> 
> <html:html locale="true">
> <head>
> <title><bean:message key="logon.title"/></title>
> <html:base/>
> 
> (specificly the logon.title) I have verified that it
> is there.
> 
> I have also verified that it is in my war file under
> WEB-INF/classes
> 
> Somebody please help before I go insane!!!
> 
> Thanks,
> 
> Bryan
> 
> --- wbchmura@Ensign-BickfordInd.com wrote:
> > 
> > Which version are you using?
> > 
> > I had a lot of problems in the beginning with
> 1.1b1
> > with using the 
> > example app and blank to start from.  I ended up
> > using the struts 
> > console to make a whole new struts-config.xml from
> > scratch.  The example 
> > and stuff was using the old struts at the time I
> > think!
> > 
> > 
> > 
> > -----Original Message-----
> > From: bh5k [mailto:bh5k@yahoo.com]
> > Sent: Thursday, July 11, 2002 7:17 PM
> > To: struts-user
> > Subject: logon.title not found
> > 
> > 
> > I am trying to take the struts-example.war and
> > modify
> > it to start development. I have stripped out the
> > stuff
> > that I needed to get going and am having a problem
> > with the ApplicationResources file. Inside the
> > login.jsp it specifies that it is looking for
> > login.title in a bean tag to display the title for
> > this page. Well I have included the
> > ApplicationResources.properties file in my war and
> > specified in the web.xml file the updated path to
> > where the file is located at and I still keep
> > getting
> > hte error saying that the logon.title can not be
> > found.
> > 
> > javax.servlet.jsp.JspException: Missing message
> for
> > key logon.title
> > 
> > Is there something that I am overlooking on how to
> > include the this?
> > 
> > Thanks,
> > 
> > Bryan
> > 
> > __________________________________________________
> > Do You Yahoo!?
> > Sign up for SBC Yahoo! Dial - First Month Free
> > http://sbc.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>
> > 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Sign up for SBC Yahoo! Dial - First Month Free
> http://sbc.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>
> 


__________________________________________________
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com

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