This discussion is archived
4 Replies Latest reply: Feb 26, 2013 2:39 PM by JuliánIsaza RSS

JSF 2 and Primefaces with  WLS 11gR1(10.3.6) problem

924797 Newbie
Currently Being Moderated
Hi all,

I would like to create a web application in OEPE, which uses JSF 2 and Primefaces 3.2 and then deploy & develop onto WLS.
I added the primefaces jar to WEB-INF/lib.

See my publishing stacktrace below.

(I tried using the Shared JSF libraries and including jsf-api and impl in WEB-INF/lib, but neither of these options worked.)

Do you have any ideas what I am doing wrong? Thanks,
András Liter

<2012.04.14. 21:32:21 CEST> <Error> <javax.enterprise.resource.webcontainer.jsf.config> <BEA-000000> <Unexpected exception when attempting to tear down the Mojarra runtime
java.lang.IllegalStateException: Application was not properly initialized at startup, could not find Factory: javax.faces.application.ApplicationFactory
     at javax.faces.FactoryFinder$FactoryManager.getFactory(
     at javax.faces.FactoryFinder.getFactory(
     at com.sun.faces.config.InitFacesContext.getApplication(
     at com.sun.faces.config.ConfigureListener.contextDestroyed(
     at weblogic.servlet.internal.EventsManager$
     at weblogic.servlet.internal.EventsManager.notifyContextDestroyedEvent(
     at weblogic.servlet.internal.WebAppServletContext.destroy(
     at weblogic.servlet.internal.ServletContextManager.destroyContext(
     at weblogic.servlet.internal.HttpServer.unloadWebApp(
     at weblogic.servlet.internal.WebAppModule.destroyContexts(
     at weblogic.servlet.internal.WebAppModule.deactivate(
     at weblogic.application.internal.flow.ModuleStateDriver$2.previous(
     at weblogic.application.utils.StateMachineDriver.previousState(
     at weblogic.application.utils.StateMachineDriver.previousState(
     at weblogic.application.internal.flow.ModuleStateDriver.deactivate(
     at weblogic.application.internal.flow.ScopedModuleDriver.deactivate(
     at weblogic.application.internal.flow.ModuleListenerInvoker.deactivate(
     at weblogic.application.internal.flow.DeploymentCallbackFlow$2.previous(
     at weblogic.application.utils.StateMachineDriver.previousState(
     at weblogic.application.utils.StateMachineDriver.previousState(
     at weblogic.application.internal.flow.DeploymentCallbackFlow.deactivate(
     at weblogic.application.internal.flow.DeploymentCallbackFlow.deactivate(
     at weblogic.application.internal.BaseDeployment$2.previous(
     at weblogic.application.utils.StateMachineDriver.previousState(
     at weblogic.application.utils.StateMachineDriver.nextState(
     at weblogic.application.internal.BaseDeployment.activate(
     at weblogic.application.internal.EarDeployment.activate(
     at weblogic.application.internal.DeploymentStateChecker.activate(
     at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(
     at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(
     at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(
     at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(
     at weblogic.deploy.internal.targetserver.operations.StartOperation.doCommit(
     at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(
     at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(
     at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(
     at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(
     at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(
     at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(
     at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(
     at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$
<2012.04.14. 21:32:21 CEST> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID '1334431938841' for task '32'. Error is: 'weblogic.application.ModuleException: '
     at weblogic.servlet.internal.WebAppModule.startContexts(
     at weblogic.servlet.internal.WebAppModule.start(
     at weblogic.application.internal.flow.ModuleStateDriver$
     at weblogic.application.utils.StateMachineDriver.nextState(
     at weblogic.application.internal.flow.ModuleStateDriver.start(
     Truncated. see log file for complete stacktrace
Caused By: \Oracle\Middleware\Oracle_OSB1\soa\connectors\FileAdapter.rar!fileAdapter.jar (The system cannot find the file specified)
     at Method)
     at java.util.jar.JarFile.<init>(
     at java.util.jar.JarFile.<init>(
     at com.sun.faces.facelets.util.Classpath.getAlternativeJarFile(
     Truncated. see log file for complete stacktrace
  • 1. Re: JSF 2 and Primefaces with  WLS 11gR1(10.3.6) problem
    csoto Pro
    Currently Being Moderated

    I think the problem here is that perhaps OEPE inludes JSF 1.2 and JSF 2.0 was not loaded when running your app, and JSF 1.2 was being used instead, and the two are not compatible.

    Take a look at the URLs below:

    Hope this helps.

  • 2. Re: JSF 2 and Primefaces with  WLS 11gR1(10.3.6) problem
    924797 Newbie
    Currently Being Moderated
    Hey Chris,

    thanks for the tip, but unfortunately I still couldn't solve the problem with creating User libraries as well. However, I decided to narrow down the problem, so I excluded Primefaces and just wanted to create a simple JSF 2 application, but I still get the ZipFile error... :S :S

    I wonder what could I do wrong, there must be a way to make a JSF2 project from OEPE work with WLS 10.3.6... :S :S

  • 3. Re: JSF 2 and Primefaces with  WLS 11gR1(10.3.6) problem
    164415 Oracle ACE
    Currently Being Moderated
    Hi --

    I just tried using OEPE against a WLS install to build and deploy a JSF 2.0 application and it worked successfully.

    The project is here if you want to take a look:

    The only minor gotcha I found was that I needed to reorder the libraries on the project so that the Shared-Library[jsf] was higher than the WebLogic System Library - this then let me use the JSF 2.0 programming API successfully instead of the 1.2 version that is included in the WLS System Library.

    Here's a couple of screen shots of the facet and project as well as the overall development environment:

    For that zip file error, one thing perhaps is to Check your CLASSPATH setting to see if it has an entry for that FileAdapter.rar. I don't know why it's causing that problem but if it's in the CLASSPATH try removing it and then starting the server.
  • 4. Re: JSF 2 and Primefaces with  WLS 11gR1(10.3.6) problem
    JuliánIsaza Newbie
    Currently Being Moderated
    Hi , solved the problem ?, I have the same problem....thanks for your answer...



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