You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Holger Stratmann <ap...@finch.de> on 2006/01/06 23:49:53 UTC

pitfalls when moving from Tomcat 5.0 to 5.5 (Struts 1.1)?

Hello everybody,

I have a Struts 1.1 application running in Tomcat 5.0.

I THINK the transition to Tomcat 5.5 should be smooth, as
a) the struts part should work "pretty much" in different Tomcats?
b) Tomcat 5.0 to 5.5 is only a "minor" release, so it should be very 
compatible?

However, I have various problems :-((

Both Tomcats are "out of the box" with only this one webapp deployed.
In Tomcat 5.5, I get
*************
Cannot find message resources under key org.apache.struts.action.MESSAGE 
Tomcat 5.5
*************

After a bit of research, this seems to be related to versions of
commons-digester.jar
commons-beanutils.jar

I copied them from Tomcat 5 to my WEB-INF/lib, but I'm still confused 
about this (I did have those jar files in my lib, just different 
versions): Can anybody tell me what exactly the problem is and which 
versions I must or mustn't use?

Now the start page works ok, but when trying to access one of my 
modules, I still get a similar error:

javax.servlet.ServletException: Missing message for key "title"
	org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:848)
	org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:781)
	org.apache.jsp.admin.index_jsp._jspService(org.apache.jsp.admin.index_jsp:659)
	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

*root cause*

javax.servlet.jsp.JspException: Missing message for key "title"
	org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:297)
	org.apache.jsp.admin.index_jsp._jspx_meth_bean_message_0(org.apache.jsp.admin.index_jsp:693)
	org.apache.jsp.admin.index_jsp._jspService(org.apache.jsp.admin.index_jsp:205)
	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

The only "help" I could find on the web said somthing about the resource declaration in web.xml.
I use different resource files for my modules and want to keep it that way!
The resources are defined in the struts-config-[module].xml like this:
    <message-resources parameter="resources.admin"/>

I checked all config files and they are all valid XML.

Can anybody help me find and fix this?

Thanks in advance,

Holger


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org