[jboss-jira] [JBoss JIRA] (WFCORE-700) jboss deployment structure error when two deployments share the same dependency
Tomaz Cerar (JIRA)
issues at jboss.org
Wed Jul 22 11:00:15 EDT 2015
[ https://issues.jboss.org/browse/WFCORE-700?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13091795#comment-13091795 ]
Tomaz Cerar commented on WFCORE-700:
------------------------------------
never mind my previous comment, saw the attached reproducer in BZ.
it would work for you if you would do something like this
{code:title=jboss-deployment-structure.xml}
<jboss-deployment-structure>
<deployment>
<dependencies>
<module name="deployment.mylib.jar" />
</dependencies>
</deployment>
</jboss-deployment-structure>
{code}
and add jboss-all.xml
{code:title=jboss-all.xml}
<jboss umlns="urn:jboss:1.0">
<jboss-deployment-dependencies xmlns="urn:jboss:deployment-dependencies:1.0">
<dependency name="mylib.jar" />
</jboss-deployment-dependencies>
</jboss>
{code}
and have that for both ears.
Also keep in mind that you will probably want to add deps for also sub modules of your ear ( <sub-deployment name="myapp.war">...)
> jboss deployment structure error when two deployments share the same dependency
> -------------------------------------------------------------------------------
>
> Key: WFCORE-700
> URL: https://issues.jboss.org/browse/WFCORE-700
> Project: WildFly Core
> Issue Type: Bug
> Affects Versions: 2.0.0.Alpha2
> Reporter: Enrique González Martínez
> Assignee: Enrique González Martínez
>
> When two deployments depend on the same library it could throw and IOException.
> The problem is located in {code} org.jboss.as.server.deployment.module.descriptor.JBossDeploymentStructureParser12 {code}
> * When it is executed in sequence
> *# The first time is called with the argument "path", VFS is using RootFileSystem and it is considered a file.
> *# Once it is called the second time, VFS is using JavaZipFileSystem (is mounted during the first call) and this time is not considered a file.
> * When is executed in parallel
> *# both of them are using RootFileSystem. The second time VirtualFile.isFile is called throws an exception (Caused by: java.io.IOException: VFS000017: Filesystem already mounted at mount point)
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
More information about the jboss-jira
mailing list