Hi

I __definitely__ copied the struts.jar into my WEB-INF/lib directory.
I am using Tomcat 3.2.1 btw. JD 1.3 refresh beta on Solaris 2.6
It seems that adaptive class loader is at fault, but cannot be sure because
Struts does not provide any clearer information on what the failure is
apart from `org.apache.struts.action.ActionForm' not being found

I have set up strut-config.xml to have the following:


 <!-- ========== Form Bean Definitions =================================== -->
  <form-beans>
    <!-- Reconciliation source action form bean -->
    <form-bean      name="sourceForm"                    
type="com.db.moar.jsp.SourceForm" />
  </form-beans>

  <!-- ========== Global Forward Definitions ============================== -->
  <global-forwards>
     <!-- A global forward to the main home page -->
     <forward   name="main"             path="/moar/index.jsp" />
     <forward   name="success"          path="/moar/hello.jsp" />
  </global-forwards>

  <!-- ========== Action Mapping Definitions ============================== -->
  <action-mappings>

    <!-- Struts action calculating the total selected cash flow -->
    <action    path="/CalcTotal"
               type="com.db.moar.jsp.TotalAction"
               name="sourceForm"
              scope="request"
              input="/moar/reconcil-frameset.jsp"
           validate="false" >
      <forward name="success"              path="/moar/hello.jsp"/>
    </action>


In the JSP I have the following the tag action
( /home/gdd2_dev/jakarta-tomcat-3.2.1/webapps/pilgpe/moar/reconcil-left-source.jsp )

<html:form action="/CalcTotal.do" method="POST" target="bottomFrame" >

Yet struts claims it cannot find the action. I am trying evaluate Struts and
I wondering what to say to the bosses. I know that Struts is integrated
with Expresso Frameworks at mo ...  But is Struts production worthy or
not?
How do you switch on more "pedantic" debugging info in Struts anyway?


My backtrace is
================

Error: 500

Location: /pilgpe/moar/reconcil-left-source.jsp

Internal Servlet Error:

javax.servlet.ServletException: org/apache/struts/action/ActionForm
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:399)

--<CUT>--

Root cause:

java.lang.NoClassDefFoundError: org/apache/struts/action/ActionForm
        at java.lang.ClassLoader.defineClass0(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
        at 
org.apache.tomcat.loader.AdaptiveClassLoader.loadClass(AdaptiveClassLoader.java:446)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
        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 
moar._0002fmoar_0002freconcil_0002dleft_0002dsource_0002ejspreconcil_0002dleft_0002dsource_jsp_0._jspService(_0002fmoar_0002freconcil_0002dleft_0002dsource_0002ejspreconcil_0002dleft_0002dsource_jsp_0.java:186)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:177)
        at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
        at org.apache.tomcat.core.Handler.service(Handler.java:286)
        at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
        at 
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
        at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
        at 
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)
        at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
        at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
        at java.lang.Thread.run(Thread.java:484)

--
Peter Pilgrim          |  |        ++44 (0)207-545-9923
            .... \  \  ___   /  / ... .
            -   ----  ( * )  ---   --
_____________________________Cafe_Savannah,_San Antonio,Ibiza__



--

This e-mail may contain confidential and/or privileged information. If you are not the 
intended recipient (or have received this e-mail in error) please notify the sender 
immediately and destroy this e-mail. Any unauthorized copying, disclosure or 
distribution of the material in this e-mail is strictly forbidden.


Reply via email to