jsf and eclipse setup. Lib in Explorer is different than lib in tomcat. How come?

Posted by user384706 on Stack Overflow See other posts from Stack Overflow or by user384706
Published on 2010-12-31T11:22:39Z Indexed on 2010/12/31 12:54 UTC
Read the original article Hit count: 191

Filed under:
|
|
|

Hi,

I am starter in JSF2.0, and I have a question related to Eclipse (I am using Helios).
1)I create a Dynamic Project
2)I add JSF project facet.
3)I choose JSF user library (I have created it using MyFaces)
All ok so far.
I notice though that in the Project Explorer in WebContent/WEB-INF/lib the lib directory is empty instead of having MyFaces jars.
The application works fine though.
I looked into this and the jars are actually being placed in the corresponding lib directory of the app deployed under wtpwebapps of the Tomcat instance of eclipse in the .pluggins directory.
Ok, it works but IMHO it is incorrect to have the Project Explorer inconsistent with the directories actually deployed.
I.e. lib is shown empty in Project Explorer but with jars under wtpwebapps.
Am I wrong to dislike this inconsistency?
Is this how it should work or am I doing something wrong in the way I am setting my project?
Thanks!

© Stack Overflow or respective owner

Related posts about java

Related posts about eclipse