Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to configured myfaces in weblogic 12c

 
Ranch Hand
Posts: 197
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Due to new functionality needs I decide to upgrade my project from .war to .ear

I am using Weblogic version 12c,Myfaces 2.1.8 and Primefaces 5 & maven.

The problem:

When I defined the scope of myfaces to compile I am able to view the main jsf but there is no respond when pressing on any button,menu etc ..., but when I changed the scope to provided then the webapp is working perfectly.

I assume the reason for that is because the weblogic is using the local jsf when the scope is defined as provided.

I probably missing some configuration that is essential to myfaces in order to function properly.

webapp pom:




webapp weblogic.xml


web.xml


Any ideas will be most appreciated

Thanks>
 
Saloon Keeper
Posts: 27933
198
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes, all JEE-compliant versions of WebLogic are going to try and use the JSF that's built into WebLogic itself. Since the JSF core is implementation-independent, "provided" allows getting the core JSF definitions (api) for the compiler's benefit from myfaces but doesn't bundle a copy of myfaces itself into the webapp (WAR).

There are generally ways to override the built-in JSF, but they are specific to the brand and version of the webapp server you are using. Fortunately, we have a WebLogic forum, so I'll bounce this question over there.
 
chen young
Ranch Hand
Posts: 197
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Thank you for the quick answer

My real concern here is in case I can use MyFaces with 12c then would I will be able to use dependency injection and all the nice options that servlet 3 offer ?

Thanks

 
If you were a tree, what sort of tree would you be? This tiny ad is a poop beast.
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic