What dependencies do I need to add to Glassfish folders?

3

Talk about it!

I'm using the Hibernate framework in my JSF project. On the computer I'm developing it's all right, running though, when I try to deploy to the glassfish server on another machine it starts giving some errors saying that the classes do not have methods X and Y and etc. My question is, if I have already added the jars in the project buildpath, do I need to insert them also in the glassfish folder? Which folder would it be? Do I add only the Hibernate libraries or the jBoss libraries too?

Thank you!

    
asked by anonymous 06.12.2015 / 17:30

1 answer

0

You need to encapsulate all external libs you use in your project, that is, link them to your build build, or use an automated build manager (Maven, Ant, Gradle, etc.), I personally recommend Maven for ease of use.

If you want more details:
1. Include in glassfish the libs:
Copy the libs to the directory domain1 \ lib \ classes, with this action, the JARs will go directly to the classpath
2. Include the JARs in the LIB folder in your EAR
Copy the JARS to the project lib folder (APP-INF \ lib)

For more details on how to use maven, visit the following url: link

    
29.01.2016 / 14:37