facebook

something is missing while building and deploy EAR project

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #279831 Reply

    Girish Pandit
    Participant

    I was trying below scenario:

    1. Create EAR Project
    2. Have one Web Project and one EJB project
    3. Add Struts capability to the Web Project –> this would copy Struts and its dependent libraries to WEB-INF/lib folder
    4. Add Hibernate capability to the EJB Project
    5. add/write your class files to the respective projects
    6. Now try deploying EAR project to any J2EE server (I used WL 10), you would notice that the resultant EAR file does not have hibernate libraries. though web project is fine because it already has required jar files copied.
    7. I looked at the .classpath file under EJB project and noticed that there is some reference of HIBERNATE constant defined in MyEclipse, which is making IDE to compile EJB code but not deploying it when EAR is being deployed.
    8. I also tried to do EXPORT to EAR but same issue no Hibernate files.
    9. Now if I have go and manually add those jar files then where do I get list of jar files that is defined in HIBNERATE constant. On top do I really have to the manual copy of the jar file.

    I think something is missing in the whole process. As I did not mentioned about having a user defined common Java Project as part of EAR deployment because there is already a question pending.

    Thanks
    Girish

    #279874 Reply

    Loyal Water
    Member

    Girish,
    I’m afraid you will have to manually copy the libraries for the ejb. You can go to Windows > Preferences > MyEclipse > Project Capabilities > Hibernate and get the list of jars.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: something is missing while building and deploy EAR project

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