Install Glassfish On Windows

Install GlassFish 4.1 on Centos 7. In this tutorial, we will explain how to install GlassFish Server Open Source Edition 4.1 on a Centos 7.1 VPS. GlassFish is an open-source application server project and it’s Oracle’s concrete implementation of Java EE. This guide should work on other Linux VPS systems as well but was tested and written for a Centos 7 VPS. After your certificate is activated and issued, you can proceed with its installation on GlassFish. Since GlassFish uses keystores (.jks files), the certificate files need to be imported into the keystore with the corresponding private key before installation. For this, you will need to locate the keystore that was used to generate the CSR.

  1. Install Glassfish 5 Windows
  2. Install Glassfish On Windows 7 64 Bit
Active2 years, 9 months ago

Before I start I wanted to say, I have to put a space in many of the links because I am new to superuser & have restrictions. You'll find the spaces http:// (HERE) localhost:4848/. I'm sorry for the inconvenience, I hope this restriction will be lifted soon.

I can not start, Glassfish 4.1 server.
I'm running, Windows 8.1, 64x.

Install

I downloaded, Java EE 7 Full Platform glassfish-4.1.zip
From here:https://glassfish.java.net/download.html

Unzipped with, 7-Zip 9.20. Put zipped in a folder with my other zipped.
Put unzipped in C.

Glassfish

Path:C:glassfish-4.1
Next inside, glassfish4.

Path:C:glassfish-4.1glassfish4

Next inside, bin.

Path:C:glassfish-4.1glassfish4bin

Now in, asadmin Windows Batch File, opens Command prompt, C:Windowssystem32cmd.exe, asadmin>.

Enter, start-domain, Then cmd.exe outputs Waiting for domain1 to start........(lots of these)......serverNoStartCommand start-domain failded.

Opened, pkg, ran it, it installed.

Opened, updatetools ran it, it installed.

Again, in asadmin Windows Batch File, opens Command prompt, C:Windowssystem32cmd.exe, asadmin>.

Enter, start-domain, Then cmd.exe outputs Waiting for domain1 to start........(lots of these)......serverNoStartCommand start-domain failded.

If I try asadmin start-domain or glassfish4/bin/asadmin start-domain from this location I get the following.

I'd like to better understand the nature of this problem. Suggestions on how to fix/start server?

P.S. when I check http://localhost:4848/

P.S.S. when I try to start GlassFish from Netbeans...

Nifle

Install Glassfish 5 Windows

28.9k23 gold badges97 silver badges132 bronze badges
ReedWilliams8404ReedWilliams8404

2 Answers

The last screenshot where you try to start GlassFish through Netbeans suggests that there is already something running which is bound to port 8080 and/or port 8443. Check if there's no other application server (Tomcat etc) currently running.

Aside from that, your server log should tell you what is going wrong:

MikeMike

The main reason is that another server is using the port 8080, that is the one per default (to check in windows if those ports are being used in the commands line: netstat -a -o)

You would need to change it in:

/glassfish/domains/domain1/config/domain.xml

Then, remove the server from your framework (Eclipse for example), close it, start it and add the Glashfish again.

Before starting your framework make sure there is no file such:

In case it exists, remove it, you may stop any Java process for removing it.

These steps worked for me.

Install Glassfish On Windows 7 64 Bit

Community
Jesus GuillenJesus Guillen

Not the answer you're looking for? Browse other questions tagged windowscommand-linejavazipglassfish or ask your own question.

Active5 years, 8 months ago

When i tried to install glassfish server on windows 2008 R2 server, it shows the following error message.JRE already installed in my system and set environment variables as follows

JAVA_HOME - C:Program FilesJavajdk1.7.0_17CLASSPATH - %JAVA_HOME%jrelibPath - ;%JAVA_HOME%bin

Your help will be highly appreciated.

sareeshmnairsareeshmnair
4061 gold badge5 silver badges18 bronze badges

1 Answer

You just need to set the 'JAVA_HOME' environment variable (at least in my installation it was enough).

Windows

In 64 operating systems you must install from a command line. The command should be something like C:Installer>glassfish-4.0-windows.exe -j 'C:Program FilesJavajdk1.7.0_45'

You just need to change to your actual glassfish installer version and jdk home.

Victor_MagalhaesVictor_Magalhaes

Not the answer you're looking for? Browse other questions tagged javaglassfish or ask your own question.