0 Replies Latest reply on Jan 19, 2013 10:54 AM by edimukc

    Jboss 7.1.1 final is not pointing to hibernate-core.jar 3.3.1 GA in 'lib' folder of 'Act.ear'

    edimukc

      Hi All,

       

      My application structure is :

       

      Act.ear

        |

        |--------- Act.war

        |--------- Act.jar

        |--------- lib

        |--------- jboss-seam.jar

        |--------- META-INF

                       |

                       |-------------------Application.xml

                       |-------------------jboss-deployment-structure

       

       

      For all jars Jboss 7.1.1 final is picking jars from 'lib' ( for example application is picking 'hibernate-validator.jar' from 'lib' of  'Act.ear') but It is not taking 'hibernate-core.jar (3.3.1 GA)'.

       

      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="5"
      xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
      http://java.sun.com/xml/ns/javaee/application_5.xsd">

      <display-name>Act

       

      </display-name>

      <module>
        <web>
         <web-uri>Act.war</web-uri>
         <context-root>/Act</context-root>
        </web>
      </module>

      <module>
        <ejb>Act.jar</ejb>
      </module>

      <module>
        <ejb>jboss-seam.jar</ejb>
      </module>

      <library-directory>lib</library-directory>

      </application>

       

       

       

       

      jboss-deployment-structure.xml

      ---------------------------------------------

       

       

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

      <deployment>

        <dependencies>

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

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

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

         <module name="org.dom4j" export="true" />

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

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

        

        </dependencies>

      </deployment>

       

      <sub-deployment name="Act.war">

        <exclusions>

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

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

        </exclusions>

        

        <dependencies>

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

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

        

        </dependencies>

      </sub-deployment>

      </jboss-deployment-structure>

       

       

       

      Please advise !