This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Servlets and the fly likes JSP not respondin..? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "JSP not respondin..?" Watch "JSP not respondin..?" New topic
Author

JSP not respondin..?

HARSHAD bhawsar
Ranch Hand

Joined: Feb 22, 2001
Posts: 48
I have succesfully down loaded tomcat and made it run on windows NT.
I have modified the AUTOEXEC.BAT file as
SET TMOMCAT_HOME=C:\TOMCAT
SET JAVA_HOME=C:\JDK1.2.2
SET CLASSPATH=C:\JAKARTA\LIB\TOOLS........
SET PATH=C:\JDK1.2.2\BIN;C:TOMCAT\BIN;%PATH%
And when i start the tomcat by TOMCAT\BIN\tomcat start
It displays another window showing following message
Context log: path="/examples" Adding context path="/examples" docBase="webapps/
examples"
Context log: path="" Adding context path="" docBase="webapps/ROOT"
Context log: path="/test" Adding context path="/test" docBase="webapps/test"
Starting tomcat. Check logs/tomcat.log for error messages
Starting tomcat install="c:\jakarta" home="C:\jakarta" classPath="c:\jakarta\cla
sses;c:\jakarta\lib\webserver.jar;c:\jakarta\lib\jasper.jar;c:\jakarta\lib\xml.j
ar;c:\jakarta\lib\servlet.jar;c:\jdk1.2.2\lib\tools.jar;c:\jakarta\lib\ant.jar;c
:\jakarta\lib\jasper.jar;c:\jakarta\lib\servlet.jar;c:\jakarta\lib\webserver.jar
;c:\jakarta\lib\xml.jar;"
Context log: path="/time.jsp.txt" Automatic context load docBase="C:\jakarta\web
apps\time.jsp.txt"
Context log: path="/time.jsp.txt" Adding context path="/time.jsp.txt" docBase="
C:\jakarta\webapps\time.jsp.txt"
After that when i point my browser to root directory , it displays the INDEX.HTML
BUT PROBLEM STARTS WHEN I TRIES TO DISPLAYS JSP PAGES FROM THE ROOT DIRECTORY , WHILE IT DISPLAYS HTML PAGES FROM IT.

WHAT SHOULD I DO TO DISPLAY THE JSP FROM ROOT DIRECTORY OR FROM ANY OTHER DIRECTORY

Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15952
    
  19

Try using the URL http://localhost:8007/jspname.jsp
It sounds like you have a web server doing the port 80 servicing and it's not passing the requests on to tomcat. If the above works, that's the problem.


Customer surveys are for companies who didn't pay proper attention to begin with.
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040

SET TMOMCAT_HOME=C:\TOMCAT
Is this a typo while posting or is it like this in your
autoexec.bat?
Also, can you run the Servlet examples...
Pl. let us know.
regds.
- satya


Take a Minute, Donate an Hour, Change a Life
http://www.ashanet.org/workanhour/2006/?r=Javaranch_ML&a=81
HARSHAD bhawsar
Ranch Hand

Joined: Feb 22, 2001
Posts: 48
Tim, i tried it with http://localhost:8007/jspname.jsp but it gives following error
and browser jush hangs.
HANDLER THREAD PROBLEM: java.io.IOException: Stream broken
java.io.IOException: Stream broken
at org.apache.tomcat.service.connector.AJP12RequestAdapter.readNextReque
st(Ajp12ConnectionHandler.java, Compiled Code)
at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processCon
nection(Ajp12ConnectionHandler.java:134)
at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.j
ava:338)
at java.lang.Thread.run(Thread.java:479)
I have IIS on my machine using same port , but it shoudn't create problem if the IIS is
stopped.B'cas once i used PWS and tomcat with same port no om windows 98 and it was working.
In case of this error how i can change the port number of the TOMCAT.
Please help.
Satya Bhai ,
It was error while posting. I am just started working on JSP and dont know how to run servlet.
Firstly please help me to run my tomcat properly.
Thanks for your efforts.
Harshad

 
 
subject: JSP not respondin..?
 
Similar Threads
Problems starting Tomcat on my Windows 98 machine
Connection Refused
Tomcat Installation Problem
Tomcat 3.1 in Win NT
JSWDK and Tomcat