Re: welcome-file problem

2001-03-21 Thread Martin Mauri

 On Tue, 20 Mar 2001, Martin Mauri wrote:

   On Mon, 19 Mar 2001, Martin Mauri wrote:
  
 
  The URL is: http://myhost:myport/worksheet/
 
  and so worksheet is the context name, but the welcome page is
  worksheet.jsp and it's inside the directory worksheet.

 OK.  That seems fine to me.

 Now, I'm using mod_jserv, not mod_jk, and I have things like the
 following in my apache/tomcat conf file:

 Alias /blah /path/to/tomcat/webapps/blah
 ApJServMount /blah/servlet /blah

 which I got based on the sample provided.  I also added

 ApJServMount /blah /blah

 which wasn't in the sample but which seems to allow me to do some
 things I want.

 As I understand it, these ApJServMount's, tell apache (and/or tomcat)
 what the context is for URL's passed to tomcat.  The ApJKMount
 directives you have don't seem to be doing that, they just indicate
 what the protocol is.  I'm wondering if this could be (part of) the
 problem.

 Because it seems like the URL you're using wouldn't be matched by
 either of the ApJKMount directives shown below.

Dear Milt,

I've done exactly as you told me, but anything happened, could be this a bug
of this version of mod_jk? Wouldn't it be useful to post it to the
developers list?

regards.

Martin




Re: welcome-file problem

2001-03-20 Thread Martin Mauri


 On Mon, 19 Mar 2001, Martin Mauri wrote:

 [ ... ]
   Here's a guess (an educated one, since I had similar problems :-):
   You're not specifying appropriate directives in the tomcat/apache conf
   file to tell apache to pass that URL to tomcat.  Hence, apache is
   handling that URL (and it's only tomcat knows about the welcome file).
   If you're using mod_jserv, these are ApJservMount directives; if
   you're using mod_jk, I don't know, but I'd guess they're ApJKMount
   directives.  Anyway, look at the documentation for this conf file on
   the tomcat web site.
 
  Dear Milt, perhaps your theory is right, but take a look at this:
  I've renamed my file worksheet.html to worksheet.jsp and I've got the
jsp
  extension redirected to Tomcat.
  but it doesn't work at all :(
 
  any idea?

 What is the URL you are trying?  And where is the worksheet.jsp file
 located?  Is worksheet the app/context name?

 Those JkMount's may tell apache to forward to tomcat all *.jsp URL's,
 but I'm not sure they're telling apache to forward to tomcat
 everything for that context.  And it is the context for which the
 welcome-file is specified.

The URL is: http://myhost:myport/worksheet/

and so worksheet is the context name, but the welcome page is worksheet.jsp
and it's inside the directory worksheet.

thanks.

Martin



  my welcome looks like this:
 
  welcome-file-list
   welcome-fileworksheet.jsp/welcome-file
  /welcome-file-list
 
  and my mod_jk.conf looks like this:
 
  #
  # The following line mounts all JSP files and the /servlet/ uri to
tomcat
  #
  JkMount /worksheet/servlet/* ajp12
  JkMount /worksheet/*.jsp ajp12

 Milt Epstein
 Research Programmer
 Software/Systems Development Group
 Computing and Communications Services Office (CCSO)
 University of Illinois at Urbana-Champaign (UIUC)
 [EMAIL PROTECTED]




Re: welcome-file problem

2001-03-20 Thread Milt Epstein

On Tue, 20 Mar 2001, Martin Mauri wrote:

  On Mon, 19 Mar 2001, Martin Mauri wrote:
 
  [ ... ]
Here's a guess (an educated one, since I had similar problems :-):
You're not specifying appropriate directives in the tomcat/apache conf
file to tell apache to pass that URL to tomcat.  Hence, apache is
handling that URL (and it's only tomcat knows about the welcome file).
If you're using mod_jserv, these are ApJservMount directives; if
you're using mod_jk, I don't know, but I'd guess they're ApJKMount
directives.  Anyway, look at the documentation for this conf file on
the tomcat web site.
  
   Dear Milt, perhaps your theory is right, but take a look at this:
   I've renamed my file worksheet.html to worksheet.jsp and I've got the
 jsp
   extension redirected to Tomcat.
   but it doesn't work at all :(
  
   any idea?
 
  What is the URL you are trying?  And where is the worksheet.jsp file
  located?  Is worksheet the app/context name?
 
  Those JkMount's may tell apache to forward to tomcat all *.jsp URL's,
  but I'm not sure they're telling apache to forward to tomcat
  everything for that context.  And it is the context for which the
  welcome-file is specified.
 
 The URL is: http://myhost:myport/worksheet/
 
 and so worksheet is the context name, but the welcome page is
 worksheet.jsp and it's inside the directory worksheet.

OK.  That seems fine to me.

Now, I'm using mod_jserv, not mod_jk, and I have things like the
following in my apache/tomcat conf file:

Alias /blah /path/to/tomcat/webapps/blah
ApJServMount /blah/servlet /blah

which I got based on the sample provided.  I also added

ApJServMount /blah /blah

which wasn't in the sample but which seems to allow me to do some
things I want.

As I understand it, these ApJServMount's, tell apache (and/or tomcat)
what the context is for URL's passed to tomcat.  The ApJKMount
directives you have don't seem to be doing that, they just indicate
what the protocol is.  I'm wondering if this could be (part of) the
problem.

Because it seems like the URL you're using wouldn't be matched by
either of the ApJKMount directives shown below.


   my welcome looks like this:
  
   welcome-file-list
welcome-fileworksheet.jsp/welcome-file
   /welcome-file-list
  
   and my mod_jk.conf looks like this:
  
   #
   # The following line mounts all JSP files and the /servlet/ uri to
 tomcat
   #
   JkMount /worksheet/servlet/* ajp12
   JkMount /worksheet/*.jsp ajp12
 
 

Milt Epstein
Research Programmer
Software/Systems Development Group
Computing and Communications Services Office (CCSO)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]




Re: welcome-file problem

2001-03-19 Thread Martin Mauri


 On Fri, 16 Mar 2001, Martin Mauri wrote:

  Hi users!
 
  I've configured my web.xml file with the tag:
 
  welcome-file-list
  welcome-fileworksheet.html/welcome-file
  /welcome-file-list
 
  and it worked nice while using Tomcat as a standalone server, but
  when I installed Tomcat to work with Apache, the welcome file isn't
  showed at all, I only get the list of available files in the
  directory...which could be the problem?
 
  any idea?

 Here's a guess (an educated one, since I had similar problems :-):
 You're not specifying appropriate directives in the tomcat/apache conf
 file to tell apache to pass that URL to tomcat.  Hence, apache is
 handling that URL (and it's only tomcat knows about the welcome file).
 If you're using mod_jserv, these are ApJservMount directives; if
 you're using mod_jk, I don't know, but I'd guess they're ApJKMount
 directives.  Anyway, look at the documentation for this conf file on
 the tomcat web site.

 Milt Epstein
 Research Programmer
 Software/Systems Development Group
 Computing and Communications Services Office (CCSO)
 University of Illinois at Urbana-Champaign (UIUC)
 [EMAIL PROTECTED]

Dear Milt, perhaps your theory is right, but take a look at this:
I've renamed my file worksheet.html to worksheet.jsp and I've got the jsp
extension redirected to Tomcat.
but it doesn't work at all :(

any idea?

my welcome looks like this:

welcome-file-list
 welcome-fileworksheet.jsp/welcome-file
/welcome-file-list

and my mod_jk.conf looks like this:

#
# The following line mounts all JSP files and the /servlet/ uri to tomcat
#
JkMount /worksheet/servlet/* ajp12
JkMount /worksheet/*.jsp ajp12

regards.

Martin




Re: welcome-file problem

2001-03-19 Thread Arnaud Vandyck

Martin Mauri wrote:
 
  Here's a guess (an educated one, since I had similar problems :-):
  You're not specifying appropriate directives in the tomcat/apache conf
  file to tell apache to pass that URL to tomcat.  Hence, apache is
  handling that URL (and it's only tomcat knows about the welcome file).
  If you're using mod_jserv, these are ApJservMount directives; if
  you're using mod_jk, I don't know, but I'd guess they're ApJKMount
  directives.  Anyway, look at the documentation for this conf file on
  the tomcat web site.
 
  Milt Epstein
 
 Dear Milt, perhaps your theory is right, but take a look at this:
 I've renamed my file worksheet.html to worksheet.jsp and I've got the jsp
 extension redirected to Tomcat.
 but it doesn't work at all :(
 any idea?
 
 my welcome looks like this:
 
 welcome-file-list
  welcome-fileworksheet.jsp/welcome-file
 /welcome-file-list
 
 and my mod_jk.conf looks like this:
 
 #
 # The following line mounts all JSP files and the /servlet/ uri to tomcat
 #
 JkMount /worksheet/servlet/* ajp12
 JkMount /worksheet/*.jsp ajp12

Well, I think Milt was right! Add this to your httpd.conf:
#
DirectoryIndex worksheet.jsp index.html
#
and restart apache. It should work... I think (let me know) ;)

-- 
Arnaud Vandyck http://www.ressource-toi.org/



Re: welcome-file problem

2001-03-19 Thread Milt Epstein

On Mon, 19 Mar 2001, Arnaud Vandyck wrote:

 Martin Mauri wrote:
  
   Here's a guess (an educated one, since I had similar problems :-):
   You're not specifying appropriate directives in the tomcat/apache conf
   file to tell apache to pass that URL to tomcat.  Hence, apache is
   handling that URL (and it's only tomcat knows about the welcome file).
   If you're using mod_jserv, these are ApJservMount directives; if
   you're using mod_jk, I don't know, but I'd guess they're ApJKMount
   directives.  Anyway, look at the documentation for this conf file on
   the tomcat web site.
  
   Milt Epstein
  
  Dear Milt, perhaps your theory is right, but take a look at this:
  I've renamed my file worksheet.html to worksheet.jsp and I've got the jsp
  extension redirected to Tomcat.
  but it doesn't work at all :(
  any idea?
  
  my welcome looks like this:
  
  welcome-file-list
   welcome-fileworksheet.jsp/welcome-file
  /welcome-file-list
  
  and my mod_jk.conf looks like this:
  
  #
  # The following line mounts all JSP files and the /servlet/ uri to tomcat
  #
  JkMount /worksheet/servlet/* ajp12
  JkMount /worksheet/*.jsp ajp12
 
 Well, I think Milt was right! Add this to your httpd.conf:
 #
 DirectoryIndex worksheet.jsp index.html
 #
 and restart apache. It should work... I think (let me know) ;)

That may work.  But I'm not sure it's the "cleanest"/"best" way to do
it.  I believe that tells apache what to use for the directory index
for that directory (or all directories -- which is even worse).  But
really you've already told tomcat what the welcome file is.  You just
want to get apache to pass to tomcat the relevant requests, and then
tomcat will know what to do with it.

Milt Epstein
Research Programmer
Software/Systems Development Group
Computing and Communications Services Office (CCSO)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]




Re: welcome-file problem

2001-03-16 Thread Milt Epstein

On Fri, 16 Mar 2001, Martin Mauri wrote:

 Hi users!
 
 I've configured my web.xml file with the tag:
 
 welcome-file-list
 welcome-fileworksheet.html/welcome-file
 /welcome-file-list
 
 and it worked nice while using Tomcat as a standalone server, but
 when I installed Tomcat to work with Apache, the welcome file isn't
 showed at all, I only get the list of available files in the
 directory...which could be the problem?
 
 any idea?

Here's a guess (an educated one, since I had similar problems :-):
You're not specifying appropriate directives in the tomcat/apache conf
file to tell apache to pass that URL to tomcat.  Hence, apache is
handling that URL (and it's only tomcat knows about the welcome file).
If you're using mod_jserv, these are ApJservMount directives; if
you're using mod_jk, I don't know, but I'd guess they're ApJKMount
directives.  Anyway, look at the documentation for this conf file on
the tomcat web site.

Milt Epstein
Research Programmer
Software/Systems Development Group
Computing and Communications Services Office (CCSO)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]