Glassfish 4.0 Server DAS port occupied .Server fails to start - glassfish-4

I have Windows 8 .Installed netbeans 7.4 and glassfish 4.0...
When i run a program it says "Could not start glassfish server 4.0 DAs port occupied while server is not running"
Pl help

Go to service, select server, right click and select add server, Add Server Instance wizard will be opened. select glashfish server and select next button.
In server location give appropriate glashfish location, then select next button. Now Domain wizard will be opened, Give other port number. then click finish.
check is there any application using same port no
netstat -na | find "80"
netstat -anob

Related

pgAdmin4 - postgresql application server could not be contacted

I know this question may be marked as repeated, but keep in mind that I have searched for numerous posted solutions and my error has not been fixed.
When starting postgres, I get the following error:
postgresql application server could not be contacted.
When running as administrator the error is "solved", but the application opens in another port - sometimes it opens in 50142, 51120 and others in 50859 -. And when it opens on another port (like the ones previously said), it asks for the password to connect to the server and I get this error:
could not connect to server: Connection refused (0x0000274D/10061) Is the server running on host "localhost" (::1) and accepting TCP/IP connections on port 5432? could not connect to server: Connection refused (0x0000274D/10061) Is the server running on host "localhost" (127.0.0.1) and accepting TCP/IP connections on port 5432?
Infos:
Windows 10 64Bits
Postgresql 10
pgAdmin 4.1
Port 5432 (appears even in PostgreSQL\10\data\postgres.conf)
Solutions already tried:
Run in administrator mode
Modify the postgres.conf file
Clear the contents of the folder AppData\Roaming\pgAdmin
I would like to know how to avoid this error when starting the application and always opening on a specific port.
Simply locate AppData\Roaming\pgAdmin, delete the pgAdmin folder and try to start pgAdmin again... It should work
I finally got the right solution after 3 days of tries, this was insane, some answers above was correct at least not in my case but if you running to the same problem I had, I suggested following these steps even though some answers was very clear and helpful regarding deleting the folders inside the pgAdmin folder but not all the time and it depends.
So here are the steps to follow:
I installed the PostgreSQL and the pgAdmin4 comes with but the pgAdmin4 wasn't working and it was giving me the error (couldn't connect to the server).
To fix the problem, go to
This PC > local Disk(C:) > Users > (your folder's name)
in this folder you need to show the hidden folders.
on top left click on view > options > change folder and search option > view > (mark
show hidden files, folders and drives > then click ok.
now you will see the AppData folder click on it then roaming > pgadmin > (here you will see folders and files) delete them all and then go to the recycle ben and delete them from there too.
now go to pgadmin4 website and download the latest version, follow the steps to finish it .
now go to windows symbol in the bottom left of the screen where is says start, and run the latest version of the pgAdmin4 that you just installed, you will see it there separately from the one that, it comes inside the PostgreSQL.
(RUN THE NEW VERSION YOU JUST INSTALLED, IT WILL WORK, DO NOT RUN THE VERSION THAT IT COMES WITH POSTGRESQL BECAUSE IT WON'T WORK)
This error is happening because you haven't started the ppgadmin server.
For pgadmin3 we don't need to do this thing because pgadmin3 was an application but for pgadmin4 they have build web interface in a specific port.
So before starting pgadmin4 in browser you have to start the server.
In python we just download the pgadmin4 package and after activating the venv we run the pgadmin server file.
I would suggest you to try for the same.
Here is how I fixed this issue on window 10
Delete all files and folders within App Data folder found in C:\Users\%USERNAME%\AppData\Roaming\pgAdmin (please note AppData is a hidden folder, to find it ,go to C:\Users%USERNAME%, go to View tab on top panel of file explorer > Click Options > click change folder and search options > View tab >in Advance options click show hidden files, folders and drives, click OK, this will display the AppData folder)
Add to Path Variables C:\Program Files\PostgreSQL\9.6\bin (To access environment variables: Control Panel > System and security > System or right click on PC, then > Advance system settings > Environment variables > System variables > Path > New > add the copied path)
Go to start menu of windows search PgAdmin > Right click and start as admin.

Having issue with Tomcat when I run in a eclipse

I am novice in java I have installed Tomcat and it runs fine in a browser but when I run in a eclipse its showing error like
Several ports (8005, 8282, 8009) required by Tomcat v7.0 Server at localhost are already in use. The server may already be running in another process, or a system process may be using the port. To start this server you will need to stop the other process or change the port number(s).
I would like to mention one thing I am not authorized to login with admin account I have tried lot to stop the already running stuff through command prompt and i followed this link Deployment error: Starting of tomcat fail
however I am getting the same error is there any way to solve this issue.
Thank You.
Some other process is using one or more of the ports needed by tomcat (8005, 8282, 8009). Probably an old instance of tomcat. Kill it, then try again.
You can run netstat -abn on windows or netstat -apn on Linux to figure out which process is listening to these ports.

Netbeans IDE8 Glassfish 4, GlassFish Server: Administrator port is occupied by null

I just downloaded Netbeans IDE7 with the Glassfish 4.
I just made a project to test it out and see how it goes, and I got this error right from the start:
Could not start GlassFish Server: DAS port is occupied while server is not running
[location]: Deployment error: Could not start GlassFish Server: DAS port is occupied while server is not running
See the server log for details.
BUILD FAILED (total time: 1 second)
I have reinstalled it three times, with the Glassfish and without and then later add it to Netbeans, i changed the domain.xml name="admin-listener" port="4848" to something different
i did this cmd code netstat -aon | find ":80" | find "LISTENING" and closed the programm.
i ran as administrator i think i did almost everyting but it wont simply run, and it keeps returning to the same error
usually i would have given up but this software is required for a school project.
i will try everything.
i hope someone can help me.
Thx in advance
You have to find the process that has taken the port you need. You can try finding it by running the terminal with the command:
netstat -aon | find ":80" | find "LISTENING"
Find the information you need and than kill the process with specific PID in Task Manager.
I hope you find this useful,
Thanks.
A few points:
Why not download NetBeans 8 that also includes GlassFish 4?
Assuming that you have successfully figured out that no other process is listening on port 4848, then Which version of the JDK are you using? Can you try JDK 7 if you are using JDK 8?
Looks like you are not alone - see NetBeans bug 237477.
Note that this isn't the only problem. I run on a Mac and can use the asadmin start command successfully on the remote server. IF I try to start it from NetBeans, it gives me this message.
One hint might be that the domain.xml file is set so that the listening port is 9090, the properties screen for the remote server, which I entered 9090 for, tells me the HTTP port is 23043. I can't edit it. Everytime I try to create that remote server it sets it to this value. The server will run fine if I start it by hand on the remote server, but NetBeans doesn't think it is running.
This occurs because I had to select domain2 because NetBeans says domain1 is already registered on my local machine. I wanted to have a local domain1 and a remote domain1 that are identical so I can test locally, and then deploy remotely.
This error message could be misleading, because it is the same when IP adress of glassfish server in netbeans settings is wrong (not port).
By my experience with this over win 8.1 + Netbeans 8.0 + Glassfish 4.0
The problem resides in permission of folder in windows that block the server execution
I solve the problem changing the permission of the glassfish/domain/domain1 folder for xxxx/user to totalcontrol
If this not solve your problem, try launch the server over console:
asadmin start-domain --verbose
And read the exceptions to try solve the problem.
-EDIT:
Reading other post to try help:
like this: Glassfish server started failed in netbeans 6.9
Or check your firewall:
allow >> C:\Program
Files\glassfish-X.X\glassfish\modules\glassfish.jar
In my case when using the command
netstat -aon | find ":4848" | find "LISTENING"
I noticed that one process was occupying this port. When checked what it was I noticed it was VMWare NAT controller, because I previously had configured a network adapter to listen to this port.
Just stopped all VMWare related services (in my case I didn't need them for development purposes), and solved the problem.
Go to Task Manager -> Services -> Stop Process whose PID IS 3136,2268,2468 ,23.... and near Range in PID. All processes near to the web server's PID.
It works for me on Windows 8.1 pro & Windows 7.
I had the same error message.
Turned out it was caused because my firewall blocked port 4848
May be late but I solved this issue by deleting the app server from the Netbeans and by adding it again. In my case Netbeans 8.2 and Payara 4.1 instead of Glassfish.
If you changed the host of Glassfish server then set it to localhost it should work.

connect firebird client to server

Just started using Firebird with Delphi XE. Need some help connecting to the server from a client machine.
I can ping the server, so there is a connect. but when I run isql.exe from the firebird/bin folder to test the connection I get a "statement failed, sqlstate=08006, unable to complete network request to host geith -failed to establish a network connection". pinging geith works so I don't understand that error.
My connection statement is Connect geith:geidata user sysdba password masterkey;
This works and I get a connect when run on the server, but not the client machine.
I have made sure that fbclient.dll and gds32.dll are in windows/system32 folder.
I install Firebird 2.5 client only on the client mach. I don't see it running as a process in taskmanager. Is there something that I need to do to start the client service?
Both are XP mach, Firebird SuperServer 2.5, also have temp taken down firewall
Insert a firewall except for port 3050
Add Windows Firewall Settings.
Go to Start --> control panel --> Windows Firewall --> goto Exceptions tab -- > Click Add Program --> and select C:\Program Files\Firebird\Firebird_2_5\bin\fbguard.exe
same way add C:\Program Files\Firebird\Firebird_2_5\bin\fbserver.exe
now Restart you system
and check from client to server firebird connection.
for window7 Windows Firewall --> Inbound Rules --> Add new rules --> add fbguard.exe and fbserver.exe

How to solve WAMP and Skype Conflict in windows XP?

How do I solve the WAMP and Skype Conflict in windows XP?
My issue is both are working simultaneously when I try to start WAMP
This alert is displayed:
'could not execute menu item(internal error)...'
Generally
If you have installed Skype with WAMP and if you run Skype before WAMP, you can not get WAMP Apache running. Because both use port 80, there is a conflict.
So before running WAMP be sure that your Skype is disconnected. You can log on Skype after you started WAMP .
In Skype if you click "tools " then "Options > Advanced > Connection" or "Connection options ..." and connection down the left,,
un-tick the check-box : "use port 80 and 443 as alternative incoming ports"
The problem should be fixed
In your Case
You might want to backup Wamp's data (don't forget Mysql and www directory), uninstall the WAMP and install fresh WAMPServer again.
In skype >>
Go to Tools -> Options -> Advanced -> Connections and uncheck the box "use port 80 and 443 as alternative".