File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Help!!!  struts.action.MESSAGE error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Help!!!  struts.action.MESSAGE error " Watch "Help!!!  struts.action.MESSAGE error " New topic

Help!!! struts.action.MESSAGE error

Sumanth Tarigopula

Joined: Feb 21, 2002
Posts: 15
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 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(
at org.apache.struts.taglib.html.ErrorsTag.doStartTag(
at jsp_servlet.__textbooks._jspService(
at weblogic.servlet.jsp.JspBase.service(
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(
at weblogic.servlet.internal.RequestDispatcherImpl.forward(
at org.apache.struts.action.ActionServlet.processValidate(
at org.apache.struts.action.ActionServlet.process(
at org.apache.struts.action.ActionServlet.doGet(
at javax.servlet.http.HttpServlet.service(
at javax.servlet.http.HttpServlet.service(
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(
at weblogic.servlet.internal.ServletRequestImpl.execute(
at weblogic.kernel.ExecuteThread.execute(
Junilu Lacar

Joined: Feb 26, 2001
Posts: 6497

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

Joined: Feb 26, 2001
Posts: 6497

You could try the following:
1. Move up to the WEB-INF directory. Check out the Struts docs: 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.
[ March 12, 2002: Message edited by: Junilu Lacar ]
Matthew Phillips
Ranch Hand

Joined: Mar 09, 2001
Posts: 2676
Your file should be in the WEB-INF/classes directory and needs to be set as an init-param in your web.xml file.

Matthew Phillips
I agree. Here's the link:
subject: Help!!! struts.action.MESSAGE error
It's not a secret anymore!