Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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.

0 votes

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.

1 vote

Missed that step Karl, thanks!



One answer

Permanent link
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.



0 votes

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"
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?

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
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. 

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-)

And please accept Karl's answer.

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 2,357

Question asked: Mar 05 '13, 4:37 a.m.

Question was seen: 4,621 times

Last updated: Mar 05 '13, 9:36 a.m.

Confirmation Cancel Confirm