The Source for Java Technology Collaboration

Home » java.net Forums » GlassFish » GlassFish

Thread: How to install glassfish without hard coded paths

Welcome, Guest Help
Login Login
Guest Settings Guest Settings
This question is not answered. Helpful answers available: 2. Correct answers available: 1.

Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 1 - Last Post: Jul 23, 2008 9:18 PM by: lazjen
mohanvasa

Posts: 3
How to install glassfish without hard coded paths
Posted: Jul 23, 2008 5:24 PM
 
  Click to reply to this thread Reply

When we install glassfish v2 on a solaris box, it hard codes the location in a number of scripts and config files. This installation cannot be moved to any other machine or any other folder in the same machine.

Is there any way to instruct the glassfish installation scripts to use some environment variables or pass a config file to control this. We would really want to be able to distribute glassfish without having to run the glassfish installer on our customer machine.

lazjen

Posts: 12
Re: How to install glassfish without hard coded paths
Posted: Jul 23, 2008 9:18 PM   in response to: mohanvasa
 
  Click to reply to this thread Reply

As far as I'm aware, there's no overall environment variable to set (like, say GLASSFISH_HOME) for the base directory of glassfish.

A while back I experimented with writing a script to go through the glassfish installation to modify the paths to a new location. From memory it was a simple sed script (*) that changed the current path to the new path, and I think this worked. However, my requirements changed and I no longer needed to move the glassfish installation, so I abandoned the work.

You might be able to package something for your clients by using this approach.

(*) e.g. sed -i -e "s@<oldpath>@<newpath>@g" <filename>




 XML java.net RSS