• Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem with tomcat and JSP  RSS feed

Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys
i'm new to this jsp and tomcat problem that i'm having
Tomcat displays this error message when i start in up

C:\Documents and Settings\dvasude1\Desktop>D:\jdk1.3.1_03\bin\java.exe -jar -Dus
er.dir="D:\jakarta-tomcat-4.0.4" "D:\jakarta-tomcat-4.0.4\bin\bootstrap.jar" sta
Starting service Tomcat-Standalone
Apache Tomcat/4.0.4
java.net.BindException: Address in use: JVM_Bind
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:447)
at java.net.ServerSocket.<init>(ServerSocket.java:165)
at java.net.ServerSocket.<init>(ServerSocket.java:116)
at org.apache.catalina.net.DefaultServerSocketFactory.createSocket(Defau
at org.apache.ajp.tomcat4.Ajp13Connector.open(Ajp13Connector.java:797)
at org.apache.ajp.tomcat4.Ajp13Connector.start(Ajp13Connector.java:1013)
at org.apache.catalina.core.StandardService.start(StandardService.java:3
at org.apache.catalina.core.StandardServer.start(StandardServer.java:506
at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
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)
Starting service Tomcat-Apache
Apache Tomcat/4.0.4
at org.apache.ajp.tomcat4.Ajp13Connector.run(Ajp13Connector.java:841)
at java.lang.Thread.run(Thread.java:479)

The loads up fine and says that tomcat is working but the jsp pages cannot be loaded ( gives an internal server error )
Anybody have any idea how to sort this out ?
[ August 13, 2003: Message edited by: snafu man ]
Author and all-around good cowpoke
Posts: 13078
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If the port is in use, you already have another application using the default port. Perhaps you got Tomcat installed as a service?
In that case it is the service Tomcat you see when you address localhost:8080
Try rebooting and addressing localhost:8080 - if Tomcat is there it got installed as a service.
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If any other web server is installed on your server then first stop that server and then start Tomcat server.To run jsp files don't forget to set the java_home variable.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!