Came up with some issues on configuring a new instance of Glassfish 4 when i already had a Glassfish 3 instance installed and running as a service.
The following are some steps to install both Glassfish 3 and 4 on a Windows Server environment:
1) Stop existing services
2) Change your existing service DisplayName if necessary. For this use (as an example, consider a existing domain1, the default name):
</pre> sc config domain1 DisplayName= "GlassFish 3"
3) Go to the Glassfish bin folder and do:
</pre> asadmin create-service --name "GlassFish3" domain1
4) Go to the domain bin folder and run the newly created service with the ‘start’ instruction.
5) Repeat steps 3 and 2 in this order for the GlassFish4 instance.
Cheers!