Skip to main content

Unable to read JSF2.0 annotated classes on Weblogic Server startup.

1 reply [Last post]
sudharsanv
Offline
Joined: 2010-03-10
Points: 0

since this is a error specific to JSF2.0 , I am posting it here.
I am using Weblogic11g which comes built in with "JSF1.2". I am trying out the new JSF2.0 extension libraries from "Primefaces" and so I had included "primefaces-2.0.0.jar" and Mojarra's JSF2.0 JARS( JSF2.0 Implementation) in my WEB-INF/lib.

In my "weblogic.xml" I have the following setting:

true

What I see is:
1.) On Server Startup I see an exception ( please see exception below) to the effect that weblogic is unable to load "primefaces-2.0.0.jar" .
2.) However when I try a .xhtml page which uses the new JSF2.0 tags and Primefaces2.0 tags, everything works fine.

Since I have the true in weblogic.xml, I think the web classloader is able to load JSF2.0 and primefaces2.0 correctly at runtime but on server startup weblogic is using his "in-built" JSF1.2 to read "primefaces-2.0.0.jar"(which has JSF2.0 .xsds) and bombs out .

[b]Is there any way to force weblogic to read "primefaces-2.0.0.jar" correctly on server start up?. Is the core issue due to JSF2.0 IMPLEMENTATION not able to load JSF annotated classes correctly on startup?.[/b]
Mar 9, 2010 9:13:28 AM com.sun.faces.config.AnnotationScanner processClasspath
SEVERE: Unable to process annotations for url, zip:C:/ORACLE/middleware/user_projects/domains/wls11_admin/servers/AdminServer/tmp/_WL_user/poc/jje3vo/war/WEB-INF/lib/primefaces-2.0.0.jar!/META-INF/faces-config.xml. Reason: java.io.FileNotFoundException: zip:C:/ORACLE/middleware/user_projects/domains/wls11_admin/servers/AdminServer/tmp/_WL_user/poc/jje3vo/war/WEB-INF/lib/primefaces-2.0.0.jar
Mar 9, 2010 9:13:28 AM com.sun.faces.config.AnnotationScanner processClasspath
SEVERE:
java.io.FileNotFoundException: zip:C:/ORACLE/middleware/user_projects/domains/wls11_admin/servers/AdminServer/tmp/_WL_user/poc/jje3vo/war/WEB-INF/lib/primefaces-2.0.0.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)
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:138)
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:1801)
at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3045)
at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1397)
at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:460)
at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:83)
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:83)
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:83)
at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:409)
at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:54)
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:196)
at weblogic.management.deploy.internal.AppTransition$2.transitionApp(AppTransition.java:30)
at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:233)
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:173)
at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:89)
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)

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Ed Burns

>>>>> On Wed, 10 Mar 2010 08:10:03 -0800 (PST), webtier@javadesktop.org said:

SV> since this is a error specific to JSF2.0 , I am posting it here.

SV> I am using Weblogic11g which comes built in with "JSF1.2". I am
SV> trying out the new JSF2.0 extension libraries from "Primefaces" and
SV> so I had included "primefaces-2.0.0.jar" and Mojarra's JSF2.0 JARS(
SV> JSF2.0 Implementation) in my WEB-INF/lib.

Thanks for your interest. I can officially state that WebLogic is fully
committed to JSF 2.0. However, this is a glassfish forum, so I suggest
you will have better luck getting your question answered on a WebLogic
forum. To find out more about that, please visit
and
click on the "Have Oracle contact you" link.

Ed

--
| edward.burns... | office: 408 884 9519 OR x31640
| homepage: | http://ridingthecrest.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: webtier-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: webtier-help@glassfish.dev.java.net