[GLASSFISH-19849] how to solve the situation when two JSF-implementations existed Created: 13/Mar/13  Updated: 29/May/13  Resolved: 29/May/13

Status: Closed
Project: glassfish
Component/s: web_container
Affects Version/s: 3.1.2
Fix Version/s: None

Type: Bug Priority: Blocker
Reporter: houtang Assignee: Ed Burns
Resolution: Invalid Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

every


Tags: jsf

 Description   

Hi, all:

When I deploy a web application to the GFV3 or GFV4. The server.log shows the error message as "Both MyFaces and the RI are on your classpath. Please make sure to use only one of the two JSF-implementations." , I want to know whether any of you have been met this situation before and tell me how to avoid this error message.

The error message comes out when I deployed the attached web application though the application can be deployed successfully.

I have also attached the server.log.(http://www.java.net/comment/reply/895588#comment-form

Thanks
houtang



 Comments   
Comment by Shing Wai Chan [ 13/Mar/13 ]

Assign to jsf team for further investigation.

Comment by Ed Burns [ 29/May/13 ]

I looked at this BalusC posting on StackOverflow.

http://stackoverflow.com/questions/10290123/myfaces-jsf-impl-with-glassfish-3-1-not-working

That post talks about how to make it so the bundled MyFaces impl takes priority over the one from the container.

It seems you are trying to do the opposite: to make the bundled MyFaces be ignored. If that's true, the only safe way to do that is to not bundle it in the war in the first place.

I hope this is an acceptable resolution. Really, it is not a best practice to bundle things in a WAR unless you actually plan to use them. Doing so can have unintended side-effects.

Comment by Ed Burns [ 29/May/13 ]

I looked at this BalusC posting on StackOverflow.

http://stackoverflow.com/questions/10290123/myfaces-jsf-impl-with-glassfish-3-1-not-working

That post talks about how to make it so the bundled MyFaces impl takes priority over the one from the container.

It seems you are trying to do the opposite: to make the bundled MyFaces be ignored. If that's true, the only safe way to do that is to not bundle it in the war in the first place.

I hope this is an acceptable resolution. Really, it is not a best practice to bundle things in a WAR unless you actually plan to use them. Doing so can have unintended side-effects.

Generated at Fri May 22 18:46:51 UTC 2015 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.