Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Cannot find message resources under key ...

 
Vladan Radovanovic
Ranch Hand
Posts: 216
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 7758
61
Android Eclipse IDE IntelliJ IDE Java Linux Mac Scala Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
Vladan Radovanovic
Ranch Hand
Posts: 216
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic