8 Replies Latest reply on Dec 20, 2011 3:53 AM by sabbirali kadiwala

    Deploy Ear in Jboss 7

    sabbirali kadiwala Newbie

      My Project structure as below

       

      IASCommon -- Java Utility Classes

      IASEJB -- EJB's

      IASWeb -- web

      IASEar -- include common lib [log4j also] and application.xml

       

      My Application file as below

       

      <?xml version="1.0" encoding="ASCII"?>

      <application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:application="http://java.sun.com/xml/ns/javaee/application_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_5.xsd" version="5">

        <display-name>IASEar</display-name>

        <module>

          <web>

            <web-uri>IASWeb-Strust2.war</web-uri>

            <context-root>IASWeb</context-root>

          </web>

        </module>

        <module>

          <ejb>IASEJB.jar</ejb>

        </module>

        <library-directory>libs</library-directory>

      </application>

       

      When i deploy it to jboss 7 its giving eror

       

      ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC00001: Failed to start service jboss.deployment.subunit."IASEar.ear"."IASEJB.jar".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."IASEar.ear"."IASEJB.jar".POST_MODULE: Failed to process phase POST_MODULE of subdeployment "IASEJB.jar" of deployment "IASEar.ear"

       

      Caused by: java.lang.NoClassDefFoundError: Lorg/apache/log4j/Logger;

                at java.lang.Class.getDeclaredFields0(Native Method) [:1.6.0_10]

                at java.lang.Class.privateGetDeclaredFields(Class.java:2291) [:1.6.0_10]

                at java.lang.Class.getDeclaredFields(Class.java:1743) [:1.6.0_10]

                at org.jboss.as.server.deployment.reflect.ClassReflectionIndex.<init>(ClassReflectionIndex.java:57)

                at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:66)

                ... 11 more