It looks like it isn't the bean that can't be loaded but rather the forms bundle can't be found.
bundle should be in classes to be loaded by getBundle method d. Manoj Kithany wrote: > Hi Experts, > > As you all mentioned, I tried to use package for my beans/servlets. My > modified directory structure is : > > /kithany (root) > /kithany/register.html > /kithany/success.jsp > /kithany/retry.jsp > /kithany/process.jsp (bean) > /kithany/WEB-INF/web.xml > /kithany/WEB-INF/classes/mybean/FormBean.java (package mybean) > /kithany/WEB-INF/classes/mybean/FormBean.class (package mybean) > /kithany/META-INF/application.xml > > Then, I create the kithany.war file as shown below: > > #cd /kithany > #jar -cvfM kithany.war . > > I then put the "kithany.war" file in /jboss/server/default/deploy directory > and In your browser type: > > http://IP_ADDR_ESS:8080/kithany/register.html > > which works fine. In my "register.html" file my action is <form > action="/kithany/process.jsp" method=post> > When I click the SUBMIT button in "register.html" form (which then calls > bean and servelte), I get following Error - wonder why. > > ------------------------------------------------------------------------------------ > > Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error - that > prevented it from fulfilling this request > > java.util.MissingResourceException: Can't find bundle for base name forms, > locale en_US > at > java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java(Compiled > > Code)) > at > java.util.ResourceBundle.getBundleImpl(ResourceBundle.java(Compiled > Code)) > at java.util.ResourceBundle.getBundle(ResourceBundle.java:534) > at org.apache.jsp.process$jsp.jspInit(process$jsp.java:17) > at org.apache.jasper.runtime.HttpJspBase.init(HttpJspBase.java:90) > at > org.apache.jasper.servlet.JspServlet$JspServletWrapper.load(JspServlet.java:142) > > at > >org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:178) > > at > org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:188) > > at > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381) > at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > ------------------------------------------------------------------------------------ > > > My process.jsp file is: > ------------------------------------------------------------------------------------ > > <%@ page import="java.util.*, mybean.*" %> > > <%! > ResourceBundle bundle =null; > public void jspInit() { > bundle = ResourceBundle.getBundle("forms"); > } > %> > > <jsp:useBean id="formHandler" class="mybean.FormBean" scope="request"> > ****** THIS > IS MY LINE 10 > <jsp:setProperty name="formHandler" property="*"/> > </jsp:useBean> > > <% > if (formHandler.validate()) { > %> > <jsp:forward page="<%=bundle.getString(\"/kithany/process.success\")%>"/> > <% > } else { > %> > <jsp:forward page="<%=bundle.getString(\"/kithany/process.retry\")%>"/> > <% > } > %> > ------------------------------------------------------------------------------------ > > > My web.xml file is as shown below: > ------------------------------------------------------------------------------- > > <web-app> > <servlet> > <servlet-name>FormBean</servlet-name> > <servlet-class>FormBean</servlet-class> > </servlet> > <servlet> > <servlet-name>HelloWorldExample</servlet-name> > <servlet-class>HelloWorldExample</servlet-class> > </servlet> > <servlet-mapping> > <servlet-name>HelloWorldExample</servlet-name> > <url-pattern>/HelloWorldExample/*</url-pattern> > </servlet-mapping> > <servlet-mapping> > <servlet-name>FormBean</servlet-name> > <url-pattern>/FormBean/*</url-pattern> > </servlet-mapping> > <web-app> > ------------------------------------------------------------------------------- > > > I would really appreciate if any of you Experts could put some light onto > this error. > > THANKS! > > Manoj G. Kithany > [EMAIL PROTECTED] > > > > > _________________________________________________________________ > Join the world’s largest e-mail service with MSN Hotmail. > http://www.hotmail.com > > ___________________________________________________________________________ > To unsubscribe, send email to [EMAIL PROTECTED] and include in the body > of the message "signoff SERVLET-INTEREST". > > Archives: http://archives.java.sun.com/archives/servlet-interest.html > Resources: http://java.sun.com/products/servlet/external-resources.html > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html > > > -- David Mossakowski [EMAIL PROTECTED] Instinet Corporation 212.310.7275 **************************************************************************** <<Disclaimer>> This message is intended only for the use of the Addressee and may contain information that is PRIVILEGED and/or CONFIDENTIAL or both. This email is intended only for the personal and confidential use of the recipient(s) named above. If the reader of this email is not an intended recipient, you have received this email in error and any review, dissemination, distribution or copying is strictly prohibited. If you have received this email in error, please notify the sender immediately by return mail and permanently deleting the copy you received. Thank you. **************************************************************************** ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html