Skip to main content

How much Is safe update certain component on an application server?

6 replies [Last post]
alexjava2008
Offline
Joined: 2008-04-09

For example i would like update the component Weld (JSR-299 Reference Implementation) on Glassfish 3 but i don't know if it's possible without problem and if is sufficient download the RI and put it on Glassfish.

But when i see on Glassfish3
./glassfishv3/glassfish/modules:
weld-integration.jar
weld-osgi-bundle.jar

If i see the package Weld these modules aren't present (there are other modules).

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
rogerk
Offline
Joined: 2004-05-06

Just replacing weld-osgi-bundle.jar with, for example, the latest 1.0.0-Final release of Weld may or may not work - depending if a new weld -integration.jar bundle is also required.

alexjava2008
Offline
Joined: 2008-04-09

On Weld 1.0.1 Final are present only these jar packages:

ls ./weld-1.0.1-Final/artifacts/cdi
cdi-api.jar cdi-api-javadoc.jar cdi-api-sources.jar

ls ./weld-1.0.1-Final/artifacts/weld
weld-api.jar
weld-servlet-sources.jar
weld-api-javadoc.jar
weld-se-sources.jar
weld-api-sources.jar
weld-spi.jar
weld-core.jar
weld-spi-javadoc.jar
weld-core-javadoc.jar
weld-spi-sources.jar
weld-core-sources.jar
weld-tomcat-support.jar
weld-se.jar
weld-tomcat-support-javadoc.jar
weld-se-javadoc.jar
weld-tomcat-support-sources.jar
weld-servlet-int.jar
weld-wicket.jar
weld-servlet-int-javadoc.jar
weld-wicket-javadoc.jar
weld-servlet-int-sources.jar
weld-wicket-sources.jar
weld-servlet.jar

Now I have found the last stable bundle on this maven repository:
http://mvnrepository.com/artifact/org.jboss.weld/weld-osgi-bundle

Message was edited by: alexjava2008

alexjava2008
Offline
Joined: 2008-04-09

Now i have found these repositories:
http://download.java.net/maven/glassfish/org/glassfish/web/weld-integrat...

Maven Central Repository:
http://repo2.maven.org/maven2/org/jboss/weld/weld-osgi-bundle/

Message was edited by: alexjava2008

rogerk
Offline
Joined: 2004-05-06

You should just need weld-integration and weld-osgi-bundle osgi modules to run weld in GF.

alexjava2008
Offline
Joined: 2008-04-09

Thanks rogerk.

Usually i don't use application container while i use servlet container (tomcat) so i wasn't sure if these type of operations are safe but after you answer i think should be ok.

Note:
After the introduction of ejb 3 i have had some interest on application server but with ejb 3.1 and now weld i have even more interest.

When i try the update of Weld i write in this topic.

Message was edited by: alexjava2008

alexjava2008
Offline
Joined: 2008-04-09

I have another question.
When i see:
http://download.java.net/maven/glassfish/org/glassfish/web/weld-integrat...
there are different versions and if i see the pom each is specific on specific version of the glassfish.
I use the final version of glassfish:

org.glassfish.web
web
3.0-b74

If i update only the package weld-osgi-bundle-xx.jar could be sufficient?

Note:
I have tried to update only weld-osgi-bundle but unfortunately this solution seem don't work.
Perhaps i retry another time.