Tomcat is running from terminal but not from Eclipse and Spring Tool Suite - eclipse

I am trying to start Tomcat 9.0 server from Eclipse and Spring Tool Suite. But is always ending with the error "Can't start in 45 seconds". I increased the time, still the same error.
I have given the installed Tomcat directory and a new tomcat zip extract directory to check whether it is an issue with the tomcat installation.
But the tomcat server is running from the terminal if I use the command
/Library/Tomcat/bin/startup.sh
And stopping with the command
/Library/Tomcat/bin/shutdown.sh
How can I make the server running from Eclipse and STS? Any help is appreciated
Note: I am using Mac Catalina as my OS

Related

Could not load Tomcat 9.0 Server in Eclipse

When I try to add Tomcat 9.0 to Eclipse (Define a New Server > Tomcat v9.0 Server), I get: Could not load the Tomcat server configuration at C:\Program Files\Apache Software Foundation\Tomcat 9.0\conf.
Interestingly, I do see that exact directory on the file system. I installed Tomcat 9 using the installer (.exe), so that's the default location where it ended up. Is there some reason why Eclipse would not be able to recognize it?
I was able to define a Tomcat 8.0 server with no issues. I had downloaded the Tomcat 8 binary rather than using the installer.

GlassFish server fails to launch from eclipse [duplicate]

I am trying to test my web application in GlassFish 4 from eclipse. When I am starting GlassFish 4 with a file (startserv.bat), it works fine, but when I am trying to run it from Eclipse, it starts loading, but then the startup process gets stuck at 69%, on a message Launching Delegate...
After several minutes in that condition, it gives me an error message:
After a few re-tries, I got this message:
Even though nothing is running on the port 8080 (GlassFish's port) and 4848 (GlassFIsh's admin port)
It worked fine for me before, but now for some reason, it just doesn't, I haven't done anything to it's settings or anything. How can I resolve this problem?
Here is my startup console log: http://pastebin.com/XL0Lh5zw (using pastebin to avoid making the post to big)
I had the same problem, with the same messages.
After a long search, I gave up and I removed the server.
And I removed the Server Runtime Environment
The Glassfish files were not removed only the eclipse configurations, and then I re-created the Server Runtime and the Server using the existent glassfish server and the problem was fixed :D.
I got the same issue. I'm using Eclipse Luna.
I downgraded my GlassFish Tools to 7.2 and I got the server started back again.
http://download.oracle.com/otn_software/oepe/12.1.3.1/luna/repository
I didn't see any errors in the log, just some warnings about Hibernate stuff, which shouldn't crash the launch. It could be that it is taking too long to initialize with all of the eclipse overhead, but most likely it could be a locking issue, which could cause the timeout, since eclipse would be left infinitely waiting for a resource it could never obtain. Are you sure the server is only being accessed by eclipse, and is not already running or owned by another process?
I was also getting this issue all the week. But in our team we finally fixed it. It seems that Glassfish needs JDK 8 (not JRE 8 default given entry in Eclipse Luna) so you have to firstly install JDK 8 from Oracle web site and after configure Eclipse to point on it in Windows -> Preference -> Java -> Installed JREs Click on "Add" choose "Standard VM" click on "Next" and use "Directory" button to point on your -freshly installed- JDK8 directory if you didn't change any thing during the installation , on windows it would be "C:\Program Files\Java\jdk1.8.0_20".
Just because Glassfish and Glassfish Tools for Luna need JDK8 to perfectly work.
I had the very same issue with GF 3.1.
When looking into the problem I noticed that in the Eclipse console Glassfish appeared to be still running. I deleted the application using the web console and then I quit Eclipse. I then checked the active Java process (i.e. ps -e | grep java) and noticed an zombie Glassfish process.
Sometimes it happens that Eclipse is not able to startup / shutdown Glassfish correctly, "loosing" a process doing so. Usually killing the zombie process fixes Glassfish and related integration with Eclipse.
Another thing to try in this case is to remove the applications from the Server and remove the server from Servers panel in Eclipse, then adding the server and applications again.
I'm using Eclipse Glassfish 3.1.1, Luna 4.4.1, Java 1.7.0_71, OS X Yosemite.
Changing debug port (properties->glassfish->debug port) to current+1 (eg. from 8008 to 8009) every time it happens makes it work for me.
I'm using eclipse neon 4.6.0 + glassfish 4.1
If any one is still stuck go to your glassfish folder domain > domain1 > config
edit domain.xml change network listener port no. to any other port number.
Restart eclipse and glassfish.
assuming you have glassfish 4.1.1 it worked for me.
I fixed the problem by using Eclipse Neon (4.6) and GlassFish 4.1.1.
Had the same problem, no idea why this happens. Anyway, I deleted Glassfish from Eclipse and had a new GF set up. Worked for me just fine!
Using Eclipse Mars and Glassfish 3.2. I used Eclipse > Help > Check for Updates. Two updates were found and one was Glassfish tools. Allowed the update to do its thing and it seems to have resolved the problem.
Go to below path:
C:\glassfish4\glassfish\domains\domain1\config
Also the path where your server location configured into the eclipse and open domain.xml file.
Find out the 8080 port number and change different port number like 8081...
Save and close the file.
In eclipse:
Remove the added server and add fresh Glashfish server.
Start the server. This will solve the problem.
Same problem here, stuck at 68%.
I find out that it was docker which occupied 8080:80.
If any one who is also using docker:
I do "docker ps"to see which one is using 8080
then i do "docker stop [container id]"and "docker rm [container id]"
then the glassfish sever in eclipse finally launched successfully.

