Failed to start service jboss.deployment.unit."daimlerportal.ear". Failed to process phase STRUCTURE of deployment "daimlerportal.ear"
ritikagupta Jul 23, 2013 7:49 AMHello,
I am trying to migrate my Jboss server from Jboss 4.1 to JBoss 7.0 version.
And when i deployed my .ear file in new version of Jboss 7.0 it is not working as it was working in previous version of Jboss 4.1 GA.
I deployed my project's .ear (i.e. daimlerportal.ear) file in the deployments folder of jboss 7.0 (E:\set ups\jboss-as-web-7.0.0.Final\jboss-as-web-7.0.0.Final\standalone\deployments).
when I start server form E:\set ups\jboss-as-web-7.0.0.Final\jboss-as-web-7.0.0.Final\bin\stanalone.bat file then it start showing following stacktrace :
Calling E:\set ups\jboss-as-web-7.0.0.Final\jboss-as-web-7.0.0.Final\bin\standalone.conf.bat
===============================================================================
JBoss Bootstrap Environment
JBOSS_HOME: E:\set ups\jboss-as-web-7.0.0.Final\jboss-as-web-7.0.0.Final
JAVA: C:\Program Files\Java\jdk1.6.0_13\bin\java
JAVA_OPTS: -Dprogram.name=standalone.bat -Xms64M -Xmx512M -XX:MaxPermSize=256M -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.d
gc.server.gcInterval=3600000 -Dorg.jboss.resolver.warning=true -Djboss.modules.system.pkgs=org.jboss.byteman -server
===============================================================================
15:46:40,303 INFO [org.jboss.modules] JBoss Modules version 1.0.1.GA
15:46:40,593 INFO [org.jboss.msc] JBoss MSC version 1.0.0.GA
15:46:40,636 INFO [org.jboss.as] JBoss AS 7.0.0.Final "Lightning" starting
15:46:41,333 INFO [org.jboss.as] creating http management service using network interface (management) port (9990) securePort (-1)
15:46:41,339 INFO [org.jboss.as.logging] Removing bootstrap log handlers
15:46:41,350 INFO [org.jboss.as.connector.subsystems.datasources] (Controller Boot Thread) Deploying JDBC-compliant driver class or
g.h2.Driver (version 1.2)
15:46:41,357 INFO [org.jboss.as.clustering.infinispan.subsystem] (Controller Boot Thread) Activating Infinispan subsystem.
15:46:41,428 INFO [org.jboss.as.naming] (Controller Boot Thread) Activating Naming Subsystem
15:46:41,440 INFO [org.jboss.as.naming] (MSC service thread 1-8) Starting Naming Service
15:46:41,444 INFO [org.jboss.as.osgi] (Controller Boot Thread) Activating OSGi Subsystem
15:46:41,460 INFO [org.jboss.as.security] (Controller Boot Thread) Activating Security Subsystem
15:46:41,466 INFO [org.jboss.remoting] (MSC service thread 1-6) JBoss Remoting version 3.2.0.Beta2
15:46:41,477 INFO [org.xnio] (MSC service thread 1-6) XNIO Version 3.0.0.Beta3
15:46:41,488 INFO [org.xnio.nio] (MSC service thread 1-6) XNIO NIO Implementation Version 3.0.0.Beta3
15:46:41,655 INFO [org.apache.catalina.core.AprLifecycleListener] (MSC service thread 1-7) The Apache Tomcat Native library which a
llows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.6.0_13\bin;.
;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\Windows\system32;C:\Prog
ram Files\Java\jdk1.6.0_13\bin;C:\Tomcat 6.0\bin;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\
Program Files\WIDCOMM\Bluetooth Software\;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Wi
ndows\system32\;C:\Windows\system32\Wbem;C:\ORACLE8I\BIN;C:\Program Files\Oracle\jre\1.1.7\bin;C:\ORACLE8I\orb\bin;C:\Program Files\
Explorer;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Program Files\Common Files\Roxio Shared\10.0\DLLShared\;C:\Program
Files\AccuRev\bin;C:\Program Files\Apache Software Foundation\apache-maven-2.2.1\bin;C:\Windows\System32\WindowsPowerShell\v1.0\;C:
\Windows\system32;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Users\mb8999\AppData\Local\Smartbar\Application\
15:46:41,662 INFO [org.jboss.as.ee] (Controller Boot Thread) Activating EE subsystem
15:46:41,678 INFO [org.jboss.as.remoting] (MSC service thread 1-7) Listening on /127.0.0.1:9999
15:46:41,699 INFO [org.jboss.as.jmx.JMXConnectorService] (MSC service thread 1-1) Starting remote JMX connector
15:46:41,709 INFO [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-7) Starting Coyote HTTP/1.1 on http--127.0.0.1-90
01
15:46:41,955 INFO [org.jboss.as.connector] (MSC service thread 1-7) Starting JCA Subsystem (JBoss IronJacamar 1.0.0.CR2)
15:46:42,012 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-7) Bound data source [java:jboss/datasource
s/ExampleDS]
15:46:42,127 INFO [org.jboss.as.deployment] (MSC service thread 1-2) Started FileSystemDeploymentService for directory E:\set ups\j
boss-as-web-7.0.0.Final\jboss-as-web-7.0.0.Final\standalone\deployments
15:46:42,152 INFO [org.jboss.as.server.deployment] (MSC service thread 1-2) Starting deployment of "daimlerportal.ear"
15:46:42,243 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-7) MSC00001: Failed to start service jboss.deployment.unit."da
imlerportal.ear".STRUCTURE: org.jboss.msc.service.StartException in service jboss.deployment.unit."daimlerportal.ear".STRUCTURE: Fai
led to process phase STRUCTURE of deployment "daimlerportal.ear"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:121)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1765)
at org.jboss.msc.service.ServiceControllerImpl$ClearTCCLTask.run(ServiceControllerImpl.java:2291)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_13]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_13]
at java.lang.Thread.run(Thread.java:619) [:1.6.0_13]
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: Failed to parse "/E:/set ups/jboss-as-web-7.0.0.Final/j
boss-as-web-7.0.0.Final/bin/content/daimlerportal.ear/META-INF/application.xml"
at org.jboss.as.ee.structure.EarMetaDataParsingProcessor.deploy(EarMetaDataParsingProcessor.java:80)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115)
... 5 more
Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[4,3]
Message: Unexpected element '{http://java.sun.com/xml/ns/j2ee}library-directory' encountered
at org.jboss.metadata.parser.util.MetaDataElementParser.unexpectedElement(MetaDataElementParser.java:109)
at org.jboss.metadata.parser.spec.EarMetaDataParser.parse(EarMetaDataParser.java:175)
at org.jboss.as.ee.structure.EarMetaDataParsingProcessor.deploy(EarMetaDataParsingProcessor.java:68)
... 6 more
15:46:42,247 ERROR [org.jboss.as] (MSC service thread 1-5) JBoss AS 7.0.0.Final "Lightning" started (with errors) in 2133ms - Starte
d 94 of 150 services (1 services failed or missing dependencies, 55 services are passive or on-demand)
15:46:42,249 INFO [org.jboss.as.server.controller] (DeploymentScanner-threads - 2) Deployment of "daimlerportal.ear" was rolled bac
k with failure message {"Failed services" => {"jboss.deployment.unit.\"daimlerportal.ear\".STRUCTURE" => "org.jboss.msc.service.Star
tException in service jboss.deployment.unit.\"daimlerportal.ear\".STRUCTURE: Failed to process phase STRUCTURE of deployment \"daiml
erportal.ear\""}}
15:46:42,252 INFO [org.jboss.as.server.deployment] (MSC service thread 1-3) Stopped deployment daimlerportal.ear in 2ms
15:46:42,255 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.unit.\"daimlerportal.ear\".STRUCTURE" => "org.jbos
s.msc.service.StartException in service jboss.deployment.unit.\"daimlerportal.ear\".STRUCTURE: Failed to process phase STRUCTURE of
deployment \"daimlerportal.ear\""}}}}
Please anyone tell that what should I do to remove this error .
My application.xml is shown as below -
<?xml version="1.0" encoding="UTF-8"?>
<application version="1.4" 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">
<display-name>daimlerportal</display-name>
<library-directory>daimlerportal-war/dist</library-directory>
<module>
<ejb>daimlerportal-ejb.jar</ejb>
</module>
<module>
<web>
<web-uri>daimlerportal-war.war</web-uri>
<context-root>/dcagportal</context-root>
</web>
</module>
</application>
Please give your suggestion.