Another thing I found (as I mentioned in 'RE: Can't load action classes
(solution)') was that using the <load-on-startup> tag web.xml file to
make sure the struts ActionServlet is loaded first seems to help.
Something like:
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>
<init-param>
<param-name>application</param-name>
<param-value>ApplicationResources</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>
At least, it worked last week. I tried running my app again today to
make sure everything still worked and it didn't. Work, that is. :(
NOTE: I changed the LOS value from 0 in my original post to 1 since
the spec says positive integers indicate load order and anything else
can be loaded anytime; not sure if 0 is considered a positive integer
by the Tomcat developers. :)
I'll keep trying.
Ethan
-----Original Message-----
From: Renzo Toma [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 30, 2001 10:57 AM
To: [EMAIL PROTECTED]
Subject: RE: Struts w/JBuilder 5
Anthony,
Welcome to the strange world of JBuilder5!
Check if JB has copied your ApplicationResources.properties (or
equivalent)
to the output path. If not, check if you have set your Project
Properties ->
Build -> Resource -> 'properties' to 'copy'.
Also I noticed, when I do a rebuild JB removes all lot of files from the
output path. Stick to making a project or file, or do a rebuild followed
by
a make.
Have I said JB is weird yet? Well, here you go: it is weird!
For this reason, I do not run struts from within JB but outside. More
control and a quicker boottime.
Cheers,
Renzo
-----Original Message-----
From: Anthony Martin [mailto:[EMAIL PROTECTED]]
Sent: maandag 30 juli 2001 16:48
To: Struts User List (E-mail)
Subject: Struts w/JBuilder 5
Has anyone gotten a Struts project to work in JBuilder5? Currently, my
project is able to "make" but unable to execute. I get the following
message in the console:
Error: 500
Location: /WebCBP/error.jsp
Internal Servlet Error:
javax.servlet.ServletException: Missing message for key general.title
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContex
tImp
l.java:459)
at
_0002ferror_0002ejsperror_jsp_0._jspService(_0002ferror_0002ejsperror_js
p_0.
java:359)
Normally, if I saw this message, I would check the
ApplicationResources.properties file. In fact, I think it's related.
JBuilder5 can't find this file, but I don't know where to put it in
order
for it to see it. Any thoughts?
Anthony
The awful thing about getting it right the first time is that nobody
realizes how hard it was.
Unknown