- This topic has 3 replies, 2 voices, and was last updated 15 years, 2 months ago by support-joy.
-
AuthorPosts
-
johnSteeleMemberHello,
I’m trying to add Glassfish V2.X, but I’m having trouble.
Whenever I go to server -> configure -> glassfishV2.X ->
It then asks for “home directory” && “configuration directory” && “etc..”.
I haven’t downloaded Glassfish, so how does this work?
Can you tell me, and provide the links that I need to get glassfish up and running?
Thank you.
support-joyMemberjohnSteele,
I would recommend you to follow the below steps to install & Configure Glassfish V2.x server in MyEclipse.
Steps to install and configure GlassFish Server v2.1
1) Download GlassFish server(glassfish-installer-v2ur2-b04-windows.jar) from the following link.
2) Set JAVA_HOME to the JDK you have installed on your system.
3) From command prompt, Run the following command
- >java -Xmx256m -jar glassfish-installer-v2.1-b60e-darwin.jar
This command will unbundle GlassFish and create a new directory structure rooted under a directory named ‘glassfish’.
4) Go to GlassFish home directory.
5) Set path= GlassFish- Home -Directory/bin; as an Environment variable(if not exists).
6) Set the execute permission for the Ant binaries that are included with the GlassFish bundle.
- GlassFish- Home -Directory/lib/ant/bin/ant -f setup.xml
7) Add a new environment variable AS_ADMIN_USER=admin.
Optional Steps:
a) Go to GlassFish home directory/bin folder in windows Explorer and double click the “asadmin.bat” file then one new command prompt will be opened.
b) To start the server, enter “start-domain”(It will starts the default domain “domain1”).- Admin username:admin
Admin Password:adminadmin
Master Password:changeit
Note: These are all default valuesc) Open browser and enter the following address to enter into admin console.
d) To stop the server, enter “stop-domain” from admin prompt.
Steps to Configure Glassfish from MyEclipse
1) Open MyEclipse IDE.
2) Open Preferences Page. You can get it from window>preferences
3) Select Glassfish 2.x in preferences page. You can get it from MyEclipse Enterprise Workbench>Servers>Glassfish.
4) Select Enable
5) Click browse to Glassfish home directory. Accept all the remaining default values.
6) Click Apply>OK.
7) Run Glassfish server from “Servers” view.Let me know how this works for you.
johnSteeleMemberWow! Now that’s a good response.
This worked perfect, and It’s now up and running.
Thank you very much. Very nice of you.
support-joyMemberjohnSteele,
You’re welcome. Good to hear you are all set. 🙂
-
AuthorPosts