3 Replies Latest reply on Apr 27, 2015 2:45 AM by jaikiran pai Branched to a new discussion.

    The same ear file deployed in jboss 7.1.1 is not deploying in WIldfly8.2. class not found exception is coming.

    Fakaruddin Ali Newbie

      I 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.

       

        • 2. Re: The same ear file deployed in jboss 7.1.1 is not deploying in WIldfly8.2. class not found exception is coming.
          Fakaruddin Ali Newbie

          Hi Jaikiran,

          Sorry for delay reply. Please find the below the content of  web.xml file

           

          <?xml version="1.0" encoding="UTF-8"?>

           

          <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">

           

          <web-app >

           

             <display-name>Contract Manager</display-name>

           

            <filter>

           

            <filter-name>XSSFilter</filter-name>

           

            <filter-class>

           

            </filter-class>

           

            <init-param>

           

          <param-name>onError</param-name>

           

          <param-value>/404.jsp</param-value>

           

            </init-param>

           

          </filter>

           

            <filter-mapping>

           

            <filter-name>XSSFilter</filter-name>

           

            <url-pattern>/*</url-pattern>

           

          </filter-mapping>

           

            <!-- Listeners defined (e.g. global.jsa) -->

           

          <listener>

           

          <listener-class>

           

          </listener-class>

           

          </listener>

           

          <listener>

           

          <listener-class>

           

          </listener-class>

           

          </listener>

           

          <!-- added 11/14/07 to support the ingenix charting framework required for payer dashboard -->

           

          <listener>

           

          <listener-class>com.ingenix.webcharts.IngenixWebChartSetup</listener-class>

           

          </listener>

           

             <servlet>

           

          <servlet-name>action</servlet-name>

           

             <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>  

           

             <init-param>

           

             <param-name>application</param-name>

           

             <param-value>ApplicationResources</param-value>

           

             </init-param>  

           

             <!-- Tiles Servlet parameter

           

            --> 

           

             <init-param>

           

             <param-name>definitions-config</param-name>

           

             <param-value>/WEB-INF/tiles-defs.xml</param-value>

           

             </init-param>

           

             <init-param>

           

             <param-name>definitions-debug</param-name>

           

             <param-value>2</param-value>

           

             </init-param>

           

             <init-param>

           

             <param-name>definitions-parser-details</param-name>

           

             <param-value>2</param-value>

           

             </init-param>

           

             <init-param>

           

             <param-name>definitions-parser-validate</param-name>

           

             <param-value>true</param-value>

           

             </init-param>

           

             <!-- Struts configuration -->

           

             <init-param>

           

             <param-name>config</param-name>

           

             <param-value>/WEB-INF/struts-config.xml</param-value>

           

             </init-param>

           

             <init-param>

           

             <param-name>validate</param-name>

           

             <param-value>true</param-value>

           

             </init-param>

           

             <init-param>

           

             <param-name>debug</param-name>

           

             <param-value>2</param-value>

           

             </init-param>

           

             <init-param>

           

             <param-name>detail</param-name>

           

             <param-value>2</param-value>

           

             </init-param>

           

             <load-on-startup>2</load-on-startup>

           

            </servlet>

           

            <!-- US55453 - This servlet removed due to vulnerability and implemented in Struts - DownloadLanguageTemplateAction

           

            <!-- added 11/14/07 to support the ingenix charting framework required for payer dashboard -->

           

          <servlet>

           

          <servlet-name>CewolfServlet</servlet-name>

           

            <servlet-class>de.laures.cewolf.CewolfRenderer</servlet-class>

           

          <!-- sets storage implementation -->

           

            <init-param>

           

            <param-name>storage</param-name>

           

            <param-value>de.laures.cewolf.storage.TransientSessionStorage</param-value>

           

            </init-param>

           

          <!-- sets overlib.js location relative to webapp -->

           

            <init-param>

           

            <param-name>overliburl</param-name>

           

            <param-value>/common/overlib.js</param-value>

           

            </init-param>

           

          <!-- turn on or off debugging logging -->

           

            <init-param>

           

            <param-name>debug</param-name>

           

            <param-value>false</param-value>

           

            </init-param>

           

            <load-on-startup>1</load-on-startup>

           

          </servlet>

           

             <servlet-mapping>

           

             <servlet-name>action</servlet-name>

           

             <url-pattern>*.do</url-pattern>

           

            </servlet-mapping>

           

            <!-- Removed due to vulnerability - US55453

           

          <!-- added 11/14/07 to support the ingenix charting framework required for payer dashboard -->

           

          <servlet-mapping>

           

          <servlet-name>CewolfServlet</servlet-name>

           

            <url-pattern>/cewolf/*</url-pattern>

           

          </servlet-mapping>

           

            <!-- these are from microsoft, they seem to be supported in open office as well -->

           

          <mime-mapping>

           

            <extension>csv</extension>

           

            <mime-type>text/csv</mime-type>

           

          </mime-mapping>

           

          <mime-mapping>

           

            <extension>doc</extension>

           

            <mime-type>application/vnd.ms-word</mime-type>

           

          </mime-mapping>

           

             <welcome-file-list>

           

             <welcome-file>index.jsp</welcome-file>

           

             </welcome-file-list>

           

            <error-page>

           

            <exception-type>Exception</exception-type>

           

            <location>/error.jsp</location>

           

          </error-page>

           

          <error-page>

           

            <error-code>404</error-code>

           

            <location>/404.jsp</location>

           

          </error-page>

           

          <error-page>

           

            <error-code>405</error-code>

           

            <location>/405.jsp</location>

           

          </error-page>

           

          <error-page>

           

            <error-code>500</error-code>

           

            <location>/500.jsp</location>

           

          </error-page>

           

             <!-- JSTL Tag Library -->

           

            <taglib>

           

             <taglib-uri>/WEB-INF/c.tld</taglib-uri>

           

             <taglib-location>/WEB-INF/c.tld</taglib-location>

           

            </taglib>

           

            <!-- Struts Tag Library -->

           

            <taglib>

           

             <taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>

           

             <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>

           

            </taglib>

           

            <taglib>

           

             <taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>

           

             <taglib-location>/WEB-INF/struts-html.tld</taglib-location>

           

            </taglib>

           

            <taglib>

           

             <taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri>

           

             <taglib-location>/WEB-INF/struts-logic.tld</taglib-location>

           

            </taglib>

           

            <taglib>

           

             <taglib-uri>/WEB-INF/struts-nested.tld</taglib-uri>

           

             <taglib-location>/WEB-INF/struts-nested.tld</taglib-location>

           

            </taglib>

           

            <!-- Tiles Tag Library Descriptor -->

           

            <taglib>

           

             <taglib-uri>/WEB-INF/struts-tiles.tld</taglib-uri>

           

             <taglib-location>/WEB-INF/struts-tiles.tld</taglib-location>

           

            </taglib>

           

            <!-- Ingenix Tag Library Descriptor -->

           

            <taglib>

           

             <taglib-uri>/WEB-INF/ingenix-components.tld</taglib-uri>

           

             <taglib-location>/WEB-INF/ingenix-components.tld</taglib-location>

           

            </taglib>

           

            <!-- Ingenix Tag Library Descriptor - alternate page layout support -->

           

            <taglib>

           

             <taglib-uri>/WEB-INF/ingenix-altcomponents.tld</taglib-uri>

           

             <taglib-location>/WEB-INF/ingenix-altcomponents.tld</taglib-location>

           

            </taglib>

           

             <!-- Prohibit direct access to tiles components -->

           

            <security-constraint>

           

             <web-resource-collection>

           

             <web-resource-name>TilesComponents</web-resource-name>

           

             <description>Tiles components</description>

           

             <url-pattern>/tiles-components/*</url-pattern>

           

             <url-pattern>/tiles-layouts/*</url-pattern>

           

             </web-resource-collection>

           

             <auth-constraint>

           

             <role-name>inaccessible</role-name>

           

             </auth-constraint>

           

             <user-data-constraint>

           

             <transport-guarantee>NONE</transport-guarantee>

           

             </user-data-constraint>

           

            </security-constraint>

           

             <security-role>

           

             <role-name>inaccessible</role-name>

           

             </security-role>

           

             <!-- To remove vulnerability Set-Cookie does not use HTTPOnly Keyword -->

           

            <session-config>

           

            <cookie-config>

           

            <http-only>true</http-only>

           

            </cookie-config>

           

          </session-config>

           

          </web-app>

          • 3. Re: The same ear file deployed in jboss 7.1.1 is not deploying in WIldfly8.2. class not found exception is coming.
            jaikiran pai Master

            Fakaruddin Ali wrote:

             

            Hi Jaikiran,

            Sorry for delay reply. Please find the below the content of  web.xml file

             

              <exception-type>Exception</exception-type>

            That should be the fully qualified class name. So change it to

             

            <exception-type>java.lang.Exception</exception-type>