File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSP not respondin..?

 
HARSHAD bhawsar
Ranch Hand
Posts: 48
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 17614
38
Android Eclipse IDE Linux
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Madhav Lakkapragada
Ranch Hand
Posts: 5040
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
 
HARSHAD bhawsar
Ranch Hand
Posts: 48
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic