GlassFish 5.0 exception and port 4848 not responding

Yesterday I downloaded GlassFish 5.0 and JDK9. When I try to start the server with asadmin start-domainGlassFish send me an exception

When I try to use "asadmin start-domainAfter", I replied: "The remote server is not listening on the request to [localhost 4848]. Is serwer up?"

Can anybody help me? I was looking for a solution in google, I tried to kill the process using port 4848, changed port 4848 in domain.xml to another, nothing helps.

This is my time with glass fish, I do not know what to do. Can anybody help me?

I work on Windows 7, InteliJ Ultimate 2017.2.4, JRE 1.8 and JDK 9.

+4
source share
5 answers

GlassFish 5.0, JDK 9, .

GlassFish 5.0 JDK 8 (u144), : https://javaee.imtqy.com/glassfish/doc/5.0/release-notes.pdf

+6

, GlassFish 5.0 Java SE 8, Java SE 8. , Eclipse, - Java SE 9 GlassFish 5 .

JDK 9 , GlassFish 5.0.1 . https://blogs.oracle.com/theaquarium/java-ee-8-is-final-and-glassfish-50-is-released

+2

Windows 10, JDK JRE 9 8u141, 8u151, 8u144 ( ) : "asadmin start-version" .

CMD:

C:\Users\xxxxx>**java -version**
java version "9.0.1"
Java(TM) SE Runtime Environment (build 9.0.1+11)
Java HotSpot(TM) 64-Bit Server VM (build 9.0.1+11, mixed mode)

JAVA_HOME PATH viariables - JDK8u151???

, :

Java AS_JAVA as-install/config/asenv.conf.

C:\DEVENV\glassfish5\glassfish\config>dir
 Le volume dans le lecteur C s’appelle OS
 Le numéro de série du volume est 10BF-2BBE

 Répertoire de C:\DEVENV\glassfish5\glassfish\config

08/09/2017  07:27    <DIR>          .
08/09/2017  07:27    <DIR>          ..
12/01/2018  17:44             3 516 asenv.bat
...

, :

set AS_IMQ_LIB=..\..\mq\lib
set AS_IMQ_BIN=..\..\mq\bin
set AS_CONFIG=..\config
set AS_INSTALL=..
set AS_DEF_DOMAINS_PATH=..\domains
set AS_DEF_NODES_PATH=..\nodes
set AS_DERBY_INSTALL=..\..\javadb
**set AS_JAVA=C:\Program Files\Java\jdk1.8.0_151**

CMD asadmin: .... .

+1

, NullPointerException, PATH . , JDK ( : GlassFish 5.0 JDK 8u144). NullPointerException JDK, : https://docs.oracle.com/cd/E19226-01/820-7688/gipqi/index.html

PATH java8u144 bin, PATH C:\ProgramData\Oracle\Java\javapath. - java SDK \ProgramData\Oracle, GlassFish java SDK.

0

If you are on a Mac or Linux machine, add the following config/asenv.confto the installation directory for your glass fish.

set AS_JAVA="path to your jdk 8"

For example, on Mac OS it will be

AS_JAVA="/Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home"
0
source

Source: https://habr.com/ru/post/1686316/


All Articles