[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 15 13:58:30 EDT 2008


    [ http://jira.jboss.com/jira/browse/JBIDE-1104?page=comments#action_12412919 ] 
            
Jonathan Fields commented on JBIDE-1104:
----------------------------------------

Hi Max,

Thanks for the help. I've been able to use Project Archives and was able to create my .sar file. In particular, I now have

     project-ear/EarContent/project-jmx.sar

along with my other utility jars.

But, it does not get published to the project-ear.ear folder in JBoss deploy folder. I tried both full and incremental.

Do I need to add project-jmx.sar as a Utility Jar? If so, I cannot figure out how to do that. In Import > J2EE Utility Jar > Utility Jar Import - Select Import Type, my choices are to copy an external jar into the EAR, or link an external jar into the EAR. Neither of these seems appropriate. I tried copy an external jar into the EAR, thinking I'd just choose project-jmx.sar itself, but I cannot do that since it has a .sar extension, not a .jar extension, and thus is not included in the list of jars. 

So it seems like I'm still stuck.

Should I move this discussion to the forum instead of JIRA?

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