This discussion is archived
1 2 3 Previous Next 39 Replies Latest reply: Sep 12, 2012 9:02 AM by 961719 Go to original post RSS
  • 15. Re: Unable to load JSF2.0 jars on Weblogic Server 10.3.2 start up.
    770518 Newbie
    Currently Being Moderated
    Just remove the faces-config.xml from the primefaces jar and move it to WEB-INF\faces-config.xml. It will run just fine on WebLogic 10.3.2.
  • 16. Re: Unable to load JSF2.0 jars on Weblogic Server 10.3.2 start up.
    777928 Newbie
    Currently Being Moderated
    Too bad but the problem still exists in Weblogic 10.3.3, even though Oracle added support for Mojarra 2.0.2 using the jsf-2.0.war. Does anybody know if there are better workarounds other than modifying the primefaces.jar?
  • 17. Re: Unable to load JSF2.0 jars on Weblogic Server 10.3.2 start up.
    802883 Newbie
    Currently Being Moderated
    Hi there.

    Are there any good news regarding this issue?

    I'm trying to use IceFaces 2 with Weblogic 10.3.2 and I get the same error:

    04/10/2010 15:32:52 com.sun.faces.config.ConfigureListener contextInitialized
    INFO: Initializing Sun's JavaServer Faces implementation (1.2_03-b04-FCS) for context '/eci-admin-beta'
    SEVERE: Unable to process annotations for url, zip:D:/workspace/eci-admin-betaEAR/EarContent/APP-INF/lib/icefaces.jar!/META-INF/faces-config.xml.  Reason: java.io.FileNotFoundException: zip:D:/workspace/eci-admin-betaEAR/EarContent/APP-INF/lib/icefaces.jar
    04/10/2010 15:32:53 com.sun.faces.config.AnnotationScanner processClasspath
    SEVERE:
    java.io.FileNotFoundException: zip:D:/workspace/eci-admin-betaEAR/EarContent/APP-INF/lib/icefaces.jar
         at weblogic.utils.zip.ZipURLConnection.connect(Handler.java:78)
         at weblogic.utils.zip.ZipURLConnection.getInputStream(Handler.java:53)
         at sun.net.www.protocol.jar.URLJarFile.retrieve(URLJarFile.java:195)
         at sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:50)
         at sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:78)
         at sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:104)
         at sun.net.www.protocol.jar.JarURLConnection.getJarFile(JarURLConnection.java:71)


    I tried several things, none of them was succesful, so any help would be appreciated.
  • 18. Re: Unable to load JSF2.0 jars on Weblogic Server 10.3.2 start up.
    749137 Newbie
    Currently Being Moderated
    Hi all,

    I'm afraid i have little good news. We have been trying to set up a jsf 2.0 web application with primefaces on weblogic 10.3.3, but we quickly ran into problem. First i deployed the jsf-2.0.war file on the server, then i created a web and ear project in eclipse, copyed primefaces-2.1.jar into APP-INF/lib-folder in the ear, setup my faces-config, added a library-ref in weblogic.xml to jsf 2.0, created a sample page and pressed publish. Unfortunately it failed, it could not find the javax.faces.context.ExternalContextFactory class. Which is included in jsf-2.0.war, and therefor should be on the classpath. But i also saw that it couldn't find faces-config.xml since it couldn't find primefaces-2.1.jar, both files are there... so i googled and google told me about this thread. Strangely enough, once i copyed all .jar-files from jsf-2.0.war into my ear project the error messages regarding ExternalContextFactory disappeared. But only if i kept my the library-ref in weblogic.xml. The error message regarding primefaces-2.1.jar were still there, but i was able to deploy test project. It even worked, at lease my testing page containing only one spinner with no business logic.. I'm using Weblogic 10.3.3.0, primefaces 2.1 and jsf(2.0,1.0.0.0_2-0-2).

    Serverlog without jsf jars in ear:

    <20.okt.2010 kl 10.54 CEST> <Notice> <StdErr> <BEA-000000> <20.okt.2010 10:54:01 com.sun.faces.config.ConfigureListener contextInitialized
    INFO: Initializing Mojarra 2.0.2 (SNAPSHOT 20091216) for context '/MY_WEB'>
    <20.okt.2010 kl 10.54 CEST> <Notice> <StdErr> <BEA-000000> <20.okt.2010 10:54:02 com.sun.faces.config.AnnotationScanner processClasspath
    SEVERE: Unable to process annotations for url, zip:D:/some/path/MY_WEB_EAR/EarContent/APP-INF/lib/primefaces-2.1.jar!/M
    ETA-INF/faces-config.xml. Reason: java.io.FileNotFoundException: zip:D:/some/path/MY_WEB_EAR/EarContent/APP-INF/lib/pr
    imefaces-2.1.jar>
    <20.okt.2010 kl 10.54 CEST> <Notice> <StdErr> <BEA-000000> <20.okt.2010 10:54:02 com.sun.faces.config.AnnotationScanner processClasspath
    SEVERE:
    java.io.FileNotFoundException: zip:D:/some/path/MY_WEB_EAR/EarContent/APP-INF/lib/primefaces-2.1.jar
    at weblogic.utils.zip.ZipURLConnection.connect(Handler.java:78)
    at weblogic.utils.zip.ZipURLConnection.getInputStream(Handler.java:53)
    at sun.net.www.protocol.jar.URLJarFile.retrieve(URLJarFile.java:195)
    at sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:50)
    at sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:80)
    at sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:104)
    at sun.net.www.protocol.jar.JarURLConnection.getJarFile(JarURLConnection.java:71)
    at com.sun.faces.config.AnnotationScanner.processClasspath(AnnotationScanner.java:290)
    at com.sun.faces.config.AnnotationScanner.getAnnotatedClasses(AnnotationScanner.java:215)
    at com.sun.faces.config.ConfigManager$AnnotationScanTask.call(ConfigManager.java:765)
    at com.sun.faces.config.ConfigManager$AnnotationScanTask.call(ConfigManager.java:736)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    at java.util.concurrent.FutureTask.run(FutureTask.java:139)
    at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:329)
    at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:223)
    at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:481)
    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:181)
    at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1863)
    at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3127)
    at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1512)
    at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:486)
    at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:427)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:43)
    at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
    at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:201)
    at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:249)
    at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:427)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:43)
    at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
    at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:28)
    at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:1269)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:43)
    at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:409)
    at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:58)
    at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161)
    at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
    at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:569)
    at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:150)
    at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:116)
    at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:323)
    at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:844)
    at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1253)
    at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:440)
    at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:164)
    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java
    :195)
    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:13)
    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:69)
    at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)>
    <20.okt.2010 kl 10.54 CEST> <Warning> <HTTP> <BEA-101162> <User defined listener com.sun.faces.config.ConfigureListener failed: java.lang.NoClassDefFoundError: javax/faces/context/ExternalContextFactory.
    java.lang.NoClassDefFoundError: javax/faces/context/ExternalContextFactory
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
    at weblogic.utils.classloaders.GenericClassLoader.defineClass(GenericClassLoader.java:328)
    Truncated. see log file for complete stacktrace

    <20.okt.2010 kl 10.54 CEST> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID '1287564841628' for task
    '2'. Error is: 'weblogic.application.ModuleException: '
    weblogic.application.ModuleException:
    at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1514)
    at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:486)
    at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41)
    at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
    Truncated. see log file for complete stacktrace

    Caused By: java.lang.NoClassDefFoundError: javax/faces/context/ExternalContextFactory
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
    at weblogic.utils.classloaders.GenericClassLoader.defineClass(GenericClassLoader.java:328)
    Truncated. see log file for complete stacktrace

    <20.okt.2010 kl 10.54 CEST> <Error> <Deployer> <BEA-149202> <Encountered an exception while attempting to commit the 9 task for the application 'MY_WEB_EAR'.>
    <20.okt.2010 kl 10.54 CEST> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating deploy task for application 'MY_WEB_EAR'.>
    <20.okt.2010 kl 10.54 CEST> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
    weblogic.application.ModuleException:
    at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1514)
    at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:486)
    at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41)
    at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
    Truncated. see log file for complete stacktrace

    Caused By: java.lang.NoClassDefFoundError: javax/faces/context/ExternalContextFactory
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
    at weblogic.utils.classloaders.GenericClassLoader.defineClass(GenericClassLoader.java:328)
    Truncated. see log file for complete stacktrace



    Serverlog with jsf jars in ear:

    <20.okt.2010 kl 10.56 CEST> <Notice> <StdErr> <BEA-000000> <20.okt.2010 10:56:25 com.sun.faces.config.ConfigureListener contextInitialized
    INFO: Initializing Mojarra 2.0.2 (SNAPSHOT 20091216) for context '/MY_WEB'>
    <20.okt.2010 kl 10.56 CEST> <Notice> <StdErr> <BEA-000000> <20.okt.2010 10:56:25 com.sun.faces.config.AnnotationScanner processClasspath
    SEVERE: Unable to process annotations for url, zip:D:/some/path/MY_WEB_EAR/EarContent/APP-INF/lib/primefaces-2.1.jar!/META-INF/faces-config.xml. Reason: java.io.FileNotFoundException: zip:D:/some/path/MY_WEB_EAR/EarContent/APP-INF/lib/primefaces-2.1.jar>
    <20.okt.2010 kl 10.56 CEST> <Notice> <StdErr> <BEA-000000> <20.okt.2010 10:56:25 com.sun.faces.config.AnnotationScanner processClasspath
    SEVERE:
    java.io.FileNotFoundException: zip:D:/some/path/MY_WEB_EAR/EarContent/APP-INF/lib/primefaces-2.1.jar
    at weblogic.utils.zip.ZipURLConnection.connect(Handler.java:78)
    at weblogic.utils.zip.ZipURLConnection.getInputStream(Handler.java:53)
    at sun.net.www.protocol.jar.URLJarFile.retrieve(URLJarFile.java:195)
    at sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:50)
    at sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:80)
    at sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:104)
    at sun.net.www.protocol.jar.JarURLConnection.getJarFile(JarURLConnection.java:71)
    at com.sun.faces.config.AnnotationScanner.processClasspath(AnnotationScanner.java:290)
    at com.sun.faces.config.AnnotationScanner.getAnnotatedClasses(AnnotationScanner.java:215)
    at com.sun.faces.config.ConfigManager$AnnotationScanTask.call(ConfigManager.java:765)
    at com.sun.faces.config.ConfigManager$AnnotationScanTask.call(ConfigManager.java:736)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    at java.util.concurrent.FutureTask.run(FutureTask.java:139)
    at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:329)
    at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:223)
    at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:481)
    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:181)
    at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1863)
    at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3127)
    at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1512)
    at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:486)
    at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:427)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:43)
    at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
    at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:201)
    at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:249)
    at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:427)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:43)
    at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
    at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:28)
    at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:1269)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:43)
    at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:409)
    at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:58)
    at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161)
    at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
    at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:569)
    at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:150)
    at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:116)
    at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:323)
    at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:844)
    at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1253)
    at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:440)
    at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:164)
    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:195)
    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:13)
    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:69)
    at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)>

    Any ideas what is going on? Is the bug still in 10.3.3.0? Maybe I should open a support case on this issue.
  • 19. Re: Unable to load JSF2.0 jars on Weblogic Server 10.3.2 start up.
    807042 Newbie
    Currently Being Moderated
    I am having the same problem with 10.3.3 and primefaces 2.2...

    Please update this thread, if you make progress on this.
  • 20. Re: Unable to load JSF2.0 jars on Weblogic Server 10.3.2 start up.
    749137 Newbie
    Currently Being Moderated
    I will keep you posted, i created a support case on this last week.
  • 21. Re: Unable to load JSF2.0 jars on Weblogic Server 10.3.2 start up.
    164415 Oracle ACE
    Currently Being Moderated
    Just to close this issue out.

    I recently verified that the fix for this is contained in the next minor release that will ship -- WLS 10.3.4. As usual this release will be available as patchset 3 for upgrades, or as a full installer download via OTN.

    I have seen a few backports being done for this to WLS 10.3.3 so it looks like it is being handled nicely as needed before WLS 10.3.4 ships.

    cheers
    -steve-
  • 22. Re: Unable to load JSF2.0 jars on Weblogic Server 10.3.2 start up.
    749137 Newbie
    Currently Being Moderated
    I just received a patch for weblogic 10.3.3 from oracle support! :)

    If you need it, ask for a fix for bug 9542527: WLS THROWS EXCEPTIONS WHEN USING JSF 2.0 EXTENSIONS
  • 23. Re: Unable to load JSF2.0 jars on Weblogic Server 10.3.2 start up.
    164415 Oracle ACE
    Currently Being Moderated
    That's great, let us know how it goes.

    -steve-
  • 24. Re: Unable to load JSF2.0 jars on Weblogic Server 10.3.2 start up.
    714028 Newbie
    Currently Being Moderated
    Hi,

    I got the path from Oracle support and apply it for WLS 10.3.3 version but the error is still there.
    Here is my environment:

    WebLogic Server 10.3.3.0
    JSF Mojarra 2.0.3
    Primefaces 2.2M1

    Activated the class loader providing my jsf jars. I even tried with the bundled one from WLS 10.3.3
    <prefer-web-inf-classes>true</prefer-web-inf-classes>

    The error is:

    java.io.FileNotFoundException: zip:C:/Oracle/Middleware/user_projects/domains/base_domain/servers/AdminServer/tmp/_WL_user/XXX/uopeuz/war/WEB-INF/lib/primefaces-2.2.M1.jar
         at weblogic.utils.zip.ZipURLConnection.connect(Handler.java:78)
         at weblogic.utils.zip.ZipURLConnection.getInputStream(Handler.java:53)
         at sun.net.www.protocol.jar.URLJarFile.retrieve(URLJarFile.java:195)
         at sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:50)
         at sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:80)
         at sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:104)
         at sun.net.www.protocol.jar.JarURLConnection.getJarFile(JarURLConnection.java:71)
         at com.sun.faces.config.AnnotationScanner.processClasspath(AnnotationScanner.java:298)
         at com.sun.faces.config.AnnotationScanner.getAnnotatedClasses(AnnotationScanner.java:217)
         at com.sun.faces.config.ConfigManager$AnnotationScanTask.call(ConfigManager.java:762)
         at com.sun.faces.config.ConfigManager$AnnotationScanTask.call(ConfigManager.java:733)
         at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
         at java.util.concurrent.FutureTask.run(FutureTask.java:138)
         at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:326)
         at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:220)
         at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:481)
         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:181)
         at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1863)
         at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3126)
         at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1512)
         at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:486)
         at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41)
         at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
         at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
         at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:247)
         at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41)
         at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
         at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:27)
         at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:1267)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41)
         at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:409)
         at weblogic.application.internal.SingleModuleDeployment.activate(SingleModuleDeployment.java:43)
         at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161)
         at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
         at weblogic.deploy.internal.targetserver.BasicDeployment.activate(BasicDeployment.java:184)
         at weblogic.deploy.internal.targetserver.BasicDeployment.activateFromServerLifecycle(BasicDeployment.java:361)
         at weblogic.management.deploy.internal.DeploymentAdapter$1.doActivate(DeploymentAdapter.java:51)
         at weblogic.management.deploy.internal.DeploymentAdapter.activate(DeploymentAdapter.java:200)
         at weblogic.management.deploy.internal.AppTransition$2.transitionApp(AppTransition.java:30)
         at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:240)
         at weblogic.management.deploy.internal.ConfiguredDeployments.activate(ConfiguredDeployments.java:169)
         at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:123)
         at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:180)
         at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:96)
         at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)

    I tried deploying it as exploded war also but the same result.

    Do I need to do something else, maybe other configuration?

    Thanks.

    G
  • 25. Re: Unable to load JSF2.0 jars on Weblogic Server 10.3.2 start up.
    749137 Newbie
    Currently Being Moderated
    Hi,

    It works for me with 2.1, 2.2M1 and 2.2RC1, i'm not using <prefer-web-inf-classes>true</prefer-web-inf-classes>...
  • 26. Re: Unable to load JSF2.0 jars on Weblogic Server 10.3.2 start up.
    714028 Newbie
    Currently Being Moderated
    Hi,

    Thanks to user8740046 for his advice, I removed the option <prefer-web-inf-classes>true</prefer-web-inf-classes> from weblogic.xml and now is working for me also.

    G
  • 27. Re: Unable to load JSF2.0 jars on Weblogic Server 10.3.2 start up.
    714028 Newbie
    Currently Being Moderated
    Hi,

    For user8740046 but not only.

    Could you please share your configuration and the jars included which are related to the primefaces because it stopped working for me after a while and I don't understand why because I didn't change any configuration or added more jars in my application.

    Thanks.

    G
  • 28. Re: Unable to load JSF2.0 jars on Weblogic Server 10.3.2 start up.
    749137 Newbie
    Currently Being Moderated
    Let me guess, you put the primefaces .jar-file in your EAR?

    This should give you a page with an empty table...

    web.xml:

    <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
    <display-name>TestCase_WEB</display-name>

    <!-- for EL 2.2 -->
    <context-param>
    <param-name>com.sun.faces.expressionFactory</param-name>
    <param-value>com.sun.el.ExpressionFactoryImpl</param-value>
    </context-param>

    <!-- end EL 2.2 -->
    <servlet>
    <servlet-name>Faces Servlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>-1</load-on-startup>
    </servlet>

    <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>*.xhtml</url-pattern>
    </servlet-mapping>

    <!-- end add -->

    <context-param>
    <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
    <param-value>.xhtml</param-value>
    </context-param>

    <!-- END Disable original theme in primefaces -->

    <welcome-file-list>
    <welcome-file>index.xhtml</welcome-file>
    </welcome-file-list>

    <servlet>
    <servlet-name>Resource Servlet</servlet-name>
    <servlet-class>org.primefaces.resource.ResourceServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>Resource Servlet</servlet-name>
    <url-pattern>/primefaces_resource/*</url-pattern>
    </servlet-mapping>
    </web-app>


    weblogic.xml:

    <?xml version="1.0" encoding="UTF-8"?>
    <wls:weblogic-web-app xmlns:wls="http://xmlns.oracle.com/weblogic/weblogic-web-app" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd http://xmlns.oracle.com/weblogic/weblogic-web-app http://xmlns.oracle.com/weblogic/weblogic-web-app/1.1/weblogic-web-app.xsd">
    <wls:weblogic-version>10.3.3</wls:weblogic-version>
    <wls:context-root>TestCase_WEB</wls:context-root>
    <wls:library-ref>
    <wls:library-name>jsf</wls:library-name>
    <wls:specification-version>2.0</wls:specification-version>
    <wls:exact-match>true</wls:exact-match>
    </wls:library-ref>
    </wls:weblogic-web-app>

    weblogic-application.xml:

    <?xml version="1.0" encoding="UTF-8"?>
    <wls:weblogic-application xmlns:wls="http://xmlns.oracle.com/weblogic/weblogic-application" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/javaee_5.xsd http://xmlns.oracle.com/weblogic/weblogic-application http://xmlns.oracle.com/weblogic/weblogic-application/1.1/weblogic-application.xsd">
    <!--weblogic-version:10.3.3-->
    <wls:application-param>
    <wls:param-name>webapp.encoding.default</wls:param-name>
    <wls:param-value>UTF-8</wls:param-value>
    </wls:application-param>
    </wls:weblogic-application>


    index.xhtml:

    <html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:p="http://primefaces.prime.com.tr/ui">

    <h:head>
    <title>sdasdas</title>
    </h:head>

    <h:body>

    <h:form>

    <p:dataTable var="car" value="#{tableBean.cars}" paginator="true"
    rows="10"
    paginatorTemplate="{CurrentPageReport} {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
    rowsPerPageTemplate="5,10,15">
    <f:facet name="header">
    Ajax Pagination
    </f:facet>

    <p:column>
    <f:facet name="header">
    <h:outputText value="Model" />
    </f:facet>
    <h:outputText value="#{car.model}" />
    </p:column>

    <p:column>
    <f:facet name="header">
    <h:outputText value="Year" />
    </f:facet>
    <h:outputText value="#{car.year}" />
    </p:column>

    <p:column>
    <f:facet name="header">
    <h:outputText value="Manufacturer" />
    </f:facet>
    <h:outputText value="#{car.manufacturer}" />
    </p:column>

    <p:column>
    <f:facet name="header">
    <h:outputText value="Color" />
    </f:facet>
    <h:outputText value="#{car.color}" />
    </p:column>
    </p:dataTable>

    </h:form>


    <p:keyboard />

    </h:body>
    </html>


    faces-config.xml:
    <?xml version="1.0" encoding="utf-8"?>
    <faces-config xmlns="http://java.sun.com/xml/ns/javaee"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd"
         version="2.0">

    </faces-config>

    tablebean.java:

    package org.primefaces.examples.view;

    import java.io.Serializable;
    import java.util.ArrayList;
    import java.util.List;
    import java.util.UUID;

    public class TableBean implements Serializable {
         public class Car {
              

              public Car(String randomModel, int randomYear, String randomManufacturer, String randomColor) {
                   super();
                   this.year = randomYear;
                   this.model = randomModel;
                   this.manufacturer = randomManufacturer;
                   this.color = randomColor;
              }
              int     year;
              String     model, manufacturer, color;
              
              public int getYear() {
                   return year;
              }
              public void setYear(int year) {
                   this.year = year;
              }
              public String getModel() {
                   return model;
              }
              public void setModel(String model) {
                   this.model = model;
              }
              public String getManufacturer() {
                   return manufacturer;
              }
              public void setManufacturer(String manufacturer) {
                   this.manufacturer = manufacturer;
              }
              public String getColor() {
                   return color;
              }
              public void setColor(String color) {
                   this.color = color;
              }

              

         }

         private final static String[]     colors;

         private final static String[]     manufacturers;

         static {
              colors = new String[10];
              colors[0] = "Black";
              colors[1] = "White";
              colors[2] = "Green";
              colors[3] = "Red";
              colors[4] = "Blue";
              colors[5] = "Orange";
              colors[6] = "Silver";
              colors[7] = "Yellow";
              colors[8] = "Brown";
              colors[9] = "Maroon";

              manufacturers = new String[10];
              manufacturers[0] = "Mercedes";
              manufacturers[1] = "BMW";
              manufacturers[2] = "Volvo";
              manufacturers[3] = "Audi";
              manufacturers[4] = "Renault";
              manufacturers[5] = "Opel";
              manufacturers[6] = "Volkswagen";
              manufacturers[7] = "Chrysler";
              manufacturers[8] = "Ferrari";
              manufacturers[9] = "Ford";
         }

         private List<Car>                    cars;

         public TableBean() {
              cars = new ArrayList<Car>();

              populateRandomCars(cars, 50);
         }

         private void populateRandomCars(List<Car> list, int size) {
              for (int i = 0; i < size; i++)
                   list.add(new Car(getRandomModel(), getRandomYear(), getRandomManufacturer(),
                             getRandomColor()));
         }

         public List<Car> getCars() {
              return cars;
         }

         private int getRandomYear() {
              return (int) (Math.random() * 50 + 1960);
         }

         private String getRandomColor() {
              return colors[(int) (Math.random() * 10)];
         }

         private String getRandomManufacturer() {
              return manufacturers[(int) (Math.random() * 10)];
         }

         private String getRandomModel() {
              return UUID.randomUUID().toString().substring(0, 8);
         }
    }
  • 29. Re: Unable to load JSF2.0 jars on Weblogic Server 10.3.2 start up.
    714028 Newbie
    Currently Being Moderated
    Hi user8740046,

    I have a couple of questions regarding the example you sent for which I thank you.

    1. What operating system are you using?
    2. What version of Primefaces are you using because org.primefaces.resource.ResourceServlet is used only by old versions like 1.1 or 1.2? As far as I know the resource is deprecated or at least doesn't need to be configured for late versions like primefaces 2.2M1 or 2.2RC.
    3. All my jars are in EAR lib and the FileNoFound exception doesn't appear now but when I want to use any class from primefaces I get an error, for example trying to use FileUploadFilter:

    <17-Nov-2010 13:34:06 o'clock EET> <Error> <HTTP> <BEA-101371> <There was a failure when processing annotations for application C:\Oracle\Middleware\user_projects\domains\base_domain\autodeploy\TestWar\TestWarWLS10.3.3. Please make sure that the annotations are valid. The error is org.primefaces.webapp.filter.FileUploadFilter>
    <17-Nov-2010 13:34:06 o'clock EET> <Error> <Deployer> <BEA-149205> <Failed to initialize the application '_appsdir_TestWar_dir' due to error weblogic.application.ModuleException: Failed to load webapp: '/TestWarWLS10.3.3'.
    weblogic.application.ModuleException: Failed to load webapp: '/TestWarWLS10.3.3'
         at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:404)
         at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:176)
         at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:199)
         at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:507)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41)
         Truncated. see log file for complete stacktrace

    Caused By: java.lang.ClassNotFoundException: org.primefaces.webapp.filter.FileUploadFilter
         at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:280)
         at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:253)
         at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:56)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
         Truncated. see log file for complete stacktrace

    Did you run in a similar situation, or is something missing on my part. Because if I put the jars back in WEB-INF/lib I can use any class but the FileNotFound will appear again.
    4.Do you know is the ClassLoader activated for war?

    Thank you in advance.

    G

Legend

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