You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Sajid Mitha <Sa...@TRIGYN.com> on 2001/04/02 06:12:39 UTC
RE: Example failed...
hi
I think there is
index.title=some mesage
missing in your property file in
org/apache/struts/example/ApplicationResource.propetry file...
try this...
bi
> -----Original Message-----
> From: Rodrigo Zerlotti [SMTP:Rodrigo@Zerlotti.com]
> Sent: Saturday, March 31, 2001 10:55 PM
> To: Struts
> Subject: Example failed...
>
> Hi, I am a newbie trying to check Struts.
>
> Steps I took to install it:
> -downloaded the latest build (I also tried 1.0beta1 - same result)
> -copies struts-example.war to my Tomcat3.2 webapps dir
> -added struts.jar to Tomcats classpath (unecessary, it is in .war, but I
> added anyway)
> -requested http://localhost/struts-example
> -got the error:
>
> javax.servlet.ServletException: Missing message for key index.title
> at
> org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextI
> mpl.java:459)
> at
> _0002findex_0002ejspindex_jsp_1._jspService(_0002findex_0002ejspindex_jsp_
> 1.java,
> Compiled Code)
> at
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.
> java:177)
> at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java,
> Compiled Code)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
> at org.apache.tomcat.core.Handler.service(Handler.java:286)
> at
> org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
> at
> org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:
> 797)
> at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
> at
> org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(Htt
> pConnectionHandler.java:210)
> at
> org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java,
> Compiled Code)
> at
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java,
> Compiled Code)
> at java.lang.Thread.run(Thread.java:479)
>
> Any ideas?
>
>
> Thanks
>
> Rod~
Re: Example failed...
Posted by Dan Miser <dm...@wi.rr.com>.
The problem is that you added struts.jar to your CLASSPATH. Delete the file
and all will be fine.
--
Dan Miser
http://www.distribucon.com
----- Original Message -----
From: "Rodrigo Zerlotti" <Ro...@Zerlotti.com>
To: <st...@jakarta.apache.org>
Sent: Monday, April 02, 2001 12:00 AM
Subject: Re: Example failed...
> > Steps I took to install it:
> > -downloaded the latest build (I also tried 1.0beta1 - same
> > result)
> > -copies struts-example.war to my Tomcat3.2 webapps dir
> > -added struts.jar to Tomcats classpath (unecessary, it is in
> > .war, but I
> > added anyway)
Re: Example failed...
Posted by Rodrigo Zerlotti <Ro...@Zerlotti.com>.
Thanks for the reply, I am still having problems with it.
Seems like MessageResource is not finding the proprieties file, which is
weird because it is on the classpath (otherwise tomcat wouldn't
find/compile index.jsp). All the classes + properties were expanded from
the .war, and I confirmed that the class+p.file are there and the line
for index.title is also there....
The problem may be on the call:
MessageResources.getMessageResources
("org.apache.struts.example.ApplicationResources");
which is correct, but on my system, something is going wrong. Forgot to
say, my dev. box is a Win2000 -
Ideas?
Rod~
> Sajid Mitha wrote:
>
> hi
> I think there is
> index.title=some mesage
> missing in your property file in
> org/apache/struts/example/ApplicationResource.propetry file...
> try this...
> bi
>
> -----Original Message-----
> From: Rodrigo Zerlotti [SMTP:Rodrigo@Zerlotti.com]
> Sent: Saturday, March 31, 2001 10:55 PM
> To: Struts
> Subject: Example failed...
>
> Hi, I am a newbie trying to check Struts.
>
> Steps I took to install it:
> -downloaded the latest build (I also tried 1.0beta1 - same
> result)
> -copies struts-example.war to my Tomcat3.2 webapps dir
> -added struts.jar to Tomcats classpath (unecessary, it is in
> .war, but I
> added anyway)
> -requested http://localhost/struts-example
> -got the error:
>
> javax.servlet.ServletException: Missing message for key
> index.title
> at
> org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:459)
>
> at
> _0002findex_0002ejspindex_jsp_1._jspService(_0002findex_0002ejspindex_jsp_1.java,
>
> Compiled Code)
> at
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
>
> at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:177)
>
> at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
>
> at
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java,
> Compiled Code)
> at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
>
> at
> org.apache.tomcat.core.Handler.service(Handler.java:286)
> at
> org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
>
> at
> org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
>
> at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
>
> at
> org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)
>
> at
> org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java,
>
> Compiled Code)
> at
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java,
>
> Compiled Code)
> at java.lang.Thread.run(Thread.java:479)
>
> Any ideas?
>
> Thanks
>
> Rod~