1 Reply Latest reply on Nov 5, 2004 1:16 PM by lviz

    JBoss 4.0 and Struts integartion failed

    govindsri

      I am using JBoss 4.0 alongwith Struts 1.1.

      My Struts App.ear works fine on JBoss 3.2.5 but when I try to deply it on 4.0 I get class com.company.struts.forms.LoginForm not found exception.

      Here is how my struts-config.xml looks like.
      I am trying to login using login.jsp which has the following action...
      ==============================================
      <html:form action="/Login" focus="loginBean.userId" onsubmit="return CheckRequiredFields();" target="_blank">
      <html:hidden property="action" value="login"/>


       
       User Name
       
      <html:text property="loginBean.userId" size="15" maxlength="12"/>



       
       Password
        <html:password property="loginBean.password" size="15" maxlength="12" redisplay="false"/>


       
       
        <html:submit value="Sign In"/>


      </html:form>
      ========================struts-config.xml============
      <?xml version="1.0" encoding="ISO-8859-1" ?>
      <!DOCTYPE struts-config PUBLIC
      "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN"
      "struts-config_1_1.dtd">
      <struts-config>

      <!-- Data Sources -->
      <data-sources></data-sources>

      <!-- Form Beans -->
      <form-beans>
      <form-bean name="LoginForm" type="company.struts.forms.LoginForm" />

      </form-beans>

      <!-- Global Forwards -->
      <global-forwards>

      </global-forwards>


      <!-- Action Mappings -->
      <action-mappings>




      </action-mappings>

      <message-resources parameter="ApplicationResources" />

      <plug-in className="org.apache.struts.validator.ValidatorPlugIn">
      <set-property property="pathnames" value="/WEB-INF/validator-rules.xml,/WEB-INF/validator.xml" />
      </plug-in>
      <!-- ========== Message Resources Definitions =========================== -->


      </struts-config>