[jbosstools-issues] [JBoss JIRA] Reopened: (JBIDE-1104) .sar file cannot be included in .ear file
Juergen Zimmermann (JIRA)
jira-events at lists.jboss.org
Sun Jan 27 08:08:21 EST 2008
[ http://jira.jboss.com/jira/browse/JBIDE-1104?page=all ]
Juergen Zimmermann reopened JBIDE-1104:
---------------------------------------
Max, the standard way is to put jboss-service.xml in META-INF inside a SAR archive.
A SAR archive can be in an EAR archive whereever you want it to be. You specify the
location inside META-INF/jboss-app.xml. There you have e.g.
<module>
<sar>
abc.sar
</sar>
</module>
IMHO having a top-level location as in the example above is the easiest way. However,
JBossTools ignore top-level SARs when deploying an EAR project.
Since there is the workaround, namely to place SARs inside META-INF, I still consider this as a bug. However, I the fix could be deferred somewhere in the future -- later than 2.1
> .sar file cannot be included in .ear file
> -----------------------------------------
>
> Key: JBIDE-1104
> URL: http://jira.jboss.com/jira/browse/JBIDE-1104
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: JBossAS
> Affects Versions: 2.0.0.Beta4
> Environment: JBoss Tools nightly build 20071017
> Reporter: Juergen Zimmermann
> Assigned To: Rob Stryker
> Fix For: 2.1
>
>
> I need a .ear file which contains a .sar file (service archive for JBoss). Such a .sar file is declared in META-INF/jboss-app.xml of the EAR project "hska" as follows:
> <jboss-app>
> <security-domain>java:/jaas/hska</security-domain>
> <module>
> <service>hska.sar</service>
> </module>
> </jboss-app>
> I have a "General Project" named hskaSAR which has a META-INF subdirectory for the xml files of the .sar file. Creating hskaSAR/hska.sar via the "Project Archives" view of JBoss Tools works fine. However, there is no possibility to include the .sar file within the (exploded) .ear.
> I tried to edit and extend the file .settings/org.eclipse.wst.common.component within the EAR project as follows:
> <dependent-module deploy-path="/" handle="module:/classpath/lib/hskaSAR/hska.sar">
> <dependency-type>uses</dependency-type>
> </dependent-module>
> However, this workaround doesn't work.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbosstools-issues
mailing list