2 Replies Latest reply on Nov 3, 2011 3:50 AM by akshayrpin

    Migrating from Jboss 4.2 to jboss 7.0.2

    akshayrpin

      Hi,

       

      I am trying to migrate from 4.2 to jboss 7.

       

      i have added net.sourceforge.jtds datasource.

      when i try to deploy an ear. it is throwing an error

       

      contents of my ear is 7 jar files and 2 war

       

       

      11:30:49,377 INFO  [org.jboss.as.ee] (Controller Boot Thread) Activating EE subsystem

      11:30:49,377 INFO  [org.jboss.as.jmx.JMXConnectorService] (MSC service thread 1-5) Starting remote JMX connector

      11:30:49,377 INFO  [org.jboss.as.remoting] (MSC service thread 1-4) Listening on /127.0.0.1:9999

      11:30:49,534 INFO  [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-8) Starting Coyote HTTP/1.1 on http--127.0.0.1-8082

      11:30:49,596 INFO  [org.jboss.as.connector] (MSC service thread 1-7) Starting JCA Subsystem (JBoss IronJacamar 1.0.3.Final)

      11:30:49,643 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-8) Bound data source [java:jboss/datasources/ExampleDS]

      11:30:49,643 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-7) Bound data source [java:/MarsNGDS]

      11:30:50,002 INFO  [org.jboss.as.deployment] (MSC service thread 1-4) Started FileSystemDeploymentService for directory C:\Akshay\jboss-as-7.0.2.Final\standalone\deployments

      11:30:50,081 INFO  [org.jboss.as] (Controller Boot Thread) JBoss AS 7.0.2.Final "Arc" started in 2407ms - Started 98 of 153 services (55 services are passive or on-demand)

      11:31:25,329 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-7) Starting deployment of "O2.ear"

      11:34:10,807 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-5) Starting deployment of "O2-server.war"

      11:34:10,807 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) Starting deployment of "O2-BL.jar"

      11:34:10,807 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-8) Starting deployment of "O2-services.war"

      11:34:50,717 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-6) Class Path entry webservices-extra-api.jar in "/C:/Akshay/jboss-as-7.0.2.Final/bin/content/O2.ear/O2-server.war/WEB-INF/lib/webservices-api.jar"  does not point to a valid jar for a Class-Path reference.

      11:34:50,717 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-6) Class Path entry webservices-api.jar in "/C:/Akshay/jboss-as-7.0.2.Final/bin/content/O2.ear/O2-server.war/WEB-INF/lib/webservices-rt.jar"  does not point to a valid jar for a Class-Path reference.

      11:34:50,717 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-6) Class Path entry webservices-extra.jar in "/C:/Akshay/jboss-as-7.0.2.Final/bin/content/O2.ear/O2-server.war/WEB-INF/lib/webservices-rt.jar"  does not point to a valid jar for a Class-Path reference.

      11:34:50,717 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-6) Class Path entry webservices-rt_l10n.jar in "/C:/Akshay/jboss-as-7.0.2.Final/bin/content/O2.ear/O2-server.war/WEB-INF/lib/webservices-rt.jar"  does not point to a valid jar for a Class-Path reference.

      11:34:50,717 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-6) Class Path entry webservices-rt_ja.jar in "/C:/Akshay/jboss-as-7.0.2.Final/bin/content/O2.ear/O2-server.war/WEB-INF/lib/webservices-rt.jar"  does not point to a valid jar for a Class-Path reference.

      11:34:50,717 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-6) Class Path entry webservices-rt_zh.jar in "/C:/Akshay/jboss-as-7.0.2.Final/bin/content/O2.ear/O2-server.war/WEB-INF/lib/webservices-rt.jar"  does not point to a valid jar for a Class-Path reference.

      11:34:50,717 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-6) Class Path entry webservices-rt_fr.jar in "/C:/Akshay/jboss-as-7.0.2.Final/bin/content/O2.ear/O2-server.war/WEB-INF/lib/webservices-rt.jar"  does not point to a valid jar for a Class-Path reference.

      11:34:50,717 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-6) Class Path entry webservices-rt_de.jar in "/C:/Akshay/jboss-as-7.0.2.Final/bin/content/O2.ear/O2-server.war/WEB-INF/lib/webservices-rt.jar"  does not point to a valid jar for a Class-Path reference.

      11:34:50,717 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-6) Class Path entry webservices-rt_es.jar in "/C:/Akshay/jboss-as-7.0.2.Final/bin/content/O2.ear/O2-server.war/WEB-INF/lib/webservices-rt.jar"  does not point to a valid jar for a Class-Path reference.

      11:34:50,717 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-6) Class Path entry webservices-rt_it.jar in "/C:/Akshay/jboss-as-7.0.2.Final/bin/content/O2.ear/O2-server.war/WEB-INF/lib/webservices-rt.jar"  does not point to a valid jar for a Class-Path reference.

      11:34:50,717 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-6) Class Path entry webservices-rt_sw.jar in "/C:/Akshay/jboss-as-7.0.2.Final/bin/content/O2.ear/O2-server.war/WEB-INF/lib/webservices-rt.jar"  does not point to a valid jar for a Class-Path reference.

      11:34:50,717 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-6) Class Path entry webservices-rt_ko.jar in "/C:/Akshay/jboss-as-7.0.2.Final/bin/content/O2.ear/O2-server.war/WEB-INF/lib/webservices-rt.jar"  does not point to a valid jar for a Class-Path reference.

      11:34:50,717 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-6) Class Path entry webservices-rt_zh_TW.jar in "/C:/Akshay/jboss-as-7.0.2.Final/bin/content/O2.ear/O2-server.war/WEB-INF/lib/webservices-rt.jar"  does not point to a valid jar for a Class-Path reference.

      11:34:51,198 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC00001: Failed to start service jboss.deployment.subunit."O2.ear"."O2-BL.jar".PARSE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."O2.ear"."O2-BL.jar".PARSE: Failed to process phase PARSE of subdeployment "O2-BL.jar" of deployment "O2.ear"

              at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:121)

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824)

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759)

              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_16]

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_16]

              at java.lang.Thread.run(Thread.java:619) [:1.6.0_16]

      Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: Exception while parsing ejb-jar.xml: /C:/Akshay/jboss-as-7.0.2.Final/bin/content/O2.ear/O2-BL.jar/META-INF/ejb-jar.xml

              at org.jboss.as.ejb3.deployment.processors.EjbJarParsingDeploymentUnitProcessor.parseEjbJarXml(EjbJarParsingDeploymentUnitProcessor.java:227)

              at org.jboss.as.ejb3.deployment.processors.EjbJarParsingDeploymentUnitProcessor.deploy(EjbJarParsingDeploymentUnitProcessor.java:109)

              at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115)

              ... 5 more

      Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[514,21]

      Message: Unexpected element 'cmr-field-name' encountered

              at org.jboss.metadata.parser.util.MetaDataElementParser.unexpectedElement(MetaDataElementParser.java:109)

              at org.jboss.metadata.ejb.parser.spec.RelationRoleMetaDataParser.processElement(RelationRoleMetaDataParser.java:106)

              at org.jboss.metadata.ejb.parser.spec.RelationRoleMetaDataParser.processElement(RelationRoleMetaDataParser.java:38)

              at org.jboss.metadata.ejb.parser.spec.AbstractMetaDataParser.processElements(AbstractMetaDataParser.java:65)

              at org.jboss.metadata.ejb.parser.spec.RelationRoleMetaDataParser.parse(RelationRoleMetaDataParser.java:64)

              at org.jboss.metadata.ejb.parser.spec.RelationMetaDataParser.processElement(RelationMetaDataParser.java:102)

              at org.jboss.metadata.ejb.parser.spec.RelationMetaDataParser.processElement(RelationMetaDataParser.java:39)

              at org.jboss.metadata.ejb.parser.spec.AbstractMetaDataParser.processElements(AbstractMetaDataParser.java:65)

              at org.jboss.metadata.ejb.parser.spec.RelationMetaDataParser.parse(RelationMetaDataParser.java:72)

              at org.jboss.metadata.ejb.parser.spec.RelationsMetaDataParser.parse(RelationsMetaDataParser.java:69)

              at org.jboss.metadata.ejb.parser.spec.AbstractEjbJarMetaDataParser.processElement(AbstractEjbJarMetaDataParser.java:134)

              at org.jboss.metadata.ejb.parser.spec.AbstractEjbJarMetaDataParser.processElement(AbstractEjbJarMetaDataParser.java:38)

              at org.jboss.metadata.ejb.parser.spec.AbstractMetaDataParser.processElements(AbstractMetaDataParser.java:65)

              at org.jboss.metadata.ejb.parser.spec.EjbJarMetaDataParser.parseDocument(EjbJarMetaDataParser.java:106)

              at org.jboss.metadata.ejb.parser.spec.EjbJarMetaDataParser.parse(EjbJarMetaDataParser.java:58)

              at org.jboss.as.ejb3.deployment.processors.EjbJarParsingDeploymentUnitProcessor.parseEjbJarXml(EjbJarParsingDeploymentUnitProcessor.java:224)

              ... 7 more

       

       

      11:34:51,540 INFO  [org.jboss.as.server.controller] (DeploymentScanner-threads - 2) Deployment of "O2.ear" was rolled back with failure message {"Failed services" => {"jboss.deployment.subunit.\"O2.ear\".\"O2-BL.jar\".PARSE" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"O2.ear\".\"O2-BL.jar\".PARSE: Failed to process phase PARSE of subdeployment \"O2-BL.jar\" of deployment \"O2.ear\""}}

      11:34:51,555 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-5) Stopped deployment O2-BL.jar in 14ms

      11:34:51,586 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) Stopped deployment O2-services.war in 56ms

      11:34:53,620 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-4) Stopped deployment O2-server.war in 2076ms

      11:34:53,635 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-6) Stopped deployment O2.ear in 2103ms

      11:34:53,651 ERROR [org.jboss.as.deployment] (DeploymentScanner-threads - 1) {"Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"Failed services" => {"jboss.deployment.subunit.\"O2.ear\".\"O2-BL.jar\".PARSE" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"O2.ear\".\"O2-BL.jar\".PARSE: Failed to process phase PARSE of subdeployment \"O2-BL.jar\" o

       

       

       

       

      its throwing error 'cmr-field-name' for in ejb-jar.xml

       

       

      thank you for your help in advance.