*
The moose likes Struts and the fly likes Cannot find message resources under key ... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Cannot find message resources under key ..." Watch "Cannot find message resources under key ..." New topic
Author

Cannot find message resources under key ...

Vladan Radovanovic
Ranch Hand

Joined: Mar 20, 2000
Posts: 216
The error that I am getting is:
javax.servlet.jsp.JspException: Cannot find message resources under key org.apache.struts.action.MESSAGE at org.apache.struts.util.RequestUtils.present(RequestUtils.java:803) at org.apache.struts.taglib.html.ErrorsTag.doStartTag(ErrorsTag.java:229) at _firegrant._jsp._fire._contact__info._jspService(_contact__info.java:73) at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:302) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:407) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:330) at javax.servlet.http.HttpServlet.service(HttpServlet.java:336) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:684) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269) at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:183) at org.apache.struts.action.ActionServlet.processValidate(ActionServlet.java:2149) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1564) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:509) at javax.servlet.http.HttpServlet.service(HttpServlet.java:211) at javax.servlet.http.HttpServlet.service(HttpServlet.java:309) at javax.servlet.http.HttpServlet.service(HttpServlet.java:336) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:684) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:735) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:243) at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:64)
I have gone through related posts here and on the web and none of the solutions worked. The problem here is that application would work fine and display of the struts (.properties)error messages is also fine however I would suddenly get this problem. Once I get this error every subsequent time form validation fails the problem persists and the same java error is there.
Anybody has any thoughts on this?
Junilu Lacar
Bartender

Joined: Feb 26, 2001
Posts: 4447
    
    5

The only thing I can think of is that somewhere in your code (servlet, helper class, or JSP scriptlets) you are doing a setAttribute(org.apache.struts.action.MESSAGE, someValue), where someValue evaluates to null. If you aren't using that key directly, look for places where you might have assigned its value to some variable and use that to setAttribute() to null.
Or you could be clobbering it with a bean tag somewhere in your JSP. Again, look for org.apache.struts.action.MESSAGE or something that was assigned its value.
This is just a guess though and I may very well be out in left field on this...


Junilu - [How to Ask Questions] [How to Answer Questions]
Vladan Radovanovic
Ranch Hand

Joined: Mar 20, 2000
Posts: 216
Thanks Junily. Well we read that either no or too many parsers can cause this problem. Knowing that we have j2ee.jar and god knows what else that's in oc4j classpath my co-worker decided to "trim" the j2ee jar file of unecessary packages. I didn't think that's going to solve it but it did. Go figure.
 
 
subject: Cannot find message resources under key ...
 
Similar Threads
Internal Server Error 500
Error writing endDocument HttpIOException
Navigation not working
Redirect issue
Error on page