Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Imported JSF project is missing user library JARs

I have a JSF project which uses Apache MyFaces libraries and and JSTL jars along with Primefaces 3.5. When I import this project in another workspace, all the annotations in the Managed Beans are not recognised. In the project's build path, it shows JSF 2.0 (Apache MyFaces JSF Core-2.0 API 2.0.2) and JSTL libraries without any jars. I use Tomcat.

JSF 2.0 library in the original project contains the following jars:

commons-beanutils-1.8.3.jar
commons-codec-1.3.jar
commons-collections-3.2.jar
commons-digester-1.8.jar
commons-discovery-0.4.jar
commons-logging-1.1.1.jar
myfaces-api-2.0.2.jar
myfaces-impl-2.0.2.jar

And my JSTL library contains the following in the original project:

javax.servlet.jsp.jstl-1.2.1.jar
javax.servlet.jsp.jstl-api-1.2.1.jar

These are missing in the imported project when I see the build path. Am I missing any steps? Need help in configuring.

like image 816
Rajath Avatar asked Feb 17 '26 09:02

Rajath


1 Answers

JAR files referenced by custom defined user libraries in Eclipse are indeed not exported along the project when you choose "Export as Eclipse project" option. The importer is supposed to have the very same user libraries in its Eclipse environment.

You have several options:

  1. Create the same user libraries yourself.

  2. Use "Export as WAR" option instead. Eclipse will include the libraries in /WEB-INF/lib.

  3. Manually include those JARs in project's /WEB-INF/lib yourself.

like image 108
BalusC Avatar answered Feb 19 '26 16:02

BalusC



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!