Re: Hey I found the solution RE: Servlets do not run under Apache-tomcat

2001-03-30 Thread Todd Pfaff

On Thu, 29 Mar 2001, Animesh Chaturvedi - US wrote:

 Hi filip 
 
 I found the solution. You have to make a change in tomcat's server.xml file.
 In the ContextManager section you have to set up a variable like
 home="TOMCAT_HOME".

That's all?  That solved your problem?  Something like this?
(TOMCAT_HOME = /tomcat in my case)

  ContextManager 
  home="/tomcat" debug="0" workDir="work" showDebugInfo="true" 

 Now you do  not need to use an Alias directive they all will work.

Are you saying that, for example, with this Alias directive removed from
your tomcat-apache.conf file:

  Alias /examples "/tomcat/webapps/examples"
  Directory "/tomcat/webapps/examples"
  Options Indexes FollowSymLinks
  /Directory
  ApJServMount /examples/servlet /examples

that you can still load the examples index page:

  http://host/examples/servlets/index.html

and then run the example servlet:

  http://host/examples/servlet/HelloWorldExample

when using an apache server?

How could this be possible?  How would apache know where to find
/examples?

--
Todd Pfaff \  Email: [EMAIL PROTECTED]
Computing and Information Services  \ Voice: (905) 525-9140 x22920
ABB 132  \  FAX: (905) 528-3773
McMaster University   \
Hamilton, Ontario, Canada  L8S 4M1 \






Re: 2nd Post: Servlets and mod_jk problem

2001-03-30 Thread Todd Pfaff

same problem i'm having.  i've posted several messages regarding this in
the last couple days.  no solution yet though.

what version of linux are you running?
what version of apache?
what version of mod_jk? (built yourself or from the jakarta web site?)
have you tried mod_jserv also?  (i did but it's segv'ing)

--
Todd Pfaff \  Email: [EMAIL PROTECTED]
Computing and Information Services  \ Voice: (905) 525-9140 x22920
ABB 132  \  FAX: (905) 528-3773
McMaster University   \
Hamilton, Ontario, Canada  L8S 4M1 \

On Fri, 30 Mar 2001, Kyle Tippetts wrote:

 I'm having trouble getting servlet mapping to work properly using mod_jk on
 Tomcat 3.2.1 on Linux. First of all I should mention that jsps work fine.
 Servlets work as well *if* they're located in the
 /webapps/whatever/Web-inf/classes directory, or if the url contains the
 fully-qualified name of the servlet. 
 
 Here's my situation:
 
 * classpath for my context is
 /opt/jakarta-tomcat-3.2.1/webapps/apo/Web-inf/classes
 * Servlet sits at
 /opt/jakarta-tomcat-3.2.1/webapps/apo/Web-inf/classes/com/center7/em/apps/ap
 o/src
 * pertinent parts of web.xml looks like this:
servlet
  servlet-name
 CaapControlServlet
  /servlet-name
  servlet-class
 com.center7.em.apps.apo.src.CaapControlServlet
  /servlet-class
/servlet
 
servlet-mapping
  servlet-name
CaapControlServlet
  /servlet-name
  url-pattern
/CaapControlServlet
  /url-pattern
