-----Original Message-----
From: Deadman, Hal [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 14, 2001 11:20 AM
To: [EMAIL PROTECTED]
Subject: RE: newbie question> BNPriceResources is in my .../WEB-INF/classes folder and I've got .../WEB-INF/classes in my classpath.
Don't put WEB-INF/classes in your classpath and don't put struts.jar in your classpath. Any jarfiles in WEB-INF/lib and the WEB-INF/classes directory get added to your webapps classpath. Having them in a the classpath for the appserver will cause problems.-----Original Message-----
From: Jesse Vitrone [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 14, 2001 10:52 AM
To: Struts User Mailing List (E-mail)
Subject: newbie questionI'm new to struts and I'm trying to create a little sample app, but I'm getting this error when I try to go my index.jsp
javax.servlet.ServletException: Cannot find message resources under key org.apache.struts.action.MESSAGE
at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:459)
at _0002findex_0002ejspindex_jsp_1._jspService(_0002findex_0002ejspindex_jsp_1.java:315)
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:391)
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.connector.Ajp13ConnectionHandler.processConnection(Ajp13ConnectionHandler.java:160)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:484)What does this mean?
I would think that it means that it can't find the properties file, but I've got this in my xml:
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>application</param-name>
<param-value>BNPriceResources</param-value>
</init-param>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/my-example-config.xml</param-value>
</init-param>
<init-param>
<param-name>debug</param-name>
<param-value>2</param-value>
</init-param>
<init-param>
<param-name>validate</param-name>
<param-value>true</param-value>
</init-param>
<load-on-startup>1></load-on-startup>
</servlet>BNPriceResources is in my .../WEB-INF/classes folder and I've got .../WEB-INF/classes in my classpath.
Any help would be greatly appreciated.
Thanks,
Jesse
Title: newbie question
I took
WEB-INF classes out of my classpath, as well as struts.jar, and restarted Apache
and Tomcat, but I still get the same error.
It's a
problem if struts.jar is in my classpath? How am I expected to
compile?
Do I
need to have my classes and properties in a package? Right now, I didn't
put anything in a package, they're just in my classes
folder.
Thanks,
Jesse
- Newbie question Drew Nichols
- RE: Newbie question Simon Sadedin
- newbie question Jesse Vitrone
- Re: newbie question Anand Raman
- RE: newbie question Anderson, Jessica
- RE: newbie question Deadman, Hal
- RE: newbie question Jesse Vitrone
- RE: newbie question Craig R. McClanahan
- RE: newbie question Martijn Spronk
- Newbie question Steven Williams
- NewBie question Irfan Mohammed
- newbie question David Lieberman
- Cookies and Clusters \(Home\) Dan Connelly
- RE: Cookies and Clusters malcolm davis
- Re: Cookies and Clusters (Cookies) \(Home\) Dan Connelly
- newbie question Jonathan Yang
- RE: newbie question Kevin McLain