facebook

5.5M2 – EJB3 Enterprise Project bugs?

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #269018 Reply

    loester
    Member

    I think this is a real bug:

    When I create a new Enterprise Application Project using the New Project wizard, the modules “myprojectEJB” and “myprojectWeb” are automatically assigned to my enterprise project called “myproject”.

    Now when I close MyEclipse and then restart it, in the “Problems” pane the error “No project modules assigned to enterprise project” shows up. This is the first bug I think.

    I then right-clicked on “myproject” -> MyEclipse -> Add and Remove Modules. In the “Module Projects” dialog I then click the “add” button to add “myprojectEJB” and “myprojectWeb” once again to “myproject”. However, only “myprojectWeb” is in the list, “myprojectEJB” isn’t there and so can’t be added…

    My application.xml looks like this (and didn’t change after restarting MyEclipse):

    <application>
    <display-name>myproject</display-name>
    <module id=”myeclipse.1176882701347″>
    <web>
    <web-uri>myprojectWeb.war</web-uri>
    <context-root>/myprojectWeb</context-root>
    </web>
    </module>
    <module id=”myeclipse.1176882701958″>
    <ejb>myprojectEJB.jar</ejb>
    </module>
    </application>

    #269019 Reply

    loester
    Member

    Should also add that when I try to deploy “myproject” after restarting MyEclipse, only a map “myproject/META-INF” containing the files “application.xml” and “MANIFEST.MF” is copied to my JBoss deploy directory.

    #269047 Reply

    loester
    Member

    Sorry, forgot to add that the problem does not occur simply by restarting Eclipse. The steps to reproduce that error:

    1. Make a new enterprise application project, using J2EE 5.
    2. Close the 3 projects (project, projectWeb, projectEJB) generated and delete them from eclipse.
    3. Choose file -> import -> existing project from workspace. Select the map containing the three projects. Import all projects.

    Now you should see the problem. It’s not a very big problem, but pretty anoying anyway if like me you do your programming at work, then put the project on USB stick and import it at home.

    #269096 Reply

    loester
    Member

    Could you please comment on the two screenshots I’ve taken from the errors? Any recommendations on how to resolve this very annoying issue?

    http://i19.tinypic.com/4i3kvig.jpg
    http://i16.tinypic.com/491f4ab.jpg

    #269133 Reply

    loester
    Member

    Bypassed the bug myself – at work I copied the whole workspace including .metadata (about 10 MB) to my USB stick, and then at home I replaced my default workspace with the workspace on the USB stick. Not optimal, but it works.

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: 5.5M2 – EJB3 Enterprise Project bugs?

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