tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Larry Isaacs <Larry.Isa...@sas.com>
Subject RE: Tomcat & Cocoon Question
Date Wed, 01 May 2002 16:57:22 GMT
After inspecting the source for StaticInterceptor, there
is a bug that causes the debug level always be reset to 0.
That would explain the lack of additional output.

It is this interceptor that decides whether to redirect to
a found welcome file or display a directory lists when the
request refers to a directory.  It is not clear why this
interceptor is not picking up your welcome file.

I have confirmed that this bug, among many others, is not
present in Tomcat 3.3 and later.  If you can give 3.3.1
a try, you would also benefit in that Tomcat 3.3 will
validate the web.xml.  If the welcome file is being
ignored due to some syntax error in web.xml, you would find
out about it.  The alternative is to build your own
Tomcat 3.2.x from source, removing the "debug=0" in the
contextInit() method of StaticInterceptor.

Cheers,
Larry


> -----Original Message-----
> From: Anthony Diodato [mailto:adiodato@p21.com] 
> Sent: Wednesday, May 01, 2002 11:37 AM
> To: 'Tomcat Users List'
> Subject: RE: Tomcat & Cocoon Question
> 
> 
> OK, Ive set up the error log to go to tomcat.log.
> 
> This is what I have in my log after I try to access
> http://foo.bar.com/cocoon
> 
> Nothing seems to change in here after I access 
> http://foo.bar.com/cocoon or
> http://foo.bar.com/cocoon/index.xml
> 
> I go back and forth between pages, refreshing and still 
> nothing seems to
> appear 
> 
> 2002-05-01 11:22:51 - ContextManager: Adding context Ctx( /examples )
> 2002-05-01 11:22:51 - Ctx( /cocoon ): Set debug to 1
> 2002-05-01 11:22:51 - ContextManager: Adding context Ctx( /cocoon )
> 2002-05-01 11:22:51 - ContextManager: Adding context Ctx(  )
> 2002-05-01 11:22:51 - ContextManager: Adding context Ctx( /admin )
> 2002-05-01 11:22:51 - ContextManager: Adding context Ctx( 
> /index.html )
> 2002-05-01 11:22:51 - ContextManager: Adding context Ctx( /test )
> 2002-05-01 11:22:58 - Ctx( /cocoon ): XmlReader - init  /cocoon
> webapps/cocoon
> 2002-05-01 11:22:58 - Ctx( /cocoon ): Reading
> C:\jakarta-tomcat-3.2.4\webapps\cocoon\WEB-INF\web.xml
> 2002-05-01 11:22:58 - Ctx( /cocoon ): Loading -2147483646 jsp
> 2002-05-01 11:22:59 - PoolTcpConnector: Starting 
> HttpConnectionHandler on
> 8080
> 2002-05-01 11:22:59 - PoolTcpConnector: Starting 
> Ajp12ConnectionHandler on
> 8007
> 
> THanks
> Tony
> 
> -----Original Message-----
> From: Larry Isaacs [mailto:Larry.Isaacs@sas.com]
> Sent: Wednesday, May 01, 2002 11:18 AM
> To: 'Tomcat Users List'
> Subject: RE: Tomcat & Cocoon Question
> 
> 
> The output would go to the Tomcat log, which defaults to outputing
> to the console.  If it gets lost there, add a path for the "tc_log"
> in server.xml.
> 
> Cheers,
> Larry
> 
> > -----Original Message-----
> > From: Anthony Diodato [mailto:adiodato@p21.com] 
> > Sent: Wednesday, May 01, 2002 11:10 AM
> > To: 'Tomcat Users List'
> > Subject: RE: Tomcat & Cocoon Question
> > 
> > 
> > I've set the StaticInterceptor to
> > 
> > <RequestInterceptor
> > 	classname="org.apache.tomcat.request.StaticInterceptor"	
> > 	debug="1"
> > 	suppress="false"/>
> > 
> > Now where is the log file that Im looking for??
> > I only have 3 log files in the entire jakarta-tomcat-3.2.4 directory
> > iis_redirect.log
> > jasper.log
> > servlet.log
> > 
> > Thanks
> > Tony
> > 
> > -----Original Message-----
> > From: Larry Isaacs [mailto:Larry.Isaacs@sas.com]
> > Sent: Wednesday, May 01, 2002 11:01 AM
> > To: 'Tomcat Users List'
> > Subject: RE: Tomcat & Cocoon Question
> > 
> > 
> > At this point, try changing to debug="1" on the StaticInterceptor
> > in server.xml.  That should show in the log, whether it is finding
> > the "welcome" file.  You will be looking for "Dir handler" if the
> > file is not found, or "Redirect ..." if it is.
> > 
> > Cheers,
> > Larry
> > 
> > > -----Original Message-----
> > > From: Anthony Diodato [mailto:adiodato@p21.com] 
> > > Sent: Wednesday, May 01, 2002 10:41 AM
> > > To: 'Tomcat Users List'
> > > Subject: RE: Tomcat & Cocoon Question
> > > 
> > > 
> > > When I get the directory listing, the bottom of my page says 
> > > "Tomcat Web
> > > Server v3.2.4"
> > > 
> > > This is what I have in my uriworkermap.properties
> > > default.worker=ajp12
> > > 
> > > /cocoon=$(default.worker)
> > > /cocoon/*=$(default.worker)
> > > /cocoon/*.xml=$(default.worker)
> > > 
> > > Still getting the same results.
> > > 
> > > I thank for all your help so far, and I think Im close, but 
> > > something isn't
> > > clicking somewhere.
> > > Any other thoughts
> > > 
> > > Thanks
> > > Anthony
> > > 
> > > 
> > > -----Original Message-----
> > > From: Larry Isaacs [mailto:Larry.Isaacs@sas.com]
> > > Sent: Wednesday, May 01, 2002 10:28 AM
> > > To: 'Tomcat Users List'
> > > Subject: RE: Tomcat & Cocoon Question
> > > 
> > > 
> > > If Tomcat is serving the listing, you should see Tomcat named
> > > in the footer of the displayed page.  I forget the exact text
> > > of the string.  If you don't see mentioned at the bottom of
> > > the page, then IIS is serving the listing.
> > > 
> > > If you want the welcome files specified in the web.xml to make
> > > a difference, then the request http://foo.bar.com/cocoon/ will
> > > have to be forwarded to Tomcat.  Which requests are forwarded is
> > > controlled by the uriworkermap.properties file.  It is here
> > > that you would add the appropriate mapping.
> > > 
> > > Cheers,
> > > Larry
> > > 
> > > > -----Original Message-----
> > > > From: Anthony Diodato [mailto:adiodato@p21.com] 
> > > > Sent: Wednesday, May 01, 2002 10:11 AM
> > > > To: 'Tomcat Users List'
> > > > Subject: RE: Tomcat & Cocoon Question
> > > > 
> > > > 
> > > > Larry,
> > > > 
> > > > How can I be sure. I know Tomcat is doing something with that 
> > > > directory,
> > > > because all of the xml pages are using Java, and I know IIS 
> > > > cant serve them
> > > > without some help.
> > > > 
> > > > Inside of my server.xml file Im doing this.
> > > >         <Context path="/cocoon" 
> > > >                  docBase="webapps/cocoon" 
> > > >                  debug="0" 
> > > >                  reloadable="true" > 
> > > >         </Context>
> > > > I thought this mapped the /cocoon context to Tomcat..
> > > > Now Im really confused.
> > > > 
> > > > The Home Directory for IIS is pointing to 
> > > > c:\jakarta-tomcat-3.2.4\webapps
> > > > Should this be changed too??
> > > > 
> > > > Thanks
> > > > Tony
> > > > 
> > > > -----Original Message-----
> > > > From: Larry Isaacs [mailto:Larry.Isaacs@sas.com]
> > > > Sent: Wednesday, May 01, 2002 10:04 AM
> > > > To: 'Tomcat Users List'
> > > > Subject: RE: Tomcat & Cocoon Question
> > > > 
> > > > 
> > > > Does the request http://foo.bar.com/cocoon/ get mapped to
> > > > Tomcat?  If not, IIS still serves the directory listing.
> > > > If the listing doesn't identify Tomcat, then Tomcat
> > > > isn't generating the listing.  The statement that
> > > > "IIS doing all of the static pages" suggests that IIS
> > > > is likely to be doing the listings too.
> > > > 
> > > > Cheers,
> > > > Larry
> > > > 
> > > > > -----Original Message-----
> > > > > From: Anthony Diodato [mailto:adiodato@p21.com] 
> > > > > Sent: Wednesday, May 01, 2002 9:51 AM
> > > > > To: 'Tomcat Users List'
> > > > > Subject: RE: Tomcat & Cocoon Question
> > > > > 
> > > > > 
> > > > > IIS serves that page, but I guess I should've been more clear.
> > > > > 
> > > > > What Im really looking for is this.
> > > > > http://foo.bar.com/cocoon/ this is the page that Id like to 
> > > > > default to the
> > > > > index.xml file
> > > > > The Context /cocoon is served by Tomcat, and this is 
> > > > exactly where my
> > > > > problem lies.
> > > > > 
> > > > > Thanks
> > > > > Anthony
> > > > > 
> > > > > -----Original Message-----
> > > > > From: Larry Isaacs [mailto:Larry.Isaacs@sas.com]
> > > > > Sent: Wednesday, May 01, 2002 9:45 AM
> > > > > To: 'Tomcat Users List'
> > > > > Subject: RE: Tomcat & Cocoon Question
> > > > > 
> > > > > 
> > > > > For http://foo.bar.com/, who serves the directory
> > > > > listing?  If IIS is serving the listing, making
> > > > > changes on the Tomcat side isn't going to alter this
> > > > > behavior.
> > > > > 
> > > > > Cheers,
> > > > > Larry
> > > > > 
> > > > > > -----Original Message-----
> > > > > > From: Anthony Diodato [mailto:adiodato@p21.com] 
> > > > > > Sent: Wednesday, May 01, 2002 9:41 AM
> > > > > > To: 'Tomcat Users List'
> > > > > > Subject: RE: Tomcat & Cocoon Question
> > > > > > 
> > > > > > 
> > > > > > Bill,
> > > > > > 
> > > > > > Still not working.
> > > > > > My welcome file list is this
> > > > > > 
> > > > > >     <welcome-file-list>
> > > > > > 	<welcome-file>
> > > > > >             index.xml
> > > > > >       </welcome-file>
> > > > > >     </welcome-file-list>
> > > > > > 
> > > > > > And you right, it was in web.xml, but after I made the 
> > > > changes, and
> > > > > > re-started Tomcat, I still get the directory listing.
> > > > > > If you have any other thoughts, please let me know.
> > > > > > 
> > > > > > Thanks
> > > > > > Anthony
> > > > > > 
> > > > > > -----Original Message-----
> > > > > > From: Bill Barnhill [mailto:wbarnhil@twcny.rr.com]
> > > > > > Sent: Wednesday, May 01, 2002 12:00 PM
> > > > > > To: 'Tomcat Users List'
> > > > > > Subject: RE: Tomcat & Cocoon Question
> > > > > > 
> > > > > > 
> > > > > > I think this can be done by setting the welcome page to be 
> > > > > > index.xml. I
> > > > > > think this is in web.xml, but I may have the xml file 
> > > > > wrong. Do a find
> > > > > > on text welcome in the .xml files under tomcat and you 
> > > > > should find it.
> > > > > > 
> > > > > > HTH,
> > > > > > Bill Barnhill
> > > > > > 
> > > > > > -----Original Message-----
> > > > > > From: Anthony Diodato [mailto:adiodato@p21.com] 
> > > > > > Sent: Wednesday, May 01, 2002 5:46 AM
> > > > > > To: 'tomcat-user@jakarta.apache.org'
> > > > > > Subject: Tomcat & Cocoon Question
> > > > > > 
> > > > > > 
> > > > > > Im using Cocoon 1.8.2 and Tomcat 3.2.4. IIS 5.0 as my 
> > > > > > Webserver. I have
> > > > > > Tomcat processing my Cocoon xml, and IIS doing all of the 
> > > > > > static pages.
> > > > > > 
> > > > > > My problem is this.
> > > > > > 
> > > > > > If I go to http://foo.bar.com/index.xml it works fine, but 
> > > > > if I go to
> > > > > > http://foo.bar.com/ it gives me a directory listing of what

> > > > > is in that
> > > > > > directory. Id like for it to default to the index.xml file.
> > > > > > 
> > > > > > Can this be done??
> > > > > > 
> > > > > > Thanks
> > > > > > Anthony Diodato
> > > > > > 
> > > > > > 
> > > > > > Anthony Diodato
> > > > > > Webmaster - IT
> > > > > > Prophet 21, Inc.
> > > > > > 19 West College Avenue
> > > > > > Yardley, PA 19067
> > > > > > 1-800-776-7438, ext. 4600
> > > > > > Fax: 215-321-8014 
> > > > > > adiodato@p21.com
> > > > > > http://www.p21.com/
> > > > > > Prophet 21 -- Powering the Distribution Industry for the 
> > > > > Digital Age 
> > > > > > 
> > > > > > For the latest press releases from Prophet 21 --
> > > > > > http://www.p21.com/press/press.html 
> > > > > > *	2/12/2001 - Trading Partner Connect Offers
> > > > > > Enterprise-to-Enterprise
> > > > > > (E2E) Commerce 
> > > > > > *	2/9/2001 -- Prophet 21 CommerceCenter 8.0 is 
> > > Now Available
> > > > > > *	2/9/2001 -- Prophet 21 Upgrades and Enhances 
> > > Prophet 21 Acclaim
> > > > > > For the latest articles on Prophet 21
> > > > > > 
> http://www.manufacturing.net/magazine/id/archives/2001/ind010.
> > > > > > 02/techupd
> > > > > > ate.
> > > > > > htm 
> > > > > > 
> > > http://www.manufacturing.net/magazine/id/develop/techmain01.1.htm 
> > > > > > 
> http://www.manufacturing.net/magazine/id/archives/2000/ind1201
> > > > > > /news.htm
> > > > > > 
> > > > > > 
> > > > > > 
> > > > > > 
> > > > > > Visit our website at http://www.p21.com/visit 
> > > > > > The information in this e-mail is confidential and may 
> > > > > contain legally
> > > > > > privileged information.  It is intended solely for 
> the person 
> > > > > > or entity
> > > > > > to which it is addressed.  Access to this e-mail by 
> > > anyone else is
> > > > > > unauthorized. If you are not the intended recipient, any 
> > > > disclosure,
> > > > > > copying, distribution, action taken, or action omitted to 
> > > > > be taken in
> > > > > > reliance on it, is prohibited and may be unlawful.  If you 
> > > > > > received this
> > > > > > e-mail in error, please contact the sender and delete the 
> > > > > > material from
> > > > > > any computer. 
> > > > > > 
> > > > > > 
> > > > > > 
> > > > > > --
> > > > > > To unsubscribe:   
> > > > > <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> > > > > > For additional commands: 
> > > > > <mailto:tomcat-user-help@jakarta.apache.org>
> > > > > > Troubles with the list: 
> > > > > <mailto:tomcat-user-owner@jakarta.apache.org>
> > > > > > 
> > > > > > 
> > > > > > 
> > > > > > --
> > > > > > To unsubscribe:   
> > > > > <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> > > > > > For additional commands: 
> > > > > <mailto:tomcat-user-help@jakarta.apache.org>
> > > > > > Troubles with the list: 
> > > > > <mailto:tomcat-user-owner@jakarta.apache.org>
> > > > > > 
> > > > > > 
> > > > > > Visit our website at http://www.p21.com/visit 
> > > > > > The information in this e-mail is confidential and may 
> > > > > contain legally
> > > > > > privileged information.  It is intended solely for 
> the person 
> > > > > > or entity to
> > > > > > which it is addressed.  Access to this e-mail by 
> > anyone else is
> > > > > > unauthorized. If you are not the intended recipient, any 
> > > > disclosure,
> > > > > > copying, distribution, action taken, or action omitted to 
> > > > > be taken in
> > > > > > reliance on it, is prohibited and may be unlawful.  If you 
> > > > > > received this
> > > > > > e-mail in error, please contact the sender and delete the 
> > > > > > material from any
> > > > > > computer. 
> > > > > > 
> > > > > > 
> > > > > > 
> > > > > > --
> > > > > > To unsubscribe:   
> > > > > <mailto:tomcat-user-> unsubscribe@jakarta.apache.org>
> > > > > > For 
> > > > > additional commands: 
> > > > > <mailto:tomcat-user-help@jakarta.apache.org>
> > > > > > Troubles with the list: 
> > > > > <mailto:tomcat-user-owner@jakarta.apache.org>
> > > > > > 
> > > > > 
> > > > > --
> > > > > To 
> > > > > unsubscribe:   
> > <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> > > > > For additional commands: 
> > > > <mailto:tomcat-user-help@jakarta.apache.org>
> > > > > Troubles with the list: 
> > > > <mailto:tomcat-user-owner@jakarta.apache.org>
> > > > > 
> > > > > 
> > > > > Visit our website at http://www.p21.com/visit 
> > > > > The information in this e-mail is confidential and may 
> > > > contain legally
> > > > > privileged information.  It is intended solely for the person 
> > > > > or entity to
> > > > > which it is addressed.  Access to this e-mail by 
> anyone else is
> > > > > unauthorized. If you are not the intended recipient, any 
> > > disclosure,
> > > > > copying, distribution, action taken, or action omitted to 
> > > > be taken in
> > > > > reliance on it, is prohibited and may be unlawful.  If you 
> > > > > received this
> > > > > e-mail in error, please contact the sender and delete the 
> > > > > material from any
> > > > > computer. 
> > > > > 
> > > > > 
> > > > > 
> > > > > --
> > > > > To unsubscribe:   
> > > > <mailto:tomcat-user-> unsubscribe@jakarta.apache.org>
> > > > > For 
> > > > additional commands: 
> > > > <mailto:tomcat-user-help@jakarta.apache.org>
> > > > > Troubles with the list: 
> > > > <mailto:tomcat-user-owner@jakarta.apache.org>
> > > > > 
> > > > 
> > > > --
> > > > To 
> > > > unsubscribe:   
> <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> > > > For additional commands: 
> > > <mailto:tomcat-user-help@jakarta.apache.org>
> > > > Troubles with the list: 
> > > <mailto:tomcat-user-owner@jakarta.apache.org>
> > > > 
> > > > 
> > > > Visit our website at http://www.p21.com/visit 
> > > > The information in this e-mail is confidential and may 
> > > contain legally
> > > > privileged information.  It is intended solely for the person 
> > > > or entity to
> > > > which it is addressed.  Access to this e-mail by anyone else is
> > > > unauthorized. If you are not the intended recipient, any 
> > disclosure,
> > > > copying, distribution, action taken, or action omitted to 
> > > be taken in
> > > > reliance on it, is prohibited and may be unlawful.  If you 
> > > > received this
> > > > e-mail in error, please contact the sender and delete the 
> > > > material from any
> > > > computer. 
> > > > 
> > > > 
> > > > 
> > > > --
> > > > To unsubscribe:   
> > > <mailto:tomcat-user-> unsubscribe@jakarta.apache.org>
> > > > For 
> > > additional commands: 
> > > <mailto:tomcat-user-help@jakarta.apache.org>
> > > > Troubles with the list: 
> > > <mailto:tomcat-user-owner@jakarta.apache.org>
> > > > 
> > > 
> > > --
> > > To 
> > > unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> > > For additional commands: 
> > <mailto:tomcat-user-help@jakarta.apache.org>
> > > Troubles with the list: 
> > <mailto:tomcat-user-owner@jakarta.apache.org>
> > > 
> > > 
> > > Visit our website at http://www.p21.com/visit 
> > > The information in this e-mail is confidential and may 
> > contain legally
> > > privileged information.  It is intended solely for the person 
> > > or entity to
> > > which it is addressed.  Access to this e-mail by anyone else is
> > > unauthorized. If you are not the intended recipient, any 
> disclosure,
> > > copying, distribution, action taken, or action omitted to 
> > be taken in
> > > reliance on it, is prohibited and may be unlawful.  If you 
> > > received this
> > > e-mail in error, please contact the sender and delete the 
> > > material from any
> > > computer. 
> > > 
> > > 
> > > 
> > > --
> > > To unsubscribe:   
> > <mailto:tomcat-user-> unsubscribe@jakarta.apache.org>
> > > For 
> > additional commands: 
> > <mailto:tomcat-user-help@jakarta.apache.org>
> > > Troubles with the list: 
> > <mailto:tomcat-user-owner@jakarta.apache.org>
> > > 
> > 
> > --
> > To 
> > unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> > For additional commands: 
> <mailto:tomcat-user-help@jakarta.apache.org>
> > Troubles with the list: 
> <mailto:tomcat-user-owner@jakarta.apache.org>
> > 
> > 
> > Visit our website at http://www.p21.com/visit 
> > The information in this e-mail is confidential and may 
> contain legally
> > privileged information.  It is intended solely for the person 
> > or entity to
> > which it is addressed.  Access to this e-mail by anyone else is
> > unauthorized. If you are not the intended recipient, any disclosure,
> > copying, distribution, action taken, or action omitted to 
> be taken in
> > reliance on it, is prohibited and may be unlawful.  If you 
> > received this
> > e-mail in error, please contact the sender and delete the 
> > material from any
> > computer. 
> > 
> > 
> > 
> > --
> > To unsubscribe:   
> <mailto:tomcat-user-> unsubscribe@jakarta.apache.org>
> > For 
> additional commands: 
> <mailto:tomcat-user-help@jakarta.apache.org>
> > Troubles with the list: 
> <mailto:tomcat-user-owner@jakarta.apache.org>
> > 
> 
> --
> To 
> unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
> 
> 
> Visit our website at http://www.p21.com/visit 
> The information in this e-mail is confidential and may contain legally
> privileged information.  It is intended solely for the person 
> or entity to
> which it is addressed.  Access to this e-mail by anyone else is
> unauthorized. If you are not the intended recipient, any disclosure,
> copying, distribution, action taken, or action omitted to be taken in
> reliance on it, is prohibited and may be unlawful.  If you 
> received this
> e-mail in error, please contact the sender and delete the 
> material from any
> computer. 
> 
> 
> 
> --
> To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
> 

--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message