/servlet-mapping
 
 * I'm using mod_jk, so I include a customized mod_jk.conf file in apache's
 httpd.conf. Inside the mod_jk.conf file, my context information is set up as
 follows:
   Alias /apo "/opt/jakarta-tomcat-3.2.1/webapps/apo"
 
   JkMount /apo/servlet/* ajp13
   JkMount /apo/*.jsp ajp13
 
 * The url I use inside an html page to access the servlet is 
   servlet/CaapControlServlet
   I then get a 404 error that says /apo/servlet/CaapControlServlet not
 found.
 
 Now the interesting thing is that none of the example mapping servlets found
 in the /test directory work, either. So, have I set something up wrong, and
 if so, what have I overlooked or done wrong, or does servlet mapping not
 work with Tomcat 3.2.1? Thanks in advance.
 
 
 ==
 --Kyle Tippetts
 --Center7 PilotCenter Development
 [EMAIL PROTECTED]
 --www.center7.com
 
 




RE: 2nd Post: Servlets and mod_jk problem

2001-03-30 Thread Todd Pfaff

On Fri, 30 Mar 2001, Kyle Tippetts wrote:

 Milt,
 
 The 404 error comes from tomcat. Also, the jsp that's used to invoke the
 servlet sits at /webapps/apo

really?  are you sure they're not coming from apache?

 Thanks
 --Kyle
 
 -Original Message-
 From: Milt Epstein [mailto:[EMAIL PROTECTED]]
 Sent: Friday, March 30, 2001 10:35 AM
 To: '[EMAIL PROTECTED]'
 Subject: Re: 2nd Post: Servlets and mod_jk problem
 
 
 On Fri, 30 Mar 2001, Kyle Tippetts wrote:
 
  I'm having trouble getting servlet mapping to work properly using mod_jk
 on
  Tomcat 3.2.1 on Linux. First of all I should mention that jsps work fine.
  Servlets work as well *if* they're located in the
  /webapps/whatever/Web-inf/classes directory, or if the url contains the
  fully-qualified name of the servlet. 
 [ ... ]
  * The url I use inside an html page to access the servlet is 
  servlet/CaapControlServlet
I then get a 404 error that says /apo/servlet/CaapControlServlet not
  found.
 [ ... ]
 
 Is the error from apache or tomcat?  One way you can tell is by
 checking which log file it shows up in, apache's or tomcat's.  Also,
 where is the HTML page?
 
 Milt Epstein
 Research Programmer
 Software/Systems Development Group
 Computing and Communications Services Office (CCSO)
 University of Illinois at Urbana-Champaign (UIUC)
 [EMAIL PROTECTED]
 

--
Todd Pfaff \  Email: [EMAIL PROTECTED]
Computing and Information Services  \ Voice: (905) 525-9140 x22920
ABB 132  \  FAX: (905) 528-3773
McMaster University   \
Hamilton, Ontario, Canada  L8S 4M1 \





Re: 2nd Post: Servlets and mod_jk problem

2001-03-30 Thread Todd Pfaff

ok, it sounds like we're getting somewhere...

Jeff, could you now try the examples servlets that come with tomcat-3.2.1
and translate your solution to those and the default mod_jk.conf-auto?

Todd

On Fri, 30 Mar 2001, Jeff Kilbride wrote:

 AHA!!!
 
 Actually, using my old config, pulling up
 mydomain.com/test/foo/bar/myServlet returned an Apache 404 error. I had
 tried that initially and gave up when Apache returned the error. But your
 post turned the little lightbulb on in my head!:o)
 
 It makes sense that /test/foo/bar/myServlet wasn't pulling up, because in my
 original config I hadn't specified a connector for /test/* -- only for
 /test/*.jsp and /test/servlet/*, like the examples in mod_jk.conf-auto. So,
 I went back and changed my original config to this:
 
 JkMount /test/*
 JkMount /test/servlet/*
 
 And POOF!! Now everything works. The only thing that sucks is that you have
 to serve the whole directory via Tomcat in order to use servlet-mappings --
 HTML and all. Maybe there should be a way to *turn off* extensions as well
 as turn them *on*, so you could specify to Tomcat not to serve *.html.
 (!*.html  ??)  I wonder if it's documented anywhere that in order to use
 servlet-mappings, you need to do this as opposed to following the examples
 and mod_jk.conf-auto. (should be...)
 
 My /test servlet didn't interfere, because it's actually set up in a
 different context under a virtual host -- using the Host directive in
 server.xml.
 
 One down!!
 
 Thanks, Milt. This was bugging me.
 
 --jeff
 
 
 - Original Message -
 From: "Milt Epstein" [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, March 30, 2001 1:42 PM
 Subject: Re: 2nd Post: Servlets and mod_jk problem
 
 
  On Fri, 30 Mar 2001, Jeff Kilbride wrote:
 
  [ ... ]
   Here's the servlet-mapping from web.xml file that comes with the
   distribution:
   servlet
   servlet-name
   servlet1
   /servlet-name
   servlet-class
   requestMap.Servlet1
   /servlet-class
   /servlet
  
   servlet-mapping
   servlet-name
   servlet1
   /servlet-name
   url-pattern
   /foo/bar/*
   /url-pattern
   /servlet-mapping
  
   Here's a snippet from my tomcat.log when I try to pull up
   mydomain.com/test/servlet/foo/bar/myServlet:
   985983892264 - Ctx( /test ): 404 R( /test + /servlet/foo +
 /bar/myServlet)
   null
 
  Did you try the URL:
 
  mydomain.com/test/foo/bar/myServlet
 
  i.e. without the "/servlet"?  My impression is that the url-pattern's
  in servlet-mapping's are meant to follow the context part of the URL,
  and that you don't need to include "/servlet" (although you do need to
  include it if you are just using the servlet-name or the fully
  qualified servlet-class).  That is, part of the point of using
  servlet-mapping's is so you don't need to have the "/servlet" in the
  URL.  This might explain some of your apparent anomalies when using
  "test" (you had it both as the servlet-name and the url-pattern in a
  servlet-mapping, IIRC).
 
 
   This mapping is supposed to map everything under /servlet/foo/bar/ to
   servlet1 -- but as you can see, Tomcat is saying /servlet/foo, with
 extra
   path info /bar/myServlet, doesn't exist. When I pull up
   mydomain.com/test/servlet/requestMap.Servlet1 or
   mydomain.com/test/servlet/servlet1, everything works as it should. So,
   Tomcat is not paying attention to the servlet-mapping entry.
  
   I think this is a problem, unless somebody has an explanation. I'm out
 of
   ideas.
  [ ... ]
 
  Milt Epstein
  Research Programmer
  Software/Systems Development Group
  Computing and Communications Services Office (CCSO)
  University of Illinois at Urbana-Champaign (UIUC)
  [EMAIL PROTECTED]
 
 
 

--
Todd Pfaff \  Email: [EMAIL PROTECTED]
Computing and Information Services  \ Voice: (905) 525-9140 x22920
ABB 132  \  FAX: (905) 528-3773
McMaster University   \
Hamilton, Ontario, Canada  L8S 4M1 \





Re: Linux - mod_jk ??

2001-03-30 Thread Todd Pfaff

several of us have been discussing this on the list for the past couple of
days.  unfortunately, those messages don't show up in the archives yet.

one person, Jeff Kilbride [EMAIL PROTECTED], seems to have found a
solution, but it's still not working for me yet.  i can't get any of the
example servlets to work as documented, even after i apply jeff's
suggestion changes.  i don't think i understand things clearly enough yet
though.

my environment is almost identical to yours.
linux mandrake 7.2
apache 1.3.14
tomcat-3.2.1
mod_jk binary from the tomcat web site

keep watching the list, and let us know if you figure anything out.


On Fri, 30 Mar 2001, Craig O'Brien wrote:

 Hello,
 
 I have installed Tomcat 3.2.1 several times on NT systems using the
 isapi_redirect with no problems and I have been using Tomcat for about 6-8
 months.  I am now doing my first Linux install.
 
 The system is Mandrake Linux 7.2 with apache 1.3.12 and JDK 1.3.1 on a PIII
 667 256meg ram.
 
 I have Tomcat working and have installed my package of various servlets,
 taglibs, and jsp pages and everything is working when I use port 8080.
 Apache is working great.
 
 I have switched to ajp13, and closely followed the documentation to
 configure apache and install mod_jk which I downloaded from the apache site.
 (binary) Everything has been checked at least 5 times. I am getting a little
 cross-eyed.
 
 I have not been able to get mod_jk to tomcat.
 
 I have my logs set to debug and after each change that I make I have
 restarted both servers and checked the logs. The mod_jk.log is showing that
 everything is being configured correctly and ajp13 is being found with each
 attempt yet no redirection is occurring.
 
 *mod_jk.log shows
 [jk_uri_worker_map.c (344)]: Into jk_uri_worker_map_t::map_uri_to_worker
 [jk_uri_worker_map.c (406)]: jk_uri_worker_map_t::map_uri_to_worker, Found a
 match ajp13
 
 apache's access.log shows the usual 404 not found message. On each restart
 the note that apache is configured with mod_jk appears.
 
 Simply adding the port :8080 to the domain with the same path shows me that
 everything is working with regards to java and tomcat.
 
 I do have the ssl module installed in apache but it is not configured with a
 certificate at this time.
 
 Are there any known issues??
 
 Any Ideas?
 
 I did spend over an hour browsing through the archives and could not find
 this situation.
 
 Much thanks,
 Craig
 
 
 

--
Todd Pfaff \  Email: [EMAIL PROTECTED]
Computing and Information Services  \ Voice: (905) 525-9140 x22920
ABB 132  \  FAX: (905) 528-3773
McMaster University   \
Hamilton, Ontario, Canada  L8S 4M1 \





RE: 2nd Post: Servlets and mod_jk problem

2001-03-30 Thread Todd Pfaff

imho, since apache is generating the error message, and tomcat is not
generating any error message (in my logs anyway), the problem is with the
apache configuration as it relates to tomcat.  apache does not seem to be
recognizing that tomcat should be handling the request and therefore does
not pass it on.  it just tried to resolve the url itself, fails and
reports the 404 error.  this is just my interpretation, i don't know if
it's correct.

On Fri, 30 Mar 2001, Milt Epstein wrote:

 On Fri, 30 Mar 2001, Kyle Tippetts wrote:
 
  Yes, tried this:
  mydomain.com/test/foo/bar/myServlet
  and it still didn't work. Now, if I do
  mydomain.com/test/servlet/requestMap.Servlet1, I can access it
  (obviously), but again, it really appears that servlet mappings
  aren't working
 
 Now again, when this doesn't work, is it an apache thing or a tomcat
 thing?  What I'm trying to get at is, is apache forwarding the request
 to tomcat.  That will help isolate where the problem is at.  In
 particular, if it's an apache thing, it means the request isn't even
 getting to tomcat, so it probably has to do with the relevant Mount
 (ApJServMount, ApJkMount) directives in the tomcat/apache conf file
 (or, more accurately, the lack of such).  This is a problem I ran into
 when I was setting up some stuff.
 
 Did you see Jeff Kilbride's recent post?  Apparently he was able to
 get it to work by adding an appropriate ApJkMount directive.
 
 This does seem to be one of the less clear/less well-documented
 aspects of setting tomcat up.
 
 
  -Original Message-
  From: Milt Epstein [mailto:[EMAIL PROTECTED]]
  Sent: Friday, March 30, 2001 2:43 PM
  To: [EMAIL PROTECTED]
  Subject: Re: 2nd Post: Servlets and mod_jk problem
  
  
  On Fri, 30 Mar 2001, Jeff Kilbride wrote:
  
  [ ... ]
   Here's the servlet-mapping from web.xml file that comes with the
   distribution:
   servlet
   servlet-name
   servlet1
   /servlet-name
   servlet-class
   requestMap.Servlet1
   /servlet-class
   /servlet
   
   servlet-mapping
   servlet-name
   servlet1
   /servlet-name
   url-pattern
   /foo/bar/*
   /url-pattern
   /servlet-mapping
   
   Here's a snippet from my tomcat.log when I try to pull up
   mydomain.com/test/servlet/foo/bar/myServlet:
   985983892264 - Ctx( /test ): 404 R( /test + /servlet/foo + /bar/myServlet)
   null
  
  Did you try the URL:
  
  mydomain.com/test/foo/bar/myServlet
  
  i.e. without the "/servlet"?  My impression is that the url-pattern's
  in servlet-mapping's are meant to follow the context part of the URL,
  and that you don't need to include "/servlet" (although you do need to
  include it if you are just using the servlet-name or the fully
  qualified servlet-class).  That is, part of the point of using
  servlet-mapping's is so you don't need to have the "/servlet" in the
  URL.  This might explain some of your apparent anomalies when using
  "test" (you had it both as the servlet-name and the url-pattern in a
  servlet-mapping, IIRC).
  
  
   This mapping is supposed to map everything under /servlet/foo/bar/ to
   servlet1 -- but as you can see, Tomcat is saying /servlet/foo, with extra
   path info /bar/myServlet, doesn't exist. When I pull up
   mydomain.com/test/servlet/requestMap.Servlet1 or
   mydomain.com/test/servlet/servlet1, everything works as it should. So,
   Tomcat is not paying attention to the servlet-mapping entry.
   
   I think this is a problem, unless somebody has an explanation. I'm out of
   ideas.
  [ ... ]
 
 Milt Epstein
 Research Programmer
 Software/Systems Development Group
 Computing and Communications Services Office (CCSO)
 University of Illinois at Urbana-Champaign (UIUC)
 [EMAIL PROTECTED]
 
 

--
Todd Pfaff \  Email: [EMAIL PROTECTED]
Computing and Information Services  \ Voice: (905) 525-9140 x22920
ABB 132  \  FAX: (905) 528-3773
McMaster University   \
Hamilton, Ontario, Canada  L8S 4M1 \




RE: Linux - mod_jk ??

2001-03-30 Thread Todd Pfaff

On Fri, 30 Mar 2001, Adam Fowler wrote:

 Again this problem *sigh*
 
 http://willow.cc.edu/docs/adminguide
 
 Goto the tomcat section and mod_jk installation guide.

awesome!  this worked, and it took all of five minutes for me to build
mod_jk.so, copy it to the modules directory, and restart tomcat and httpd.
thank you very much Adam!

too bad it took two days to find this simple solution.

--
Todd Pfaff \  Email: [EMAIL PROTECTED]
Computing and Information Services  \ Voice: (905) 525-9140 x22920
ABB 132  \  FAX: (905) 528-3773
McMaster University   \
Hamilton, Ontario, Canada  L8S 4M1 \




Re: Servlets do not run under Apache-tomcat

2001-03-29 Thread Todd Pfaff

On Thu, 29 Mar 2001, Animesh Chaturvedi - US wrote:

 I am running Apache 3.1.17 and Tomcat3.2.1 on a unix box and using mod_jserv
 as connector. and using SSL.

i assume you mean apache 1.3.17.

i posted a similar question yesterday to this list.  my environment is:

linux mandrake 7.2
apache 1.3.14 (mandrake build)
tomcat 3.2.1

i've tried using mod_jserv_tomcat and mod_jk.
when i use mod_jserv_tomcat, something is crashing with a segv.
when i use mod_jk, apache logs an error similar to yours:
File does not exist:
/usr/local/jakarta-tomcat-3.2.1/webapps/examples/servlet/HelloWorldExample

can anyone who is successfully running a linux, apache, tomcat environment
please send us the details of your environment, including:
- versions of linux, apache, tomcat
- copies of
  - your apache httpd.conf
  - your tomcat apache config files
mod_jk.conf-auto
tomcat-apache.conf
- did you build apache and/or tomcat from source
or did you use the binaries from jakarta.apache.org?


 The jsp are working perfectly, but servlets do not run at all. You get HTTP
 404 document not found error.  I have tried every possible way, but none
 works.
 
 for e.g if I reference a servlet HelloWorldExample in the context of
 examples
 
 through https://server-name/examples/servlet/HelloWorldExample
 
 i get HTTP 404 page not found
 
 and in apache error_log I see:
 
 File does not exist:
 /myroot/jakarta-tomcat/webapps/examples/servlet/HelloWorldExample
 
 However if I refernce a servlet through jsp (i forward the request to a
 servlet) it gets resolved.
 
 I will really appreciate if someone can point me how to correct this
 behaviour.
 
 All my web.xml and server.xml files are as they should be.
 
 
 
 thanks 
 
 Animesh
 

--
Todd Pfaff \  Email: [EMAIL PROTECTED]
Computing and Information Services  \ Voice: (905) 525-9140 x22920
ABB 132  \  FAX: (905) 528-3773
McMaster University   \
Hamilton, Ontario, Canada  L8S 4M1 \





RE: Servlets do not run under Apache-tomcat

2001-03-29 Thread Todd Pfaff

yes, i agree, that's what it looks like, but this is *exactly* how tomcat
creates the tomcat-apache.conf and mod_jk.conf-auto when it starts up.
are those auto-created conf files know to be incorrect?

On Thu, 29 Mar 2001, Filip Hanik wrote:

  Alias /examples /myroot/jakarta-tomcat/webapps/examples
  Directory "/myroot/jakarta-tomcat/webapps/examples
Options Indexes FollowSymLinks
  /Directory
 
  ApJServMount /examples/servlet /examples
  Location /examples/WEB-INF/ 
 AllowOverride None
 deny  from all
  /Location
 
 this looks like anything that goes to
 /examples/servlet is being sent /examples which is being aliased to
 /myroot/jakarta-tomcat/webapps/examples file system
 
 agree?
 Filip
 
 ~
 Namaste - I bow to the divine in you
 ~
 Filip Hanik
 Software Architect
 [EMAIL PROTECTED]
 www.filip.net
 
  -Original Message-
  From: Animesh Chaturvedi - US [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, March 29, 2001 9:58 AM
  To: '[EMAIL PROTECTED]'
  Subject: RE: Servlets do not run under Apache-tomcat
 
 
  Thanks Filip!!
 
  I have the followinfg entry in my tomcat.conf file.
 
  Alias /examples /myroot/jakarta-tomcat/webapps/examples
  Directory "/myroot/jakarta-tomcat/webapps/examples
Options Indexes FollowSymLinks
  /Directory
 
  ApJServMount /examples/servlet /examples
  Location /examples/WEB-INF/ 
 AllowOverride None
 deny  from all
  /Location
 
  the same is repeated for other contexts. And this file has been
  included in
  Apache httpd.conf file.
 
  Please let me know where I am going wrong or what do I need to do.
 
  Regards
 
  Animesh
 
  -Original Message-
  From: Filip Hanik [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, March 29, 2001 11:40 AM
  To: [EMAIL PROTECTED]
  Subject: RE: Servlets do not run under Apache-tomcat
 
 
  I would recommend switching to mod_jk
  but from your problem, it does't look like you have set up the context
  mapping of the /servlet context to go through mod_jserv.
 
  Filip
 
  ~
  Namaste - I bow to the divine in you
  ~
  Filip Hanik
  Software Architect
  [EMAIL PROTECTED]
  www.filip.net
 
   -Original Message-
   From: Animesh Chaturvedi - US [mailto:[EMAIL PROTECTED]]
   Sent: Thursday, March 29, 2001 9:35 AM
   To: '[EMAIL PROTECTED]'
   Subject: Servlets do not run under Apache-tomcat
  
  
  
   Hi
  
   I am running Apache 3.1.17 and Tomcat3.2.1 on a unix box and
   using mod_jserv
   as connector. and using SSL.
  
   The jsp are working perfectly, but servlets do not run at all.
   You get HTTP
   404 document not found error.  I have tried every possible way, but none
   works.
  
   for e.g if I reference a servlet HelloWorldExample in the context of
   examples
  
   through https://server-name/examples/servlet/HelloWorldExample
  
   i get HTTP 404 page not found
  
   and in apache error_log I see:
  
   File does not exist:
   /myroot/jakarta-tomcat/webapps/examples/servlet/HelloWorldExample
  
   However if I refernce a servlet through jsp (i forward the request to a
   servlet) it gets resolved.
  
   I will really appreciate if someone can point me how to correct this
   behaviour.
  
   All my web.xml and server.xml files are as they should be.
  
  
  
   thanks
  
   Animesh
  
 
 
 

--
Todd Pfaff \  Email: [EMAIL PROTECTED]
Computing and Information Services  \ Voice: (905) 525-9140 x22920
ABB 132  \  FAX: (905) 528-3773
McMaster University   \
Hamilton, Ontario, Canada  L8S 4M1 \




RE: Servlets do not run under Apache-tomcat

2001-03-29 Thread Todd Pfaff

i know you can't mix mod_jk and mod_jserv configurations.  but tomcat
creates auto-config files for both mod_jk and mod_jserv each time it's
started:

mod_jk.conf-autofor mod_jk
tomcat-apache.conf  for mod_jserv_tomcat

i know how to switch between mod_jserv and mod_jk.  at least i know what
i'm supposed to do according to the documentation.

Animesh is using mod_jserv as he indicates in the message below which you
quoted.

with my particular environment, details of which i've already given,
the apache-tomcat-mod_jk combination does not work (problem similar to
Animesh's although he is using mod_jserv) and the apache-tomcat-mod_jserv
causes a SEGV whenever a servlet is invoked.

On Thu, 29 Mar 2001, Filip Hanik wrote:

 yeah, but you can't mix mod_jk configurations with the mod_jserv module.
 the auto conf files are created for mod_jk,
 ApJServMount /examples/servlet /examples
 this command is for mod_jserv
 
 Filip
 
 ~
 Namaste - I bow to the divine in you
 ~
 Filip Hanik
 Software Architect
 [EMAIL PROTECTED]
 www.filip.net
 
  -Original Message-
  From: Todd Pfaff [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, March 29, 2001 11:46 AM
  To: [EMAIL PROTECTED]
  Cc: Filip Hanik
  Subject: RE: Servlets do not run under Apache-tomcat
 
 
  yes, i agree, that's what it looks like, but this is *exactly* how tomcat
  creates the tomcat-apache.conf and mod_jk.conf-auto when it starts up.
  are those auto-created conf files know to be incorrect?
 
  On Thu, 29 Mar 2001, Filip Hanik wrote:
 
Alias /examples /myroot/jakarta-tomcat/webapps/examples
Directory "/myroot/jakarta-tomcat/webapps/examples
  Options Indexes FollowSymLinks
/Directory
   
ApJServMount /examples/servlet /examples
Location /examples/WEB-INF/ 
   AllowOverride None
   deny  from all
/Location
  
   this looks like anything that goes to
   /examples/servlet is being sent /examples which is being aliased to
   /myroot/jakarta-tomcat/webapps/examples file system
  
   agree?
   Filip
  
   ~
   Namaste - I bow to the divine in you
   ~
   Filip Hanik
   Software Architect
   [EMAIL PROTECTED]
   www.filip.net
  
-Original Message-
From: Animesh Chaturvedi - US [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 29, 2001 9:58 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Servlets do not run under Apache-tomcat
   
   
Thanks Filip!!
   
I have the followinfg entry in my tomcat.conf file.
   
Alias /examples /myroot/jakarta-tomcat/webapps/examples
Directory "/myroot/jakarta-tomcat/webapps/examples
  Options Indexes FollowSymLinks
/Directory
   
ApJServMount /examples/servlet /examples
Location /examples/WEB-INF/ 
   AllowOverride None
   deny  from all
/Location
   
the same is repeated for other contexts. And this file has been
included in
Apache httpd.conf file.
   
Please let me know where I am going wrong or what do I need to do.
   
Regards
   
Animesh
   
-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 29, 2001 11:40 AM
To: [EMAIL PROTECTED]
Subject: RE: Servlets do not run under Apache-tomcat
   
   
I would recommend switching to mod_jk
but from your problem, it does't look like you have set up the context
mapping of the /servlet context to go through mod_jserv.
   
Filip
   
~
Namaste - I bow to the divine in you
~
Filip Hanik
Software Architect
[EMAIL PROTECTED]
www.filip.net
   
 -Original Message-
 From: Animesh Chaturvedi - US [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, March 29, 2001 9:35 AM
 To: '[EMAIL PROTECTED]'
 Subject: Servlets do not run under Apache-tomcat



 Hi

 I am running Apache 3.1.17 and Tomcat3.2.1 on a unix box and
 using mod_jserv
 as connector. and using SSL.

 The jsp are working perfectly, but servlets do not run at all.
 You get HTTP
 404 document not found error.  I have tried every possible
  way, but none
 works.

 for e.g if I reference a servlet HelloWorldExample in the context of
 examples

 through https://server-name/examples/servlet/HelloWorldExample

 i get HTTP 404 page not found

 and in apache error_log I see:

 File does not exist:
 /myroot/jakarta-tomcat/webapps/examples/servlet/HelloWorldExample

 However if I refernce a servlet through jsp (i forward the
  request to a
 servlet) it gets resolved.

 I will really appreciate if someone can point me how to correct this
 behaviour.

 All my web.xml and server.xml files are as they should be.



 thanks

 Animesh

   
  
  
 
  --
  Todd Pfaff \  Email: [EMAIL PROTECTED]
  Computing and Information Services  \ Voice: (905) 525-9140 x22920
  ABB 132  \  FAX:

RE: Servlets do not run under Apache-tomcat

2001-03-29 Thread Todd Pfaff

On Thu, 29 Mar 2001, Animesh Chaturvedi - US wrote:

 I am using tomcat1.3.17 that only supports mod_jserv not mod_jk. So the
 tomcat-apche.conf file thats generated automatically by tomcat 1.3.17 should
 have created Directives that are correct for mod_jserv.
 
 Do you mean to say that the Directives I have used in my Tomcat.conf file
 are not correct? If not what should they be?
 
 Animesh

Animesh,

Another typo in your version numbers...

apache-1.3.17
tomcat-3.2.1

Correct?  I'm just trying to avoid more confusion than we already have.

And what do you mean "only supports mod_jserv"?  Do you just mean that
you're not using mod_jk, or are you under the impression that tomcat-3.2.1
does not support mod_jk?

Todd

--
Todd Pfaff \  Email: [EMAIL PROTECTED]
Computing and Information Services  \ Voice: (905) 525-9140 x22920
ABB 132  \  FAX: (905) 528-3773
McMaster University   \
Hamilton, Ontario, Canada  L8S 4M1 \





RE: Servlets do not run under Apache-tomcat

2001-03-29 Thread Todd Pfaff

On Thu, 29 Mar 2001, Animesh Chaturvedi - US wrote:

 I have tried every combination in tomcat.conf file. It seems that /servlet
 requests do not reach tomcat atall. It looks for the servlet just like a
 normal file in the file hiearchy  and does not invoke it.

me too.  exact same problem, but using mod_jk.

Animesh, what version of linux are you running?

Maybe there is some directive in our apache httpd.conf that is
incorrect or missing?

--
Todd Pfaff \  Email: [EMAIL PROTECTED]
Computing and Information Services  \ Voice: (905) 525-9140 x22920
ABB 132  \  FAX: (905) 528-3773
McMaster University   \
Hamilton, Ontario, Canada  L8S 4M1 \




need help with linux, apache, tomcat environment

2001-03-28 Thread Todd Pfaff

I'm having some problems getting started with tomcat.  My environment
consists of:

linux mandrake 7.2
linux 2.4.1 kernel
apache (Apache-AdvancedExtranetServer/1.3.14 (Linux-Mandrake/2mdk))
these bits downloaded from the jakarta-tomcat web site
  jakarta-tomcat-3.2.1.tar.gz
  mod_jk.so
  mod_jserv_tomcat.so

I've unpacked jakarta-tomcat-3.2.1.tar.gz into /usr/local/tomcat and I've
installed the mod_* files into /usr/lib/apache.  I added code to
httpd.conf to load the modules and include the appropriate tomcat
configuration files.

I have tomcat running and the example servlets run as expected when I
access them via port 8080 (ie. through the tomcat web server).

I've tried integrating tomcat with apache using either mod_jserv_tomcat.so
or mod_jk.so.

When using mod_jserv_tomcat.so, whenever I try to access an example
servlet, something is aborting and I see this apache error_log message:

[Wed Mar 28 16:02:59 2001] [notice] child pid 15023 exit signal
Segmentation fault (11)


When using mod_jk.so, I am including the mod_jk.conf-auto built by the
tomcat startup.  In this case, when I try to access an example servlet the
apache server complains:

[Wed Mar 28 16:16:07 2001] [error] [client xxx.xxx.xxx.xxx] File does not
exist: /usr/local/jakarta-tomcat-3.2.1/webapps/examples/servlet/HelloWorldExample


Why is apache looking for this file rather than invoking the
HelloWorldExample servlet?


Anyone have any ideas?  Does it look like I'm going to have to build my
own module binaries?

--
Todd Pfaff \  Email: [EMAIL PROTECTED]
Computing and Information Services  \ Voice: (905) 525-9140 x22920
ABB 132  \  FAX: (905) 528-3773
McMaster University   \
Hamilton, Ontario, Canada  L8S 4M1 \