Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Help!!! struts.action.MESSAGE error

 
Sumanth Tarigopula
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I'm working on Weblogic 6.1. I've got a jsp which allow the user to modify a field . I have to make controls on it and when it's wrong I call errors.add("publishers",new ActionError("error.publisherid.required"));
In my Jsp i've the tag <html:errors/>
My ApplicationResources.properties has the appriopriate message and is in the WEB-INF/lib directory.
I keep getting the error below. Any help is really appreciated.
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 jsp_servlet.__textbooks._jspService(__textbooks.java:161)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:304)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:215)
at org.apache.struts.action.ActionServlet.processValidate(ActionServlet.java:2149)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1565)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2456)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2039)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
 
Junilu Lacar
Bartender
Pie
Posts: 7465
50
Android Eclipse IDE IntelliJ IDE Java Linux Mac Scala Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"starigopula"
Please take a moment to review the JavaRanch Naming Policy. Then, edit your profile so that your display name conforms with the rules.
Thank you for your cooperation.
Junilu Lacar
 
Junilu Lacar
Bartender
Pie
Posts: 7465
50
Android Eclipse IDE IntelliJ IDE Java Linux Mac Scala Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could try the following:
1. Move ApplicationResources.properties up to the WEB-INF directory. Check out the Struts docs: http://jakarta.apache.org/struts/doc-1.0.2/userGuide/building_view.html#i18n and make sure your configuration is correct.
2. Check your classpath. I remember we had a problem in WAS3.5 once with loading property files and adding to the classpath worked. Maybe that will work for you with WebLogic.
Sorry I can't be more specific. Let us know how it goes.
Junilu
[ March 12, 2002: Message edited by: Junilu Lacar ]
 
Matthew Phillips
Ranch Hand
Posts: 2676
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your ApplicationResources.properties file should be in the WEB-INF/classes directory and needs to be set as an init-param in your web.xml file.
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic