aspose file tools*
The moose likes Struts and the fly likes Exception creating bean of class examples.hello.HelloForm Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Exception creating bean of class examples.hello.HelloForm" Watch "Exception creating bean of class examples.hello.HelloForm" New topic
Author

Exception creating bean of class examples.hello.HelloForm

gopinathang nathan
Ranch Hand

Joined: Oct 28, 2006
Posts: 41
Hi All,

i am trying to create my first struts application. getting the following exception.



Any insight highly appreciated!
i am trying the example from the site, http://benmira.free.fr/en/j2ee/struts1.htm

Thanks in advance.
Gopi
gopinathang nathan
Ranch Hand

Joined: Oct 28, 2006
Posts: 41
made some progress on this, issue was not having the class in the classes folder.

now i am getting this error,
javax.servlet.jsp.JspException: Cannot find message resources under key org.apache.struts.action.MESSAGE
at org.apache.struts.util.RequestUtils.retrieveMessageResources(RequestUtils.java:1103)
at org.apache.struts.util.RequestUtils.message(RequestUtils.java:1043)
at org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:294)
at jsp_servlet.__hello._jspService(__hello.java:197)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1077)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:465)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:348)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:7047)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3902)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2773)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
RoshaniG Gopal
Ranch Hand

Joined: May 15, 2006
Posts: 180
Hi
There is a typo in the application properties file/JSP. The name that you have used in your JSP doesnt match with the one in the .properties file.
check that.. Do a copy paste of the "keys" of <bean:message>.


Regards,<br />Roshani
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
This message indicates that Struts can't find your ApplicationResources.properties file. This file must also be in your WEB-INF/classes folder.


Merrill
Consultant, Sima Solutions
gopinathang nathan
Ranch Hand

Joined: Oct 28, 2006
Posts: 41
Hi Merrill, Thanks for your suggestion. i removed the message tags and made my first struts working fine.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Exception creating bean of class examples.hello.HelloForm