struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Mitchell <jmitch...@apache.org>
Subject RE: error with JBoss: Missing message for key
Date Wed, 26 Mar 2003 21:47:50 GMT
On Wed, 2003-03-26 at 16:24, Rabih Yazbeck wrote:
> Yes I did, but as part of the war file (I don’t know if there is 
> any way to deploy them manually under JBOSS -- not as war)

Deploying an expanded (unzipped) war on JBoss/Tomcat is quite easy.
1. Stop JBoss
2. Create a folder for your app named (for example) 'myapp.war' 
   *Note - Yes, I did mean to add the '.war' as part of the directory
    name
3. Unzip (or jar -x) the structure to that directory.
4. Startup JBoss/Tomcat and have fun

I don't know if you can configure the embedded Tomcat to reload changed
classes, but if you need changes to struts configuration files, just
touch (add a space then delete it) the web.xml and JBoss will redeploy
your app.

By the way, to answer your original question, you should place the
resource files under /WEB-INF/classes to guarantee that correct class
loader will pick them up.

> 
> > -----Original Message-----
> > From: Raible, Matt [mailto:Matt_Raible@cable.comcast.com]
> > Sent: 26 March 2003 21:20
> > To: 'Struts Users Mailing List'
> > Subject: RE: error with JBoss: Missing message for key
> > 
> > Have you tried putting MessageProperties in WEB-INF/classes?
> > 
> > > -----Original Message-----
> > > From: Rabih Yazbeck [mailto:rablists@yahoo.co.uk]
> > > Sent: Wednesday, March 26, 2003 2:14 PM
> > > To: 'Struts Users Mailing List'
> > > Subject: error with JBoss: Missing message for key
> > >
> > >
> > > Hello,
> > >
> > > I have received an error (copied below) when deploying my
> > > Struts application on JBoss-Tomcat4.18, but I don’t have
> > > problem with the stand-alone Tomcat4.18 or WebLogic using the
> > > same "war" file... my MessageProperties files are in the war
> > > file under WEB-INF/lib .. I also tried to put them in JBoss
> > > under server/all/lib/ but with no success..
> > >
> > > By the way, I am using Tiles. And the header, where the error
> > > occurred, contains:
> > > <tiles:importAttribute name="title"/> <bean:message name="title>
> > >
> > > ..any idea? Thank you in advance..
> > >
> > > the error is:
> > >
> > > [ServletException in:/layouts/header.jsp] Missing message for
> > > key home.title' javax.servlet.ServletException: Missing
> > > message for key home.title at
> > > org.apache.jasper.runtime.PageContextImpl.handlePageException(
> > > PageContextImpl.java:530) at
> > > org.apache.jsp.header_jsp._jspService(header_jsp.java:76) at
> > > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java
> > > :137) at
> > > javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > > at
> > > org.apache.jasper.servlet.JspServletWrapper.service(JspServlet
> > > Wrapper.java:204) at
> > > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet
> > > .java:295) at
> > > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:2
> > > 41) at
> > > javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > > at
> > > org.apache.catalina.core.ApplicationDispatcher.invoke(Applicat
> > > ionDispatcher.java:684) at
> > > org.apache.catalina.core.ApplicationDispatcher.doInclude(Appli
> > > cationDispatcher.java:575) at
> > > org.apache.catalina.core.ApplicationDispatcher.include(Applica
> > > tionDispatcher.java:498) at
> > > org.apache.struts.tiles.TilesUtilImpl.doInclude(TilesUtilImpl.
> > > java:118) at
> > > org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:161
> > > ) at
> > > org.apache.struts.taglib.tiles.InsertTag.doInclude(InsertTag.j
> > > ava:702) at
> > > org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTa
> > > g(InsertTag.java:817) at
> > > org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.ja
> > > va:466) at
> > > org.apache.jsp.layout_0002ddefault_jsp._jspx_meth_tiles_insert
> > > _0(layout_0002ddefault_jsp.java:207) at
> > > org.apache.jsp.layout_0002ddefault_jsp._jspx_meth_html_html_0(
> > > layout_0002ddefault_jsp.java:102) at
> > > org.apache.jsp.layout_0002ddefault_jsp._jspService(layout_0002
> > > ddefault_jsp.java:69) at
> > > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java
> > > :137) at
> > > javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > > at
> > > org.apache.jasper.servlet.JspServletWrapper.service(JspServlet
> > > Wrapper.java:204) at
> > > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet
> > > .java:295) at
> > > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:2
> > > 41) at
> > > javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > > at
> > > org.apache.catalina.core.ApplicationDispatcher.invoke(Applicat
> > > ionDispatcher.java:684) at
> > > org.apache.catalina.core.ApplicationDispatcher.doForward(Appli
> > > cationDispatcher.java:432) at
> > > org.apache.catalina.core.ApplicationDispatcher.forward(Applica
> > > tionDispatcher.java:356) at
> > > org.apache.struts.action.RequestProcessor.doForward(RequestPro
> > > cessor.java:1058) at
> > > org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesR
> > > equestProcessor.java:269) at
> > > org.apache.struts.tiles.TilesRequestProcessor.processTilesDefi
> > > nition(TilesRequestProcessor.java:249) at
> > > org.apache.struts.tiles.TilesRequestProcessor.internalModuleRe
> > > lativeForward(TilesRequestProcessor.java:333) at
> > > org.apache.struts.action.RequestProcessor.processForward(Reque
> > > stProcessor.java:578) at
> > > org.apache.struts.action.RequestProcessor.process(RequestProce
> > > ssor.java:260) at
> > > org.apache.struts.action.ActionServlet.process(ActionServlet.j
> > > ava:1420) at
> > > org.apache.struts.action.ActionServlet.doGet(ActionServlet.jav
> > > a:502) at
> > > javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> > > at
> > > javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > > at
> > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilt
> > > er(ApplicationFilterChain.java:247) at
> > > org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
> > > cationFilterChain.java:193) at
> > > org.apache.catalina.core.StandardWrapperValve.invoke(StandardW
> > > rapperValve.java:260) at
> > > org.apache.catalina.core.StandardPipeline$StandardPipelineValv
> > > eContext.invokeNext(StandardPipeline.java:643) at
> > > org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> > > ine.java:480) at
> > > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.ja
> > > va:995) at
> > > org.apache.catalina.core.StandardContextValve.invoke(StandardC
> > > ontextValve.java:191) at
> > > org.apache.catalina.core.StandardPipeline$StandardPipelineValv
> > > eContext.invokeNext(StandardPipeline.java:643) at
> > > org.apache.catalina.valves.CertificatesValve.invoke(Certificat
> > > esValve.java:246) at
> > > org.apache.catalina.core.StandardPipeline$StandardPipelineValv
> > > eContext.invokeNext(StandardPipeline.java:641) at
> > > org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> > > ine.java:480) at
> > > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.ja
> > > va:995) at
> > > org.apache.catalina.core.StandardContext.invoke(StandardContex
> > > t.java:2415) at
> > > org.apache.catalina.core.StandardHostValve.invoke(StandardHost
> > > Valve.java:180) at
> > > org.apache.catalina.core.StandardPipeline$StandardPipelineValv
> > > eContext.invokeNext(StandardPipeline.java:643) at
> > > org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi
> > > spatcherValve.java:170) at
> > > org.apache.catalina.core.StandardPipeline$StandardPipelineValv
> > > eContext.invokeNext(StandardPipeline.java:641) at
> > > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport
> > > Valve.java:172) at
> > > org.apache.catalina.core.StandardPipeline$StandardPipelineValv
> > > eContext.invokeNext(StandardPipeline.java:641) at
> > > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValv
> > > e.java:509) at
> > > org.apache.catalina.core.StandardPipeline$StandardPipelineValv
> > > eContext.invokeNext(StandardPipeline.java:641) at
> > > org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> > > ine.java:480) at
> > > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.ja
> > > va:995) at
> > > org.apache.catalina.core.StandardEngineValve.invoke(StandardEn
> > > gineValve.java:174) at
> > > org.apache.catalina.core.StandardPipeline$StandardPipelineValv
> > > eContext.invokeNext(StandardPipeline.java:643) at
> > > org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> > > ine.java:480) at
> > > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.ja
> > > va:995) at
> > > org.apache.catalina.connector.http.HttpProcessor.process(HttpP
> > > rocessor.java:1040) at
> > > org.apache.catalina.connector.http.HttpProcessor.run(HttpProce
> > > ssor.java:1151) at java.lang.Thread.run(Thread.java:536)
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> > >
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
-- 
James Mitchell
Software Developer/Struts Evangelist
http://www.open-tools.org




---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message