Faulting application name: tomcat9.exe - tomcat9

I am trying to install tomcat 9 using apdoptopenjdk jdk-11.0.6.10-hotspot on windows server 2008 R2. The tomcat starts properly from the command prompt when I ran startup.bat.
I have mentioned correct JVM path in the tomcat configutation dialog box and the mode is also set to JVM. Have cross checked this configuration multiple times and found no issue with it.
But it won't start when I ran from services.msc as a service.
The issue I get when ran as a service is 1067 terminated unexpectedly. And when I check the system logs in event viewer it shows below error.
Please help me as I am trying this since last two weeks.

I think this is a tomcat bug.
https://bz.apache.org/bugzilla/show_bug.cgi?id=63767
I'm following up something similar, but your issue appears to have been fixed in 9.0.27

Related

Question on Tomcat Server not starting via Eclipse

Please follow Getting error while starting Tomcat Server 9 in Eclipse though command line run is successfull for my query.
I would appreciate an early response.
Best,
Arushi
Here are screens:
Change the directory to WEB-INF. It worked fine after that. Which is after tomcat/../web-inf/
Before that check
whether the tomcat folder have root access.
In cmd, you will run as a user. But eclipse can't.
I had the same problem in Linux.
After giving the access permission, no error message.
If it is running in cmd, then it might be due to permission.
Did you stopped Tomcat before deploying in eclipse?
Stop tomcat using cmd and run in eclipse.
Restart the server again.
If same persists then reinstall it.
I hope these steps will solve your problem.
Update: I installed 201912 version of Eclipse, deleted Tomcat folder from /usr/local/. Followed all steps in https://wolfpaulus.com/tomcat/ and am able to access Tomcat Server without any issue. Thanks to all for the great help!! Will mark this as solved.

FAIL - Failed to deploy application at context path

Before I explain the problem, I just want to point out that I am completely new to NetBeans and Tomcat and I am doing a school project. That being said, the problem is exactly what the title says. Here is the output when I try to run a simple Hello World jsp:
In-place deployment at
C:\Users\lostl\OneDrive\Documents\NetBeansProjects\Project3\build\web
Deployment is in progress...
deploy?config=file%3A%2FC%3A%2FUsers%2Flostl%2FAppData%2FLocal%2FTemp%2Fcontext7180600714574256491.xml&path=/Project3
FAIL - Failed to deploy application at context path [/Project3]
C:\Users\lostl\OneDrive\Documents\NetBeansProjects\Project3\nbproject\build-impl.xml:1058: The module has not been deployed.
See the server log for details.
BUILD FAILED (total time: 0 seconds)
I am using Apache NetBeans 11.2 and Tomcat 9 if it is relevant.
Here is what I tried:
I checked the server log and it displays absolutely nothing.
I tried setting the context path directly to Project3 (i.e. including the -C:/... before Project3) in the context.xml file under META-INF folder.
I tried restarting NetBeans and cleaning and building the project.
I tried running NetBeans under admin privileges.
I might seem like such an idiot for not knowing how to fix this since no one else seems to have this problem, but please help me out.
If you have installed the Apache Tomcat appart from Netbeans, maybe your apache service is already running and it conflicts with Netbeans. You may stop the apache service and then run the application in Netbeans.
Because Netbeans start the apache service in a diffent way, so you don´t need to install the aplication on apache´s folder.
Check out the Windows Services (Services App) and stop the Apache Tomcat if running, then from Netbeans menu select Run->Run Project. Netbean will start Tomcat and deploy your web app onto the Tomcat server.
I fixed it. All I had to do was restart my computer. I feel so dumb.
clean your project if clean project failed to delete some file then,
Just check there must be a java process running at background.
If you are using windows 10 then follow these steps
open command prompt and type below commands
tasklist | findstr java (hit enter now you can see a task list with pid number )
taskkill /F /PID "PID_OF_JAVA_PROCESS" (where PID_OF_JAVA_PROCESS--> task pid hit enter)
now run the project again
I faced this problem and found a solution. It is very simple. All you need to do is stop the Tomcat services or restart your computer and run your program.

cannot start weblogic from netbeans after windows 7 BSOD

