1 2 3 Previous Next 39 Replies Latest reply: Sep 12, 2012 11:02 AM by 961719 Go to original post RSS
      • 30. Re: Unable to load JSF2.0 jars on Weblogic Server 10.3.2 start up.
        749137
        1. win xp and linux
        2. 2.1 and you need it.
        3&4. have you deployed jsf-2.0.war?
        • 31. Re: Unable to load JSF2.0 jars on Weblogic Server 10.3.2 start up.
          714028
          Hi,

          I'm using Windows 7 for dev environment but the project will go in production on Solaris which I will try in the next days.
          I was trying only with primefaces 2.2M1 and 2.2RC as I think I mentioned, I will try also with 2.1
          Regarding the jsf-2.0 yes I'm using the war version.

          Thanks.
          G
          • 32. Re: Unable to load JSF2.0 jars on Weblogic Server 10.3.2 start up.
            714028
            In the previous reply I forgot to mention about ear MANIFEST file:
            Do I have to specify the jars class path inside for my jars, actually I did but no changes.

            G
            • 33. Re: Unable to load JSF2.0 jars on Weblogic Server 10.3.2 start up.
              714028
              After I tried with primefaces 2.1 the error is:

              18-Nov-2010 10:26:14 com.sun.faces.config.ConfigureListener contextInitialized
              INFO: Initializing Mojarra 2.0.3 (SNAPSHOT 20100625) for context '/TestWarWLS10.3.3'
              18-Nov-2010 10:26:15 com.sun.faces.config.AnnotationScanner processClasspath
              SEVERE: Unable to process annotations for url, zip:C:/Oracle/Middleware/user_projects/domains/base_domain/servers/AdminServer/tmp/_WL_user/_appsdir_TestWar_dir/yi14mq/APP-INF/lib/primefaces-2.1.jar!/META-INF/faces-config.xml. Reason: java.io.FileNotFoundException: zip:C:/Oracle/Middleware/user_projects/domains/base_domain/servers/AdminServer/tmp/_WL_user/_appsdir_TestWar_dir/yi14mq/APP-INF/lib/primefaces-2.1.jar
              18-Nov-2010 10:26:15 com.sun.faces.config.AnnotationScanner processClasspath
              SEVERE:
              java.io.FileNotFoundException: zip:C:/Oracle/Middleware/user_projects/domains/base_domain/servers/AdminServer/tmp/_WL_user/_appsdir_TestWar_dir/yi14mq/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: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.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.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)
              <18-Nov-2010 10:26:15 o'clock EET> <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

              Caused By: java.lang.ClassNotFoundException: javax.faces.context.ExternalContextFactory
                   at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:280)
                   at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:253)
                   at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
                   at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
                   at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:177)
                   Truncated. see log file for complete stacktrace
              >
              <18-Nov-2010 10:26:15 o'clock EET> <Error> <Deployer> <BEA-149231> <Unable to set the activation state to true for the application '_appsdir_TestWar_dir'.
              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.ClassNotFoundException: javax.faces.context.ExternalContextFactory
                   at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:280)
                   at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:253)
                   at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
                   at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
                   at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:177)
                   Truncated. see log file for complete stacktrace
              >

              If the project example you wrote is not too big can you please send it by email to: ghita.pop1608@gmail.com
              Thanks.

              G
              • 34. Re: Unable to load JSF2.0 jars on Weblogic Server 10.3.2 start up.
                714028
                Hi all,

                I'm curios to hear an Oracle expert opinion about the fix for bug 9542527: WLS THROWS EXCEPTIONS WHEN USING JSF 2.0 EXTENSIONS.
                When I got the patch it didn't say nothing about environment for which can be applied or particular cases in which indeed is solving the error.
                It is obviously that the patch doesn't solve the problem but only for a particular case which I didn't discovered yet.

                I'm disappointed about the Oracle service support, it is obvious that is not in the best interest of the client.
                Thanks.

                G
                • 35. Re: Unable to load JSF2.0 jars on Weblogic Server 10.3.2 start up.
                  838202
                  I think except for the option to upgrade to a new version or applying a patchset there is a workaround that i tried and it worked for me.

                  Problem_
                  It occurs because weblogic 10 is shipped with Mojarra JSF 1.2 and the version that we want to make it work is Mojarra JSF 2.0.

                  Solution_
                  It's a simple fix. In weblogic there is a file called commEnv.bat/sh. If you are running windows edit the bat file, else if you are running Linux/Mac edit the sh file.

                  Search for PRE_CLASSPATH or WEBLOGIC_CLASSPATH and add a complete path to the jsf-api.jar, jsf-impl.jar before weblogic.jar and if you are using Primefaces, just append it afterwords. Restart the server, deploy your application make sure that jsf-api.jar and jsf-impl.jar are there in the lib folder, but you are now free to remove the primefaces jar as it is already loaded by weblogic at server start-up otherwise you will see the same error still your application won't break.

                  Hope this Helps!
                  cheers!
                  http://pythonicway.blogspot.com/

                  Edited by: 835199 on Feb 9, 2011 5:09 AM
                  • 36. Re: Unable to load JSF2.0 jars on Weblogic Server 10.3.2 start up.
                    749137
                    We were talking about weblogic 11g(version 10.3), which is shipped with jsf 2.0. Anyways, the problem is solved and i'm useing 10.3.3 and primefaces 2.2.1 without any problems.
                    • 37. Re: Unable to load JSF2.0 jars on Weblogic Server 10.3.2 start up.
                      859601
                      Hello,
                      I'm trying to create a portlet with JSF 2.0, and now and tried everything, I put the Mojarra implementation in WEBLOGIC_CLASSPATH, I put the library portletfaces-bridge-2.0.0.jar in the following path C:\Oracle\Middleware1033\user_projects\domains\base_domain\lib and in WEB-INF/lib of the project.

                      I always get the same error:

                      GRAVE: JSF1030: la implementaci≤n especificada de InjectionProvider 'com.bea.fac
                      es.WeblogicInjectionProvider' no se puede cargar.
                      10/05/2011 13:09:38 com.sun.faces.spi.InjectionProviderFactory createInstance


                      many thanks
                      • 38. Re: Unable to load JSF2.0 jars on Weblogic Server 10.3.2 start up.
                        Steve Button-Oracle
                        This is a known issue, which was actually raised through the OTN forums and filed as a bug.

                        Since we provided support for JSF 2.0 from WLS 10.3.3 onwards, I believe there is a patch available, for WLS 10.3.3 for this bug.

                        In WLS 10.3.4, this should be included as an out of the box fix.

                        Markus Eisele has a posting on his blog in which he talks about running the RichFaces 4.0 showcase demo successfully on WLS 10.3.4 with JSF 2.0.: http://blog.eisele.net/2011/04/running-richfaces-400final-showcase-on.html

                        Your easiest option would be to upgrade to WLS 10.3.4 if that is possible.

                        If you can't do that, you'll need to file a support TAR and ask about the patch. Note that the patch is only for WLS 10.3.3 so you may not be able to apply it to WLS 10.3.2.

                        -steve-
                        • 39. Re: Unable to load JSF2.0 jars on Weblogic Server 10.3.2 start up.
                          961719
                          How exactly did you get JSF 2.0 running on 10.3.2? I understand that it is preloaded with 1.2 and when i try and use 2.0 it still invokes 1.2.
                          1 2 3 Previous Next