[
http://jira.jboss.com/jira/browse/JBIDE-1104?page=comments#action_12389627 ]
Juergen Zimmermann commented on JBIDE-1104:
-------------------------------------------
I'm using a "General Project" for the .xml files to be packed into a .sar
file. When the .sar file is produced via the "Project archives" view then the
.sar file is created in the top-level directory of the "General Project".
I'm not using a "Java Project" because the .sar only needs .xml files and
thus there is no reason for a "src" subdirectory.
I also tried to right click on the EAR project's properties and then selected
"J2EE module dependencies". There is a button "Add JARs...". This way
you can add 3rd-party .jar files to be included in the top-level directory of the
(exploded) ear file. However, the following wizard only offers .jar files for the
selection. There is no chance to select others e.g. .sar files.
Well, the .sar file can be created so that the file is placed into the EAR project.
However, the ear packaging issue remains: the deployed and exploded ear doesn't
contain the .sar file and I don't see a way how to add the .sar file to the exploded
ear.
.sar file cannot be included in .ear file
-----------------------------------------
Key: JBIDE-1104
URL:
http://jira.jboss.com/jira/browse/JBIDE-1104
Project: 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