struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Arnaud HERITIER" <aherit...@sopragroup.com>
Subject RE: Error : Cannot find message resources
Date Fri, 20 Dec 2002 11:17:19 GMT
Do you use struts 1.0 or 1.1 ??

Did you define a message-ressources in the struts XML config file ???

You should declare something like :

	<message-resources parameter="test" null="false" />


Arnaud

> -----Message d'origine-----
> De : amit kaushik [mailto:akaushik@expressindia.com]
> Envoyé : vendredi 20 décembre 2002 11:25
> À : struts
> Objet : Error : Cannot find message resources
>
>
> hi everybody,i am new to struts.... created a multilingual
> application and maintained to different properties file in
> /WEB-INF/classes folder names test.properties and
> test_de.properties.when i am using the properties file
> through struts it's showing me the following error.My JSP
> code is......<%@ page language="java" %><%@ taglib
> uri="/WEB-INF/struts-bean.tld" prefix="bean"%><%@ taglib
> uri="/WEB-INF/struts-html.tld" prefix="html"%><%@ taglib
> uri="/WEB-INF/struts-logic.tld" prefix="logic"%><html:html
> locale="true"><head><html:base/><title> <bean:message
> key="index.title" /> </title><head><body bgcolor="white"><h2
> align="center"> Amit Kaushik </h2></body></html:html>Please
> suggest any solution ........ Any help would be
> appreciated.Error is .........
> org.apache.jasper.JasperException: Cannot find message
> resources under key org.apache.struts.action.MESSAGE
> 	at
> org.apache.jasper.servlet.JspServletWrapper.service(JspServlet
> Wrapper.java:248)
> 	at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet
> .java:289)
> 	at
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
> 	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.java: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.core.StandardPipeline.invoke(StandardPipel
> ine.java:480)
> 	at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> 	at
> org.apache.catalina.core.StandardContext.invoke(StandardContex
> t.java:2396)
> 	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.core.StandardPipeline.invoke(StandardPipel
> ine.java:480)
> 	at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java: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.java:995)
> 	at
> org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.
> java:223)
> 	at
> org.apache.coyote.http11.Http11Processor.process(Http11Process
> or.java:405)
> 	at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandle
> r.processConnection(Http11Protocol.java:380)
> 	at
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoi
> nt.java:508)
> 	at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
> ThreadPool.java:533)
> 	at java.lang.Thread.run(Thread.java:536)
>


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


Mime
View raw message