tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dominik Drzewiecki" <drz...@post.pl>
Subject Re: I broke this (I think), but I don't know quite why...
Date Tue, 30 Nov 2004 19:21:14 GMT
> 
> Hi,
> As http://issues.apache.org/bugzilla/show_bug.cgi?id=32445 shows, I
> apparently broke the admin webapp when I made it compile with Struts 1..2
> 
> for Tomcat 5.0.30.  I've looked at it for a bit, and I can't quite
> figure out why it's broken or how to fix it quickly, probably because my
> Struts knowledge is not where it should be.
> 
> The ApplicationResources.properties are where they used to be, properly
> packaged in the catalina-admin.jar and on the classpath.  I didn't
> change any of the struts config files either.  So I'm a bit puzzled as
> to why this is broken and would appreciate hints on a fix.
> 
It seems that some JSP using struts taglib is trying to access the 
resources, that simply are not there (in the proper context under proper 
key).
Has the ActionServlet been started beforehand? If not, I suggest doing so 
by adding <load-on-startup>0</load-on-starup> in web.xml
I noticed that there is some trick applied to login.jsp (which *does* use 
<bean:message>) in order to avoid <load-on-startup>. 

<% // Force the initialization of "action" servlet
   getServletContext().getNamedDispatcher("action").include(request,
response);
%> 

HTH
/dd


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message