jQuery in Action, 3rd edition
The moose likes Tomcat and the fly likes Tomcat Installation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat Installation" Watch "Tomcat Installation" New topic

Tomcat Installation

Jitesh Sinha
Ranch Hand

Joined: Jun 19, 2004
Posts: 146
How do you "install" tomcat 5.0.28?
I went to jakarta site URL http://tomcat.apache.org/download-55.cgi and I could see was 3 zip/tar files one each under Core, Deployer and Embed sections.I downloaded all 3 zip files and unzipped them.
Is there anything else I need to do?
I can go to bin directory and double-click startup.bat and the server starts.Is there anything else I need to do in order to make the Tomcat work smoothly without any problem?
Thank You.
Jitesh Sinha
Ranch Hand

Joined: Jun 19, 2004
Posts: 146
I ran startup command from command window after replacing start with run and I get following error :-

Using CATALINA_BASE: D:\Tomcat\jakarta-tomcat-5.0.28\
Using CATALINA_HOME: D:\Tomcat\jakarta-tomcat-5.0.28\
Using CATALINA_TMPDIR: D:\Tomcat\jakarta-tomcat-5.0.28\\temp
Using JAVA_HOME: C:\j2sdk1.4.2_07
Can't load server.xml
Can't load server.xml
Mar 9, 2006 2:41:33 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 0 ms
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
Caused by: java.lang.NullPointerException
at org.apache.catalina.startup.Catalina.await(Catalina.java:619)
at org.apache.catalina.startup.Catalina.start(Catalina.java:579)
... 6 more

How do I resolve this?
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

On a windows box, it's easy.
Install Java (j2sdk1.3x or better).
Download the *.exe distrubution of Tomcat.
Click on the file and follow the installation wizard.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Jitesh Sinha
Ranch Hand

Joined: Jun 19, 2004
Posts: 146
Ben,I did that after reading your posts.
I can start the server from the command prompt but cannot start from the service.It always shows the status as stopped.
Jitesh Sinha
Ranch Hand

Joined: Jun 19, 2004
Posts: 146
I got it started through service as well.
The jvm.dll path was incorrect previously under java tab of the Apache/Tomcat properties window.I don't know how it took that path but after correcting it,it works fine.
Thanks Ben for your help!!I am fine for now!!
Have you checked out Aspose?
subject: Tomcat Installation
It's not a secret anymore!