Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 70988 invoked from network); 22 Jan 2003 22:19:36 -0000 Received: from exchange.sun.com (192.18.33.10) by 208.185.179.12.available.above.net with SMTP; 22 Jan 2003 22:19:36 -0000 Received: (qmail 19883 invoked by uid 97); 22 Jan 2003 22:20:46 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@jakarta.apache.org Received: (qmail 19846 invoked by uid 97); 22 Jan 2003 22:20:45 -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 19834 invoked by uid 98); 22 Jan 2003 22:20:44 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Message-ID: <013c01c2c264$e0e90180$6601a8c0@ctg> From: "Chris Schild" To: "Tomcat Users List" References: <83F0258A9996D311B14200A0C98F173602F22CCD@aas-internet.aas.com> Subject: Re: Tomcat Apache directories, jsp/servlet path Date: Wed, 22 Jan 2003 16:23:19 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Spam-Rating: 208.185.179.12.available.above.net 1.6.2 0/1000/N X-Spam-Rating: 208.185.179.12.available.above.net 1.6.2 0/1000/N That is what I have... I'm still getting the: Forbidden You don't have permission to access /admin/ on this server. The permissions should be good as everyone has access. Something is messed up somewhere.... I'll set it down and start again from the beginning with all of the notes that I have compiled... It's getting a little frustating... sometimes a fresh start is what is needed!? Thanks for your help John! ----- Original Message ----- From: "Turner, John" To: "'Tomcat Users List'" Sent: Wednesday, January 22, 2003 3:46 PM Subject: RE: Tomcat Apache directories, jsp/servlet path > > OK. > > Does /some/dir/QV/webapps/admin exist? If not, that is why you are getting > a 404. > > If you want /admin in QV/webapps/admin, then I believe the docBase in your > Context should simply be "admin", not "../QV/webapps/admin". > > Tomcat has CATALINA_HOME/webapps as an appBase by default. That's for > localhost. If you are setting up some.server.com with an appBase of > CATALINA_HOME/QV, then localhost:CATALINA_HOME/webapps = > some.server.com:CATALINA_HOME/QV. > > Thus, you would ney, e > > - CATALINA_HOME/QV/admin.xml > - CATALINA_HOME/QV/admin > - contents of CATALINA_HOME/server/admin/ copied to CATALINA_HOME/QV/admin/ > - Inside admin.xml, Context path would be "admin". > - URL would be some.server.com/admin > > I'm pretty sure that should work for you. If not, or if I'm wrong, someone > will correct me. > > John > > > > -----Original Message----- > > From: Chris Schild [mailto:chris.schild@corridortechnology.com] > > Sent: Wednesday, January 22, 2003 4:34 PM > > To: Tomcat Users List > > Subject: Re: Tomcat Apache directories, jsp/servlet path > > > > > > Yes, I believe I am confusing myself! (: I've looked at to > > manys docs and > > started circling myself... > > Anyhow, > > 1) I have the a Host element of mycompany.com > > 2) The appBase is QV > > 3) admin.xml is defined in QV/admin.xml > > 4) Here is the admin.xml > > > debug="0" privileged="true"> > > > > > > > > > prefix="QV_admin_log." suffix=".txt" > > timestamp="true"/> > > > > > > > > Everything seems clear but I'm obviously doing something wrong! > > aaarrrrghh... > > > > When I enter the url http://mycompany.com/examples I get > > Forbidden You > > don't have permission..... > > When I enter the url > > http://mycompany.com/examples/jsp/index.html all is > > well. > > When I enter the url http://mycompany.com/admin I get a 404.... > > > > > > Thanks John you've been extremely helpful! > > > > ----- Original Message ----- > > From: "Turner, John" > > To: "'Tomcat Users List'" > > Sent: Wednesday, January 22, 2003 2:42 PM > > Subject: RE: Tomcat Apache directories, jsp/servlet path > > > > > > > > > > Well, just copying admin.xml isn't going to do much. I > > think things are > > > getting a little confusing. If you need > > some.domain.com/admin, then: > > > > > > 1) you need a HOST element with a name parameter of > > "some.domain.com" > > > > > > 2) you need to set that HOST's appBase > > > > > > 3) you need to put admin.xml in that appBase > > > > > > 4) you need to edit appBase/admin.xml and verify that the > > path used in the > > > Context element in appBase/admin.xml makes sense and is available > > > > > > /admin and /manager use auto-deploy. > > > > > > How about you describe your directory structure, what the > > appBase is for > > the > > > host you are working with (localhost? something else?), > > post the XML file > > > you are using for auto-deploy, and tell us what URL you > > want to work, and > > we > > > can go from there. The Context in the default install of > > admin.xml has a > > > path in it....if that path doesn't make sense for > > some.server.com when you > > > set that some.server.com as a new virtual host, you will > > get a 404 trying > > to > > > reach some.domain.com/admin. > > > > > > John > > > > > > > > > > -----Original Message----- > > > > From: Chris Schild [mailto:chris.schild@corridortechnology.com] > > > > Sent: Wednesday, January 22, 2003 3:31 PM > > > > To: Tomcat Users List > > > > Subject: Re: Tomcat Apache directories, jsp/servlet path > > > > > > > > > > > > > If you want to auto-deploy, then you need to look at > > > > > $CATALINA_HOME/webapps/admin.xml and > > > > $CATALINA_HOME/webapps/manager.xml > > > > for > > > > > examples on how to auto-deploy a Context. Respectively, > > > > those two files > > > > > will make http://localhost/admin and > > http://localhost/manager work. > > > > > > > > > > John > > > > > > > > Auto-deploy is the goal, I have copied the examples from > > > > localhost/admin to > > > > mycompany.com/admin appBase > > > > I used the examples above to try to get to > > > > http://mycompany.com/admin but I > > > > get a 404 error? http://mycompany.com/examples also > > doesn't work BUT > > > > http://mycompany.com/examples/jsp/index.html works fine.... > > > > > > > > Could the error be coming from my appBase/WEB-INF/web.xml > > > > file not being > > > > defined correctly???? > > > > > > > > I think I need to step away and come back but I hate quitting!!! > > > > > > > > ----- Original Message ----- > > > > From: "Turner, John" > > > > To: "'Tomcat Users List'" > > > > Sent: Tuesday, January 21, 2003 1:58 PM > > > > Subject: RE: Tomcat Apache directories, jsp/servlet path > > > > > > > > > > > > > > > > > > I might add that http://localhost/examples is an example of > > > > what you need > > > > to > > > > > do for any webapp if you don't want to auto-deploy (One > > > > Host element, one > > > > > Context). > > > > > > > > > > If you want to auto-deploy, then you need to look at > > > > > $CATALINA_HOME/webapps/admin.xml and > > > > $CATALINA_HOME/webapps/manager.xml > > > > for > > > > > examples on how to auto-deploy a Context. Respectively, > > > > those two files > > > > > will make http://localhost/admin and > > http://localhost/manager work. > > > > > > > > > > John > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > From: Turner, John [mailto:JTurner@AAS.com] > > > > > > Sent: Tuesday, January 21, 2003 2:53 PM > > > > > > To: 'Tomcat Users List' > > > > > > Subject: RE: Tomcat Apache directories, jsp/servlet path > > > > > > > > > > > > > > > > > > > > > > > > Well, first off, you don't have any ROOT Contexts in that > > > > > > server.xml you > > > > > > posted. > > > > > > > > > > > > If you want http://my.domain.com/my.jsp to work, you need: > > > > > > > > > > > > 1) a Host element for my.domain.com (just like the one in > > > > > > server.xml for > > > > > > localhost, but change the appBase) > > > > > > > > > > > > 2) a Context within that Host element that looks like this: > > > > > > > > > > > > > > > > > > > > > > > > 3) a folder in the Host's appBase directory called ROOT > > > > > > > > > > > > 4) a folder in the ROOT folder called WEB-INF > > > > > > > > > > > > 5) a file in ROOT/WEB-INF called web.xml > > > > > > > > > > > > 6) my.jsp goes in appBase/docBase, in this case > > > > appBase/ROOT/my.jsp > > > > > > > > > > > > If you don't want to do that, you can use the auto-deploy > > > > feature for > > > > > > Contexts, and put a file called myapp.xml in > > > > CATALINA_HOME/webapps (or > > > > > > rather, Host's appBase), the contents of which might be: > > > > > > > > > > > > > > > > > debug="0" reloadable="true"> > > > > > > > > > > > > > > > > > prefix="localhost_admin_log." suffix=".txt" > > > > > > timestamp="true"/> > > > > > > > > > > > > > > > > > > > > > > > > John > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > From: Chris Schild > > [mailto:chris.schild@corridortechnology.com] > > > > > > > Sent: Tuesday, January 21, 2003 2:39 PM > > > > > > > To: Tomcat Users List > > > > > > > Subject: Re: Tomcat Apache directories, jsp/servlet path > > > > > > > > > > > > > > > > > > > > > Lajos, > > > > > > > I believe you are right on the but I am > > > > > > > uncertain what > > > > > > > should be defined in web.xml. The same with server.xml. I > > > > > > > am not finding > > > > > > > the docs that I need. > > > > > > > Thanks for the help! > > > > > > > > > > > > > > ----- Original Message ----- > > > > > > > From: "Lajos Moczar" > > > > > > > To: "Tomcat Users List" > > > > > > > Sent: Tuesday, January 21, 2003 1:11 PM > > > > > > > Subject: Re: Tomcat Apache directories, jsp/servlet path > > > > > > > > > > > > > > > > > > > > > > Chris - > > > > > > > > > > > > > > > > Can you provide the relevant snippets of server.xml and > > > > > > > web.xml? Off the > > > > > > > > bat, I can't really suggest anything except to say that > > > > > > possibly you > > > > > > > > need other tags defined in web.xml. > > > > > > > > > > > > > > > > Cheers, > > > > > > > > > > > > > > > > Lajos > > > > > > > > > > > > > > > > > > > > > > > > Chris Schild wrote: > > > > > > > > > Can someone tell me (provide an example) of how to add > > > > > > > directories for > > > > > > > running jsp/servlets? > > > > > > > > > > > > > > > > > > I have multiple hosts and the examples work fine but I > > > > > > am missing > > > > > > > something as for running jsp/servlets for those > > virtual hosts. > > > > > > > > > www.mydomain1.com/examples/jsp/test.jsp and > > > > > > > www.mydomain2.com/examples/jsp/test.jsp work fine > > but when I try > > > > > > > www.mydomain1.com/test.jsp on the root directory I get > > > > > > > nuttin? HTML, etc > > > > > > > seem to work ok... > > > > > > > > > > > > > > > > > > Where should I define this path? Is there > > something that > > > > > > > I need to > > > > > > > modify in web.xml? Somebody please help before I lose > > > > my hair! (: > > > > > > > > > > > >��u! > > > > Is there a URL with some documentation out there I am > > > > > > > missing? Did I > > > > > > > overlook it in tomcat-4.0-doc HOWTO? > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Lajos Moczar > > > > > > > > ---------------------------------------- > > > > > > > > Open Source Support, Consulting and Training > > > > > > > > ---------------------------------------- > > > > > > > > Cocoon Developer's Handbook > > > > > > > > (www.amazon.com/exec/obidos/tg/detail/-/0672322579) > > > > > > > > > > > > > > > > _ _____ > > > > > > > > / \ / > > > > > > > > /___\ / > > > > > > > > / \ /____ > > > > > > > > > > > > > > > > http://www.galatea.com -- powered by AzSSL > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > > > To unsubscribe, e-mail: > > > > > > > > > > > > > > > For additional commands, e-mail: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > To unsubscribe, e-mail: > > > > > > > > > > For additional commands, e-mail: > > > > > > > > > > > > > > > -- > > > > > To unsubscribe, e-mail: > > > > > > > > > For additional commands, e-mail: > > > > > > > > > > > > > > > > > > > > > -- > > > > To unsubscribe, e-mail: > > > > > > For additional commands, e-mail: > > > > > > > > > -- > > > To unsubscribe, e-mail: > > > > > For additional commands, e-mail: > > > > > > > > > > > -- > > To unsubscribe, e-mail: > > For additional commands, e-mail: > > > -- > To unsubscribe, e-mail: > For additional commands, e-mail: > -- To unsubscribe, e-mail: For additional commands, e-mail: