2 Replies Latest reply on Apr 4, 2013 10:12 AM by dhananjay mourya

    external jar having same package and class Name with war ear for jBoss 7 is not loaded

    dhananjay mourya Newbie

      hi All,

        i am unable to load class  having same class name and package name in ear/lib jars and war ,how to load all and referenced class in runtime.before in jboss 4 it was working fine but in jboss 7 ,respective class is not found.after giving priority in menifest.MF also it is not picking Jar in order

        • 1. Re: external jar having same package and class Name with war ear for jBoss 7 is not loaded
          jaikiran pai Master

          Dhananjay, welcome to the forums.


          Please post the relevant details like your application packaging, the exact version of JBoss AS7 and the relevant exception stacktraces explaining what isn't working.

          • 2. Re: external jar having same package and class Name with war ear for jBoss 7 is not loaded
            dhananjay mourya Newbie

            thanks for early reply

            i have ear containing lib meta-inf and two war,ejb.jar.

            project are deployed working well with JSF 1.2_15

            but some services is not working as interface is located in one jar and its partial implanted class in same jar and fully implemented class in deferent jar.

            i have jboss-deployment-structure.xml and application.xml in meta-inf

            jboss-deployment-structure.xml is



            <jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.0">




                      <module name="javax.faces.api" slot="1.2"/>

                      <module name="com.sun.jsf-impl" slot="1.2"/>

                                   <!--<module name="javax.servlet.jstl.api" slot="main"/>-->

                                   <!--<module name="javax.servlet.jsp.api" slot="main"/>-->

                                                         <!--<module name="javax.el.api" slot="main"/>-->






            <module name="javax.el.api" export="true"/>

            <module name="javax.servlet.api" export="true"/>

            <module name="javax.servlet.jstl.api" export="true"/>

                      <module name="javax.faces.api" export="true"/>

                      <module name="com.sun.jsf-impl" export="true"/>

                                 <!-- <module name="com.jboss.quartz" export="true"/>-->

                                  <module name="javaee.api" export="true"/>

                                  <module name="org.jboss.invocation" export="true"/>

                                  <module name="org.jboss.metadata" export="true"/>

                                <!--  <module name="com.tranzax.core" export="true"/>-->

                                  <module name="org.apache.commons.logging.Log" export="true"/>

                                   <!--<module name="javax.servlet.jstl.api" export="true"/>-->

                                  <!--<module name="org.hibernate.tranzax"  export="true"/>-->

                                  <!--<module name="com.tranzax" export="true"/>-->

                      <module name="org.hibernate.validator" export="true"/>

                                 <!-- <module name="javax.servlet.jsp.api" export="true"/>

                                  <module name="javax.el.api" export="true"/>-->

                      <module name="javax.validation.api" export="true"/>

                                  <module name="org.jboss.jboss-transaction-spi" export="true"/>

                      <!--<module name="com.google.gson" export="true"/>-->

                                 <module name="org.jboss.ejb-client" export="true"/>

                      <!--<module name="com.google.guava" export="true"/>-->

                      <module name="org.codehaus.jettison" export="true"/>

                      <module name="org.jboss.resteasy.resteasy-jaxrs" export="true"/>

                      <module name="org.jboss.resteasy.resteasy-jackson-provider" export="true"/>

                      <module name="org.apache.log4j" export="true"/>

                      <module name="org.jboss.as.web" slot="main"/>         







            and application.xml


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

            <!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN" "http://java.sun.com/dtd/application_1_3.dtd">

            <application id="Application_VPADCMTest">




                      <module id="EjbModule_VPADCMTest">



                      <module id="WebModule_VPADCMTest_CaseAgent">






                      <module id="WebModule_VPADCMTest_AdminConsole">











            JBOSS Version is jboss-as-7.1.0.Final