Search code examples
javamigrationjboss7.xseamjboss-4.2.x

How to migrate myproject.war file and myproject-ds.xml file to JBoss AS 7


Till now i run war file in jboss-4.2.2.GA,windows7 in that i had deployed myproject.war and myproject- ds.xml in server/default/deploye then its working fine.

now i want migrate jboss-as-7.1.1.Final,windows7 in that i will deployee myproject.war.dodeploye and myproject-ds.xml file in standalone/deployments but its shows exception

 13:55:29,304 ERROR 

[org.jboss.as.server.deployment.scanner]
 (DeploymentScanner-t hreads - 1) {"JBAS014653: Composite operation
 failed and was rolled back. Steps that failed:" => {"Operation step-2"
 => {"JBAS014671: Failed services" => {"jbos s.deployment.unit.\"myproject-ds.xml\".PARSE" =>
 "org.jboss.msc.service.StartEx ception in service
 jboss.deployment.unit.\"myproject-ds.xml\".PARSE: Failed to process
 phase PARSE of deployment \"myproject-ds.xml\""}}}}

Solution

  • JBoss AS 7 uses a totally different way for deploying and configuring things. Look here for more info.

    Basically, all configuration is now made via one file: standalone.xml which is located under /standalone/configuration and you put your war/EAR files under /standalone/deployments.

    Also if you have a reference to an external jar, you need to add it as a module.