3 Replies Latest reply on Sep 22, 2010 2:57 PM by Lelo Pieri

    Problem deploying simple application (NoClassDefFoundError)

    Matthias Richter Newbie

      While deploying a very simple JSF 2 / Richfaces 3.3.3 application I get the stacktrace below. This happens on Weblogic 9.2 and Tomcat.

       

      My thoughts on this:

       

      richfaces-ui-3.3.3.Final.jar!/META-INF/faces-config.xml references org.richfaces.component.FileUploadPhaselistener. FileUploadPhaselistener has the dependency to FileUploadException which is not in the richfaces-ui-3.3.3.Final.jar but it is in richfaces-impl-jsf2-3.3.3.Final.jar which is on the classpath.

       

      I'm totally stuck on this, any help is appreciated!

       

      Regards

       

      Matthias

       

       

       

       

      INFO: Unsanitized stacktrace from failed start...
      com.sun.faces.config.ConfigurationException:
        Source Document: zip:/Users/matthias/........../war/WEB-INF/lib/richfaces-ui-3.3.3.Final.jar!/META-INF/faces-config.xml
        Cause: Class 'org.richfaces.component.FileUploadPhaselistener' is missing a runtime dependency: java.lang.NoClassDefFoundError: org/ajax4jsf/exception/FileUploadException
          at com.sun.faces.config.processor.AbstractConfigProcessor.createInstance(AbstractConfigProcessor.java:281)
          at com.sun.faces.config.processor.LifecycleConfigProcessor.addPhaseListeners(LifecycleConfigProcessor.java:132)
          at com.sun.faces.config.processor.LifecycleConfigProcessor.process(LifecycleConfigProcessor.java:111)
          at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:114)
          at com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:223)
          at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:335)
          at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:223)
          at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:376)
          at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
          at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
          at weblogic.servlet.internal.EventsManager.notifyContextCreatedEvent(EventsManager.java:82)
          at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1616)
          at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:2761)
          at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:889)
          at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:333)
          at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
          at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
          at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
          at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
          at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:117)
          at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
          at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
          at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
          at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:26)
          at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:635)
          at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
          at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:212)
          at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:154)
          at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:80)
          at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:566)
          at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:136)
          at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:104)
          at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:320)
          at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:815)
          at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1222)
          at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:433)
          at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:161)
          at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:181)
          at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:12)
          at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:67)
          at weblogic.work.ServerWorkManagerImpl$WorkAdapterImpl.run(ServerWorkManagerImpl.java:518)
          at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
          at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
      Caused by: java.lang.NoClassDefFoundError: org/ajax4jsf/exception/FileUploadException
          at java.lang.Class.getDeclaredConstructors0(Native Method)
          at java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
          at java.lang.Class.getConstructor0(Class.java:2671)
          at java.lang.Class.newInstance0(Class.java:321)
          at java.lang.Class.newInstance(Class.java:303)
          at com.sun.faces.config.processor.AbstractConfigProcessor.createInstance(AbstractConfigProcessor.java:270)
          ... 42 more
      <10.06.2010 14.12 Uhr CEST> <Warning> <HTTP> <BEA-101162> <User defined listener com.sun.faces.config.ConfigureListener failed: com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! org/ajax4jsf/exception/FileUploadException.
      com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! org/ajax4jsf/exception/FileUploadException
          at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:354)
          at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:223)
          at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:376)
          at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
          at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
          Truncated. see log file for complete stacktrace
      java.lang.NoClassDefFoundError: org/ajax4jsf/exception/FileUploadException
          at java.lang.Class.getDeclaredConstructors0(Native Method)
          at java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
          at java.lang.Class.getConstructor0(Class.java:2671)
          at java.lang.Class.newInstance0(Class.java:321)
          at java.lang.Class.newInstance(Class.java:303)
          Truncated. see log file for complete stacktrace