ClassNotFoundException:org.apache.commons.fileuplo ad.FileUploadException - Websphere

This is a discussion on ClassNotFoundException:org.apache.commons.fileuplo ad.FileUploadException - Websphere ; Hi All,I am getting following exception while deploying ear. ear is having war and axis2. ear file contains commons-fileupload-1.1.1.jar but still I am getting follwing exception while deploying. I have class loader mode as parent First,and class loading plicy as ...

+ Reply to Thread
Results 1 to 9 of 9

Thread: ClassNotFoundException:org.apache.commons.fileuplo ad.FileUploadException

  1. ClassNotFoundException:org.apache.commons.fileuplo ad.FileUploadException

    Hi All,I am getting following exception while deploying ear.
    ear is having war and axis2. ear file contains commons-fileupload-1.1.1.jar but still I am getting follwing exception while deploying. I have class loader mode as parent First,and class loading plicy as multiple. I am using WAS7.
    I am not sure why following exception occuring, did WAS7 needs some extra configuration as this ear works with WAS61 correctly.

    09 16:03:50:633 GMT+05:30] 00000008 extension E com.ibm.wsspi.webcontainer.extension.WebExtensionP rocessor createServletWrapper Error occured while preparing the servlet for initialization.
    javax.servlet.ServletException: javax.servlet.ServletException: org.apache.axis2.deployment.DeploymentException: org.apache.commons.fileupload.FileUploadException
    at org.apache.axis2.transport.http.AxisServlet.init(A xisServlet.java:455)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.ini t(ServletWrapper.java:325)
    at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl .init(ServletWrapperImpl.java:165)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.ini tialize(ServletWrapper.java:1588)
    at com.ibm.wsspi.webcontainer.extension.WebExtensionP rocessor.createServletWrapper(WebExtensionProcesso r.java:98)
    at com.ibm.ws.webcontainer.webapp.WebApp.getServletWr apper(WebApp.java:936)
    at com.ibm.ws.webcontainer.webapp.WebApp.getServletWr apper(WebApp.java:857)
    at com.ibm.ws.webcontainer.webapp.WebApp.initializeTa rgetMappings(WebApp.java:538)
    at com.ibm.ws.webcontainer.webapp.WebApp.commonInitia lizationFinish(WebApp.java:360)
    at com.ibm.ws.webcontainer.webapp.WebAppImpl.initiali ze(WebAppImpl.java:292)
    at com.ibm.ws.webcontainer.webapp.WebGroupImpl.addWeb Application(WebGroupImpl.java:99)
    at com.ibm.ws.webcontainer.VirtualHostImpl.addWebAppl ication(VirtualHostImpl.java:167)
    at com.ibm.ws.webcontainer.WSWebContainer.addWebApp(W SWebContainer.java:722)
    at com.ibm.ws.webcontainer.WSWebContainer.addWebAppli cation(WSWebContainer.java:607)
    at com.ibm.ws.webcontainer.component.WebContainerImpl .install(WebContainerImpl.java:376)
    at com.ibm.ws.webcontainer.component.WebContainerImpl .start(WebContainerImpl.java:668)
    at com.ibm.ws.runtime.component.ApplicationMgrImpl.st art(ApplicationMgrImpl.java:1162)
    at com.ibm.ws.runtime.component.DeployedApplicationIm pl.fireDeployedObjectStart(DeployedApplicationImpl .java:1313)
    at com.ibm.ws.runtime.component.DeployedModuleImpl.st art(DeployedModuleImpl.java:611)
    at com.ibm.ws.runtime.component.DeployedApplicationIm pl.start(DeployedApplicationImpl.java:938)
    at com.ibm.ws.runtime.component.ApplicationMgrImpl.st artApplication(ApplicationMgrImpl.java:740)
    at com.ibm.ws.runtime.component.ApplicationMgrImpl.st art(ApplicationMgrImpl.java:2092)
    at com.ibm.ws.runtime.component.CompositionUnitMgrImp l.start(CompositionUnitMgrImpl.java:437)
    at com.ibm.ws.runtime.component.CompositionUnitImpl.s tart(CompositionUnitImpl.java:122)
    at com.ibm.ws.runtime.component.CompositionUnitMgrImp l.start(CompositionUnitMgrImpl.java:380)
    at com.ibm.ws.runtime.component.CompositionUnitMgrImp l.access$300(CompositionUnitMgrImpl.java:105)
    at com.ibm.ws.runtime.component.CompositionUnitMgrImp l$CUInitializer.run(CompositionUnitMgrImpl.java:92 8)
    at com.ibm.wsspi.runtime.component.WsComponentImpl$_A synchInitializer.run(WsComponentImpl.java:349)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.j ava:1527)
    Caused by: javax.servlet.ServletException: org.apache.axis2.deployment.DeploymentException: org.apache.commons.fileupload.FileUploadException
    at org.apache.axis2.transport.http.AxisServlet.initCo nfigContext(AxisServlet.java:526)
    at org.apache.axis2.transport.http.AxisServlet.init(A xisServlet.java:437)
    ... 28 more
    Caused by: org.apache.axis2.deployment.DeploymentException: org.apache.commons.fileupload.FileUploadException
    at org.apache.axis2.deployment.AxisConfigBuilder.proc essMessageBuilders(AxisConfigBuilder.java:741)
    at org.apache.axis2.deployment.AxisConfigBuilder.popu lateConfig(AxisConfigBuilder.java:202)
    at org.apache.axis2.deployment.DeploymentEngine.popul ateAxisConfiguration(DeploymentEngine.java:641)
    at org.apache.axis2.deployment.WarBasedAxisConfigurat or. (WarBasedAxisConfigurator.java:157)
    at org.apache.axis2.transport.http.AxisServlet.initCo nfigContext(AxisServlet.java:519)
    ... 29 more
    Caused by: java.lang.NoClassDefFoundError: org.apache.commons.fileupload.FileUploadException
    at java.lang.J9VMInternals.verifyImpl(Native Method)
    at java.lang.J9VMInternals.verify(J9VMInternals.java: 72)
    at java.lang.J9VMInternals.initialize(J9VMInternals.j ava:134)
    at java.lang.J9VMInternals.newInstanceImpl(Native Method)
    at java.lang.Class.newInstance(Class.java:1325)
    at org.apache.axis2.deployment.DescriptionBuilder.pro cessMessageBuilders(DescriptionBuilder.java:230)
    at org.apache.axis2.deployment.AxisConfigBuilder.proc essMessageBuilders(AxisConfigBuilder.java:738)
    ... 33 more
    Caused by: java.lang.ClassNotFoundException: org.apache.commons.fileupload.FileUploadException
    at java.lang.Throwable. (Throwable.java:80)
    at java.lang.ClassNotFoundException.(ClassNotFoundExc eption.java:76)
    at org.eclipse.osgi.framework.internal.core.BundleLoa der.findClass(BundleLoader.java:402)
    at org.eclipse.osgi.framework.internal.core.BundleLoa der.findClass(BundleLoader.java:347)
    at org.eclipse.osgi.internal.baseadaptor.DefaultClass Loader.loadClass(DefaultClassLoader.java:83)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:6 09)

  2. Re: ClassNotFoundException:org.apache.commons.fileuplo ad.FileUploadException

    I'm having exactly the same problem. No idea how to fix it. Hope this forum will generate some help.

  3. Re: ClassNotFoundException: org.apache.commons.fileupload.FileUploadException

    rfloyd6@csc.com wrote:
    > I'm having exactly the same problem. No idea how to fix it. Hope this forum will generate some help.


    Try adding the jar to the appserver's classpath and removing it from the
    EAR.

    Ken

  4. Re: ClassNotFoundException:org.apache.commons.fileuplo ad.FileUploadExcepti

    I see the same problem. It can be workarounded by removing commons-fileupload.jar from ...\IBM\WebSphere\AppServer\systemApps\isclite.ear

  5. Re: ClassNotFoundException:org.apache.commons.fileuplo ad.FileUploadExcepti

    The workaround should be removing org.apache.axis2.jar from ...\IBM\WebSphere\AppServer\plugins.

  6. Re: ClassNotFoundException:org.apache.commons.fileuplo ad.FileUploadExcepti

    Hi,
    i have the same problem, I tried to delete org.commons.fileupload under plugin in WebSphere. But the applicationServer had me same problem and exception on the start. I'll hope in some suggestions.
    Bye

  7. Re: ClassNotFoundException:org.apache.commons.fileuplo ad.FileUploadExcepti

    I found this works on Windows, but not Linux. On Linux, WebSphere AS reports several exceptions, and ultimately fails to start. Starts with JFAPInboundChannel:

    [5/12/09 15:42:31:259 GMT] 00000000 ChannelFramew E CHFW0017E: Failed to load transport channel: com.ibm.wsspi.channel.framework.exception.ChannelE xception: Channel descriptor not found for JFAPInboundChannel_1183121908656
    at com.ibm.ws.channel.framework.impl.WSChannelFramewo rkImpl.getChannelType(WSChannelFrameworkImpl.java: 523)
    at com.ibm.ws.channel.framework.impl.WSChannelFramewo rkImpl.addChannel(WSChannelFrameworkImpl.java:415)
    at com.ibm.ws.runtime.component.ChannelFrameworkServi ceImpl.addChannel(ChannelFrameworkServiceImpl.java :821)
    at com.ibm.ws.runtime.component.ChannelFrameworkServi ceImpl.initialize(ChannelFrameworkServiceImpl.java :369)
    at com.ibm.ws.runtime.component.ContainerHelper.initW sComponent(ContainerHelper.java:1166)
    at com.ibm.ws.runtime.component.ContainerHelper.initi alizeComponent(ContainerHelper.java:1073)
    at com.ibm.ws.runtime.component.ContainerHelper.initi alizeComponents(ContainerHelper.java:874)
    at com.ibm.ws.runtime.component.ContainerImpl.initial izeComponents(ContainerImpl.java:780)
    at com.ibm.ws.runtime.component.ContainerImpl.initial izeComponents(ContainerImpl.java:754)
    at com.ibm.ws.runtime.component.ServerImpl.initialize (ServerImpl.java:350)
    at com.ibm.ws.runtime.WsServerImpl.bootServerContaine r(WsServerImpl.java:280)
    at com.ibm.ws.runtime.WsServerImpl.start(WsServerImpl .java:214)
    at com.ibm.ws.runtime.WsServerImpl.main(WsServerImpl. java:666)
    at com.ibm.ws.runtime.WsServer.main(WsServer.java:59)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:45)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:37)
    at java.lang.reflect.Method.invoke(Method.java:599)
    at com.ibm.wsspi.bootstrap.WSLauncher.launchMain(WSLa uncher.java:213)
    at com.ibm.wsspi.bootstrap.WSLauncher.main(WSLauncher .java:93)
    at com.ibm.wsspi.bootstrap.WSLauncher.run(WSLauncher. java:74)
    at org.eclipse.core.internal.runtime.PlatformActivato r$1.run(PlatformActivator.java:78)
    at org.eclipse.core.runtime.internal.adaptor.EclipseA ppLauncher.runApplication(EclipseAppLauncher.java: 92)
    at org.eclipse.core.runtime.internal.adaptor.EclipseA ppLauncher.start(EclipseAppLauncher.java:68)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.ru n(EclipseStarter.java:400)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.ru n(EclipseStarter.java:177)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:45)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:37)
    at java.lang.reflect.Method.invoke(Method.java:599)
    at org.eclipse.core.launcher.Main.invokeFramework(Mai n.java:340)
    at org.eclipse.core.launcher.Main.basicRun(Main.java: 282)
    at org.eclipse.core.launcher.Main.run(Main.java:981)
    at com.ibm.wsspi.bootstrap.WSPreLauncher.launchEclips e(WSPreLauncher.java:330)

    Reports same exception for several other Inbound and Outbound channels, then ultimately:

    [5/12/09 15:42:40:065 GMT] 00000000 ContextManage E SECJ0270E: Failed to get actual credentials. The exception is javax.security.auth.login.LoginException: java.lang.NoClassDefFoundError: com.ibm.wsspi.wssecurity.platform.token.KRBAuthnTo ken
    at com.ibm.ws.security.auth.SubjectHelper.getKerberos AuthnTokenFromSubject(SubjectHelper.java:1636)
    at com.ibm.ws.security.auth.SubjectHelper.getKerberos TicketFromSubject(SubjectHelper.java:681)
    at com.ibm.ws.security.server.lm.wsMapDefaultInboundL oginModule.login(wsMapDefaultInboundLoginModule.ja va:508)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:45)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:37)
    at java.lang.reflect.Method.invoke(Method.java:599)
    at javax.security.auth.login.LoginContext.invoke(Logi nContext.java:795)
    at javax.security.auth.login.LoginContext.access$000( LoginContext.java:209)
    at javax.security.auth.login.LoginContext$4.run(Login Context.java:709)
    at java.security.AccessController.doPrivileged(Access Controller.java:251)
    at javax.security.auth.login.LoginContext.invokePriv( LoginContext.java:706)
    at javax.security.auth.login.LoginContext.login(Login Context.java:603)
    at com.ibm.ws.security.auth.JaasLoginHelper.jaas_logi n(JaasLoginHelper.java:352)
    at com.ibm.ws.security.auth.JaasLoginHelper.jaas_logi n(JaasLoginHelper.java:393)
    at com.ibm.ws.security.auth.ContextManagerImpl.login( ContextManagerImpl.java:3327)
    at com.ibm.ws.security.auth.ContextManagerImpl.login( ContextManagerImpl.java:3208)
    at com.ibm.ws.security.auth.ContextManagerImpl.getSer verSubjectInternal(ContextManagerImpl.java:2311)
    at com.ibm.ws.security.auth.ContextManagerImpl.initia lize(ContextManagerImpl.java:2617)
    at com.ibm.ws.security.auth.ContextManagerImpl.initia lize(ContextManagerImpl.java:2641)
    at com.ibm.ws.security.core.SecurityContext.enable(Se curityContext.java:83)
    at com.ibm.ws.security.core.distSecurityComponentImpl .initialize(distSecurityComponentImpl.java:675)
    at com.ibm.ws.security.core.distSecurityComponentImpl .startSecurity(distSecurityComponentImpl.java:638)
    at com.ibm.ws.security.core.SecurityComponentImpl.sta rtSecurity(SecurityComponentImpl.java:109)
    at com.ibm.ws.security.core.ServerSecurityComponentIm pl.start(ServerSecurityComponentImpl.java:335)
    at com.ibm.ws.runtime.component.ContainerHelper.start Components(ContainerHelper.java:515)
    at com.ibm.ws.runtime.component.ContainerImpl.startCo mponents(ContainerImpl.java:631)
    at com.ibm.ws.runtime.component.ContainerImpl.start(C ontainerImpl.java:621)
    at com.ibm.ws.runtime.component.ApplicationServerImpl .start(ApplicationServerImpl.java:220)
    at com.ibm.ws.runtime.component.ContainerHelper.start Components(ContainerHelper.java:515)
    at com.ibm.ws.runtime.component.ContainerImpl.startCo mponents(ContainerImpl.java:631)
    at com.ibm.ws.runtime.component.ContainerImpl.start(C ontainerImpl.java:621)
    at com.ibm.ws.runtime.component.ServerImpl.start(Serv erImpl.java:520)
    at com.ibm.ws.runtime.WsServerImpl.bootServerContaine r(WsServerImpl.java:298)
    at com.ibm.ws.runtime.WsServerImpl.start(WsServerImpl .java:214)
    at com.ibm.ws.runtime.WsServerImpl.main(WsServerImpl. java:666)

  8. Re: ClassNotFoundException:org.apache.commons.fileuplo ad.FileUploadExcepti

    Class loader

  9. Re: ClassNotFoundException:org.apache.commons.fileuplo ad.FileUploadException

    Hi,

    We are getting the same error again when we tried deploying axis2.war in WAS7. We have also tried the workaround specified in this post, We have also tried seeting class loader as parent last.but still it did not work. Any Suggestions?

    [12/2/09 9:41:41:497 CET] 00000012 FfdcProvider I com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: FFDC Incident emitted on C:\Program Files\IBM\WebSphere\AppServer1\profiles\AppSrv01\l ogs\ffdc\server1_2b732b73_09.12.02_09.41.41.497345 97.txt com.ibm.ws.webcontainer.servlet.ServletWrapper.han dleRequest() 309
    [12/2/09 9:41:41:512 CET] 00000012 webapp E com.ibm.ws.webcontainer.webapp.WebApp logServletError SRVE0293E: [Servlet Error]-[AxisServlet]: org.apache.axis2.deployment.DeploymentException: org.apache.commons.fileupload.FileUploadException
    at org.apache.axis2.deployment.AxisConfigBuilder.proc essMessageBuilders(AxisConfigBuilder.java:741)
    at org.apache.axis2.deployment.AxisConfigBuilder.popu lateConfig(AxisConfigBuilder.java:202)
    at org.apache.axis2.deployment.DeploymentEngine.popul ateAxisConfiguration(DeploymentEngine.java:641)
    at org.apache.axis2.deployment.WarBasedAxisConfigurat or. (WarBasedAxisConfigurator.java:157)
    at org.apache.axis2.transport.http.AxisServlet.initCo nfigContext(AxisServlet.java:519)
    at org.apache.axis2.transport.http.AxisServlet.init(A xisServlet.java:437)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.ini t(ServletWrapper.java:325)
    at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl .init(ServletWrapperImpl.java:165)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.han dleRequest(ServletWrapper.java:628)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.han dleRequest(ServletWrapper.java:443)
    at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl .handleRequest(ServletWrapperImpl.java:175)
    at com.ibm.ws.webcontainer.webapp.WebApp.handleReques t(WebApp.java:3610)
    at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequ est(WebGroup.java:274)
    at com.ibm.ws.webcontainer.WebContainer.handleRequest (WebContainer.java:926)
    at com.ibm.ws.webcontainer.WSWebContainer.handleReque st(WSWebContainer.java:1557)
    at com.ibm.ws.webcontainer.channel.WCChannelLink.read y(WCChannelLink.java:173)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLi nk.handleDiscrimination(HttpInboundLink.java:455)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLi nk.handleNewInformation(HttpInboundLink.java:384)
    at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCa llback.complete(HttpICLReadCallback.java:83)
    at com.ibm.ws.tcp.channel.impl.AioReadCompletionListe ner.futureCompleted(AioReadCompletionListener.java :165)
    at com.ibm.io.async.AbstractAsyncFuture.invokeCallbac k(AbstractAsyncFuture.java:217)
    at com.ibm.io.async.AsyncChannelFuture.fireCompletion Actions(AsyncChannelFuture.java:161)
    at com.ibm.io.async.AsyncFuture.completed(AsyncFuture .java:138)
    at com.ibm.io.async.ResultHandler.complete(ResultHand ler.java:202)
    at com.ibm.io.async.ResultHandler.runEventProcessingL oop(ResultHandler.java:766)
    at com.ibm.io.async.ResultHandler$2.run(ResultHandler .java:896)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.j ava:1527)
    Caused by: java.lang.NoClassDefFoundError: org.apache.commons.fileupload.FileUploadException
    at java.lang.J9VMInternals.verifyImpl(Native Method)
    at java.lang.J9VMInternals.verify(J9VMInternals.java: 72)
    at java.lang.J9VMInternals.initialize(J9VMInternals.j ava:134)
    at java.lang.J9VMInternals.newInstanceImpl(Native Method)
    at java.lang.Class.newInstance(Class.java:1325)
    at org.apache.axis2.deployment.DescriptionBuilder.pro cessMessageBuilders(DescriptionBuilder.java:230)
    at org.apache.axis2.deployment.AxisConfigBuilder.proc essMessageBuilders(AxisConfigBuilder.java:738)
    ... 26 more
    Caused by: java.lang.ClassNotFoundException: org.apache.commons.fileupload.FileUploadException
    at java.lang.ClassNotFoundException.(ClassNotFoundExc eption.java:76)
    at org.eclipse.osgi.framework.internal.core.BundleLoa der.findClass(BundleLoader.java:402)
    at org.eclipse.osgi.framework.internal.core.BundleLoa der.findClass(BundleLoader.java:347)
    at org.eclipse.osgi.internal.baseadaptor.DefaultClass Loader.loadClass(DefaultClassLoader.java:83)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:6 09)
    ... 33 more

    Thanks in advance

+ Reply to Thread