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

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

    jimourya

      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

          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
            jimourya

            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">

            <ear-subdeployments-isolated>true</ear-subdeployments-isolated>

              <deployment>

                                  <exclusions>

                      <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"/>-->

             

             

             

            </exclusions>

            <dependencies>

            <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"/>         

               </dependencies>

             

                      </deployment>  

             

            </jboss-deployment-structure>

             

            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">

             

             

                      <display-name>Tranzax-VPADCMTest</display-name>

                      <module id="EjbModule_VPADCMTest">

                                <ejb>TranzaxRuntimeEJB.jar</ejb>

                      </module>

                      <module id="WebModule_VPADCMTest_CaseAgent">

                                <web>

                                          <web-uri>VPA-DCMTestWeb.war</web-uri>

                                          <context-root>tranzax/vpa/dcmtest/caseagent</context-root>

                                </web>

                      </module>

                      <module id="WebModule_VPADCMTest_AdminConsole">

                                <web>

                                          <web-uri>TranzaxConsoleWeb.war</web-uri>

                                          <context-root>tranzax/vpa/dcmtest/adminconsole</context-root>

                                </web>

                      </module>

             

            </application>

             

             

             

            JBOSS Version is jboss-as-7.1.0.Final