Migration of EAR from jboss-5.1.0.GA to jboss-as-7.1.1.Final failed
spbhosale Sep 12, 2013 7:34 AMI am migrating our application from "jboss-5.1.0.GA" to "jboss-as-7.1.1.Final". It contains 3 WAR and 2 EAR files.
Command used to start jboss "standalone.bat -c standalone-full.xml" The folder structure of my ear is
META-INF
abc.jar
xyz.jar
MyApplication-jar.jar
MyApplication-war.war
META-INF : contains MANIFEST.MF & application.xml with following contains,
<?xml version="1.0" encoding="UTF-8"?>
<application xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/application_1_4.xsd"
version="1.4">
<display-name>DC13 application</display-name>
<module>
<web>
<web-uri>MyApplication-war.war</web-uri>
<context-root>MyApplication</context-root>
</web>
</module>
<module>
<java>abc.jar</java>
</module>
<module>
<java>xyz.jar</java>
</module>
<module>
<java>MyApplication-jar.jar</java>
</module>
</application>
abc.jar : includs common classes and MANIFEST.MF
xyz.jar : includs jndi.properties & MANIFEST.MF
MyApplication-jar.jar : includes application.xml, MANIFEST.MF, persistence.xml and classes
application.xml contents are same as shown above.
persistence.xml configures hibernate
MyApplication-war.war : includes
META-INF
WEB-INF
index.jsp
META-INF includes MANIFEST.MF
WEB-INF includes classes, lib(jstl-1.1.1.jar, standard-1.1.1.jar), jboss-classloading.xml, jboss-web.xml & web.xml
This EAR structure is working fine on jboss-5.1.0.
I have copied all the files in my "JBOSS_HOME\standalone\deployments". MyApplication.ear is failing and giving following error,
10:30:04,515 INFO [org.jboss.as.security] (MSC service thread 1-3) JBAS013100: Current PicketBox version=4.0.7.Final
10:30:04,610 INFO [org.jboss.as.naming] (MSC service thread 1-4) JBAS011802: Starting Naming Service
10:30:05,226 INFO [org.jboss.jaxr] (MSC service thread 1-3) JBAS014000: Started JAXR subsystem, binding JAXR connection factory into JNDI as: java:jboss/jaxr/ConnectionFactory
10:30:05,271 INFO [org.jboss.as.mail.extension] (MSC service thread 1-4) JBAS015400: Bound mail session [java:jboss/mail/Default]
10:30:05,368 WARN [org.jboss.as.messaging] (MSC service thread 1-2) JBAS011600: AIO wasn't located on this platform, it will fall back to using pure Java NIO. If your platform is Linux, install LibAIO to enable the AIO journal
10:30:05,401 INFO [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-3) Starting Coyote HTTP/1.1 on http-127.0.0.1-127.0.0.1-8080
10:30:05,451 INFO [org.jboss.ws.common.management.AbstractServerConfig] (MSC service thread 1-1) JBoss Web Services - Stack CXF Server 4.0.2.GA
10:30:05,675 INFO [org.hornetq.core.server.impl.HornetQServerImpl] (MSC service thread 1-2) live server is starting with configuration HornetQ Configuration (clustered=false,backup=false,sharedStore=true,journalDirectory=C:\jboss-as-7.1.1.Final\standalone\data\messagingjournal,bindingsDirectory=C:\jboss-as-7.1.1.Final\standalone\data\messagingbindings,largeMessagesDirectory=C:\jboss-as-7.1.1.Final\standalone\data\messaginglargemessages,pagingDirectory=C:\jboss-as-7.1.1.Final\standalone\data\messagingpaging)
10:30:05,705 INFO [org.hornetq.core.server.impl.HornetQServerImpl] (MSC service thread 1-2) Waiting to obtain live lock
10:30:05,686 INFO [org.jboss.as.server.deployment.scanner] (MSC service thread 1-4) JBAS015012: Started FileSystemDeploymentService for directory C:\jboss-as-7.1.1.Final\standalone\deployments
10:30:05,741 INFO [org.hornetq.core.persistence.impl.journal.JournalStorageManager] (MSC service thread 1-2) Using NIO Journal
10:30:05,905 INFO [org.jboss.as.remoting] (MSC service thread 1-3) JBAS017100: Listening on /127.0.0.1:9999
10:30:06,015 WARN [jacorb.codeset] (MSC service thread 1-1) Warning - unknown codeset (Cp1252) - defaulting to ISO-8859-1
10:30:06,027 INFO [org.jboss.as.remoting] (MSC service thread 1-4) JBAS017100: Listening on 127.0.0.1/127.0.0.1:4447
10:30:06,056 INFO [org.hornetq.core.server.impl.FileLockNodeManager] (MSC service thread 1-2) Waiting to obtain live lock
10:30:06,059 INFO [org.hornetq.core.server.impl.FileLockNodeManager] (MSC service thread 1-2) Live Server Obtained live lock
10:30:06,077 INFO [org.jboss.as.jacorb] (MSC service thread 1-1) JBAS016330: CORBA ORB Service started
10:30:06,452 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-1) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]
10:30:06,484 INFO [org.jboss.as.jacorb] (MSC service thread 1-3) JBAS016328: CORBA Naming Service started
10:30:07,352 INFO [org.hornetq.core.remoting.impl.netty.NettyAcceptor] (MSC service thread 1-2) Started Netty Acceptor version 3.2.5.Final-a96d88c 127.0.0.1:5455 for CORE protocol
10:30:07,377 INFO [org.hornetq.core.remoting.impl.netty.NettyAcceptor] (MSC service thread 1-2) Started Netty Acceptor version 3.2.5.Final-a96d88c 127.0.0.1:5445 for CORE protocol
10:30:07,386 INFO [org.hornetq.core.server.impl.HornetQServerImpl] (MSC service thread 1-2) Server is now live
10:30:07,390 INFO [org.hornetq.core.server.impl.HornetQServerImpl] (MSC service thread 1-2) HornetQ Server version 2.2.13.Final (HQ_2_2_13_FINAL_AS7, 122) [b5083a7d-1acd-11e3-9fdf-001cc4544b4c]) started
10:30:07,398 INFO [org.hornetq.core.server.impl.HornetQServerImpl] (MSC service thread 1-4) trying to deploy queue jms.queue.testQueue
10:30:07,409 INFO [org.jboss.as.messaging] (MSC service thread 1-4) JBAS011601: Bound messaging object to jndi name java:/queue/test
10:30:07,414 INFO [org.jboss.as.messaging] (MSC service thread 1-4) JBAS011601: Bound messaging object to jndi name java:jboss/exported/jms/queue/test
10:30:07,450 INFO [org.jboss.as.messaging] (MSC service thread 1-2) JBAS011601: Bound messaging object to jndi name java:jboss/exported/jms/RemoteConnectionFactory
10:30:07,454 INFO [org.jboss.as.messaging] (MSC service thread 1-2) JBAS011601: Bound messaging object to jndi name java:/RemoteConnectionFactory
10:30:07,458 INFO [org.hornetq.core.server.impl.HornetQServerImpl] (MSC service thread 1-1) trying to deploy queue jms.topic.testTopic
10:30:07,509 INFO [org.jboss.as.deployment.connector] (MSC service thread 1-4) JBAS010406: Registered connection factory java:/JmsXA
10:30:07,528 INFO [org.hornetq.ra.HornetQResourceAdapter] (MSC service thread 1-4) HornetQ resource adaptor started
10:30:07,532 INFO [org.jboss.as.connector.services.ResourceAdapterActivatorService$ResourceAdapterActivator] (MSC service thread 1-4) IJ020002: Deployed: file://RaActivatorhornetq-ra
10:30:07,539 INFO [org.jboss.as.deployment.connector] (MSC service thread 1-4) JBAS010401: Bound JCA ConnectionFactory [java:/JmsXA]
10:30:07,562 INFO [org.jboss.as.messaging] (MSC service thread 1-1) JBAS011601: Bound messaging object to jndi name java:/topic/test
10:30:07,567 INFO [org.jboss.as.messaging] (MSC service thread 1-1) JBAS011601: Bound messaging object to jndi name java:jboss/exported/jms/topic/test
10:30:07,571 INFO [org.jboss.as.messaging] (MSC service thread 1-3) JBAS011601: Bound messaging object to jndi name java:/ConnectionFactory
10:30:07,642 INFO [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015876: Starting deployment of "MyApplication.ear"
10:30:07,701 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC00001: Failed to start service jboss.deployment.unit."MyApplication.ear".STRUCTURE: org.jboss.msc.service.StartException in service jboss.deployment.unit."MyApplication.ear".STRUCTURE: Failed to process phase STRUCTURE of deployment "MyApplication.ear"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_25]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_25]
at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_25]
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS011037: Unable to process modules in application.xml for EAR ["/C:/jboss-as-7.1.1.Final/bin/content/MyApplication.ear"], module file MyApplication-war.war not found
at org.jboss.as.ee.structure.EarStructureProcessor.deploy(EarStructureProcessor.java:168)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
... 5 more
10:30:07,745 INFO [org.jboss.as] (MSC service thread 1-2) JBAS015951: Admin console listening on http://127.0.0.1:9990
10:30:07,748 ERROR [org.jboss.as] (MSC service thread 1-2) JBAS015875: JBoss AS 7.1.1.Final "Brontes" started (with errors) in 7763ms - Started 171 of 251 services (1 services failed or missing dependencies, 78 services are passive or on-demand)
10:30:07,748 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "MyApplication.ear" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"MyApplication.ear\".STRUCTURE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"MyApplication.ear\".STRUCTURE: Failed to process phase STRUCTURE of deployment \"MyApplication.ear\""}}
10:30:07,761 INFO [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015877: Stopped deployment MyApplication.ear in 9ms
10:30:07,777 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report
JBAS014777: Services which failed to start: service jboss.deployment.unit."MyApplication.ear".STRUCTURE: org.jboss.msc.service.StartException in service jboss.deployment.unit."MyApplication.ear".STRUCTURE: Failed to process phase STRUCTURE of deployment "MyApplication.ear"
10:30:07,787 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"MyApplication.ear\".STRUCTURE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"MyApplication.ear\".STRUCTURE: Failed to process phase STRUCTURE of deployment \"MyApplication.ear\""}}}}
I have searched on meny sites/forum but not able to resolve this issue. Please help me to resolve the error.
Thanks in advance.