I am trying to migrate an application from JBoss 4.0.5 to JBoss 6.1.0. I use ant for deployment. This is my application.xml file.
<?xml version="1.0" encoding="UTF-8"?>
<application xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_6.xsd"
version="6">
<application-name>Fantana</application-name>
<module>
<ejb>fantana.jar</ejb>
</module>
<module>
<web>
<web-uri>fantantaWeb.war</web-uri>
<context-root>/</context-root>
</web>
</module>
<module>
<web>
<web-uri>fantanaTerm.war</web-uri>
<context-root>/</context-root>
</web>
</module>
</application>
When I deploy I have the following files generated in the "deploy" folder of the server.
fantana.jar
fantana.war
fantanaWeb.war
fantanaTerm.war
When runnning the server I get the following issue:
15:34:29,296 WARN [Digester] Empty stack (returning null)
15:34:29,319 INFO [TomcatDeployment] deploy, ctxPath=/crud
15:34:29,364 ERROR [AbstractKernelController] Error installing to Real: name=vfs:///D:/abujdei/develop/jboss-6.1.0.Final/server/brendolan/deploy/fantana.war state=PreReal mode=Manual requiredState=Real: org.jboss.deployers.spi.DeploymentException: Error deploying: jboss.naming:application=fantana
Caused by: java.lang.IllegalStateException: jboss.naming:application=fantana is already installed.
I know this issue has been adressed before but I am unable to understand why this happends. If necessary I can provide more information. Thank you.