after a BSOD in Windows 7 something gets corrupted and NetBeans cannot start a local WebLogic 10 server it didn't have any problems with before.
there is also a peculiar message appearing in NetBeans notification, with message and stacktrace almost identical to those reported in a filed NetBeans bug report:
java.lang.IllegalArgumentException: hostname can't be null
at java.net.InetSocketAddress.<init>(InetSocketAddress.java:139)
at org.netbeans.modules.weblogic.common.api.WebLogicRuntime.ping(WebLogicRuntime.java:623)
at org.netbeans.modules.weblogic.common.api.WebLogicRuntime.ping(WebLogicRuntime.java:612)
at org.netbeans.modules.weblogic.common.api.WebLogicRuntime.isRunning(WebLogicRuntime.java:500)
at org.netbeans.modules.j2ee.weblogic9.optional.WLStartServer.isRunning(WLStartServer.java:124)
at org.netbeans.modules.j2ee.deployment.impl.ServerInstance$3.run(ServerInstance.java:902)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1443)
at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:68)
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:303)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2058)
I tried multiple restarts since then, multiple netbeans restarts, tried even both NetBeans 8.1 and 9 - when starting WebLogic, NetBeans just is stuck with "Starting ..." message and never stops. You actually have to forcefully close NetBeans to stop this.
at some point i tried to start weblogic outside NetBeans, and saw that it was failing to start, with a message approximately like this from this Oracle forum thread:
<Critical> <WebLogicServer> <BEA-000362> <Server failed. Reason: [Management:141268]Parsing Failure in config.xml on line 1, column 1: Content is not allowed in prolog.>
Well, indeed there is a directory inside WebLogic domain I was trying to start called "config", with a file "config.xml" there (and a config.loc - deleting it didn't make any difference) - so I tried to look into config.xml and WOW it was totally corrupted. So that was the reason nothing started. I tried to just delete this file (config.xml) (in the above Oracle forum thread they also suggest to delete the domain - but this was not an option for me as it wasn't an integrated server) - after trying to start the server manually again, WebLogic starter script politely asked me if I want it to create a new default config.xml, since the old one was not found - answering yes worked and I am back in business (i hope :P)
of course, i lost some (EDIT: not all) of the custom settings i did in WebLogic configuration since installing it - I lost the custm data sources, but users and user groups were retained. if only i had backed up this config.xml :( anyway.
(EDIT: probably backing up config.xml wouldn't make sense - anyway - i think it keeps the reference to data source for all the deployed applications - so - you don't have to recreate a data source - you just have to redeploy your application(s))

tomcat is not starting up in eclipse

When I start my tomcat in eclipse initially it starts (Green errow - went away - Red appears and consol shows "server startup in 535 ms") in status bar still it says "Starting tomcat v6.0". In some time timeout is done and says server failed to start. I increase timeout to 100 ms from defaultone. Still same issue. Do anyone have any idea?
I tried and applied various solutions given in stackoverflow and other website for this but all failed.
Tomcat starts outside of eclipse.
check netstat and compare no conflicts of any port. (Change all necessary port from eclipse)
Added tomcat-juli.jar (ONE OF THE SOLUTION).
I have not configured a single project yet. Just starting tomcat.
I was able to figure it out. Currently I am not able to remember one application (software) running behind. (install by network admin) for IP/Port related configuration.

Error starting weblogic in eclipse

When I start a Weblogic Server 11gR1 (10.3.1) in the server tab in Eclipse (3.4.2) I immediately get an error popup: Starting ... has encounterd a problem. Server ... failed to start.
However the starting continues and the server ends up in RUNNING mode after some 8 seconds.
No ears deployed, fresh domain and/or server instance.
It used to work fine and I didn't change any configuration as far as I am aware.
Any ideas?
A new server runtime makes no difference. But when I start the server in debug mode, there is no error popup.
When I start the server normally the error pops up and the server starts in debugging state. Remarkable, because while creating the server runtime I did not check the box "always start Weblogic Server in debug mode".
A new workspace and new server runtime solved the problem.
Maybe your Server Runtime is corrupted. Try to drop it and recreate it.
Also, try adding a -clean option to your eclipse startup.