Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSF classloading issue with weblogic version 12.2  RSS feed

 
shivam verma
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using jsf2.0 version in my application. But at runtime jsf version 2.2 file is getting downloaded.
weblogic.xml file is deployed in our application. This issue is specific to version 12.2.Same application files tested with weblogic 12.1 working fine.
Thanks.
 
Tim Holloway
Bartender
Posts: 18531
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am afraid I do not understand you.

Recent editions of WebLogic, like all JEE-compliant full-stack webapp containers have a particular version of JSF built into WebLogic itself. Which version of JSF depends on which version of WebLogic you are using.
 
shivam verma
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the reply. But I don't want to use jsf version built into WebLogic server.I am using my own jsf-impl.jar of version 2.0 which is deployed in application web-inf/lib location.
My application is not picking jsf-impl.jar from web-inf/lib application location but picked from somewhere else from the server and jar picked is of version 2.2.checked from jsf.js loading in browser at runtime.

As per my understanding weblogic.xml file is used to handle such cases in weblogic but same is not working in this particular version.
 
Tim Holloway
Bartender
Posts: 18531
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, you can instruct WebLogic to use an override version of JSF.

And originally this was done by including the JSF implementation library you wanted in the WAR along with some special directives in web.xml.

I just checked the latest docs, however, and it looks like they're no longer doing it that way. From what I can see, WLS now comes with legacy versions of JSF pre-installed and I think that you can also install your own JSF implementations in the WLS server common library set instead of in the WAR. The decision on which JSF implementation to use is now done in the weblogic.xml file rather than the WEB-INF/web.xml file.

For more information: https://docs.oracle.com/cd/E17904_01/web.1111/e13712/configurejsfandjtsl.htm
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!