![]() For now we're going to sed domain.xml but it would be nice to know if there was a way that's possible via the CLI. This is almost the definition of a corner case but one we need to solve. (3) Use a custom crafted zip of the Glassfish install archive with domain.xml already changed - not an option as the port we are setting may change in the future. (2) Use the scripted installer rather than the zip file and feed the parameters to the setup program as an answer file - this is problematic for our install scripts which are required to be idem potent. Select Register Local Domain as the domain. Any user who has access to the asadmin utility on a given system can create a domain and store its configuration in a folder of choice. ![]() A domain can exist independent of other domains. I've seen Glassfish change the order of attributes in this file so we can't just sed for port="4848" Right-click the Servers option, and then click on Add Server: Choose GlassFish v3 from the list: Click on Next. Any number of domains, each of which has a distinct administrative identity, can be created in a given installation of GlassFish Server. (1) Use sed on domain.xml - would prefer not to as it's complicated & risky grepping through XML code. While some of the config changes are dynamic it seems this one isn't but the domain stop assumes it is dynamic and uses the new port to try and execute the command. Of course they are, the old process has still got 'em! Your only way out is killall -9 java Worse, when you attempt to start the process you'll get a warning that some of your ports are already in use. He said he installed GlassFish with NetBeans therefore Glassfish is automatically set up by NetBeans installer, as of Netbeans 7.X this password is set randomly by NetBeans and can only be seen by looking inside the Servers option. You get: CLI306 Warning - server is not running.Ĭommand stop-domain executed successfully.īut your Glassfish process is still running. (4) Shut down the domain: $GLASSFISH_HOME/bin/asadmin stop-domain domain1 ,Ocompany,Lcity,SState,CCountry' -keystore keystore.jks. keytool -keysize 2048 -genkey -alias -keyalg RSA dname ' or www. ![]() (3) Change the admin port (you'll need to enter admin uid & password, in our script we use the -u & -W parameters): $GLASSFISH_HOME/bin/asadmin set -listener.port=34848 2) Generate a certification request by using following steps: Generate a new entry in keystore.jks with information of your domain. (2) Start your default domain: $GLASSFISH_HOME/bin/asadmin start-domain domain1
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |