facebook

EAR deployment issue (with EJB/App Client Project)

  1. MyEclipse IDE
  2.  > 
  3. WebSphere Development
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #319998 Reply

    Hi,

    I’m using MyEclipse Blue 9.1 edition now.

    There is a problem when deploying my application, with following scenario:
    EAR Project – TestEAR
    EJB 2.1 Project – TestEJB
    Application Client Project – TestAppClient
    Web Project – TestWEB

    Note that, all above projects are Case-Sensitive.

    TestEAR has been configured/added with all above projects (TestEJB, TestAppClient and TestWEB), by following steps:
    1. Right click the TestEAR project, and choose MyEclipse -> Add and Remove Modules.
    2. Add all above module projects, and change the archive name, eg:
    TestEJB.jar -> testejb.jar
    TestAppClient.jar -> testappclient.jar
    TestWEB.war -> testweb.war

    Note that, application.xml is updated automatically in this case. Also, the same in .mymetadata file created for the TestEAR project. At this point of time, all module archives are in lowercase naming.
    It is then successfully deployed (exploded mode using classic type) into WebSphere 6.1.

    This is a happy flow.

    However, whenever i restarted the MyEclipse, there will be a warning error in the deployed TestEAR.
    By checking the application.xml and .mymetadata file, it is fine as everything as configured in earlier.
    Anyhow, when I further check and verify the modules of TestEAR (by MyEclipse -> Add and Remove Modules), it shows that all archive names are automatically changed to follow the Module Project Name, excepted web module.
    Eg. as configured in earlier time:
    testejb.jar ->TestEJB.jar (changed automatically)
    testappclient.jar -> TestAppClient.jar (changed automatically)
    testweb.war -> testweb.war (remain unchanged)

    This is causing the deployment failure and I need to always rename these archive names after each restart of MyEclipse.

    Any idea if this is a known issue?

    (Note: alternatively, I have to rename all module projects to lowercase, as exactly defined in the application.xml to avoid this restart issue)

    Thanks.

    #320002 Reply

    support-swapna
    Moderator

    eugenetsc,

    Sorry that you are seeing this issue with MyEclipse. I could replicate the issue at my end. I have filed a PR for the dev team to work on it.
    Sorry for the inconvenience caused.

    #320006 Reply

    Hi Swapna,

    I think i’ve found the root cause of this misbehavior.
    For EJB project (2.1), .mymetadata is missing from the project directory.

    So by adding the .mymetadata manually, and configure similar following:

    <?xml version=”1.0″ encoding=”UTF-8″?>
    <project-module
    type=”EJB”
    name=”TestEJBr”
    id=”myeclipse.1317095382318″
    j2ee-spec=”1.4″
    archive=”testejb.jar”>
    <packaging-strategy>com.genuitec.eclipse.blue</packaging-strategy>
    </project-module>

    This is solved my problem. Please kindly forward this to the support team and verify if this is the root cause.

    Cheers.

    #320083 Reply

    support-swapna
    Moderator

    eugenetsc@hotmail.com,

    Thank you posting it. The dev team is investigating the issue.
    Do let us know if you have any issues.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: EAR deployment issue (with EJB/App Client Project)

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