-
1. Re: Problem with starting server with multiple deployed apps.
lafr Aug 10, 2012 6:37 AM (in response to clifford_r)What's the exact version you're using?
-
2. Re: Problem with starting server with multiple deployed apps.
clifford_r Aug 10, 2012 6:54 AM (in response to lafr)IT happend with jboss-as-7.1.1.Final and with jboss-as-7.1.0.Final.
-
3. Re: Problem with starting server with multiple deployed apps.
jaikiran Aug 10, 2012 12:45 PM (in response to clifford_r)NullPointerException is always a bad sign. This seems to be coming from Weld code. Can you post this in the weld user forum and point them to this thread?
-
4. Re: Problem with starting server with multiple deployed apps.
jaikiran Aug 10, 2012 12:46 PM (in response to jaikiran)Nevermind, I just realized that the Weld user forums are hosted right here at community.jboss.org. So I've moved this thread in that forum for you. Someone there might be able to help.
-
5. Re: Problem with starting server with multiple deployed apps.
jharting Aug 13, 2012 7:45 AM (in response to clifford_r)It's a known bug in Weld https://issues.jboss.org/browse/WELD-1067. Try upgrading Weld to 1.1.6.Final or later.
-
6. Re: Problem with starting server with multiple deployed apps.
clifford_r Aug 13, 2012 8:13 AM (in response to jharting)Thanks. This seems to have sovled the problem.
-
7. Re: Problem with starting server with multiple deployed apps.
jmcollin92 May 3, 2013 9:19 AM (in response to jharting)I've got the same problem. How do you upgrade Weld while it is embedded in JBoss AS 7.1.1 ?
-
8. Re: Problem with starting server with multiple deployed apps.
mkouba May 3, 2013 9:43 AM (in response to jmcollin92)Hi Jm,
you can simply replace the JBOSS_HOME/modules/org/jboss/weld/core/main/weld-core.jar with the latest 1.1.x version, 1.1.12.Final at the moment (don't forget to omit the version info).
-
9. Re: Problem with starting server with multiple deployed apps.
clifford_r May 3, 2013 9:46 AM (in response to jmcollin92)It a manual process (as far as I know and remember .... haven't work with this in a while) . Download the weld .1.1.6 Final lor later from http://www.seamframework.org/Weld/Downloads,,,
Extract then copy files in artifacts/weld too relevent locations...
weld-api.jar -- <-- jboss-as-7.1.1.Final install -->/modules/org/jboss/weld/api/main
weld-core.jar - <-- jboss-as-7.1.1.Final install -->/modules/org/jboss/weld/core/main
weld-spi.jar -- <-- jboss-as-7.1.1.Final install -->/modules/org/jboss/weld/spi/main
In each of the above there a module.xml file .... make sure that the jar files are refrence in these file ...only update <resource-root path="weld-spi.jar"/>
Example ... (for weld-spi,jar )
<module xmlns="urn:jboss:module:1.1" name="org.jboss.weld.spi">
<properties>
<property name="jboss.api" value="private"/>
</properties>
<resources>
<resource-root path="weld-spi.jar"/>
<!-- Insert resources here -->
</resources>
<dependencies>
<module name="javax.annotation.api"/>
<module name="javax.api"/>
<module name="javax.enterprise.api"/>
<module name="javax.inject.api"/>
<module name="javax.persistence.api"/>
<module name="javax.servlet.api"/>
<module name="javax.validation.api"/>
<module name="org.jboss.weld.api"/>
</dependencies>
</module>
-
10. Re: Problem with starting server with multiple deployed apps.
mkouba May 3, 2013 9:52 AM (in response to clifford_r)AFAIK you don't need to upgrade the API and SPI. And if you omit the artifact version the modules.xml file remains the same...
-
11. Re: Problem with starting server with multiple deployed apps.
jmcollin92 May 3, 2013 9:55 AM (in response to mkouba)Thank's for all. Its works.
Note that I only found 1.1.10 and not 1.1.12 like suggested by Martin.
-
12. Re: Problem with starting server with multiple deployed apps.
markus_s Jul 26, 2013 3:43 AM (in response to mkouba)Indeed, it is only necessary to update weld-core.jar, and it nicely fixes the problem.
A diff of weld-api.jar and weld-spi.jar bundled with JBoss 7.1.1.Final and weld 1.1.10.Final proves these files stayed the same.