Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 52485 invoked from network); 20 Jun 2002 14:30:37 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 20 Jun 2002 14:30:37 -0000 Received: (qmail 28962 invoked by uid 97); 20 Jun 2002 14:30:21 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@jakarta.apache.org Received: (qmail 28884 invoked by uid 97); 20 Jun 2002 14:30:20 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 28861 invoked by uid 98); 20 Jun 2002 14:30:19 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) Message-ID: <20020620143012.82499.qmail@web13204.mail.yahoo.com> Date: Thu, 20 Jun 2002 07:30:12 -0700 (PDT) From: Edward Wilson Subject: Re: newbie question. To: Tomcat Users List In-Reply-To: <200206201020.05512.ckellerman@alabanza.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Look at the seventh line of your sever.xml file, change it to 8080 from 8008, or to whatever you are calling tomcat from. You can set this to whatever you want. --- chad kellerman wrote: > The way I have configure the server.xml file tomcat > does not ananswer on 8080 > through http. > > > > > > > > "org.apache.catalina.connector.warp.WarpConnector" > port="8008" > minProcessors="2" > maxProcessors="10" > scheme="http" > secure="false" > enableLookups="true" > appBase="webapps" > acceptCount="10" > debug="0"/> > > > > > "org.apache.catalina.connector.warp.WarpEngine" > name="Apache" > debug="0"> > > "org.apache.catalina.logger.FileLogger" > directory="/var/log/tomcat" > prefix="file-log" > timestamp="true"/> > > "org.apache.catalina.realm.MemoryRealm"/> > > > > > > > > > I have been doing more research on this. I think > this is where I am getting > lost. > > > The servlet is in my webapp directory. > Do I need to create a /WEB_INF/ directory with a > web.xml file in there for > servlet mapping? Or should the servlet just wor? > > --chad > > > > On Thu June 20 2002 8:46 am, > Brendan.Richards@lowelive.com wrote: > > This isn't clear from your email: > > > > Can you run the servlet by going to Tomcat > directly (port 8080 by default) > > rather than through the webapp connector? > > > > > > ---------------------------------------------- > > > > > > Good day to everyone, > > > > I have a bit of a newbie questions. I am using > Red HAt 6.2 tomcat 4.0.3 > > with mod_webapp with Virtual Hosts. > > > > I tried to compile a simple hello world > servlet. I did not have the > > classpath to the servlet.jar file in > /usr/local/tomcat/common/lib so I had > > to > > include that option in my javac line. ie. > > > > javac -classpath /usr/local/tomcat/common/lib > HelloServlet.java > > > > It compiled with now errors. > > > > First question, is there a way I can test to make > sure this servelet is > > compiled cor4ectly on the command line? > > > > I am able to pull up all jsp pages that I have > written correctly in my > > webapps directory. (Virtual Host) > > > > But when I try to call up my HelloServlet I get > a http status 404 error > > The funny thing is that the age has html source in > it. It does not show as > > a > > web page but but as one line html code. > > > > My httpd.conf looks like this: > > > > > > User test > > Group test-domaingrp > > ServerName test-domain.com > > ServerAdmin webmaster@test-domain.com > > DocumentRoot /home/test/test-domain-www > > TransferLog /home/test/test-domain-logs/access-log > > ScriptAlias /cgi-bin/ > /home/test/test-domain-www/cgi-bin/ > > WebAppConnection conn1 warp localhost:8008 > > WebAppDeploy . conn1 webapps > > WebAppDeploy test.war conn1 webapps/gotc > > > > > > and my server.xml for the virtual hosts file looks > like this: > > > > > > > "org.apache.catalina.connector.warp.WarpHost" > > > name="tomcat-test.gotc.net" > > debug="0" > > > appBase="/home/gotc/tomcat-test-www/webapps" > > unpackWARs="false" > > > > > > > className="org.apache.catalina.valves.AccessLogValve" > > > directory="/home/gotc/tomcat-test-logs" > > > prefix="access-log" > > pattern="common"/> > > > > path="manager" docBase="manager" > > debug="0" privileged="true"/> > > path="webapps" docBase="webapps" > > debug="0" reloadable="true"/> > > > > > > > > > > I thought if I put WebAppDeploy . conn1 > webapps in my Virtual Host > > section I could call anything from my webapps > directory. > > > > I guess I am wrong. > > > > Is there anyone that can help me?? > > > > Thanks you in advance. > > > > --chad > > -- > Chad Kellerman > Alabanza Inc. > Jr. Systems Administrator > 10 E. Baltimore Street > Baltimore, Md 21202 > > -- > To unsubscribe, e-mail: > > For additional commands, e-mail: > > __________________________________________________ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- To unsubscribe, e-mail: For additional commands, e-mail: