[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-1104) .sar file cannot be included in .ear file
Jonathan Fields (JIRA)
jira-events at lists.jboss.org
Thu May 8 13:34:00 EDT 2008
[ http://jira.jboss.com/jira/browse/JBIDE-1104?page=comments#action_12412216 ]
Jonathan Fields commented on JBIDE-1104:
----------------------------------------
Hi All,
I just voted for this. I am very pleased with JBoss Tools, especially the incremental deployment.
However, I have several EAR applications developed using the old JBossIDE packaging, that include numerous MBeans packaged in SAR archives, configured using jboss-service.xml.
I was disappointed to see that I was unable to migrate these projects to JBoss Tools, as-is, due to the lack of support for SAR archives in an EAR. I think that supporting SAR archives as a project type is the way to go. This is afterall, JBoss tools, and a SAR archive is a supported module type in a JBoss EAR ;-)
What I have done as a workaround is move my MBeans into the EJB project, and used the JBoss @Service and @Management attributes to configure the MBeans as extended EJB3 "service objects" in the EJB module. This gets me 90% there, with virtually no code changes, but I have lost the ability to configure MBean attributes via jboss-service.xml. I have replaced that configuration with a properties file.
This all works, but I'd still like to be able to include SAR archives in my EAR as a "first class" module type, as I could before.
Also, what about the other module types - HAR (Hibernate Archive) and RAR? Although I don't expect that people will need HAR anymore with EJB3 and/or Seam.
Thanks,
Jon
> .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: LATER
>
>
> 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