facebook

deployer incorrectly deploys ejb project with dots in name

💡
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. Bugs
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #232271 Reply

    I have an ejb project named xxx.yyy. When I deploy it I get an xxx.yyy folder in the application server instead of an xxx.yyy.jar folder.

    I notiched that the .mymetadata file is like:
    <project-module
    type=”EJB”
    name=”xxx.yyy”
    id=”myeclipse.2059470588235″
    j2ee-spec=”1.4″
    archive=”xxx.yyy” />

    The archive attribute is wrong.

    Changing the .mymetadata file to

    <project-module
    type=”EJB”
    name=”xxx.yyy”
    id=”myeclipse.2059470588235″
    j2ee-spec=”1.4″
    archive=”xxx.yyy.jar” />

    Doesn’t solve the problem either.

    What can I do?

    #232279

    Riyad Kalla
    Member

    You need to rename the project to “xxx.yyy.jar”, the reason the extension of the project is honored when deployed is to help support custom archives (for example in JBoss) that some apps ervers supprot, these can be RAR, SAR, MAR, etc. etc. so what we did is implement a universal mechanism to support any extension type for our deployed projects.

    #232305

    You should just respect the archive=… value in the .mymetadata file. I think that this is enough to support any custom extension like rar sar par etc.

    #232309

    Riyad Kalla
    Member

    I have filed this enhancement, thank you.

    #232310

    crazyyoyo
    Member

    +1 for this enhancement, I am facing the same problem and tried to rename the archive value in .mymetadata with no result.

    #232462

    There is more to it…

    If I deploy my ejb project xxx.yyy inside an ear then the project is deployed correctly within an xxx.yyy.jar folder but the application.xml is like:

    
    <?xml version="1.0" encoding="UTF-8"?>
    <application xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.4" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/application_1_4.xsd">
      <display-name>sampleapplication</display-name>
      <module id="myeclipse.2059470588235">
        <ejb>exodus.ecentric</ejb>
      </module>
    </application>
    

    Notice that the module name containes the .jar extension!

    #232469

    Riyad Kalla
    Member

    Did you mean “does NOT contain”?

    #232540

    Sorry about that. I meant “does NOT contain”.

    #232545

    Riyad Kalla
    Member

    ok got it, adding it to the report, thanks.

Viewing 9 posts - 1 through 9 (of 9 total)
Reply To: deployer incorrectly deploys ejb project with dots in name

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