File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Help Please Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Help Please" Watch "Help Please" New topic
Author

Help Please

Bal Sharma
Ranch Hand

Joined: Sep 19, 2001
Posts: 273
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

Joined: May 29, 2001
Posts: 113
you must download java Servlet from http://java.sun.com/products/servlet/download.html


Senior software engineer
Mark Leong
Ranch Hand

Joined: Dec 11, 2000
Posts: 60
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

Joined: Aug 17, 2001
Posts: 399
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


Malhar Barai
SOA & Java Book
Bal Sharma
Ranch Hand

Joined: Sep 19, 2001
Posts: 273
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

Joined: Sep 19, 2001
Posts: 273
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

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Help Please