This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
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
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.
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