What dependencies do I need to add to the Glassfish folders?

Asked

Viewed 87 times

3

Fala galera!

I am using the Hibernate framework in my JSF project. On the computer I’m developing is all right, running though, when I try to deploy on the glassfish server on another machine starts to give errors saying that the classes do not have X and Y methods and so on. My question is, if I already added the jars in the project’s Buildpath, do I need to insert them into the glassfish folder as well? Which folder would it be in? I only add the Hibernate or jboss libraries as well?

Thank you!

1 answer

0

It is necessary that you encapsulate all external libs that you use in your project, that is, link them in your build generation, 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 libs in glassfish:
Copy the libs to the domain1 lib classes directory, with this action, the Jars will enter directly to the classpath
2. Include Jars in the LIB folder in your EAR
Copy JARS to project LIB folder (APP-INF lib)

For more details on how to use Maven, go to the following url: https://maven.apache.org/guides/getting-started/

Browser other questions tagged

You are not signed in. Login or sign up in order to post.