8 Replies Latest reply on Sep 23, 2002 12:23 PM by Manoj G. Kithany

    Simple Bean Not working but JSP/Servlet Working

    Manoj G. Kithany Newbie

      Hi JBosses,

      I tried a simple JSP/Servlet applications and it worked. I am using Apache 1.3.26 + (Jboss 3.0.3, Tomcat 4.0.4 bundle)

      Now, I am trying for simple Bean Application with JSP/Servlets and Html pages. My 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/FormBean.java
      /kithany/WEB-INF/classes/FormBean.class
      /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

      org.apache.jasper.JasperException: Unable to compile class for JSP
      An error occurred at line: 10 in the jsp file: /process.jsp

      Generated servlet error:
      /jboss-3.0.0_tomcat-4.0.3/catalina/work/localhost/kithany/process$jsp.java:72: Class org.apache.jsp.FormBean not found.
      FormBean formHandler = null;
      ^

      An error occurred at line: 10 in the jsp file: /process.jsp

      Generated servlet error:
      /jboss-3.0.0_tomcat-4.0.3/catalina/work/localhost/kithany/process$jsp.java:75: Class org.apache.jsp.FormBean not found.
      formHandler= (FormBean)
      ^
      An error occurred at line: 10 in the jsp file: /process.jsp

      Generated servlet error:
      /jboss-3.0.0_tomcat-4.0.3/catalina/work/localhost/kithany/process$jsp.java:80: Class org.apache.jsp.FormBean not found.
      formHandler = (FormBean) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "FormBean");

      ------------------------------------------------------------------------------------

      My process.jsp file is:
      ------------------------------------------------------------------------------------
      <%@ page import="java.util.*" %>

      <%!
      ResourceBundle bundle =null;
      public void jspInit() {
      bundle = ResourceBundle.getBundle("forms");
      }
      %>

      <jsp:useBean id="formHandler" class="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-name>FormBean</servlet-name>
      <servlet-class>FormBean</servlet-class>


      <servlet-name>HelloWorldExample</servlet-name>
      <servlet-class>HelloWorldExample</servlet-class>

      <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 JBosses could put some light onto this error.

      THANKS!

      Manoj G. Kithany

        • 1. Re: Simple Bean Not working but JSP/Servlet Working
          Juha Lindfors Master

          Seems to be looking the class from this package:

          Class org.apache.jsp.FormBean not found.

          but that's not how you packaged your class under the war classes/ dir

          • 2. Re: Simple Bean Not working but JSP/Servlet Working
            Manoj G. Kithany Newbie

            Hi JBosses and Juha Linfors,

            THANKS!
            As you 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">
            <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-name>FormBean</servlet-name>
            <servlet-class>FormBean</servlet-class>


            <servlet-name>HelloWorldExample</servlet-name>
            <servlet-class>HelloWorldExample</servlet-class>

            <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

            • 3. Re: Simple Bean Not working but JSP/Servlet Working
              Manoj G. Kithany Newbie

              Hi JBosses and Juha Linfors,

              THANKS!
              As you 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">
              <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-name>FormBean</servlet-name>
              <servlet-class>FormBean</servlet-class>


              <servlet-name>HelloWorldExample</servlet-name>
              <servlet-class>HelloWorldExample</servlet-class>

              <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

              • 4. Re: Simple Bean Not working but JSP/Servlet Working
                Manoj G. Kithany Newbie

                Hi JBosses and Juha Linfors,

                THANKS!
                As you 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">
                <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-name>FormBean</servlet-name>
                <servlet-class>FormBean</servlet-class>


                <servlet-name>HelloWorldExample</servlet-name>
                <servlet-class>HelloWorldExample</servlet-class>

                <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

                • 5. Re: Simple Bean Not working but JSP/Servlet Working
                  Manoj G. Kithany Newbie

                  Hi JBosses and Juha Linfors,

                  THANKS!
                  As you 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">
                  <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-name>FormBean</servlet-name>
                  <servlet-class>FormBean</servlet-class>


                  <servlet-name>HelloWorldExample</servlet-name>
                  <servlet-class>HelloWorldExample</servlet-class>

                  <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

                  • 6. Re: Simple Bean Not working but JSP/Servlet Working
                    Donald Newbie

                    Your bean is not to be deployed in the web inf. You have to deploy it seperate. Now the correct way is to take it to the next wtep and create the .ear file. In this file is your war and and application.xml and your EJB jar files. You can look on Suns site to get the correct layout for htis. You may also want to look at the petstore examples to get a better understanding. There are othere issues that you need to look at when deploying your EJB outside an application context depending on your need but you should get used to the .EAR deployment. You should also look into creating an ant script to bundle up your application as to this creates much ease when you move forward and will force all builds to be built exact each time and that way when you get to start debugging, you can rule out anything dealing with how you built the deplaoment ear file.

                    Hope this helps.

                    Don

                    • 7. Re: Simple Bean Not working but JSP/Servlet Working
                      Manoj G. Kithany Newbie

                      Hi JBosses and Mr. Juha,

                      As you 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/WEB-INF/classes/mybean/forms.properties
                      /kithany/WEB-INF/classes/forms.properties
                      /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 resource for bundle java.util.PropertyResourceBundle, key /kithany/retry.jsp
                      at java.util.ResourceBundle.getObject(ResourceBundle.java(Compiled Code))
                      at java.util.ResourceBundle.getString(ResourceBundle.java(Compiled Code))
                      at org.apache.jsp.process$jsp._jspService(process$jsp.java:142)
                      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
                      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
                      at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
                      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)
                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java
                      --------------------------------------------------------------------------

                      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">
                      <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\")%>"/>
                      <%
                      }
                      %>
                      ------------------------------------------------------------------------------------

                      I would really appreciate if any of you Experts could put some light onto this error.

                      THANKS!

                      Manoj G. Kithany

                      • 8. Re: Simple Bean Not working but JSP/Servlet Working
                        Manoj G. Kithany Newbie

                        Hi JBosses and Mr. Juha,

                        As you 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/WEB-INF/classes/mybean/forms.properties
                        /kithany/WEB-INF/classes/forms.properties
                        /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 resource for bundle java.util.PropertyResourceBundle, key /kithany/retry.jsp
                        at java.util.ResourceBundle.getObject(ResourceBundle.java(Compiled Code))
                        at java.util.ResourceBundle.getString(ResourceBundle.java(Compiled Code))
                        at org.apache.jsp.process$jsp._jspService(process$jsp.java:142)
                        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
                        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
                        at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
                        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)
                        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java
                        --------------------------------------------------------------------------

                        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">
                        <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\")%>"/>
                        <%
                        }
                        %>
                        ------------------------------------------------------------------------------------

                        I would really appreciate if any of you Experts could put some light onto this error.

                        THANKS!

                        Manoj G. Kithany