• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Help Please

 
Ranch Hand
Posts: 273
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
you must download java Servlet from http://java.sun.com/products/servlet/download.html
 
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Author
Posts: 399
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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


 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic