Meaningless Drivel is fun!
The moose likes Other Java Products and Servers and the fly likes Glassfish v2 and v3 on same machine Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "Glassfish v2 and v3 on same machine" Watch "Glassfish v2 and v3 on same machine" New topic

Glassfish v2 and v3 on same machine

K. Tsang

Joined: Sep 13, 2007
Posts: 3130

Hello all, I have this weird behavior. I have a web app using Spring and Struts 2 and Hibernate - able to deploy and run on Glassfish v2. Now I have "also" installed Glassfish v3 and suddenly, the app wouldn't deploy on v2. Then I also try deploying on v3 ... again it would not deploy. According to the logs it apparently unable to initialize the servlet context.

Yet if I uninstall Glassfish v3, it works fine. Any ideas? Thanks.

K. Tsang JavaRanch SCJP5 SCJD OCPJP7 OCPWCD5 OCPBCD5 OCPWSD5 OCMJEA5 part 1 part 2/3
Bhavik patel
Ranch Hand

Joined: Feb 20, 2007
Posts: 49

On our machine, we have V3, V2 , Tomcat 5.5 , Apache2.2. All of them are running different find of applications.
We are not facing the kind of issue you have just posted.

Make sure you are not running into port conflict scenario..
Use different port-base for all the domains in v2 ,v3.

if this is not the case then, please upload entire server.log from both v2 and v3 in your next replay.

Glassfish Consulting is available at

Bhavik Patel
Glassfish Consultancy service At
I agree. Here's the link:
subject: Glassfish v2 and v3 on same machine
It's not a secret anymore!