4 Replies Latest reply: Jul 14, 2013 11:05 AM by user1881425 RSS

    ClassNotFoundException-javax.faces.application.ProjectStage - deploy of WAR

    730037
      Hello All,

      We are trying to deploy the ViewController project, of a jsf/adf based application, to a WAR file. We are migrating our application from 10g to 11g. We have successfully gone past all the comilation errors and now trying deployment.

      We were getting the following error and got around it by checking - ViewController -> rt. Click ProjectProperties -> Deployment -> Edit WAR deployment profile -> WEB-INF/LIB -> Contributors : checked jsf2.0, jstl1.2, jstl1.2tags

      Error while deployment: [12:52:11 PM] [Deployer:149193]Operation 'deploy' on application 'webapp1' has failed on 'AdminServer'
      [12:52:11 PM] [Deployer:149034]An exception occurred for task [Deployer:149026]deploy application webapp1 on AdminServer.: Failed to load webapp: 'webapp1.war'.
      [12:52:12 PM] Weblogic Server Exception: weblogic.application.ModuleException: Failed to load webapp: 'webapp1.war'
      [12:52:12 PM] Caused by: weblogic.management.DeploymentException: Error: Unresolved Webapp Library references for "ServletContext@16785362[app:webapp1 module:webapp1.war path:/coagov spec-version:2.5]", defined in weblogic.xml [Extension-Name: jsf, Specification-Version: 2, exact-match: false]



      NOW, we get the following error and the deployment is unsuccessful

      [04:16:59 PM] Deploying Application...
      [04:19:58 PM] [Deployer:149193]Operation 'deploy' on application 'webapp1' has failed on 'AdminServer'
      [04:19:58 PM] [Deployer:149034]An exception occurred for task [Deployer:149026]deploy application webapp1 on AdminServer.: javax.faces.application.ProjectStage.
      [04:19:58 PM] Weblogic Server Exception: weblogic.application.WrappedDeploymentException: javax.faces.application.ProjectStage
      [04:19:58 PM] See server logs or server console for more details.
      [04:19:58 PM] weblogic.application.WrappedDeploymentException: javax.faces.application.ProjectStage
      [04:19:58 PM] Deployment cancelled.
      [04:19:58 PM] ---- Deployment incomplete ----.
      [04:19:58 PM] Remote deployment failed (oracle.jdevimpl.deploy.common.Jsr88RemoteDeployer)


      From log-
      java.lang.ClassNotFoundException: javax.faces.application.ProjectStage
           at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:297)
           at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:270)
           at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:64)
           at java.lang.ClassLoader.loadClass(ClassLoader.java:305)
           at java.lang.ClassLoader.loadClass(ClassLoader.java:246)
           at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:179)
           at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:43)


      Please help!!!

      Thanks,