This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Help Installing Tomcat 4.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Help Installing Tomcat 4.0" Watch "Help Installing Tomcat 4.0" New topic
Author

Help Installing Tomcat 4.0

Wasim Ahmed
Ranch Hand

Joined: Jan 31, 2001
Posts: 90
When I try to start Tomcat 4.0 I am getting the following error messages:
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
----- Root Cause -----
java.net.BindException: Address in use: JVM_Bind
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(Unknown Source)
at java.net.ServerSocket.<init>(Unknown Source)
at java.net.ServerSocket.<init>(Unknown Source)
at org.apache.catalina.net.DefaultServerSocketFactory.createSocket(Defau
ltServerSocketFactory.java:118)
at org.apache.catalina.connector.http.HttpConnector.open(HttpConnector.j
ava:946)
at org.apache.catalina.connector.http.HttpConnector.initialize(HttpConne
ctor.java:1114)
at org.apache.catalina.core.StandardService.initialize(StandardService.j
ava:454)
at org.apache.catalina.core.StandardServer.initialize(StandardServer.jav
a:552)
at org.apache.catalina.startup.Catalina.start(Catalina.java:775)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
I am using Win 2000(prof) and my PC is connected to LAN. but I am installing Tomcat on my own PC as stand alone.
I have set up all the parms as:
CATALINA_HOME : D:\Tomcat4
JAVA_HOME: D:\jdk1.3
CLASSPATH: D:\Tomcat4\common\lib\servlet.jar
What I am missing ?
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

A search of this forum for "Address in use" produced (among others) the following post:

http://www.coderanch.com/t/81701/Tomcat/startup-tomcat

What I didn't mention in that earlier post was that if it's not Tomcat, then something else on your system is already using the port. Change the port to something else in Tomcat's configuration file.
Wasim Ahmed
Ranch Hand

Joined: Jan 31, 2001
Posts: 90
Thanks MIKE..... that did it.
I went in Control Panel -> Adimn Tools -> Services
and there it was Tomcat set to automatic startup.
I changed the properties to manual and it worked.
Thanks again.
Wasim Ahmed
Ranch Hand

Joined: Jan 31, 2001
Posts: 90
Hello again, Now when I type localhost/Hello.jsp
I get the following error: in the root cause
java.lang.NoClassDefFoundError: sun/tools/javac/Main
I have added all the Paths and classes now what I am missing? Any help
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
By any chance is your jsp called hello.jsp and not Hello.jsp?
Muhammad Farooq
Ranch Hand

Joined: May 08, 2001
Posts: 356
When I try to start Tomcat 4.0, I got the following error.
--
You must set JAVA_HOME to point at your Java Development Kit installation
--
Then I issue the following command at DOS-Prompt
set JAVA_HOME=c:\j2sdk1.4.0
but still the same problem,
Can somebody help...
TIA


Muhammad Farooq<br />Sun Certified Programmer for Java 2 Platform<br />Oracle8i Certified Professional Database Administrator
Wasim Ahmed
Ranch Hand

Joined: Jan 31, 2001
Posts: 90
Hi Bodie,
No file called Hello.jsp I am trying to run marty hall's example.
Ravee Bhat
Ranch Hand

Joined: Nov 26, 1999
Posts: 72

Hi there,
I believe you need to have the tools.jar in your classpath.
I have a problem too. I am trying to run the tomcat 4.x on a RHL7.2 m/c. Everything is fine (i have the necessary regxp/servletapi/xerces libs in place, or Atleast I guess so). whenever I start the tomcat It starts without any issues. But I am not able to get anything in my browser?
any light on this part?
thanks in advance
cheers and regards
Ravee.
Wasim Ahmed
Ranch Hand

Joined: Jan 31, 2001
Posts: 90
Problem is Solved.
How? I re-install Tomcat 4. I have upgraded the JDSk from 1.3 to 1.4 and since then it was a problem. I think Tomcat put the hooks in the JSDK and once you upgrade it doesn't recognize the new libraries (eventhough i chnaged them all the Parms). Anyway thanks guys.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Help Installing Tomcat 4.0