This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Help Please

 
Bal Sharma
Ranch Hand
Posts: 273
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
THIS IS MY FIRST POSTING IN JAVARANCH. HEY GUYS IT IS SAME ON ME. SMALL THING DOES NOT WORK. PLEASE HELP ME. IT LOOKS LIKE ROCKET SCIENCE TO ME.
I INSTALLED APACHE AND TOMCAT.
WHEN I START APACHE I GET FOLLOEING MESSAGE ON DOS WINDOW.
[Tue Sep 18 14:05:15 2001] [warn] pid file c:/apache group/logs/httpd.pid
overwritten -- Unclean shutdown of previous Apache run?
Apavhe/1.3.20 (Win32) running......
WHEN I START TOMCAT USING c:\cd tomcat\bin\startup
Including all jars in ..\liv in your CLASSPATH.
Using CLASSPATH: ..\classes;..\lib\JAXP.JAR;..\lib\SERVLET.JAR;..\lib\ANT.JAR;..
\lib\PARSER.JAR;..\lib\WEBSER~1.JAR..\lib\JASPER.JAR;C:\jdk1.3\lib\tools.jar
Starting Tomcat in new window
c:\tomcat\bin
SECOND WINDOWS POPS UP WITH FOLLOWING MESSAGE. I AM NOT SURE BUT UPTO THIS POINT APACHE AND TOMCAT ARE RUNNING RIGHT?
2001-09-18 14:09:01 - ContextManager: Adding context Ctx( /example)
Starting tomcat. Check logs/tomcat.log for error messages 2001-09-18 14:09:01
ContextManager: Adding context Ctx( /admin)
2001-09-18 14:09:01 - ContextManager: Adding context Ctx()
2001-09-18 14:09:01 - ContextManager: Adding context Ctx( /text)
2001-09-18 14:09:01 - poolTcpConnector: Starting HttpConnectionHandler on 8080
2001-09-18 14:09:01 - poolTcpConnector: Starting Ajp12ConnectionHandler on 8007
CURSOR KEPPS BLINKING AT THIS POINT
I WANTED TO WRITE A SMALL HELLO SERVLET. MY GOODNESS I GOT 6 ERRORS. ZZZZZZZ
HelloServlet.java:2: package javax.servlet does not exit
import javax.servlet.*;
HelloServlet.java:3: package javax.servlet.hhtp does not exit
import javax.servlet.http.*;
HelloServlet.java:5: cannot resolve symbol
symbol : class HTTPServlet
locatio: class HelloServlet
public class HelloServlet extends HTTPServket
HelloServlet.java:7: cannot resolve symbol
symbol : class HTTPServletRequest
locatio: class HelloServlet
public void doGet(HTTPServletRequest req, HTTPServletResponse res)
HelloServlet.java:7: cannot resolve symbol
symbol : class HTTPServletResponse
locatio: class HelloServlet
public void doGet(HTTPServletRequest req, HTTPServletResponse res)
HelloServlet.java:7: cannot resolve symbol
symbol : class HTTPServletResponse
locatio: class HelloServlet
public void doGet(HTTPServletRequest req, HTTPServletResponse res)
HelloServlet.java:8: cannot resolve symbol
symbol : class HTTPServletException
locatio: class HelloServlet
throws HTTPServlet, IOException
I THINK JAVAX PACKAGE IS NOT RECOGNIZING. PLEASE HELP ME. WHERE TO PUT SOURCE FILE, HOW TO COMPLILE, HOW TO SEE SERVLET ON WEB. I DO NOT KNOW. NEED HELP PLEASE.
IT IS MY FIRST TIME. I DO NOT KNOW IF IT IS OK TO POST ALL ERRORS HERE. THANK YOU FOR YOUR TIME. BK
 
Dorj Galaa
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you must download java Servlet from http://java.sun.com/products/servlet/download.html
 
Mark Leong
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If http://127.0.0.1:8080 works (tomcat page shown) then it is likely that tomcat is OK. The rest of the errors were probably due to classpath error.
 
Malhar Barai
Author
Ranch Hand
Posts: 399
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
may be u hv not put the files in the correct folders...
go thru the docs...u may find them useful...everythings listed..
good luck
malhar
 
Bal Sharma
Ranch Hand
Posts: 273
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mark:
You are right Tomcat page displays. What class path you are talking about. I have changed set TOMCAT_HOME = c:\tomcat
and set JAVA_HOME= c:\jdk1.3
It is really frustating. Small thing is not working. Once I see hello servlet on localweb page I will be ok to move on. I got stucked. Any response highly appricated. BK
Originally posted by Mark Leong:
If http://127.0.0.1:8080 works (tomcat page shown) then it is likely that tomcat is OK. The rest of the errors were probably due to classpath error.

 
Bal Sharma
Ranch Hand
Posts: 273
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi malhar:
Could you please be more specific. What docs? where and how to look at it. Your response may lead to me right direction.
Thanks BK
Originally posted by malhar barai:
may be u hv not put the files in the correct folders...
go thru the docs...u may find them useful...everythings listed..
good luck
malhar

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic