DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12575>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12575 Message resource not found in sub-application Summary: Message resource not found in sub-application Product: Struts Version: 1.1 Beta 2 Platform: PC OS/Version: Windows NT/2K Status: NEW Severity: Minor Priority: Other Component: Controller AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] the application I'm working on contains one default application (struts- config.xml) and 3 sub-applications (say sc1.xml, sc2.xm and sc3.xml). because I'm not really putting anything in my default application, I've not defined a <message-resources> tag in struts-config.xml. but I have configured a default resource bundle for each sub-application. what happens is that in certain cases when using some struts-html tags, I get the exception "Cannot find message resources under key org.apache.struts.action.MESSAGE". e.g. <html:errors /> when Errors is not empty produces the exception when used in the context of a sub-application. I've not localized precisely the source of the problem (I only have the stack trace below) but I found a way round, which is to define a dummy resurce bundle for the default application. changing this and only this cures the problem and the resource accessed in correct, i.e. the one of the sub-application concerned. hence the 'minor' severity of this bug (if it is one), though I thought it might help to note it if it has some consequences elsewhere. for more details, please contact me. as promissed, the stack trace on my server (Novell Extend): javax.servlet.ServletException: Cannot find message resources under key org.apache.struts.action.MESSAGE at com.sssw.srv.jsp.AgoJspPageContext.handlePageException (AgoJspPageContext.java:725) at com.sssw.srv.jsp.AgoJspPageContext.handlePageException (AgoJspPageContext.java:667) at com.sssw.gen.jsp.enquiry_BodyHeaderAdvanced_jsp_1671622614._jspService (enquiry_BodyHeaderAdvanced_jsp_1671622614.java:2066) at com.sssw.srv.jsp.AgoHttpJspPage.service(AgoHttpJspPage.java:92) at com.sssw.srv.resources.AgWarResource.doServletDispatch (AgWarResource.java:944) at com.sssw.srv.busobj.AgoWarServletRequestDispatcher.dispatch (AgoWarServletRequestDispatcher.java:50) at com.sssw.srv.busobj.AgoWarRequestDispatcher.include (AgoWarRequestDispatcher.java:178) at com.sssw.srv.jsp.AgoJspPageContext.include (AgoJspPageContext.java:639) at com.sssw.gen.jsp.enquiry_AdvancedSearch_jsp_316164689._jspService (enquiry_AdvancedSearch_jsp_316164689.java:155) at com.sssw.srv.jsp.AgoHttpJspPage.service(AgoHttpJspPage.java:92) at com.sssw.srv.resources.AgWarResource.doServletDispatch (AgWarResource.java:944) at com.sssw.srv.busobj.AgoWarServletRequestDispatcher.dispatch (AgoWarServletRequestDispatcher.java:50) at com.sssw.srv.busobj.AgoWarRequestDispatcher.forward (AgoWarRequestDispatcher.java:99) at org.apache.struts.action.RequestProcessor.doForward (RequestProcessor.java:1014) at org.apache.struts.action.RequestProcessor.processForwardConfig (RequestProcessor.java:417) at org.apache.struts.action.RequestProcessor.processActionForward (RequestProcessor.java:390) at org.apache.struts.action.RequestProcessor.process (RequestProcessor.java:271) at org.apache.struts.action.ActionServlet.process (ActionServlet.java:1292) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.sssw.srv.resources.AgWarResource.doServletDispatch (AgWarResource.java:944) at com.sssw.srv.resources.AgWarResource.service(AgWarResource.java:723) at com.sssw.srv.resources.AgWarURLResource.perform (AgWarURLResource.java:114) at com.sssw.srv.http.httpd.perform(httpd.java:4592) at com.sssw.srv.http.Client.processRequest(Client.java:906) at com.sssw.srv.http.Client.loop(Client.java:1266) at com.sssw.srv.http.Client.runConnection(Client.java:1470) at com.sssw.srv.http.Client.run(Client.java:1430) at java.lang.Thread.run(Unknown Source) -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>