Im using struts 1.0.2 with 
Tomcat 4.0.1 and Weblogic6.1 SP2

All the time I get an java.lang.NoClassDefFoundError:
org/apache/struts/action/ActionMessages
But I'm never using this class.
The error occoures only if I'm using the <html:form> tag.

The next is that this class doesn't even exist in the struts.jar

I thinke it is a reason of wrong configuration.
cause all the examples I've looked at where running.


The errormessage
java.lang.NoClassDefFoundError: org/apache/struts/action/ActionMessages
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:120)
        at
org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:563)
        at jsp_servlet.__login._jspService(__login.java:181)
        at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
        at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:265)
        at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:304)
        at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:200)
        at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
ntext.java:2495)
        at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
:2204)
        at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
        at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)

My struts-config.xml 

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts
Configuration 1.0//EN"
"http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd";>
<struts-config><data-sources />
      <form-beans type="org.apache.struts.action.ActionFormBean">
        <form-bean name="userForm"
type="com.lwplus.teststruts.form.UserForm" />
        <form-bean name="orgUnitForm"
type="com.lwplus.teststruts.form.OrgUnitForm" />
      </form-beans>

      <global-forwards type="org.apache.struts.action.ActionForward">

      <forward name="accessAllowed" path="/Main.jsp" redirect="false" />

      </global-forwards>

      <action-mappings type="org.apache.struts.action.ActionMapping">

      <action scope="request" validate="true" name="userForm"
path="/loginAction" input="/Login.jsp"
type="com.lwplus.teststruts.action.Login">
        <forward name="accessAllowed" path="/Main.jsp" redirect="false" />
        <forward name="accessDenied" path="/AccessDenied.jsp"
redirect="false" />
        <forward redirect="false" name="loadData" path="/LoadData.do" />
      </action>
      <action path="/LoadData" parameter=""
type="com.lwplus.teststruts.action.LoadData" name="&lt;none&gt;" />
    </action-mappings>

    </struts-config>

The code of my Login.jsp
    <%@ page language="java" %>
    <%@ taglib uri="/WEB-INF/struts-bean.tld"  prefix="bean" %>
    <%@ taglib uri="/WEB-INF/struts-html.tld"  prefix="html" %>
    <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>


    <html:html locale="true">
    <head>
    <html:base/>
    <title>
    <bean:message key="login.title"/>
    </title>
    </head>
    <body>
        <h1>
            <bean:message key="index.msg"/>
        </h1>
        <br>

        <html:form action="loginAction.do" method="GET">
            <bean:message key="login.login"/>
                <html:text property="user.mstrloginname" value="vw" />
                <html:errors property="login" />
            <br>
            <bean:message key="login.pwd"  />
                <html:password property="user.mstrpin" value="pin" />
                <html:errors property="pwd"/>
            <br>
            <html:submit property="submit"/>
        </html:form>

    </body>
    </html:html




Thanks matthias
----------------------------------------------------------------------------
----------------
Hanel Matthias
Fachinformatiker (Anwendungsentwicklung) in Ausbildung
Logistik World GmbH     Fon:    +49-841-9014-300
Marie-Curie-Strasse 6   Fax:    +49-841-9014-302 
D- 85055 Ingolstadt     mailto:[EMAIL PROTECTED]
----------------------------------------------------------------------------
----------------


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to