Failing to start 4.0.2 RC1 JTS
![]() Hi, We are trying to start the tomcat server of 4.0.2 RC1 on windows machine. It pops up a window and then disappears. The ports were available and even changing ports made no difference. The heap parameters were also as expected. There seems to be an exception with some main class: Exception in thread "main".....Could not find the main class...but we are unable to capture the error and neither does the information gets captured in log file. Running the shutdown batch file however captures "Connection refused" message in log file. We downloaded the trial version of 4.0.2 RC1 from jazz.net and the installation happened without any flaw. |
One answer
![]()
Ralph Schoon (63.3k●3●36●46)
| answered Mar 05 '13, 5:45 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
If the tomcat window comes up and dies instantly, you can try to add a pause at the end of the server.startup.bat. That should at least give you a window that shows an error message.
A very popular way to get into this situation is to install in Program Files. Did you do that? If so, you have to start the shell using "As administrator" and then start the server from that shell. I would advise not using Program Files, especially on Windows 7 since windows removes the permission to create folders and files from the UI user, even if that is administrator. Comments The installation is in Program Files. Tried using the shell "as administrator", however still not able to capture the error. The pause did not help either. A window pops up inbetween (which has actual error related to some exception) and disappears quickly before displaying the following message:
Using CATALINA_BASE: "C:\Program Files\IBM\JazzTeamServer\server\tomcat"
It is not Windows 7. It is Windows 2008. Any other cause/options we can try? See Karl's suggestion.
I found the below error after trying Karl's suggestion:
Exception in thread "main" java.lang.NoClassDefFoundError: Files.IBM.JazzTeamServer.server.conf
Re-installed in some other location without the space and is working fine now. Apparently the path is being split at "Program Files" because of which its not able to run the script. Hi Archana,
And please accept Karl's answer.
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.
Comments
You can stop the first shell from closing by changing the following in the statup.bat file.
RTC-InstallDir\server\tomcat\bin\starup.bat (startup.sh on linux) Change "start" to "run" in the following line near the end of the file:
"%EXECUTABLE%" start %CMD_LINE_ARGS%
to
"%EXECUTABLE%" run %CMD_LINE_ARGS%
Once this is done the first shell should stay open and will hopefully have some information that helps to troubleshoot your issue.
Missed that step Karl, thanks!