It's all about the answers!

Ask a question

Failing to start 4.0.2 RC1 JTS


Archana M (2168) | asked Mar 05 '13, 4:37 a.m.

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.


Comments
1
Karl Weinert commented Mar 05 '13, 7:58 a.m.
JAZZ DEVELOPER

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.


Ralph Schoon commented Mar 05 '13, 8:26 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

Missed that step Karl, thanks!

One answer



permanent link
Ralph Schoon (63.6k33646) | 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
Archana M commented Mar 05 '13, 8:01 a.m.

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"
Using CATALINA_HOME:   "C:\Program Files\IBM\JazzTeamServer\server\tomcat"
Using CATALINA_TMPDIR: "C:\Program Files\IBM\JazzTeamServer\server\tomcat\temp"
Using JRE_HOME:        "C:\Program Files\IBM\JazzTeamServer\server\jre"
Using CLASSPATH:       "C:\Program Files\IBM\JazzTeamServer\server\tomcat\bin\bo
otstrap.jar;C:\Program Files\IBM\JazzTeamServer\server\tomcat\bin\tomcat-juli.ja
r"

It is not Windows 7. It is Windows 2008. Any other cause/options we can try?


Ralph Schoon commented Mar 05 '13, 8:27 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

See Karl's suggestion.


Archana M commented Mar 05 '13, 9:22 a.m.

I found the below error after trying Karl's suggestion:

Exception in thread "main" java.lang.NoClassDefFoundError: Files.IBM.JazzTeamServer.server.conf
Caused by: java.lang.ClassNotFoundException: Files.IBM.JazzTeamServer.server.conf
        at java.net.URLClassLoader.findClass(URLClassLoader.java:434)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:660)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:358)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:626)
Could not find the main class: Files/IBM/JazzTeamServer/server/conf.  Program will exit.

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. 


Ralph Schoon commented Mar 05 '13, 9:34 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

Hi Archana,

I believe it has to do with reduced right in Program Files. I have run servers installed there, I know others have. But there is some deployment going on in the beginning that requires uncompressing files and creating folders. If that fails you are in trouble.

Anyway, glad you were able to launch it now. And try to keep away from Program Files in the future 8-)


Ralph Schoon commented Mar 05 '13, 9:36 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

And please accept Karl's answer.

Your answer


Register or to post 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.