• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Help Installing Tomcat 4.0

 
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ?
 
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
A search of this forum for "Address in use" produced (among others) the following post:

https://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
Posts: 90
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 90
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
By any chance is your jsp called hello.jsp and not Hello.jsp?
 
Ranch Hand
Posts: 356
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Wasim Ahmed
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Bodie,
No file called Hello.jsp I am trying to run marty hall's example.
 
Ranch Hand
Posts: 72
Eclipse IDE Firefox Browser Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 90
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic