« Back to Liferay Faces

Upgrading Weld in JBoss AS

The Liferay Portal 6.1 JBoss AS bundle ships with JBoss AS 7.1.1 which comes with Weld 1.1.5.Final in the global classpath. In order to upgrade Weld in JBoss AS, you will need to download a newer version of the weld-core.jar artifact.

For example:

1. Download weld-core-1.1.10.Final.jar and simply copy it to the following location:

$LIFERAY_HOME/jboss-7.1.1/modules/org/jboss/weld/core/main/weld-core-1.1.10.Final.jar

2. Edit the following file:

$LIFERAY_HOME/jboss-7.1.1/modules/org/jboss/weld/core/main/module.xml

3. Comment-out the reference to the version of the jar that comes with the server, and add a reference to the new one:

<!-- <resource-root path="weld-core-1.1.5.AS71.Final.jar"/> -->
<resource-root path="weld-core-1.1.10.Final.jar"/>
1 Attachment
4217 Views
Average (0 Votes)
The average rating is 0.0 stars out of 5.
Comments
No comments yet. Be the first.