The same ear file deployed in jboss 7.1.1 is not deploying in WIldfly8.2. class not found exception is coming.
alif Apr 22, 2015 6:35 AMI am trying to deploy a ear file named Tcpro.ear in wildfly8.2 , it is not deploying in WIldfly 8.2. But the same TCpro.ear is successfully deployed in JBoss 7.1.1. Please find the below application.xml and Jboss deployment.xml of TCpro.ear application.xml :
application.xml :
<?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" version="6"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_6.xsd">
<description></description>
<application-name>TCPro</application-name>
<initialize-in-order>true</initialize-in-order>
<display-name>TCPro</display-name>
<icon></icon>
<module id="api">
<ejb>API.jar</ejb>
</module>
<module id="domain">
<ejb>Domain.jar</ejb>
</module>
<module id="frameWork">
<ejb>Framework.jar</ejb>
</module>
<module id="TcproWeb">
<web>
<web-uri>TCProWeb.war</web-uri>
<context-root>/TCProWeb</context-root>
</web>
</module>
</application>
Jboss deployment structure is as follows:
<?xml version="1.0"?>
<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.1">
<ear-subdeployments-isolated>false</ear-subdeployments-isolated>
<deployment>
<dependencies>
<module name="com.optum.install_dir" />
</dependencies>
<exclusions>
<module name="org.hibernate" />
<module name="org.apache.log4j" />
</exclusions>
</deployment>
<sub-deployment name="TCProWeb.war">
<exclusions>
<module name="org.apache.log4j" />
</exclusions>
<dependencies>
<module name="com.optum.install_dir" />
</dependencies>
</sub-deployment>
<sub-deployment name="API.jar">
<exclusions>
<module name="org.apache.log4j" />
</exclusions>
<dependencies>
<module name="com.optum.install_dir" />
</dependencies>
</sub-deployment>
<sub-deployment name="Domain.jar">
<exclusions>
<module name="org.apache.log4j" />
</exclusions>
<dependencies>
<module name="com.optum.install_dir" />
</dependencies>
</sub-deployment>
<sub-deployment name="Framework.jar">
<exclusions>
<module name="org.apache.log4j" />
</exclusions>
<dependencies>
<module name="com.optum.install_dir" />
</dependencies>
</sub-deployment>
</jboss-deployment-structure>
The TCPro.ear is successfully deployed in Jbss7.1.1 BUT it is not deploying in WIldfly8.2
When I deployed in Wildfly 8.2 , all the modules API,Framework, Domain got deployed, BUT the module TcproWeb is not deployed getting the following exception:
ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC000001: Failed to start service jboss.undertow.deployment.default-server.default-host./TCProWeb.UndertowDeploymentInfoService: org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./TCProWeb.UndertowDeploymentInfoService: java.lang.ClassNotFoundException: Exception from [Module "deployment.TCPro.ear.TCProWeb.war:main" from Service Module Loader]
at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService.createServletConfig(UndertowDeploymentInfoService.java:933)
at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService.start(UndertowDeploymentInfoService.java:256)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_45]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_45]
at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_45]
Caused by: java.lang.ClassNotFoundException: Exception from [Module "deployment.TCPro.ear.TCProWeb.war:main" from Service Module Loader]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:213) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134) [jboss-modules.jar:1.3.3.Final]
at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService.createServletConfig(UndertowDeploymentInfoService.java:811)
... 6 more
TCproWeb .war structure:
TCProWeb.war\WEB-INF
-classes\com\pkg\
-lib
-pages
Please help me to resolve the issue.
Let me know I need to give any other information.