I added some new modules to an existing working struts application.  When
trying to access an action in the original application, I get the following
in the logs with DEBUG on org.apache.struts

 

I have made no changes to the original webapp, only added some new modules.
I checked the libs and tld and they are all consistent struts 1.1.  See the
struts-config.xml after the log snippets.

 

[http-8080-Processor25] util.RequestUtils (RequestUtils.java:1799)     - Get
module name for path /ListUsers.do

2005-06-23 20:45:33,671 DEBUG [http-8080-Processor25] util.RequestUtils
(RequestUtils.java:1821)     - Module name found: default

2005-06-23 20:45:33,671 DEBUG [http-8080-Processor25]
action.RequestProcessor (RequestProcessor.java:225)     - Processing a 'GET'
for path '/ListUsers'

2005-06-23 20:45:33,734 DEBUG [http-8080-Processor25]
action.RequestProcessor (RequestProcessor.java:640)     -  Setting user
locale 'en_US'

2005-06-23 20:45:33,734 DEBUG [http-8080-Processor25] util.RequestUtils
(RequestUtils.java:764)     -  Looking for ActionForm bean instance in scope
'request' under attribute key 'UserDisplay'

2005-06-23 20:45:33,734 DEBUG [http-8080-Processor25] util.RequestUtils
(RequestUtils.java:839)     -  Creating new ActionForm instance of type
'com.alariusj.user.UserDisplay'

2005-06-23 20:45:33,750 DEBUG [http-8080-Processor25] util.RequestUtils
(RequestUtils.java:844)     -  --> [EMAIL PROTECTED]

java.lang.NoSuchMethodError:
org.apache.struts.action.ActionForm.setServlet(Lorg/apache/struts/action/Act
ionServlet;)V
 
org.apache.struts.util.RequestUtils.createActionForm(RequestUtils.java:851)
 
org.apache.struts.action.RequestProcessor.processActionForm(RequestProcessor
.java:364)
 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:253)
 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
        org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

 

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts
Configuration 1.1//EN"

 
"http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd";>

<struts-config>

 <data-sources/>

 <form-beans>

  <form-bean name="UserDisplay" type="com.alariusj.user.UserDisplay"/>

  <form-bean name="UserInfo" type="com.alariusj.user.AJCCUserObject"/>

 </form-beans>

 <global-exceptions/>

 <global-forwards>

  <forward name="UserHome" path="/ListUsers.do"/>

 </global-forwards>

 <action-mappings>

  <action name="UserDisplay" path="/ListUsers" scope="request"

   type="com.ajcs.actions.AJCSListUsers" validate="no">

   <forward name="listUsers" path="/pages/ListUsers.jsp"/>

  </action>

  <action name="UserInfo" path="/AJCSDeleteUser" scope="request"

   type="com.ajcs.actions.AJCSDeleteUser" validate="false">

   <forward name="listUsers" path="/ListUsers.do"/>

  </action>

  <action name="UserInfo" path="/AJCSShowAddUser" scope="request"

   type="com.ajcs.actions.AJCSShowAddUser" validate="false">

   <forward name="AJCSUser" path="/pages/AJCSUser.jsp"/>

  </action>

  <action name="UserInfo" path="/AJCSShowUserInfo" scope="request"

   type="com.ajcs.actions.ACJSShowUserInfo" validate="false">

   <forward name="AJCSUser" path="/pages/AJCSUser.jsp"/>

  </action>

  <action name="UserInfo" path="/AJCSSaveUser" scope="request"

   type="com.ajcs.actions.AJCSSaveUser" validate="true">

   <forward name="listUsers" path="/ListUsers.do"/>

  </action>

 </action-mappings>

 <controller/>

</struts-config>

 

Clues as to why it is throwing that error or how to fix?  I have compared
this webapp to other working webapps object by object and setting by setting
and don't see anything that jumps out at me.  So if someone can tell me
where to look or the possible cause, it would be much appreciated.


 

Ollie


 

 

 

Reply via email to