facebook

Ear, ejb, war and commons jar error when are deployed

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

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

    junglika
    Member

    Hello:
    i have a project divide in five projects:

      – p1EAR
      – p2EJB
      – p3WAR
      – p4Common
      – p5CommonWeb

    and two jars, one common by all ear and the other only common to war

      – common1.jar
      – common2.jar

    my question is, Its possible deploy the next structure¿?

              - p1EAR
                    |
                     - p2EJB.jar
                    |
                     - p2WAR.war
                             |
                               - p4CommonWeb
                               - common1.jar
                     - p5Common
                     - common2.jar (uses by ejb and war)

    thanks

    #252902

    Riyad Kalla
    Member

    What kind of projects are p4Common and p5COmmonWeb? If they are Java projects, then yes, this is definately dooable.

    #252910

    junglika
    Member

    Yes p4Common an p5CommonWeb are java projects. (I use MyEclipseIDE 5.0M1)

    Now my configuration is:

      – p1EAR:
      – Project References: p4Common, p2EJB and p3WAR
      – p2EJB:
      – Project References: p4Common
      – Java Built Path:
      – Projects: p4Common
      – libraries: common2.jar [Exported]

    – p3WAR:

      – Project References: p4Common, p5CommonWeb, p2EJB
      – Java Built Path:
      – Projects: p4Common, p5CommonWeb, p2EJB
      – libraries: common1.jar[No Exported], common2.jar [Exported]

    And deployments configuration is:

      EAR:
      – Dependent Java Project Deployment Policy:
      – Jar dependent Java Project (see Notice)

    – Library Deplyment Policies [Only Marked]:

      – Jars exported from dependent Java projects

    EJB:

      – Dependent Java Project Deployment Policy:
      – Ignore

    WAR:

      – Web Project Dependent Project Deploy Policy:
      – Jar dependent Java Project output and place in ‘lib’ directory
      – Library Deplyment Policies [Only Marked]:
      – Jars on web project build-path

    Whith this configuration, in war project replicate libraries, put all the libraries that contain builth path and ignore the attribute exported in “Order and Exporter”. Example of result:

                 - EAR: (contain)
                        |
                          - common2.jar
                  - WAR(contain in /lib)
                        |
                          - common1.jar [no exported]
                          - common2.jar [exported]

    How is the error??

    Thanks again!!!

    #252912

    junglika
    Member

    Im sorry i have an error whith the code, the result is:

    
           - p1EAR: (contain) 
                | 
                  - p2EJB
                  - p1WAR(contain in /lib) 
                        | 
                          - common1.jar [no exported] 
                          - common2.jar [exported]
                          - p5CommonWeb.jar [Correct]
                          - p4Common.jar       [No Correct]
                  -p4Common [Repited]
    

    i try to mark p4Common like export, but deployment ignore it.

    #252922

    Riyad Kalla
    Member

    Your common libraries that are shared across more than one project need to go into the root of your EAR, please have a look at section 9.1 of this doc for more info:
    http://www.myeclipseide.com/images/tutorials/quickstarts/earprojects/

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Ear, ejb, war and commons jar error when are deployed

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