geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kb...@symcor.com
Subject Re: NoClassDefFoundError when using FileUpload
Date Tue, 23 May 2006 18:34:35 GMT

Hello,

I had solved the NoClassDefFoundError error by adding following classpath
in the manifest.mf of struts-1.1.jar.

Class-Path:  commons-beanutils.jar commons-collections.jar commons-dig
 ester.jar commons-logging.jar commons-validator.jar jakarta-oro.jar s
 truts-legacy.jar commons-fileupload-1.0.jar


Thanks everyone who took time in reading my issue and suggesting the
answers.

Thanks,
Kenil Baxi





                                                                           
             "Manu George"                                                 
             <manu.t.george@gm                                             
             ail.com>                                                   To 
                                       user@geronimo.apache.org            
             05/22/2006 02:01                                           cc 
             AM                                                            
                                                                   Subject 
                                       Re: NoClassDefFoundError when using 
             Please respond to         FileUpload                          
             user@geronimo.apa                                             
                  che.org                                                  
                                                                           
                                                                           
                                                                           
                                                                           




Hi,
    You may need to hide the commons classes shipped with geronimo using
the hidden-classes element and add the jars coming with your struts distro
to WEB-INF/lib. It may be due to older versions of these jars shipped with
geronimo

Regards
Manu

On 5/19/06, kbaxi@symcor.com <kbaxi@symcor.com> wrote:
  Hello,

  I am getting following error when using FormFile in the form and struts
  action of Common-fileupload-1.0.jar:

  java.lang.NoClassDefFoundError:
  org/apache/commons/fileupload/FileUploadException
        at java.lang.Class.getDeclaredConstructors0(Native Method)
        at java.lang.Class.privateGetDeclaredConstructors(Class.java:1618)
        at java.lang.Class.getConstructor0(Class.java:1930)
        at java.lang.Class.newInstance0 (Class.java:278)
        at java.lang.Class.newInstance(Class.java:261)
        at
  org.apache.struts.util.RequestUtils.applicationInstance(RequestUtils.java:231)

        at
  org.apache.struts.util.RequestUtils.getMultipartHandler
  (RequestUtils.java:1318)
        at
  org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1194)
        at
  org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:821)

        at
  org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254)

        at
  org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
        at
  org.apache.struts.action.ActionServlet.doPost (ActionServlet.java:525)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:615)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
        at
  org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
  (ApplicationFilterChain.java:252)
        at
  org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)

        at
  org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java
 :213)
        at
  org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)

        at
  org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java
 :272)
        at
  org.apache.geronimo.tomcat.valve.TransactionContextValve.invoke(TransactionContextValve.java:53)

        at
  org.apache.geronimo.tomcat.valve.ComponentContextValve.invoke(ComponentContextValve.java
 :47)
        at
  org.apache.geronimo.tomcat.valve.InstanceContextValve.invoke(InstanceContextValve.java:60)

        at
  org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)

        at
  org.apache.catalina.valves.ErrorReportValve.invoke
  (ErrorReportValve.java:105)
        at
  org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)

        at
  org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:526)
        at
  org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)

        at
  org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)

        at
  org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection
 (Http11Protocol.java:744)
        at
  org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)

        at
  org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java
 :80)
        at
  org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)

        at java.lang.Thread.run(Thread.java:534)

  Thanks,
  Kenil




Mime
View raw message