Question

I am new to JBoss 7.1 and trying to migrate our appplication to migrate from jboss 6.0 to jboss 7.1 but at development time it loads only few specific jars automatically which is different from jboss 6.0 which loads all the jars from lib folder.If i add them externally then at deployement time it conflicts with the already available jars in jboss 7.1 /module folder.

so please let me know how to configure the jboss 7.1 so that it loads all or specified its internal jars.

Was it helpful?

Solution

If you need to use your own jar for the deployed application, then you can exclude these using a jboss-deployment-structure.xml file in your WEB-INF directory. Here is an example that describes about the format of the xml file.

OTHER TIPS

I too faced same issue. One best thing I did was removing conflicting jars in JBoss lib folder as your deployment ear would have those already.

JBoss As 7.1 & JSF1.2, 2.0


Following required steps...
You have manually configure some files

1.Create folder MySQL folder\main folder jboss-as-7.1.1.Final\modules\com\mysql


2.MySQL folder\module folder\add-> module.xml file and MySQL connector file

    Module.xml code:
    <?xml version="1.0" encoding="UTF-8"?>
    <module xmlns="urn:jboss:module:1.1" name="com.mysql">
       <resources>
            <resource-root path="mysql-connector-java-5.1.10-bin.jar"/>
            <!-- Insert resources here -->
        </resources>
        <dependencies>
            <module name="javax.api"/>
            <module name="javax.transaction.api"/>
            <module name="javax.servlet.api" optional="true"/>
        </dependencies>
    </module>


3.Go to the JBoss-as-7.1.1.Final\modules\org\hibernate\main
open the module.xml file & add
<module name="com.mysql"/>


4.Go to the JBoss-as-7.1.1.Final\modules\org\jboss\as\weld\main
open the module.xml file & add
 <module name="javax.faces.api" slot="1.2"/>


5.Go to the JBoss-as-7.1.1.Final\modules\org\jboss\weld\core\main
open the module.xml file & add
<module name="javax.faces.api" slot="1.2"/>
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top