facebook

Deploying to JBoss 4.2.2 – how to exclude Hibernate jars?

  1. MyEclipse Archived
  2.  > 
  3. Application Servers and Deployment
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #281610 Reply

    matthewPL
    Member

    Hi everyone,

    I’m developing a J2EE application with Hibernate 3.2 and I’m deploying it to Jboss 4.2.2. As we all know – Jboss have already included all necessary Hiberante libraries and there is no sense to put some others in WEB-ING/lib folder during deployment.

    However, I have to have those jars in my project build path in order to properly compile my classes. If I add MyEclipse Library – Hibernate 3.2 to my project build path everything is ok, I have no compilation error, but why does MyEclipse put Hibernate jar’s to my WEB-INF/lib folder, especially, in the same moment it’s not put javaee.jar, jsf-impl.jar and other Java EE 5 libraries… How can I exclude those jar’s from deployment?

    I think I had already seen somewhere in MyEclipse a checkbox “Copy Hibernate libraries to web-inf/folder”. Where can I find it, and chagne this value to: “off” ?

    Looking forward for any answer,
    Greetings,
    Matthew

    #281644

    Loyal Water
    Member

    Matthew,
    Instead of the MyEclipse Library, you will have to add a user library with the hibernate jars to your build path and then go to Windows > Preferences > MyEclipse > Java Enterprise project > EAR project and uncheck “User Lib Jars exported from dependent java project”.

    You can refer to this doc incase you get stuck.
    http://www.myeclipseide.com/documentation/quickstarts/earprojects/#dependent_projects

    #281646

    matthewPL
    Member

    @support-nipun wrote:

    Matthew,
    Instead of the MyEclipse Library, you will have to add a user library with the hibernate jars to your build path and then go to Windows > Preferences > MyEclipse > Java Enterprise project > EAR project and uncheck “User Lib Jars exported from dependent java project”.

    You can refer to this doc incase you get stuck.
    http://www.myeclipseide.com/documentation/quickstarts/earprojects/#dependent_projects

    Thanks a lot, I’ve already found that solution myself.

    #281649

    Loyal Water
    Member

    Glad you figured out the solution.

    #283704

    OBERONASSOCIATES
    Participant

    This message has not been recovered.

    #283706

    Loyal Water
    Member

    This message has not been recovered.

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: Deploying to JBoss 4.2.2 – how to exclude Hibernate jars?

You must be logged in to post in the forum log in