I've seen other people post about this problem, but I really haven't seen a
good answer to why this problem is occurring... I'm hoping someone can
enlighten this poor soul as to what's going on.
I've downloaded the Struts nightly binary build (I've actually tried
several; all do this), and placed the struts.jar file in Tomcat's tree (as
per the instructions). I've also placed the .war files in the webapps
directory. Tomcat gets started, sees the .war files and proceeds to unpack
everything.
Problem is... the example app doesn't work. If you try to go to
http://localhost:8080/struts-example, the system proceeds to do whatever it
needs to do to compile the JSP pages, then throws an error 500:
Location: /struts-example/index.jsp
Internal Servlet Error:
javax.servlet.ServletException: Missing message for key index.title
at java.lang.Throwable.(Throwable.java:96)
at java.lang.Exception.(Exception.java:44)
at javax.servlet.ServletException.(ServletException.java:161)
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:459)
at
_0002findex_0002ejspindex_jsp_2._jspService(_0002findex_0002ejspindex_jsp_2.
java:381)
... the rest of the trace is removed to keep this message small.
>From looking at the code, it seems that the code is having problems loading
the ApplicationResources.properties file (where the text for index.title
is). The file is definitely there, in the org.apache.struts.example tree.
I've seen other postings from people using both Tomcat and Weblogic, and
having the same problem. My question is... why? I know some people have
suggested unpacking the war file and struts.jar file so they can be in your
classpath, but I would love to know the reason behind this issue.
Any ideas or suggestions would be greatly appreciated.
---
Mark E. Davidson
[EMAIL PROTECTED]
Sr. Server Engineer "The same thing that makes you
live,
1704 Automation Pkwy can kill you in the end."
San Jose, CA 95131 -- Neil Young
Phone: 408-503-1085
Fax: 408-503-1185