tomcat unble to sart with clipse - windows

Tomcat showing unable to start using eclipse marce or luna but tomcat 7 or 8 running fine under windows 8.1 through cmd by the startup.bat but problem start with when ever try to work with eclipse, I have clear the log and change the directory of tomcat also and change the eclipse workspace but same result.
thanks

Related

TomCat 9 service failed to start on Windows after TomCat 9 update

I updated my app to the latest TomCat 9 available and after update TomCat service failed to start successfully as Windows service. I just see 404 error when trying to open the TomCat app. Also there are no logs at all in the log directory!
If I start TomCat locally by the command tomcat9.exe" //TS//MyApp it started successfully.
OS: Windows 7 and Server 2012
Does anybody have any ideas of how to troubleshoot this issue?
I think I had the same problem.
By default, Tomcat9 installs a service to run as "LOCAL SERVICE" instead of "SYSTEM".
I found that if you go the properties on your service and select the "Log On" option "Local System account", that it will then start to work.
In my case tomcat wouldn't log what the problem was, so there was no easy way to diagnose this.
Maybe this could be diagnosed by running Process Monitor, then seeing what directory it wanted to log to, then change the permissions on that directory so that any user could write to it.
Tomcat has a new option to launch as s SYSTEM: --ServiceUser=LocalSystem
Add it to the tomcat9w.exe //IS// --ServiceUser=LocalSystem

I am facing JDBC issue while I run them Apache tomcat as a windows service

My application is working as expected while I run them manually by using startup.bat file but I am facing JDBC issue while I run the tomcat as a windows service. My tomcat version is 7.0.91 and OS is windows 2016

Debug J2EE Applications on IntelliJ Community Edition and Tomcat8 (running as a service)

I've searched a lot on Remote Debugging a REST APIs written in Java using IntelliJ IDEA Community Edition.
My Setup:
Windows 10
Tomcat installed as a windows service
Java 8
Intellij Community IDE
Finally after some googling and sifting through SO, found a solution that works. Posting it below.
Part I. Running Tomcat in Debug Mode
When running Tomcat8 as a service
Open {$TOMCAT_HOME}\bin\Tomcat8w.exe
Under Java > Java Options add the following lines to enable the debug port 8001:
-Xdebug
-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8001
Restart the Tomcat Service
Part II. Attaching IntelliJ IDEA Remote Debugger
Create a new Run Configuration using the Remote Template.
Under Configuration > Settings Change the Port to 8001
Run the new config by clicking on the debug icon and IDEA will connect to the debug port of Tomcat
Credits:
How to remotely debug the webapplication running on tomcat service?

Tomcat 7.0 not starting withing 45 seconds even in a empty workspace

I have been using Tomcat 6.0 with jre 1.6 on eclipse for over more than 2 years now without any issue when i updated my jdk version to 1.7 and tomcat to 7.0.
Since then , i am continuously facing "Server Tomcat v7.0 Server at localhost was unable to start within 45 seconds." error during server startup. I am using a windows 7 32 bit system .
Have tried deleting the server from eclipse , linking it again , creating a new workspace , restarting eclipse but in vain. Have tried all the options from the below link but nothing works for me
Tomcat Server not starting with in 45 seconds.
Please assist.

Unable to debug tomcat server using eclipse

I'm using:
Spring Tool Suite Version: 3.2.0.RELEASE
Tomcat v7.0.42
When I just run my tomcat server everything is fine but I'm unable to debug it even locally. It produces following error:
Startich Apache Tomcat v7.0.42 at localhost has encoutered a problem.
Server Apache Tomcat v7.0.42 bat localhost was unable to start within 45 seconds. If the server requires more time, try increasing the timeout in the server editor.
I've tried the following:
increase the timeout.
remove all the apps before starting the debugging.
install new instance of tomcat (the only configuration that I've did on fresh install is turning on Use Tomcat installation and Never publish automatically).
But it didn't help, I still can only run the tomcat, without the debug option. Does anyone know how to make this debugging work?
When I've used new, clear workspace for Spring Tool Suite, debugging started to work.
Cheers,

Resources