This week's book giveaway is in the Programmer Certification forum.
We're giving away four copies of OCP Oracle Certified Professional Java SE 11 Programmer I Study Guide: Exam 1Z0-815 and have Jeanne Boyarsky & Scott Selikoff on-line!
See this thread for details.
Win a copy of OCP Oracle Certified Professional Java SE 11 Programmer I Study Guide: Exam 1Z0-815 this week in the Programmer Certification 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

JSP not respondin..?

 
Ranch Hand
Posts: 48
  • 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

 
Saloon Keeper
Posts: 21268
138
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • 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.
 
Ranch Hand
Posts: 5040
  • 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
  • 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

 
BWA HA HA HA HA HA HA! Tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!