amir damirov
asked on
Glassfih 4.1 domain couldnt start. — it probably is another instance of a GlassFish server
I have glassfish app on my Linux red hat 6.
I cant start my glassfish node it gives me next error :
There is a process already using the admin port 5858 -- it probably is another instance of a GlassFish server.Command start-domain failed.
But when i run comman in linux " netstat -tulnp | grep 5858 " It shows me:
tcp :::5858 LISTEN 47256/java
Port used by java app. But i cant log in to my glassfish interface.
How can i solve this issue, any expierenced specialist with glassfish maybe can help.
I cant start my glassfish node it gives me next error :
There is a process already using the admin port 5858 -- it probably is another instance of a GlassFish server.Command start-domain failed.
But when i run comman in linux " netstat -tulnp | grep 5858 " It shows me:
tcp :::5858 LISTEN 47256/java
Port used by java app. But i cant log in to my glassfish interface.
How can i solve this issue, any expierenced specialist with glassfish maybe can help.
Why don't you just kill that process and start a new one?
looks like running in ipv6 by netstat command. disable ipv6 permanently if you're not using. check with localhost first.
kill the running process freshly start once again.
kill the running process freshly start once again.
ASKER
Dear All,
I have already done this. But still no result.
I killed process, and run command in glassfish : ./asadmin start-domain "domainname".
After executing this command it shows me that command was successfully ran.
But then when i execute command : ./asadmin list-domains :
It shows me that domain not running
I have already done this. But still no result.
I killed process, and run command in glassfish : ./asadmin start-domain "domainname".
After executing this command it shows me that command was successfully ran.
But then when i execute command : ./asadmin list-domains :
It shows me that domain not running
Check the log
ASKER
I have no expierence with glassfish and java apps. Maybe you know what does it mean.
[2018-06-13T16:54:54.976+0 400] [glassfish 4.1] [INFO] [] [] [tid: _ThreadID=15 _ThreadName=Thread-8] [timeMillis: 1528894494976] [levelValue: 800] [[
2018-06-13 16:54:54 ERROR DbOperations:223 - Exception :null
java.lang.NullPointerExcep tion
at com.bravo.db.common.DbOper ations.get DataFromDB (DbOperati ons.java:2 10)
at com.bravo.utility.Utils.fe tchAllMess age(Utils. java:73)
at com.bravo.utility.Property Cache.getM essage(Pro pertyCache .java:55)
at com.bravo.utility.Property Cache.getV alue(Prope rtyCache.j ava:29)
at com.bravo.db.common.DbOper ations.get DataFromDB (DbOperati ons.java:2 24)
at com.bravo.utility.Utils.fe tchAllMess age(Utils. java:73)
at com.bravo.utility.Property Cache.getM essage(Pro pertyCache .java:55)
at com.bravo.utility.Property Cache.getV alue(Prope rtyCache.j ava:29)
at com.bravo.db.common.DbOper ations.get DataFromDB (DbOperati ons.java:2 24)
at com.bravo.utility.Utils.fe tchAllMess age(Utils. java:73)
at com.bravo.utility.Property Cache.getM essage(Pro pertyCache .java:55)
at com.bravo.utility.Property Cache.getV alue(Prope rtyCache.j ava:29)
at com.bravo.db.common.DbOper ations.get DataFromDB (DbOperati ons.java:2 24)
at com.bravo.utility.Utils.fe tchAllMess age(Utils. java:73)
at com.bravo.utility.Property Cache.getM essage(Pro pertyCache .java:55)
at com.bravo.utility.Property Cache.getV alue(Prope rtyCache.j ava:29)
at com.bravo.db.common.DbOper ations.get DataFromDB (DbOperati ons.java:2 24)
at com.bravo.utility.Utils.fe tchAllMess age(Utils. java:73)
at com.bravo.utility.Property Cache.getM essage(Pro pertyCache .java:55)
at com.bravo.utility.Property Cache.getV alue(Prope rtyCache.j ava:29)
at com.bravo.db.common.DbOper ations.get DataFromDB (DbOperati ons.java:2 24)
at com.bravo.utility.Utils.fe tchAllMess age(Utils. java:73)
at com.bravo.utility.Property Cache.getM essage(Pro pertyCache .java:55)
at com.bravo.utility.Property Cache.getV alue(Prope rtyCache.j ava:29)
at com.bravo.db.common.DbOper ations.get DataFromDB (DbOperati ons.java:2 24)
at com.bravo.utility.Utils.fe tchAllMess age(Utils. java:73)
at com.bravo.utility.Property Cache.getM essage(Pro pertyCache .java:55)
at com.bravo.utility.Property Cache.getV alue(Prope rtyCache.j ava:29)
at com.bravo.db.common.DbOper ations.get DataFromDB (DbOperati ons.java:2 24)
at com.bravo.utility.Utils.fe tchAllMess age(Utils. java:73)
at com.bravo.utility.Property Cache.getM essage(Pro pertyCache .java:55)
at com.bravo.utility.Property Cache.getV alue(Prope rtyCache.j ava:29)
at com.bravo.db.common.DbOper ations.get DataFromDB (DbOperati ons.java:2 24)
at com.bravo.utility.Utils.fe tchAllMess age(Utils. java:73)
at com.bravo.utility.Property Cache.getM essage(Pro pertyCache .java:55)
at com.bravo.utility.Property Cache.getV alue(Prope rtyCache.j ava:29)
at com.bravo.db.common.DbOper ations.get DataFromDB (DbOperati ons.java:2 24)
at com.bravo.utility.Utils.fe tchAllMess age(Utils. java:73)
at com.bravo.utility.Property Cache.getM essage(Pro pertyCache .java:55)
at com.bravo.utility.Property Cache.getV alue(Prope rtyCache.j ava:29)
at com.bravo.db.common.DbOper ations.get DataFromDB (DbOperati ons.java:2 24)
at com.bravo.utility.Utils.fe tchAllMess age(Utils. java:73)
at com.bravo.utility.Property Cache.getM essage(Pro pertyCache .java:55)
at com.bravo.utility.Property Cache.getV alue(Prope rtyCache.j ava:29)
at com.bravo.db.common.DbOper ations.get DataFromDB (DbOperati ons.java:2 24)
at com.bravo.utility.Utils.fe tchAllMess age(Utils. java:73)
at com.bravo.utility.Property Cache.getM essage(Pro pertyCache .java:55)
at com.bravo.utility.Property Cache.getV alue(Prope rtyCache.j ava:29)
at com.bravo.db.common.DbOper ations.get DataFromDB (DbOperati ons.java:2 24)
at com.bravo.utility.Utils.fe tchAllMess age(Utils. java:73)
at com.bravo.utility.Property Cache.getM essage(Pro pertyCache .java:55)
at com.bravo.utility.Property Cache.getV alue(Prope rtyCache.j ava:29)
at com.bravo.db.common.DbOper ations.get DataFromDB (DbOperati ons.java:2 24)
at com.bravo.utility.Utils.fe tchAllMess age(Utils. java:73)
at com.bravo.utility.Property Cache.getM essage(Pro pertyCache .java:55)
"server.log_2018-06-13T16- 54-56" 29673L, 2002797C
[2018-06-13T16:54:54.976+0
2018-06-13 16:54:54 ERROR DbOperations:223 - Exception :null
java.lang.NullPointerExcep
at com.bravo.db.common.DbOper
at com.bravo.utility.Utils.fe
at com.bravo.utility.Property
at com.bravo.utility.Property
at com.bravo.db.common.DbOper
at com.bravo.utility.Utils.fe
at com.bravo.utility.Property
at com.bravo.utility.Property
at com.bravo.db.common.DbOper
at com.bravo.utility.Utils.fe
at com.bravo.utility.Property
at com.bravo.utility.Property
at com.bravo.db.common.DbOper
at com.bravo.utility.Utils.fe
at com.bravo.utility.Property
at com.bravo.utility.Property
at com.bravo.db.common.DbOper
at com.bravo.utility.Utils.fe
at com.bravo.utility.Property
at com.bravo.utility.Property
at com.bravo.db.common.DbOper
at com.bravo.utility.Utils.fe
at com.bravo.utility.Property
at com.bravo.utility.Property
at com.bravo.db.common.DbOper
at com.bravo.utility.Utils.fe
at com.bravo.utility.Property
at com.bravo.utility.Property
at com.bravo.db.common.DbOper
at com.bravo.utility.Utils.fe
at com.bravo.utility.Property
at com.bravo.utility.Property
at com.bravo.db.common.DbOper
at com.bravo.utility.Utils.fe
at com.bravo.utility.Property
at com.bravo.utility.Property
at com.bravo.db.common.DbOper
at com.bravo.utility.Utils.fe
at com.bravo.utility.Property
at com.bravo.utility.Property
at com.bravo.db.common.DbOper
at com.bravo.utility.Utils.fe
at com.bravo.utility.Property
at com.bravo.utility.Property
at com.bravo.db.common.DbOper
at com.bravo.utility.Utils.fe
at com.bravo.utility.Property
at com.bravo.utility.Property
at com.bravo.db.common.DbOper
at com.bravo.utility.Utils.fe
at com.bravo.utility.Property
at com.bravo.utility.Property
at com.bravo.db.common.DbOper
at com.bravo.utility.Utils.fe
at com.bravo.utility.Property
"server.log_2018-06-13T16-
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
To list any process listening to the port 5858:
lsof -i:5858
To kill any process listening to the port 5858:
kill $(lsof -t -i:5858)
or more violently:
kill -9 $(lsof -t -i:5858)
lsof -i:5858
To kill any process listening to the port 5858:
kill $(lsof -t -i:5858)
or more violently:
kill -9 $(lsof -t -i:5858)
ASKER
Dear Ashish.
I've tried it before but no result.
After killing process which use that port ( it's also used by java app ) i start domain via asadmin. It shows me " Start-domain executed successfully" but after i execute command " list-domains" it shows me again "domain not runing"
I've tried it before but no result.
After killing process which use that port ( it's also used by java app ) i start domain via asadmin. It shows me " Start-domain executed successfully" but after i execute command " list-domains" it shows me again "domain not runing"
Dear amir damirov
can u look for DbOperations.java: or canShow your code;it's seems to Error while creating the connection( con.createStatement();) so bettrer to look that code else show me the code so that i can assist u
Thank U
can u look for DbOperations.java: or canShow your code;it's seems to Error while creating the connection( con.createStatement();) so bettrer to look that code else show me the code so that i can assist u
Thank U
I agree with Manoj. Please post your code.