[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-4809) Creating application.xml, jboss-app.xml and datasource files when importing Maven EAR project

asookazian (JIRA) jira-events at lists.jboss.org
Tue Mar 23 18:14:38 EDT 2010


    [ https://jira.jboss.org/jira/browse/JBIDE-4809?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12521524#action_12521524 ] 

asookazian commented on JBIDE-4809:
-----------------------------------

I am experiencing a related issue using Eclipse 3.5.2.SR2 and m2eclipse 0.10.0.  The mvn build (when I run 'mvn clean install') is using a "bad" application.xml presumably generated by m2eclipse when the EAR is constructed (i.e. both packaged and exploded EAR versions have the bad application.xml).  The contents of the bad application.xml look like this:

<module>
    <ejb>com.echo.cis.ejb.dao-1.5.1-SNAPSHOT.ejb</ejb>
  </module>
  <module>
    <ejb>com.echo.cis.editors-1.5.1-SNAPSHOT.ejb</ejb>
  </module>
  <module>
    <ejb>com.echo.cis.crud.dao-1.5.1-SNAPSHOT.ejb</ejb>
  </module>
  <module>
    <ejb>/com.echo.cis.ejb.dao-1.5.1-SNAPSHOT.jar</ejb>
  </module>
  <module>
    <ejb>/com.echo.cis.crud.dao-1.5.1-SNAPSHOT.jar</ejb>
  </module>

Note the ".ejb" extensions on some of the ejb modules above.  The files exist in the EAR with .jar extensions so JBoss AS throws following exception when I deploy the EAR:

09:46:55,671 ERROR [MainDeployer] Could not initialise deployment: file:/C:/java/jboss-4.2.2.GA/server/default/deploy/com.echo.cis.gui.ear-1.5.1-SNAPSHOT.ear/
org.jboss.deployment.DeploymentException: url file:/C:/java/jboss-4.2.2.GA/server/default/deploy/com.echo.cis.gui.ear-1.5.1-SNAPSHOT.ear/com.echo.cis.services.merchant-1.5.1-SNAPSHOT.ejb could not be opened, does it exist?

When I delete the "bad" application.xml in foo/src/main/application/META-INF directory and run 'mvn clean install' again, the application.xml in the packaged or exploded EAR is correct (i.e. all ejb module now have .jar extensions, not .ejb).

> Creating application.xml, jboss-app.xml and datasource files when importing Maven EAR project
> ---------------------------------------------------------------------------------------------
>
>                 Key: JBIDE-4809
>                 URL: https://jira.jboss.org/jira/browse/JBIDE-4809
>             Project: Tools (JBoss Tools)
>          Issue Type: Feature Request
>          Components: maven
>    Affects Versions: 3.1.0.M2
>            Reporter: Snjezana Peco
>            Assignee: Snjezana Peco
>             Fix For: 3.1.1
>
>
> See https://jira.jboss.org/jira/browse/JBIDE-4736?focusedCommentId=12481300#action_12481300 and http://archive.codehaus.org/lists/org.codehaus.m2eclipse.user/msg/4A8A60A6.9040905@redhat.com

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list