facebook

Web project does not deploy dependant EJB JAR

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

    garysargent
    Member

    Hi,

    I have a Web project which is dependant on a Java project, and an EJB project.

    When I deploy as a packaged WAR file for WebSphere, the Java project JAR file is included in the lib folder, but the EJB JAR file is not – so the Web project doesn’t work.

    I want to deploy the WAR file directly without an EAR file (WebSphere will wrap the WAR to an EAR for me).

    Hope can I get MyEclipse to include the EJB JAR file in the WAR file?

    Thanks,

    Gary.

    #229723 Reply

    Scott Anderson
    Participant

    Gary,

    Hope can I get MyEclipse to include the EJB JAR file in the WAR file?

    No, we can’t deploy an EJB jar inside a war as this is invalid according to the J2EE spec. It appears that Websphere is “fixing” your deployment options automatically, but for proper deployment you really need to specify a simple ear project that includes both the WAR and the EJB jar. The dependent library project can easily be picked up using our dependant project deployment options as documented in the Enterprise Project Quickstart here:
    http://www.myeclipseide.com/images/tutorials/quickstarts/earprojects/

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Web project does not deploy dependant EJB JAR

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