Can't add TomCat sever in Eclipse using ubuntu

So I installed tomcat using this tutorial (instructions from 0:00 to 3:30): https://www.youtube.com/watch?v=xyd9EoO-1nk
Later I restarted my computer and now when I go into "eclipse -> Window -> Preferences -> Server -> Runtime Environments -> Add" I have here only "Basic" and "GlassFish" directories. Somebody have maybe idea how to make visible tomcat here?
I also installed tomcat using "sudo apt-get install tomcat7" but it also didn't help. But when I go into "localhost:8080" I see "It works! If you're seeing this page via a web browser...".
First part, the tomcat installation
You installed tomcat in your linux as a service. I mean your tomcat 7 is installed, start when you start your OS, and stop when you stop your OS.
You can check this by looking in /etc/init.d/, you must have a tomcat script (and you can control it by doing /etc/init.d/tomcat start|stop|restart). If you want to use this tomcat, I recommend you to
stop tomcat (as root, /etc/init.d/tomcat stop),
remove the tomcat script (as root, rm /etc/init.d/tomcat) to avoid a
tomcat start when the ubuntu boots
Locate the tomcat instance installation. find / -name tomcat
-print will print you all the directory where files named tomcat are located. Identify the tomcat root directory, which is the root
to give to eclipse.
Else you can just remove tomcat (apt-get remove tomcat7), download a tomcat release from tomcat.apache.org and untar it where you want. I prefer this method, because the tomcat installation won't have any "root" o weird user permission, more convenient when you're developing.
Second part, the eclipse configuration:
In the "Add Runtime Environment" windows, you'd have a link Download additional server adapters. If you click it (with a working network connection), eclipse will propose you to download the tomcat adapter. Install it and you'll be capable to add a new tomcat server.
If it doesn't work, I think you may reinstall your eclipse...
Hope this helps

starting jboss server through eclipse

I am new to eclipse and JBoss application development. I am trying to start my jboss server from eclipse.
The steps which I carried out are :
I installed boss 4 plugins on eclipse kepler
I configured the new->server to jboss with jre7
but when I click start the server it gives me exception list : Exception
If I start my server by running standalone.bat, it runs successfully. then why it does not run in eclipse?
Any suggestion?
Thanks in advance.
You eclipse should be opened in Admnistrator Mode.
More Information

Combine Eclipse Juno and GlassFish server

I am using Eclipse Juno and installed GlassFish Server 3.1.2 on Windows 7 under C:\glassfish3. Glassfish is running fine and I am able to visit the admin panel under localhost:4848/common/index.jsf. Morevoer I am able to deploy a war file and can start the application. My external GlassFish-server seems ok!
If I want to add a new Server to my Eclipse Juno environment I come to a screen where I can pick a GlassFish variant and afterwards I need to set a JRE and an Application Server Directory. I can't set a path for the Application Server Directory that my eclipse wizard lets me finish the configuration. Thanks in advance for further information!
UPDATE: I got this error message in the wizard after setting the application server directory path to C:\glassfish3\glassfish like it is proposed here: https://glassfishplugins.java.net/eclipse36/#1
There is no valid GlassFish installation in the specified directory. Click the Install Server button to download and install to that directory.