wood burning stoves 2.0*
The moose likes Tomcat and the fly likes How to debug tomcat set up file ??? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "How to debug tomcat set up file ???" Watch "How to debug tomcat set up file ???" New topic
Author

How to debug tomcat set up file ???

Siva Ram
Ranch Hand

Joined: Apr 04, 2002
Posts: 66
Hi,
I am using Tomcat 4.0.1 previously.
Now from web I downloaded tomcat supporting jsp2.0. While running this new setup file , I am getting tomcat.exe window for 2 secs. after that it closes auto matically. But if I run previous Tomcat 4.0 , it works fine. How to debug new Tomcat version ?? I user echo command to forward the path taken by the .bat file.Still I didn't received any useful result . I followed the same steps which I followed for Tomcat 4.0.1 ??
Is it possible to keep 2 tomcat versions in the same m/c and run those versions successfully without any problem ???
Can any one help me to solve this ??


Thanks and Regards,<br />Siva Ram .NR
timothy zimmerman
Ranch Hand

Joined: Jun 26, 2001
Posts: 149
What OS are you trying to install this on? If it is a windows OS, have you tried opening a cmd/dos window changing to the same directory and executing the install from the command line? At least this way the window will remain after the install fails and you should be able to see what went wrong.
Siva Ram
Ranch Hand

Joined: Apr 04, 2002
Posts: 66
Hi,
I have installed in Windows NT 4.0.
I gave the command catalina start in the dos window only. I got the following lines .
D:\jsp20\bin>catalina start
Using CATALINA_BASE: D:/jsp20
Using CATALINA_HOME: D:/jsp20
Using CATALINA_TMPDIR: D:/jsp20/temp
Using JAVA_HOME: D:/jdk1.3
The tomcat window opens for a while and closes immediately. There is no error in dos prompt.
Rene Larsen
Ranch Hand

Joined: Oct 12, 2001
Posts: 1179

You have to modify these lines in 'catalina.bat'

to:

Now the hole process will remain in the same window.
Rene
[ August 06, 2002: Message edited by: Rene Larsen ]

Regards, Rene Larsen
Dropbox Invite
Matthew Phillips
Ranch Hand

Joined: Mar 09, 2001
Posts: 2676
This topic really belongs in the Apache/Tomcat forum. I will move it there.


Matthew Phillips
Siva Ram
Ranch Hand

Joined: Apr 04, 2002
Posts: 66
Hi,
I got the exception in the dos window given below.
D:\jsp20\bin>catalina start
Using CATALINA_BASE: D:/jsp20
Using CATALINA_HOME: D:/jsp20
Using CATALINA_TMPDIR: D:/jsp20/temp
Using JAVA_HOME: D:/jdk1.3
To install a service:
-install service_name jvm_library (jvm_option)*
-start start_class [-method start_method] [-params (start_parameter)+]
[-stop start_class [-method stop_method] [-params (stop_parameter)+]]
[-out out_log_file] [-err err_log_file]
[-current current_dir]
[-path extra_path]
To uninstall a service:
-uninstall service_name
service_name: The name of the service.
jvm_library: The location of the JVM DLL under which to run the service.
jvm_option: An option to use when starting the JVM, such as:
"-Djava.class.path=c:\classes" or "-Xmx128m".
start_class: The class to load when starting the service.
start_method: The method to call in the start_class. default: main
start_parameter:A parameter to pass in to the start_method.
stop_class: The class to load when stopping the service.
stop_method: The method to call in the stop_class. default: main
stop_parameter: A parameter to pass in to the stop_method.
out_log_file: A file to redirect System.out into.
err_log_file: A file to redirect System.err into.
current_dir: The current working directory for the service.
Relative paths will be relative to this directory.
extra_path: Path additions, for native DLLs etc.
What I have to do to avoid this exception. Any one please help me to solve this..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to debug tomcat set up file ???
 
Similar Threads
How to debug tomcat set up file ???
How to run start.sh file of Tomcat4.0.1 on Mac os8.6
How to set server.xml?
running JSP file in Tomcat
Problem in running struts application.