Win a copy of Node.js Design Patterns: Design and implement production-grade Node.js applications using proven patterns and techniques this week in the Server-Side JavaScript and NodeJS forum!
  • 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:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Problem with tomcat and JSP

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
rt
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
ltServerSocketFactory.java:118)
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
95)
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
java.lang.NullPointerException
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 ?
thanks
s.m
[ August 13, 2003: Message edited by: snafu man ]
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
Bill
 
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic