Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 36500 invoked from network); 23 Sep 2002 14:35:43 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 23 Sep 2002 14:35:43 -0000 Received: (qmail 21779 invoked by uid 97); 23 Sep 2002 14:35:42 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@jakarta.apache.org Received: (qmail 21729 invoked by uid 97); 23 Sep 2002 14:35:41 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 21673 invoked by uid 98); 23 Sep 2002 14:35:41 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) X-Originating-IP: [168.179.102.67] From: "Manoj Kithany" To: tomcat-user@jakarta.apache.org Bcc: Subject: RE: Simple Bean not working but Servlet/JSP Working Date: Mon, 23 Sep 2002 14:34:48 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 23 Sep 2002 14:34:48.0654 (UTC) FILETIME=[5E893EE0:01C2630E] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi Everyone! 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
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"); } %> ****** THIS IS MY LINE 10 <% if (formHandler.validate()) { %> "/> <% } else { %> "/> <% } %> ------------------------------------------------------------------------------------ My web.xml file is as shown below: ------------------------------------------------------------------------------- FormBean FormBean HelloWorldExample HelloWorldExample HelloWorldExample /HelloWorldExample/* FormBean /FormBean/* ------------------------------------------------------------------------------- I would really appreciate if any of you Experts could put some light onto this error. THANKS! Manoj G. Kithany manojkithany108@hotmail.com >From: "Ron Day" >Reply-To: "Tomcat Users List" >To: "Tomcat Users List" >Subject: RE: Simple Bean not working but Servlet/JSP Working >Date: Mon, 23 Sep 2002 10:20:30 -0400 > >You have to put your java classes in a package. If you do not, and put >the class files in WEB-INF/classes then Tomcat cannot find them because >this is not the default package location for Tomcat. > >Bottom line: always use pacjages for your classes !!!!! > >ron _________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- To unsubscribe, e-mail: For additional commands, e-mail: