This discussion is archived
4 Replies Latest reply: Jul 14, 2013 9:05 AM by user1881425 RSS

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

730037 Newbie
Currently Being Moderated
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,
  • 1. Re: ClassNotFoundException-javax.faces.application.ProjectStage - deploy of WAR
    164415 Oracle ACE
    Currently Being Moderated
    This seems like a JDeveloper packaging issue perhaps, or at least needs some knowledge of the JDeveloper packaging process:

    The deployment error:
    [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]
    Seems to indicate that the weblogic.xml file you are embedding, has a <library-ref> element pointing to a JSF 2.0 shared-library deployed on WLS -- and that shared-library is not available.

    So you fixed it by doing this:
    Deployment -> Edit WAR deployment profile -> WEB-INF/LIB -> Contributors : checked jsf2.0, jstl1.2, jstl1.2tags
    And thus, you have JSF 2.0 packaged in the WEB-INF/lib.

    Can you check that it is actually included in the WEB-INF/lib directory of your WAR file? Perhaps it's not being included for some reason.

    Have you also tried deploying the WLS jsf-2.0.war shared-library to the server you are deploying the web app to?

    -steve-
  • 2. Re: ClassNotFoundException-javax.faces.application.ProjectStage - deploy of WAR
    730037 Newbie
    Currently Being Moderated
    Thanks for the response Steve! I think you were right. This is what I did to resolve the issue:

    Copied from

    D:\Oracle\Middleware\oracle_common\modules\oracle.jsf_2.0

    the following files:

    Glassfish.jstl_1.2.0.1.jar, jsf-api.jar, jsf-impl.jar,jsf-ri-20.war

    to

    D:\myProject\ViewController\public_html\WEB-INF\lib


    Now the deployment process has moved 1 step forward but now I am running into new errors. Will be posting them soon if I cannot resolve them by googling.

    Thanks again!
  • 3. Re: ClassNotFoundException-javax.faces.application.ProjectStage - deploy of WAR
    730037 Newbie
    Currently Being Moderated
    Could someone please let me know how to

    Have you also tried deploying the WLS jsf-2.0.war shared-library to the server you are deploying the web app to?

    Thanks,
  • 4. Re: ClassNotFoundException-javax.faces.application.ProjectStage - deploy of WAR
    user1881425 Newbie
    Currently Being Moderated

    What weblogic application server version you are using?

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points