Apache/Win32 + mod_jk problem

2005-02-10 Thread Richard Russell
I cannot run apache with mod_jk on Windows XP Pro + SP1. I have had no 
troubles doing the same thing with multiple versions of Apache  mod_jk on 
multiple versions of Solaris, Linux and FreeBSD. This is, however, my 
first attempt at mixing Windows with real software :-S

I'm running the following versions:

Apache  1.3.33  ${APACHE_MIRROR}/httpd/binaries/win32/ 
apache_1.3.33-win32-x86-no_src.exe 
mod_jk  1.2.8   
${APACHE_MIRROR}/jakarta/tomcat-connectors/jk/binaries/win32/
mod_jk-1.2.8-apache-1.3.33-eapi.so 

MD5SUMs:
afb8924ec7b368e132fbed5f28ad6f3bapache_1.3.33-win32-x86-no_src.exe
ea33398544fe6ecdccecf81307c86211mod_jk-1.2.8-apache-1.3.33-eapi.so

The Apache one agrees with that listed on the website, but I can't find an 
md5sum listed for mod_jk...

-
C:\apacheapache
Syntax error on line 194 of c:/apache/conf/httpd.conf:
Cannot load c:/apache/modules/mod_jk.so into server: (127) The specified 
procedure could not be found:

Note the errors or messages above, and press the ESC key to exit.  29...
C:\apachegrep -ni jk conf\httpd.conf
194:LoadModule jk_module modules/mod_jk.so
242:AddModule mod_jk.c
-

The mod_jk file has been renamed mod_jk.so and placed in the 
c:/apache/modules directory. I have tried with it renamed as .dll and it 
makes no difference.

I've also tried introducing intentional typos in the LoadModule command 
(eg LoadModule jk_module modules/mod_foojk.so), and found that this 
changed the error message to something like module not found, so it's 
definitely finding the module.

I'm somewhat stuck here. The only documentation that mentions this error 
is for mod_ssl, and it suggests that I have an error in the AddModule 
line... Which I don't think I do...

Could someone advise?

Cheers

Richard Russell 
Deutsche Bank AG London 
Global Markets Customer Solutions
Office: +44 20 7545 8060
Mobile: +44 79 0661 2237

Re: Apache/Win32 + mod_jk problem

2005-02-10 Thread Andoni
Hi,

Try using the version of mod_jk.dll which you can find here:

http://www.apache.org/dist/jakarta/tomcat-connectors/jk/binaries/win32/jk-1.2.6/

Called:
mod_jk_1.2.6_1.3.31.dll

Don't forget to change the line which refers to it in httpd.conf. Also don't
forget to rename it to mod_jk.dll.

I think the .so version is only for Apache with SSL built in.

Andoni.



- Original Message - 
From: Richard Russell [EMAIL PROTECTED]
Newsgroups: gmane.comp.jakarta.tomcat.user
Sent: Thursday, February 10, 2005 12:31 PM
Subject: Apache/Win32 + mod_jk problem


 I cannot run apache with mod_jk on Windows XP Pro + SP1. I have had no
 troubles doing the same thing with multiple versions of Apache  mod_jk on
 multiple versions of Solaris, Linux and FreeBSD. This is, however, my
 first attempt at mixing Windows with real software :-S

 I'm running the following versions:

 Apache  1.3.33  ${APACHE_MIRROR}/httpd/binaries/win32/
 apache_1.3.33-win32-x86-no_src.exe
 mod_jk  1.2.8
 ${APACHE_MIRROR}/jakarta/tomcat-connectors/jk/binaries/win32/
 mod_jk-1.2.8-apache-1.3.33-eapi.so

 MD5SUMs:
 afb8924ec7b368e132fbed5f28ad6f3bapache_1.3.33-win32-x86-no_src.exe
 ea33398544fe6ecdccecf81307c86211mod_jk-1.2.8-apache-1.3.33-eapi.so

 The Apache one agrees with that listed on the website, but I can't find an
 md5sum listed for mod_jk...

 -
 C:\apacheapache
 Syntax error on line 194 of c:/apache/conf/httpd.conf:
 Cannot load c:/apache/modules/mod_jk.so into server: (127) The specified
 procedure could not be found:

 Note the errors or messages above, and press the ESC key to exit.  29...
 C:\apachegrep -ni jk conf\httpd.conf
 194:LoadModule jk_module modules/mod_jk.so
 242:AddModule mod_jk.c
 -

 The mod_jk file has been renamed mod_jk.so and placed in the
 c:/apache/modules directory. I have tried with it renamed as .dll and it
 makes no difference.

 I've also tried introducing intentional typos in the LoadModule command
 (eg LoadModule jk_module modules/mod_foojk.so), and found that this
 changed the error message to something like module not found, so it's
 definitely finding the module.

 I'm somewhat stuck here. The only documentation that mentions this error
 is for mod_ssl, and it suggests that I have an error in the AddModule
 line... Which I don't think I do...

 Could someone advise?

 Cheers

 Richard Russell
 Deutsche Bank AG London
 Global Markets Customer Solutions
 Office: +44 20 7545 8060
 Mobile: +44 79 0661 2237



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Apache/Win32 + mod_jk problem

2005-02-10 Thread Richard Russell
Thanks Andoni, that appeared to work.

However, I don't really understand why.

I had actually thought that this might be related to EAPI, which I 
understand is the primary difference (apart from mod_ssl itself) between 
Apache without SSL and Apache with SSL. However, I couldn't find any 
mention of this in the JK docs, nor in the Apache or Tomcat docs, and 
given that there was no option to download an EAPI/SSL Apache 1.3.33, and 
no option to download a non-EAPI/SSL mod_jk 1.2.8, I presumed that they 
were compatible. Certainly more likely than this one, which is allegedly 
for Apache 1.3.31, and is an old version of mod_jk anyway.

Does this mean that there is no binary Win32 Apache 1.3.33 and mod_jk 
1.2.8 that can be downloaded that work with each other? This seems a 
little odd to me... Surely I'm missing something?

Cheers

Richard Russell 
Deutsche Bank AG London 
Global Markets Customer Solutions
Office: +44 20 7545 8060
Mobile: +44 79 0661 2237




Andoni [EMAIL PROTECTED]
02/10/2005 02:46 PM
Please respond to Tomcat Users List
 
To: Tomcat Users List tomcat-user@jakarta.apache.org
cc: 
Subject:Re: Apache/Win32 + mod_jk problem


Hi,

Try using the version of mod_jk.dll which you can find here:

http://www.apache.org/dist/jakarta/tomcat-connectors/jk/binaries/win32/jk-1.2.6/

Called:
mod_jk_1.2.6_1.3.31.dll

Don't forget to change the line which refers to it in httpd.conf. Also 
don't
forget to rename it to mod_jk.dll.

I think the .so version is only for Apache with SSL built in.

Andoni.



- Original Message - 
From: Richard Russell [EMAIL PROTECTED]
Newsgroups: gmane.comp.jakarta.tomcat.user
Sent: Thursday, February 10, 2005 12:31 PM
Subject: Apache/Win32 + mod_jk problem


 I cannot run apache with mod_jk on Windows XP Pro + SP1. I have had no
 troubles doing the same thing with multiple versions of Apache  mod_jk 
on
 multiple versions of Solaris, Linux and FreeBSD. This is, however, my
 first attempt at mixing Windows with real software :-S

 I'm running the following versions:

 Apache  1.3.33  ${APACHE_MIRROR}/httpd/binaries/win32/
 apache_1.3.33-win32-x86-no_src.exe
 mod_jk  1.2.8
 ${APACHE_MIRROR}/jakarta/tomcat-connectors/jk/binaries/win32/
 mod_jk-1.2.8-apache-1.3.33-eapi.so

 MD5SUMs:
 afb8924ec7b368e132fbed5f28ad6f3b apache_1.3.33-win32-x86-no_src.exe
 ea33398544fe6ecdccecf81307c86211 mod_jk-1.2.8-apache-1.3.33-eapi.so

 The Apache one agrees with that listed on the website, but I can't find 
an
 md5sum listed for mod_jk...

 -
 C:\apacheapache
 Syntax error on line 194 of c:/apache/conf/httpd.conf:
 Cannot load c:/apache/modules/mod_jk.so into server: (127) The specified
 procedure could not be found:

 Note the errors or messages above, and press the ESC key to exit. 
29...
 C:\apachegrep -ni jk conf\httpd.conf
 194:LoadModule jk_module modules/mod_jk.so
 242:AddModule mod_jk.c
 -

 The mod_jk file has been renamed mod_jk.so and placed in the
 c:/apache/modules directory. I have tried with it renamed as .dll and 
it
 makes no difference.

 I've also tried introducing intentional typos in the LoadModule command
 (eg LoadModule jk_module modules/mod_foojk.so), and found that this
 changed the error message to something like module not found, so it's
 definitely finding the module.

 I'm somewhat stuck here. The only documentation that mentions this error
 is for mod_ssl, and it suggests that I have an error in the AddModule
 line... Which I don't think I do...

 Could someone advise?

 Cheers

 Richard Russell
 Deutsche Bank AG London
 Global Markets Customer Solutions
 Office: +44 20 7545 8060
 Mobile: +44 79 0661 2237



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





Re: Apache/Win32 + mod_jk problem

2005-02-10 Thread Andoni
Hi Richard,

If you have been reading this list for any period of time you may have
noticed that JK is more to do with Zen and Voodoo than real computer
science! It causes so many people heartache that it is unbelievable. The
only reason I knew the answer to your problem is because I have recently had
the same problem myself.

While researching I was happy to hear that JK2 is being put out to pasture
because of a lack of interest. At least this makes one less decision for the
likes of you and I to make when choosing a binary to download.

Basically my advice would be either:
Take it up as a hobby, sort it out, decompile it, write to the developers,
re-write the documentation, champion the cause and sort the whole thing out
for everyone for once and for all... or:
Thank the Zen gods for getting it working for you and move rapidly along to
your next job! ;-)

Can you guess which one I'd pick?

Later,
Andoni.

- Original Message - 
From: Richard Russell [EMAIL PROTECTED]
Newsgroups: gmane.comp.jakarta.tomcat.user
Sent: Thursday, February 10, 2005 3:01 PM
Subject: Re: Apache/Win32 + mod_jk problem


 Thanks Andoni, that appeared to work.

 However, I don't really understand why.

 I had actually thought that this might be related to EAPI, which I
 understand is the primary difference (apart from mod_ssl itself) between
 Apache without SSL and Apache with SSL. However, I couldn't find any
 mention of this in the JK docs, nor in the Apache or Tomcat docs, and
 given that there was no option to download an EAPI/SSL Apache 1.3.33, and
 no option to download a non-EAPI/SSL mod_jk 1.2.8, I presumed that they
 were compatible. Certainly more likely than this one, which is allegedly
 for Apache 1.3.31, and is an old version of mod_jk anyway.

 Does this mean that there is no binary Win32 Apache 1.3.33 and mod_jk
 1.2.8 that can be downloaded that work with each other? This seems a
 little odd to me... Surely I'm missing something?

 Cheers

 Richard Russell
 Deutsche Bank AG London
 Global Markets Customer Solutions
 Office: +44 20 7545 8060
 Mobile: +44 79 0661 2237




 Andoni [EMAIL PROTECTED]
 02/10/2005 02:46 PM
 Please respond to Tomcat Users List

 To: Tomcat Users List tomcat-user@jakarta.apache.org
 cc:
 Subject:Re: Apache/Win32 + mod_jk problem


 Hi,

 Try using the version of mod_jk.dll which you can find here:


http://www.apache.org/dist/jakarta/tomcat-connectors/jk/binaries/win32/jk-1.2.6/

 Called:
 mod_jk_1.2.6_1.3.31.dll

 Don't forget to change the line which refers to it in httpd.conf. Also
 don't
 forget to rename it to mod_jk.dll.

 I think the .so version is only for Apache with SSL built in.

 Andoni.



 - Original Message - 
 From: Richard Russell [EMAIL PROTECTED]
 Newsgroups: gmane.comp.jakarta.tomcat.user
 Sent: Thursday, February 10, 2005 12:31 PM
 Subject: Apache/Win32 + mod_jk problem


  I cannot run apache with mod_jk on Windows XP Pro + SP1. I have had no
  troubles doing the same thing with multiple versions of Apache  mod_jk
 on
  multiple versions of Solaris, Linux and FreeBSD. This is, however, my
  first attempt at mixing Windows with real software :-S
 
  I'm running the following versions:
 
  Apache  1.3.33  ${APACHE_MIRROR}/httpd/binaries/win32/
  apache_1.3.33-win32-x86-no_src.exe
  mod_jk  1.2.8
  ${APACHE_MIRROR}/jakarta/tomcat-connectors/jk/binaries/win32/
  mod_jk-1.2.8-apache-1.3.33-eapi.so
 
  MD5SUMs:
  afb8924ec7b368e132fbed5f28ad6f3b apache_1.3.33-win32-x86-no_src.exe
  ea33398544fe6ecdccecf81307c86211 mod_jk-1.2.8-apache-1.3.33-eapi.so
 
  The Apache one agrees with that listed on the website, but I can't find
 an
  md5sum listed for mod_jk...
 
  -
  C:\apacheapache
  Syntax error on line 194 of c:/apache/conf/httpd.conf:
  Cannot load c:/apache/modules/mod_jk.so into server: (127) The specified
  procedure could not be found:
 
  Note the errors or messages above, and press the ESC key to exit.
 29...
  C:\apachegrep -ni jk conf\httpd.conf
  194:LoadModule jk_module modules/mod_jk.so
  242:AddModule mod_jk.c
  -
 
  The mod_jk file has been renamed mod_jk.so and placed in the
  c:/apache/modules directory. I have tried with it renamed as .dll and
 it
  makes no difference.
 
  I've also tried introducing intentional typos in the LoadModule command
  (eg LoadModule jk_module modules/mod_foojk.so), and found that this
  changed the error message to something like module not found, so it's
  definitely finding the module.
 
  I'm somewhat stuck here. The only documentation that mentions this error
  is for mod_ssl, and it suggests that I have an error in the AddModule
  line... Which I don't think I do...
 
  Could someone advise?
 
  Cheers
 
  Richard Russell
  Deutsche Bank AG London
  Global Markets Customer Solutions
  Office: +44 20 7545 8060
  Mobile: +44 79 0661 2237



 -
 To unsubscribe, e-mail: [EMAIL PROTECTED

Re: Apache/Win32 + mod_jk problem

2005-02-10 Thread Richard Russell
Nope, new to the list -- never had any problems to speak of on *nix :-S

I think I'll go for option B.

Cheers

Richard Russell 
Deutsche Bank AG London 
Global Markets Customer Solutions
Office: +44 20 7545 8060
Mobile: +44 79 0661 2237




Andoni [EMAIL PROTECTED]
02/10/2005 03:30 PM
Please respond to Tomcat Users List
 
To: Tomcat Users List tomcat-user@jakarta.apache.org
cc: 
Subject:Re: Apache/Win32 + mod_jk problem


Hi Richard,

If you have been reading this list for any period of time you may have
noticed that JK is more to do with Zen and Voodoo than real computer
science! It causes so many people heartache that it is unbelievable. The
only reason I knew the answer to your problem is because I have recently 
had
the same problem myself.

While researching I was happy to hear that JK2 is being put out to pasture
because of a lack of interest. At least this makes one less decision for 
the
likes of you and I to make when choosing a binary to download.

Basically my advice would be either:
Take it up as a hobby, sort it out, decompile it, write to the developers,
re-write the documentation, champion the cause and sort the whole thing 
out
for everyone for once and for all... or:
Thank the Zen gods for getting it working for you and move rapidly along 
to
your next job! ;-)

Can you guess which one I'd pick?

Later,
Andoni.

- Original Message - 
From: Richard Russell [EMAIL PROTECTED]
Newsgroups: gmane.comp.jakarta.tomcat.user
Sent: Thursday, February 10, 2005 3:01 PM
Subject: Re: Apache/Win32 + mod_jk problem


 Thanks Andoni, that appeared to work.

 However, I don't really understand why.

 I had actually thought that this might be related to EAPI, which I
 understand is the primary difference (apart from mod_ssl itself) between
 Apache without SSL and Apache with SSL. However, I couldn't find any
 mention of this in the JK docs, nor in the Apache or Tomcat docs, and
 given that there was no option to download an EAPI/SSL Apache 1.3.33, 
and
 no option to download a non-EAPI/SSL mod_jk 1.2.8, I presumed that they
 were compatible. Certainly more likely than this one, which is allegedly
 for Apache 1.3.31, and is an old version of mod_jk anyway.

 Does this mean that there is no binary Win32 Apache 1.3.33 and mod_jk
 1.2.8 that can be downloaded that work with each other? This seems a
 little odd to me... Surely I'm missing something?

 Cheers

 Richard Russell
 Deutsche Bank AG London
 Global Markets Customer Solutions
 Office: +44 20 7545 8060
 Mobile: +44 79 0661 2237




 Andoni [EMAIL PROTECTED]
 02/10/2005 02:46 PM
 Please respond to Tomcat Users List

 To: Tomcat Users List tomcat-user@jakarta.apache.org
 cc:
 Subject:Re: Apache/Win32 + mod_jk problem


 Hi,

 Try using the version of mod_jk.dll which you can find here:


http://www.apache.org/dist/jakarta/tomcat-connectors/jk/binaries/win32/jk-1.2.6/

 Called:
 mod_jk_1.2.6_1.3.31.dll

 Don't forget to change the line which refers to it in httpd.conf. Also
 don't
 forget to rename it to mod_jk.dll.

 I think the .so version is only for Apache with SSL built in.

 Andoni.



 - Original Message - 
 From: Richard Russell [EMAIL PROTECTED]
 Newsgroups: gmane.comp.jakarta.tomcat.user
 Sent: Thursday, February 10, 2005 12:31 PM
 Subject: Apache/Win32 + mod_jk problem


  I cannot run apache with mod_jk on Windows XP Pro + SP1. I have had no
  troubles doing the same thing with multiple versions of Apache  
mod_jk
 on
  multiple versions of Solaris, Linux and FreeBSD. This is, however, my
  first attempt at mixing Windows with real software :-S
 
  I'm running the following versions:
 
  Apache  1.3.33  ${APACHE_MIRROR}/httpd/binaries/win32/
  apache_1.3.33-win32-x86-no_src.exe
  mod_jk  1.2.8
  ${APACHE_MIRROR}/jakarta/tomcat-connectors/jk/binaries/win32/
  mod_jk-1.2.8-apache-1.3.33-eapi.so
 
  MD5SUMs:
  afb8924ec7b368e132fbed5f28ad6f3b apache_1.3.33-win32-x86-no_src.exe
  ea33398544fe6ecdccecf81307c86211 mod_jk-1.2.8-apache-1.3.33-eapi.so
 
  The Apache one agrees with that listed on the website, but I can't 
find
 an
  md5sum listed for mod_jk...
 
  -
  C:\apacheapache
  Syntax error on line 194 of c:/apache/conf/httpd.conf:
  Cannot load c:/apache/modules/mod_jk.so into server: (127) The 
specified
  procedure could not be found:
 
  Note the errors or messages above, and press the ESC key to exit.
 29...
  C:\apachegrep -ni jk conf\httpd.conf
  194:LoadModule jk_module modules/mod_jk.so
  242:AddModule mod_jk.c
  -
 
  The mod_jk file has been renamed mod_jk.so and placed in the
  c:/apache/modules directory. I have tried with it renamed as .dll 
and
 it
  makes no difference.
 
  I've also tried introducing intentional typos in the LoadModule 
command
  (eg LoadModule jk_module modules/mod_foojk.so), and found that this
  changed the error message to something like module not found, so 
it's
  definitely finding the module

RE: mod_jk problem

2004-02-03 Thread Guy Rouillier
Lukas Larsson wrote:
 I already put the Include statement in httpd.conf, and then
 put JkMount in mod_jk.conf. But it still doesn't work. Is
 there anything I have to do in server.xml to make it work.
 I've added two lines Server port=8005 shutdown=SHUTDOWN
 debug=0 #this line is above Listener
 className=org.apache.ajp.tomcat4.config.ApacheConfig
 modJk=/opt/apache/modules/mod_jk.so / #this line I added
 
 and
 Host name=localhost debug=0 appBase=webapps
 unpackWARs=true autoDeploy=true #this line is above
 Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
 append=true forwardAll=false
 modJk=/opt/apache/modules/mod_jk.so / #the line i added
 
 and that's all the configurations I did id you include adding
 the include statement in httpd.conf. Is there anything else I
 have to do? There should be as I still can't get tomcat to
 format jsp files.

Lukas, got busy, didn't mean to leave you in the lurch.  Where do you
stand?  I deleted the rest of the message because this is getting much
too involved - it shouldn't be that hard.  I didn't have to add any kind
of listener statements to server.xml.  All I did there was (1) make sure
the port assignments are unique (only a concern if you are using more
than one instance) and (2) set up a context properly.  I would suggest
you start with a completely fresh Tomcat.  Put your test.jsp into the
existing contexts and verify that works.  (I think you said you already
did that.)  Please respond if you are still having difficulties with
this, and I'll tell you the very basic setup I used to get started.

 
 ./Lukas

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: mod_jk problem

2004-01-28 Thread garaz_user
Hello,

I put the test.jsp in ROOT folder, and I put JKMount in
the mod_jk.conf file, which I probably shound't do but
all is working now (except apache integration :'( ) so
I'm sataisfied with the tomcat setup. Now if I just
could get it to intergrate with apache it would make my
day. Becuase port 8080 is blocked by my firewall and I
can't open that port until atleast a week from now. So
right now I'm using links to do all my jsp test ^^.

./Lukas


 Guy Rouillier [EMAIL PROTECTED]:

 Lukas Larsson wrote:
  Thx for the replies. I'm using 4.1.29. I haven't played
  anything with the structure at all. The strange
thing is that
  when I put the test.jsp file in the examples folder in
  webapps I can display it and it works like a charm,
but if I
  put it anywhere else it wont work. Putting it in
ROOT does
  not help this at all.
  
  So what permissions do I need to have on the file?
  
  this is my web.xml file
  
  ?xml version=1.0 encoding=ISO-8859-1?
  !DOCTYPE web-app PUBLIC -//Sun Microsystems,
Inc.//DTD Web
  Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;
web-app display-nameWelcome to
Tomcat/display-name
description
   Welcome to Tomcat
/description
  /web-app
  
  I haven't changed anything in it.
  
  Adding JkMount /*.jsp aj13 to my mod_jk.conf had
the wanted
  effect. I can now see
http://localhost:8080/test.jsp . But
  there's still no formatation on test.jsp on port 80 :(,
  atleast now we know that tomcat is working properly.
  
  Guy Rouillier said before that I have to make sure that
  'tomcat is set up properly by going directly to it
for the
  JSP page, bypassing Apache', how would I check
this? And how
  do I set it up?
 
 You accomplished that when you went to :8080.  So now
you know Tomcat is
 working.  Where did you put test.jsp when you
successfully viewed it at
 http://localhost:8080/test.jsp?  If you have an
unaltered Tomcat
 installation, you would have had to place test.jsp in
the ROOT
 directory.
 
 How are you including those JkMount's into Apache's
httpd.conf?
 
  
  ./Lukas
  
  - Original Message -
  From: Jeff Tulley [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Monday, January 26, 2004 11:25 PM
  Subject: Re: mod_jk problem
  
  
  Lukas,
 I haven't been following this thread too
closelyso maybe I've
  missed some of your earlier explanation... If you
are going through
  port 8080, there is no mod_jk or mod_jk2 involved,
and the problem is
  probably elsewhere - for instance maybe your web
application is not
  set up properly(wrong directory structure?), or
there are file
  permission problems on your directories or your
web.xml file.  I have
  a coworker who had these type of file permission
problems twice in
  the last few weeks, and it was not immediately
obvious that this was
  the problem.  Or maybe your web.xml is not valid.
  
  When you go back to using mod_jk, be aware that
the command in
  apache for mod_jk is more like: 
  
  JkMount /*.jsp ajp13
  
  You do not embed this in a location tag necessarily.
  
  But get things working through port 8080 first
before tackling Apache
  integration.  Like you said you just want to get
started with JSP
  without the battle. 
  
  
  [EMAIL PROTECTED] 1/26/04 2:35:24 PM 
  Ok, now I'm really getting confused, I put the
test.jsp file in
  $CATALINE_HOME/webapps/test.jsp and when doing
  http://localhost:8080/test.jsp in links (can't
open my 8080 port
  yet...) I get a file cannot be found message, but
when I look at the
  example folder they show as they should. Anyone
who knows what I'm
  doing wrong? 
  
  Also when adding
  
  Location /*.jsp
  JkUriSet worker ajp13:localhost:8009
  /Location
  
  to my http.conf file I got an error message that
said that apache
  couldn't recongnixe JkUriSet. Is that because
JkUriSet is only
  availabel in jk2 or??? 
  
  ./Lukas
  
  - Original Message -
  From: Guy Rouillier [EMAIL PROTECTED]
  To: Tomcat Users List
[EMAIL PROTECTED]
  Sent: Monday, January 26, 2004 9:39 PM
  Subject: RE: mod_jk problem
  
  
  Lukas Larsson wrote:
  Thx for the reply. I folloes your second link and
found this site
 
(http://johnturner.com/howto/apache2-tomcat4127-jk-rh9-howto.h
  tml) on how to configure mod_jk but I still get
the same problem.
  Apache says that it is working with mod_jk, but
it does not
  translate *.jsp pages (see
  http://garazdawi.homeftp.net/test.jsp for
  an  example
  of what I mean). Can someone please tell me what I'm
  doing wrong. I would really want to get started
with jsp without
  having to battle with mod_jk.
  
  Make sure your Tomcat is set up properly by going
directly to it for
  the JSP page, bypassing Apache, e.g.,
  http://garazdawi.homeftp.net:8080/test.jsp
(assuming you left Tomcat
  on the default HTTP port.)  If that doesn't work,
then the problem
  is in Tomcat configuration not in mod_jk.
  
  Jeff Tulley  ([EMAIL PROTECTED])
  (801)861-5322
  Novell, Inc., The Leading Provider of Net

RE: mod_jk problem

2004-01-28 Thread Guy Rouillier
garaz_user wrote:
 Hello,
 
 I put the test.jsp in ROOT folder, and I put JKMount in
 the mod_jk.conf file, which I probably shound't do but
 all is working now (except apache integration :'( ) so
 I'm sataisfied with the tomcat setup. Now if I just
 could get it to intergrate with apache it would make my
 day. Becuase port 8080 is blocked by my firewall and I
 can't open that port until atleast a week from now. So
 right now I'm using links to do all my jsp test ^^.

In order to integrate with Apache, you've got to get the JkMount
commands into Apache's httpd.conf.  There are two ways to do this:

(1) Just type them in directly
(2) Put them in some file in the Tomcat directory, then in httpd.conf,
add an include directive like this:

Include TOMCAT_HOME/conf/auto/mod_jk.conf

Just putting the JkMount's in mod_jk.conf, without putting the include
directive in httpd.conf, won't accomplish anything.  Apache is the one
who needs the JkMount command, not Tomcat.

 
 ./Lukas
 
 
  Guy Rouillier [EMAIL PROTECTED]:
 
 Lukas Larsson wrote:
 Thx for the replies. I'm using 4.1.29. I haven't played anything
 with the structure at all. The strange thing is that
 when I put the test.jsp file in the examples folder in webapps I can
 display it and it works like a charm,
 but if I
 put it anywhere else it wont work. Putting it in ROOT does
 not help this at all.
 
 So what permissions do I need to have on the file?
 
 this is my web.xml file
 
 ?xml version=1.0 encoding=ISO-8859-1?
 !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web
 Application 2.3//EN
 http://java.sun.com/dtd/web-app_2_3.dtd;
   web-app display-nameWelcome to Tomcat/display-name  
  description Welcome to Tomcat
   /description
 /web-app
 
 I haven't changed anything in it.
 
 Adding JkMount /*.jsp aj13 to my mod_jk.conf had the wanted
 effect. I can now see
 http://localhost:8080/test.jsp . But
 there's still no formatation on test.jsp on port 80 :(, atleast now
 we know that tomcat is working properly.
 
 Guy Rouillier said before that I have to make sure that 'tomcat is
 set up properly by going directly to it
 for the
 JSP page, bypassing Apache', how would I check this? And how
 do I set it up?
 
 You accomplished that when you went to :8080.  So now you know
 Tomcat is working.  Where did you put test.jsp when you successfully
 viewed it at http://localhost:8080/test.jsp?  If you have an
 unaltered Tomcat installation, you would have had to place test.jsp
 in the ROOT directory. 
 
 How are you including those JkMount's into Apache's httpd.conf?
 
 
 ./Lukas
 
 - Original Message -
 From: Jeff Tulley [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, January 26, 2004 11:25 PM
 Subject: Re: mod_jk problem
 
 
 Lukas,
I haven't been following this thread too closelyso maybe
 I've missed some of your earlier explanation... If you are going
 through port 8080, there is no mod_jk or mod_jk2 involved, and the
 problem is probably elsewhere - for instance maybe your web
 application is not set up properly(wrong directory structure?), or
 there are file permission problems on your directories or your
 web.xml file.  I have a coworker who had these type of file
 permission problems twice in the last few weeks, and it was not
 immediately obvious that this was the problem.  Or maybe your
 web.xml is not valid. 
 
 When you go back to using mod_jk, be aware that the command in
 apache for mod_jk is more like:
 
 JkMount /*.jsp ajp13
 
 You do not embed this in a location tag necessarily.
 
 But get things working through port 8080 first before tackling
 Apache integration.  Like you said you just want to get started
 with JSP without the battle. 
 
 
 [EMAIL PROTECTED] 1/26/04 2:35:24 PM 
 Ok, now I'm really getting confused, I put the test.jsp file in
 $CATALINE_HOME/webapps/test.jsp and when doing
 http://localhost:8080/test.jsp in links (can't open my 8080 port
 yet...) I get a file cannot be found message, but when I look at
 the example folder they show as they should. Anyone who knows what
 I'm doing wrong? 
 
 Also when adding
 
 Location /*.jsp
 JkUriSet worker ajp13:localhost:8009
 /Location
 
 to my http.conf file I got an error message that said that apache
 couldn't recongnixe JkUriSet. Is that because JkUriSet is only
 availabel in jk2 or??? 
 
 ./Lukas
 
 - Original Message -
 From: Guy Rouillier [EMAIL PROTECTED]
 To: Tomcat Users List
 [EMAIL PROTECTED]
 Sent: Monday, January 26, 2004 9:39 PM
 Subject: RE: mod_jk problem
 
 
 Lukas Larsson wrote:
 Thx for the reply. I folloes your second link and found this site
 
 (http://johnturner.com/howto/apache2-tomcat4127-jk-rh9-howto.h
 tml) on how to configure mod_jk but I still get the same problem.
 Apache says that it is working with mod_jk, but it does not
 translate *.jsp pages (see
 http://garazdawi.homeftp.net/test.jsp for
 an  example
 of what I mean). Can someone please tell me what I'm
 doing wrong. I would really want to get started

Re: mod_jk problem

2004-01-28 Thread Lukas Larsson
I already put the Include statement in httpd.conf, and then put JkMount in
mod_jk.conf. But it still doesn't work. Is there anything I have to do in
server.xml to make it work. I've added two lines
Server port=8005 shutdown=SHUTDOWN debug=0 #this line is above
Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
modJk=/opt/apache/modules/mod_jk.so / #this line I added

and
Host name=localhost debug=0 appBase=webapps unpackWARs=true
autoDeploy=true #this line is above
Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
append=true forwardAll=false modJk=/opt/apache/modules/mod_jk.so /
#the line i added

and that's all the configurations I did id you include adding the include
statement in httpd.conf. Is there anything else I have to do? There should
be as I still can't get tomcat to format jsp files.

./Lukas

- Original Message - 
From: Guy Rouillier [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, January 28, 2004 7:13 PM
Subject: RE: mod_jk problem


garaz_user wrote:
 Hello,

 I put the test.jsp in ROOT folder, and I put JKMount in
 the mod_jk.conf file, which I probably shound't do but
 all is working now (except apache integration :'( ) so
 I'm sataisfied with the tomcat setup. Now if I just
 could get it to intergrate with apache it would make my
 day. Becuase port 8080 is blocked by my firewall and I
 can't open that port until atleast a week from now. So
 right now I'm using links to do all my jsp test ^^.

In order to integrate with Apache, you've got to get the JkMount
commands into Apache's httpd.conf.  There are two ways to do this:

(1) Just type them in directly
(2) Put them in some file in the Tomcat directory, then in httpd.conf,
add an include directive like this:

Include TOMCAT_HOME/conf/auto/mod_jk.conf

Just putting the JkMount's in mod_jk.conf, without putting the include
directive in httpd.conf, won't accomplish anything.  Apache is the one
who needs the JkMount command, not Tomcat.


 ./Lukas


  Guy Rouillier [EMAIL PROTECTED]:

 Lukas Larsson wrote:
 Thx for the replies. I'm using 4.1.29. I haven't played anything
 with the structure at all. The strange thing is that
 when I put the test.jsp file in the examples folder in webapps I can
 display it and it works like a charm,
 but if I
 put it anywhere else it wont work. Putting it in ROOT does
 not help this at all.

 So what permissions do I need to have on the file?

 this is my web.xml file

 ?xml version=1.0 encoding=ISO-8859-1?
 !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web
 Application 2.3//EN
 http://java.sun.com/dtd/web-app_2_3.dtd;
   web-app display-nameWelcome to Tomcat/display-name
  description Welcome to Tomcat
   /description
 /web-app

 I haven't changed anything in it.

 Adding JkMount /*.jsp aj13 to my mod_jk.conf had the wanted
 effect. I can now see
 http://localhost:8080/test.jsp . But
 there's still no formatation on test.jsp on port 80 :(, atleast now
 we know that tomcat is working properly.

 Guy Rouillier said before that I have to make sure that 'tomcat is
 set up properly by going directly to it
 for the
 JSP page, bypassing Apache', how would I check this? And how
 do I set it up?

 You accomplished that when you went to :8080.  So now you know
 Tomcat is working.  Where did you put test.jsp when you successfully
 viewed it at http://localhost:8080/test.jsp?  If you have an
 unaltered Tomcat installation, you would have had to place test.jsp
 in the ROOT directory.

 How are you including those JkMount's into Apache's httpd.conf?


 ./Lukas

 - Original Message -
 From: Jeff Tulley [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, January 26, 2004 11:25 PM
 Subject: Re: mod_jk problem


 Lukas,
I haven't been following this thread too closelyso maybe
 I've missed some of your earlier explanation... If you are going
 through port 8080, there is no mod_jk or mod_jk2 involved, and the
 problem is probably elsewhere - for instance maybe your web
 application is not set up properly(wrong directory structure?), or
 there are file permission problems on your directories or your
 web.xml file.  I have a coworker who had these type of file
 permission problems twice in the last few weeks, and it was not
 immediately obvious that this was the problem.  Or maybe your
 web.xml is not valid.

 When you go back to using mod_jk, be aware that the command in
 apache for mod_jk is more like:

 JkMount /*.jsp ajp13

 You do not embed this in a location tag necessarily.

 But get things working through port 8080 first before tackling
 Apache integration.  Like you said you just want to get started
 with JSP without the battle.


 [EMAIL PROTECTED] 1/26/04 2:35:24 PM 
 Ok, now I'm really getting confused, I put the test.jsp file in
 $CATALINE_HOME/webapps/test.jsp and when doing
 http://localhost:8080/test.jsp in links (can't open my 8080 port
 yet...) I get a file cannot be found message, but when I look at
 the example folder

Re: mod_jk problem

2004-01-27 Thread Lukas Larsson
Thx for the replies. I'm using 4.1.29. I haven't played anything with the
structure at all. The strange thing is that when I put the test.jsp file in
the examples folder in webapps I can display it and it works like a charm,
but if I put it anywhere else it wont work. Putting it in ROOT does not help
this at all.

So what permissions do I need to have on the file?

this is my web.xml file

?xml version=1.0 encoding=ISO-8859-1?
!DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application
2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd;
web-app
  display-nameWelcome to Tomcat/display-name
  description
 Welcome to Tomcat
  /description
/web-app

I haven't changed anything in it.

Adding JkMount /*.jsp aj13 to my mod_jk.conf had the wanted effect. I can
now see http://localhost:8080/test.jsp . But there's still no formatation on
test.jsp on port 80 :(, atleast now we know that tomcat is working properly.

Guy Rouillier said before that I have to make sure that 'tomcat is set up
properly by going directly to it for the
JSP page, bypassing Apache', how would I check this? And how do I set it up?

./Lukas

- Original Message - 
From: Jeff Tulley [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, January 26, 2004 11:25 PM
Subject: Re: mod_jk problem


 Lukas,
I haven't been following this thread too closelyso maybe I've
 missed some of your earlier explanation...
 If you are going through port 8080, there is no mod_jk or mod_jk2
 involved, and the problem is probably elsewhere - for instance maybe
 your web application is not set up properly(wrong directory structure?),
 or there are file permission problems on your directories or your
 web.xml file.  I have a coworker who had these type of file permission
 problems twice in the last few weeks, and it was not immediately obvious
 that this was the problem.  Or maybe your web.xml is not valid.

 When you go back to using mod_jk, be aware that the command in apache
 for mod_jk is more like:

 JkMount /*.jsp ajp13

 You do not embed this in a location tag necessarily.

 But get things working through port 8080 first before tackling Apache
 integration.  Like you said you just want to get started with JSP
 without the battle.


  [EMAIL PROTECTED] 1/26/04 2:35:24 PM 
 Ok, now I'm really getting confused, I put the test.jsp file in
 $CATALINE_HOME/webapps/test.jsp and when doing
 http://localhost:8080/test.jsp in links (can't open my 8080 port
 yet...) I
 get a file cannot be found message, but when I look at the example
 folder
 they show as they should. Anyone who knows what I'm doing wrong?

 Also when adding

 Location /*.jsp
 JkUriSet worker ajp13:localhost:8009
 /Location

 to my http.conf file I got an error message that said that apache
 couldn't
 recongnixe JkUriSet. Is that because JkUriSet is only availabel in jk2
 or???

 ./Lukas

 - Original Message - 
 From: Guy Rouillier [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Monday, January 26, 2004 9:39 PM
 Subject: RE: mod_jk problem


 Lukas Larsson wrote:
  Thx for the reply. I folloes your second link and found this site
  (http://johnturner.com/howto/apache2-tomcat4127-jk-rh9-howto.h
  tml) on how to configure mod_jk but I still get the same
  problem. Apache says that it is working with mod_jk, but it
  does not translate *.jsp pages (see
  http://garazdawi.homeftp.net/test.jsp for an  example of what
  I mean). Can someone please tell me what I'm doing wrong. I
  would really want to get started with jsp without having to
  battle with mod_jk.

 Make sure your Tomcat is set up properly by going directly to it for
 the
 JSP page, bypassing Apache, e.g.,
 http://garazdawi.homeftp.net:8080/test.jsp (assuming you left Tomcat
 on
 the default HTTP port.)  If that doesn't work, then the problem is in
 Tomcat configuration not in mod_jk.

 Jeff Tulley  ([EMAIL PROTECTED])
 (801)861-5322
 Novell, Inc., The Leading Provider of Net Business Solutions
 http://www.novell.com

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: mod_jk problem

2004-01-27 Thread Guy Rouillier
Lukas Larsson wrote:
 Thx for the replies. I'm using 4.1.29. I haven't played
 anything with the structure at all. The strange thing is that
 when I put the test.jsp file in the examples folder in
 webapps I can display it and it works like a charm, but if I
 put it anywhere else it wont work. Putting it in ROOT does
 not help this at all.
 
 So what permissions do I need to have on the file?
 
 this is my web.xml file
 
 ?xml version=1.0 encoding=ISO-8859-1?
 !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web
 Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd;
   web-app display-nameWelcome to Tomcat/display-name
   description
  Welcome to Tomcat
   /description
 /web-app
 
 I haven't changed anything in it.
 
 Adding JkMount /*.jsp aj13 to my mod_jk.conf had the wanted
 effect. I can now see http://localhost:8080/test.jsp . But
 there's still no formatation on test.jsp on port 80 :(,
 atleast now we know that tomcat is working properly.
 
 Guy Rouillier said before that I have to make sure that
 'tomcat is set up properly by going directly to it for the
 JSP page, bypassing Apache', how would I check this? And how
 do I set it up?

You accomplished that when you went to :8080.  So now you know Tomcat is
working.  Where did you put test.jsp when you successfully viewed it at
http://localhost:8080/test.jsp?  If you have an unaltered Tomcat
installation, you would have had to place test.jsp in the ROOT
directory.

How are you including those JkMount's into Apache's httpd.conf?

 
 ./Lukas
 
 - Original Message -
 From: Jeff Tulley [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, January 26, 2004 11:25 PM
 Subject: Re: mod_jk problem
 
 
 Lukas,
I haven't been following this thread too closelyso maybe I've
 missed some of your earlier explanation... If you are going through
 port 8080, there is no mod_jk or mod_jk2 involved, and the problem is
 probably elsewhere - for instance maybe your web application is not
 set up properly(wrong directory structure?), or there are file
 permission problems on your directories or your web.xml file.  I have
 a coworker who had these type of file permission problems twice in
 the last few weeks, and it was not immediately obvious that this was
 the problem.  Or maybe your web.xml is not valid.
 
 When you go back to using mod_jk, be aware that the command in
 apache for mod_jk is more like: 
 
 JkMount /*.jsp ajp13
 
 You do not embed this in a location tag necessarily.
 
 But get things working through port 8080 first before tackling Apache
 integration.  Like you said you just want to get started with JSP
 without the battle. 
 
 
 [EMAIL PROTECTED] 1/26/04 2:35:24 PM 
 Ok, now I'm really getting confused, I put the test.jsp file in
 $CATALINE_HOME/webapps/test.jsp and when doing
 http://localhost:8080/test.jsp in links (can't open my 8080 port
 yet...) I get a file cannot be found message, but when I look at the
 example folder they show as they should. Anyone who knows what I'm
 doing wrong? 
 
 Also when adding
 
 Location /*.jsp
 JkUriSet worker ajp13:localhost:8009
 /Location
 
 to my http.conf file I got an error message that said that apache
 couldn't recongnixe JkUriSet. Is that because JkUriSet is only
 availabel in jk2 or??? 
 
 ./Lukas
 
 - Original Message -
 From: Guy Rouillier [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Monday, January 26, 2004 9:39 PM
 Subject: RE: mod_jk problem
 
 
 Lukas Larsson wrote:
 Thx for the reply. I folloes your second link and found this site
 (http://johnturner.com/howto/apache2-tomcat4127-jk-rh9-howto.h
 tml) on how to configure mod_jk but I still get the same problem.
 Apache says that it is working with mod_jk, but it does not
 translate *.jsp pages (see
 http://garazdawi.homeftp.net/test.jsp for
 an  example
 of what I mean). Can someone please tell me what I'm
 doing wrong. I would really want to get started with jsp without
 having to battle with mod_jk.
 
 Make sure your Tomcat is set up properly by going directly to it for
 the JSP page, bypassing Apache, e.g.,
 http://garazdawi.homeftp.net:8080/test.jsp (assuming you left Tomcat
 on the default HTTP port.)  If that doesn't work, then the problem
 is in Tomcat configuration not in mod_jk.
 
 Jeff Tulley  ([EMAIL PROTECTED])
 (801)861-5322
 Novell, Inc., The Leading Provider of Net Business Solutions
 http://www.novell.com 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: mod_jk problem

2004-01-27 Thread Mark Eggers
Lukas,

There are a lot of ways to start out exploring jsp
programming.

1. Create a directory under %CATALINA_HOME%/webapps
and modify Tomcat's server.xml

a) For example, create a beg-jsp directory
b) Add the following context in server.xml

!-- Beginning JSP context for experimenting with raw 

  JSP
--
Context path=/beg-jsp docBase=beg-jsp debug=0
  reloadable=true crossContext=true
Logger 
  className=org.apache.catalina.logger.FileLogger
  prefix=localhost_beg-jsp_log. suffix=.txt
  timestamp=true/
/Context

c) Restart Tomcat

Now you can throw jsp files into this directory and
have them served by Tomcat.

2. Create a web application structure and deploy it

a) Create a directory beg-jsp in 

   %CATALINA_HOME%/webapps

b) Create a subdirectory WEB-INF

c) Add the following minimalist web.xml file to the
WEB-INF directory

?xml version=1.0 encoding=UTF-8?
!DOCTYPE web-app PUBLIC -//Sun Microsystems, 
  Inc.//DTD Web Application 2.3//EN
 http://java.sun.com/dtd/web-app_2_3.dtd;
web-app
  display-nameBeginning JSP/display-name
  description
Container for quick JSP tests
   /description
  
  welcome-file-list
welcome-fileindex.html/welcome-file
  /welcome-file-list

/web-app

(don't wrap the !DOCTYPE)

d) In the beg-jsp directory, create a small
index.html.  I just put links to jsp files in this
index.

e) Use the Tomcat manager application to deploy the
application.  Where it says War or Directory URL, just
put in

file:///path_to_beg-jsp

(where path_to_beg-jsp is
%CATALINA_HOME%/webapps/beg-jsp)

f) Click on the Deploy button, and you should have a
new application

3. Create the web application structure in a
development area, war the application, and deploy the
war file.

a) Create the directory structure given in:

http://localhost:8080/tomcat-docs/appdev/index.html

(actually, it's under Deployment)

b) Use the minimalist web.xml from option 2c above and
put it in your local WEB-INF directory

c) Create your files

d) If you don't want to get ant and go through the
entire build process . . . just do the following in
the base directory where you did all the editing:

jar -cf beg-jsp.war *

e) Now use the Tomcat Manager Application to install
the war file.

The advantage of using the third method is that it
will prepare you to expand to a servlet/jsp
application.  Your structure will be started, and you
can then start learning ant, servlets, configuration
management, and application structure.

I know I haven't covered mod_jk or mod_jk2, but that's
an entirely different kettle of fish.

HTH

/mde/
just my two cents . . . .


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[mod_jk] problem when tomcat is unreachable...

2004-01-26 Thread Joe Hung
Here is the setup. We have one http(2.0.43)+mod_jk(v1.2.5) load-balancing to two 
jboss-tomcat workers (tomcat version 4.1.24).

Everything works fine under normal condition. However, when we try to simulate a 
network unreachable scenerio to the first worker, we start to see long pauses in the 
web application before it fails to the 2nd worker. After some research, we found that, 
in mod_jk, there is a loop of 4 blocking connect() trying to establish the connection 
to the first worker before it fails over. Since each connect() takes 15 seconds to 
timeout (on solaris), it takes about 1 minute for mod_jk to fail over. Apparently that 
is not acceptable in real deployment.

So we've modified the connect() to use a non-blocking connect() and specify the 
select() timeout to a low value (say, 3 seconds) and change the looping to only once. 
That solved our problem.

I really think this fix (configurable connect() timeout) should be checked in to 
handle network unreachable problem.

opinions? suggestions?

cheers,

-joe


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: mod_jk problem

2004-01-26 Thread Guy Rouillier
Lukas Larsson wrote:
 Thx for the reply. I folloes your second link and found this site
 (http://johnturner.com/howto/apache2-tomcat4127-jk-rh9-howto.h
 tml) on how to configure mod_jk but I still get the same
 problem. Apache says that it is working with mod_jk, but it
 does not translate *.jsp pages (see
 http://garazdawi.homeftp.net/test.jsp for an  example of what
 I mean). Can someone please tell me what I'm doing wrong. I
 would really want to get started with jsp without having to
 battle with mod_jk.

Make sure your Tomcat is set up properly by going directly to it for the
JSP page, bypassing Apache, e.g.,
http://garazdawi.homeftp.net:8080/test.jsp (assuming you left Tomcat on
the default HTTP port.)  If that doesn't work, then the problem is in
Tomcat configuration not in mod_jk.

 
 Thx
 
 Lukas
 - Original Message -
 From: Mark Eggers [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Sunday, January 25, 2004 10:03 PM
 Subject: Re: mod_jk problem
 
 
 Please see the following:
 
 http://nagoya.apache.org/wiki/apachewiki.cgi?TomcatWeb
 
 or
 
 http://nagoya.apache.org/wiki/apachewiki.cgi?Tomcat/Links
 
 Lots of information, including several step-by-step documents.
 
 HTH
 
 /mde/
 just my two cents . . . .
 
 
 __
 Do you Yahoo!?
 Yahoo! SiteBuilder - Free web site building tool. Try it!
 http://webhosting.yahoo.com/ps/sb/
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: mod_jk problem

2004-01-26 Thread Lukas Larsson
Ok, now I'm really getting confused, I put the test.jsp file in
$CATALINE_HOME/webapps/test.jsp and when doing
http://localhost:8080/test.jsp in links (can't open my 8080 port yet...) I
get a file cannot be found message, but when I look at the example folder
they show as they should. Anyone who knows what I'm doing wrong?

Also when adding

Location /*.jsp
JkUriSet worker ajp13:localhost:8009
/Location

to my http.conf file I got an error message that said that apache couldn't
recongnixe JkUriSet. Is that because JkUriSet is only availabel in jk2 or???

./Lukas

- Original Message - 
From: Guy Rouillier [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, January 26, 2004 9:39 PM
Subject: RE: mod_jk problem


Lukas Larsson wrote:
 Thx for the reply. I folloes your second link and found this site
 (http://johnturner.com/howto/apache2-tomcat4127-jk-rh9-howto.h
 tml) on how to configure mod_jk but I still get the same
 problem. Apache says that it is working with mod_jk, but it
 does not translate *.jsp pages (see
 http://garazdawi.homeftp.net/test.jsp for an  example of what
 I mean). Can someone please tell me what I'm doing wrong. I
 would really want to get started with jsp without having to
 battle with mod_jk.

Make sure your Tomcat is set up properly by going directly to it for the
JSP page, bypassing Apache, e.g.,
http://garazdawi.homeftp.net:8080/test.jsp (assuming you left Tomcat on
the default HTTP port.)  If that doesn't work, then the problem is in
Tomcat configuration not in mod_jk.


 Thx

 Lukas
 - Original Message -
 From: Mark Eggers [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Sunday, January 25, 2004 10:03 PM
 Subject: Re: mod_jk problem


 Please see the following:

 http://nagoya.apache.org/wiki/apachewiki.cgi?TomcatWeb

 or

 http://nagoya.apache.org/wiki/apachewiki.cgi?Tomcat/Links

 Lots of information, including several step-by-step documents.

 HTH

 /mde/
 just my two cents . . . .


 __
 Do you Yahoo!?
 Yahoo! SiteBuilder - Free web site building tool. Try it!
 http://webhosting.yahoo.com/ps/sb/


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: mod_jk problem

2004-01-26 Thread Guy Rouillier
Lukas Larsson wrote:
 Ok, now I'm really getting confused, I put the test.jsp file
 in $CATALINE_HOME/webapps/test.jsp and when doing
 http://localhost:8080/test.jsp in links (can't open my 8080
 port yet...) I get a file cannot be found message, but when I
 look at the example folder they show as they should. Anyone
 who knows what I'm doing wrong?

$CATALINE_HOME/webapps/ is not your default context location.  If you
haven't changed anything, the default context is here (this is Tomcat 5,
sorry, I've forgotten which version you are using):

  Context path= docBase=ROOT debug=0

 
 Also when adding
 
 Location /*.jsp
 JkUriSet worker ajp13:localhost:8009
 /Location
 
 to my http.conf file I got an error message that said that
 apache couldn't recongnixe JkUriSet. Is that because JkUriSet
 is only availabel in jk2 or???

Yes, this syntax is for jk2.  For jk, use JkMount.

 
 ./Lukas
 
 - Original Message -
 From: Guy Rouillier [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Monday, January 26, 2004 9:39 PM
 Subject: RE: mod_jk problem
 
 
 Lukas Larsson wrote:
 Thx for the reply. I folloes your second link and found this site
 (http://johnturner.com/howto/apache2-tomcat4127-jk-rh9-howto.h
 tml) on how to configure mod_jk but I still get the same problem.
 Apache says that it is working with mod_jk, but it does not translate
 *.jsp pages (see http://garazdawi.homeftp.net/test.jsp for an 
 example of what I mean). Can someone please tell me what I'm doing
 wrong. I would really want to get started with jsp without having to
 battle with mod_jk.
 
 Make sure your Tomcat is set up properly by going directly to
 it for the JSP page, bypassing Apache, e.g.,
 http://garazdawi.homeftp.net:8080/test.jsp (assuming you left
 Tomcat on the default HTTP port.)  If that doesn't work, then
 the problem is in Tomcat configuration not in mod_jk.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: mod_jk problem

2004-01-26 Thread Jeff Tulley
Lukas,
   I haven't been following this thread too closelyso maybe I've
missed some of your earlier explanation...
If you are going through port 8080, there is no mod_jk or mod_jk2
involved, and the problem is probably elsewhere - for instance maybe
your web application is not set up properly(wrong directory structure?),
or there are file permission problems on your directories or your
web.xml file.  I have a coworker who had these type of file permission
problems twice in the last few weeks, and it was not immediately obvious
that this was the problem.  Or maybe your web.xml is not valid.

When you go back to using mod_jk, be aware that the command in apache
for mod_jk is more like:

JkMount /*.jsp ajp13

You do not embed this in a location tag necessarily.

But get things working through port 8080 first before tackling Apache
integration.  Like you said you just want to get started with JSP
without the battle.


 [EMAIL PROTECTED] 1/26/04 2:35:24 PM 
Ok, now I'm really getting confused, I put the test.jsp file in
$CATALINE_HOME/webapps/test.jsp and when doing
http://localhost:8080/test.jsp in links (can't open my 8080 port
yet...) I
get a file cannot be found message, but when I look at the example
folder
they show as they should. Anyone who knows what I'm doing wrong?

Also when adding

Location /*.jsp
JkUriSet worker ajp13:localhost:8009
/Location

to my http.conf file I got an error message that said that apache
couldn't
recongnixe JkUriSet. Is that because JkUriSet is only availabel in jk2
or???

./Lukas

- Original Message - 
From: Guy Rouillier [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, January 26, 2004 9:39 PM
Subject: RE: mod_jk problem


Lukas Larsson wrote:
 Thx for the reply. I folloes your second link and found this site
 (http://johnturner.com/howto/apache2-tomcat4127-jk-rh9-howto.h
 tml) on how to configure mod_jk but I still get the same
 problem. Apache says that it is working with mod_jk, but it
 does not translate *.jsp pages (see
 http://garazdawi.homeftp.net/test.jsp for an  example of what
 I mean). Can someone please tell me what I'm doing wrong. I
 would really want to get started with jsp without having to
 battle with mod_jk.

Make sure your Tomcat is set up properly by going directly to it for
the
JSP page, bypassing Apache, e.g.,
http://garazdawi.homeftp.net:8080/test.jsp (assuming you left Tomcat
on
the default HTTP port.)  If that doesn't work, then the problem is in
Tomcat configuration not in mod_jk.

Jeff Tulley  ([EMAIL PROTECTED])
(801)861-5322
Novell, Inc., The Leading Provider of Net Business Solutions
http://www.novell.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



mod_jk problem

2004-01-25 Thread Lukas Larsson
Hello

Does anyone know of a good tutorial for setting up mo_jk or mod_jk2 in apache2? I've 
been trying now for 4 days to set it up but I've failed. I've been trying to set it up 
on SuSU linux 9.0 with apache2.0.48 
(http://apache.archive.sunet.se/dist/httpd/httpd-2.0.48.tar.gz) and tomcat 5.0.18 
(http://apache.archive.sunet.se/dist/jakarta/tomcat-5/v5.0.18/bin/jakarta-tomcat-5.0.18.tar.gz)
 and the lastest version of JK 1.2 (or JK2). After complíling apache2 and JK, and 
creating a workers.properties file and editing httpd.conf, no *.jsp pages are sent to 
tomcat to be interpreted but instead the unformated file is shown (in apache2) or only 
the html code is formated but not the jsp (in apache 1.3). Has anyone ever had the 
same problem or is there something that I'm missing?

Thx before hand

Lukas

mod_jk problem

2004-01-25 Thread Lukas Larsson
Hello

Does anyone know of a good tutorial for setting up mo_jk or mod_jk2 in apache2? I've 
been trying now for 4 days to set it up but I've failed. I've been trying to set it up 
on SuSU linux 9.0 with apache2.0.48 
(http://apache.archive.sunet.se/dist/httpd/httpd-2.0.48.tar.gz) and tomcat 5.0.18 
(http://apache.archive.sunet.se/dist/jakarta/tomcat-5/v5.0.18/bin/jakarta-tomcat-5.0.18.tar.gz)
 and the lastest version of JK 1.2 (or JK2). After complíling apache2 and JK, and 
creating a workers.properties file and editing httpd.conf, no *.jsp pages are sent to 
tomcat to be interpreted but instead the unformated file is shown (in apache2) or only 
the html code is formated but not the jsp (in apache 1.3). Has anyone ever had the 
same problem or is there something that I'm missing?

Thx before hand

Lukas

RE: mod_jk problem

2004-01-25 Thread Brandon Goodin
That is the most informative link i know of.

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/index.html

-Original Message-
From: Lukas Larsson [mailto:[EMAIL PROTECTED]
Sent: Sunday, January 25, 2004 12:33 PM
To: 'Tomcat Users List'
Subject: mod_jk problem


Hello

Does anyone know of a good tutorial for setting up mo_jk or mod_jk2 in
apache2? I've been trying now for 4 days to set it up but I've failed. I've
been trying to set it up on SuSU linux 9.0 with apache2.0.48
(http://apache.archive.sunet.se/dist/httpd/httpd-2.0.48.tar.gz) and tomcat
5.0.18
(http://apache.archive.sunet.se/dist/jakarta/tomcat-5/v5.0.18/bin/jakarta-to
mcat-5.0.18.tar.gz) and the lastest version of JK 1.2 (or JK2). After
complíling apache2 and JK, and creating a workers.properties file and
editing httpd.conf, no *.jsp pages are sent to tomcat to be interpreted but
instead the unformated file is shown (in apache2) or only the html code is
formated but not the jsp (in apache 1.3). Has anyone ever had the same
problem or is there something that I'm missing?

Thx before hand

Lukas


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: mod_jk problem

2004-01-25 Thread Mark Eggers
Please see the following:

http://nagoya.apache.org/wiki/apachewiki.cgi?TomcatWeb

or

http://nagoya.apache.org/wiki/apachewiki.cgi?Tomcat/Links

Lots of information, including several step-by-step
documents.

HTH

/mde/
just my two cents . . . .


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: mod_jk problem

2004-01-25 Thread Lukas Larsson
Thx for the reply. I folloes your second link and found this site
(http://johnturner.com/howto/apache2-tomcat4127-jk-rh9-howto.html) on how to
configure mod_jk but I still get the same problem. Apache says that it is
working with mod_jk, but it does not translate *.jsp pages (see
http://garazdawi.homeftp.net/test.jsp for an example of what I mean). Can
someone please tell me what I'm doing wrong. I would really want to get
started with jsp without having to battle with mod_jk.

Thx

Lukas
- Original Message - 
From: Mark Eggers [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Sunday, January 25, 2004 10:03 PM
Subject: Re: mod_jk problem


 Please see the following:

 http://nagoya.apache.org/wiki/apachewiki.cgi?TomcatWeb

 or

 http://nagoya.apache.org/wiki/apachewiki.cgi?Tomcat/Links

 Lots of information, including several step-by-step
 documents.

 HTH

 /mde/
 just my two cents . . . .


 __
 Do you Yahoo!?
 Yahoo! SiteBuilder - Free web site building tool. Try it!
 http://webhosting.yahoo.com/ps/sb/

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



indtall mod_jk problem

2003-12-19 Thread dhayalan
Hi all,

 Thanks  the work goes fine  with the information what  we were 
posted in this group ,i hope  every one feel,no i am intalling mod_jk by using 
jakarta-tomacat-connectors-4.0.16 

the command i given is  usr/local/src :$tar xvfz  jakarta-tomacat-connectors-4.0.16 
-src.tar.gs
  $  cd 
jakarta-tomcat-connectors-4.0.16-src
 jakarta-tomcat-connectors-4.0.16-src$ ./buildconf.sh
 $ ./configure 
--with-apxs=/usr/sbin/apxs
wich gives  
.
.
.
.
.
.   
checking for mkdir... /bin/mkdir
checking for libtool... /usr/bin/libtool
need to check for Perl first, apxs depends on it...
checking for perl... /usr/bin/perl
could not find /usr/sbin/apxs
configure: error: You must specify a valid --with-apxs path

i have seen the apxs in /usr/sbin

but i am not able to proceed further


pls help me to overcome that

Thanking You all
Dhayalan.G


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat 4.1 -- mod_rewrite / mod_jk problem

2003-11-06 Thread Raúl Gutiérrez Sánchez
Hello,

I use Apache 2.0 and Tomcat 4.1.18 together to serve jsp pages and
servlets (using mod_jk). Everything seems to work fine except one thing.
When mod_rewrite try to apply a pattern matching over a location mounted
by JkMount, it fails because the URI used is only the filename
(excluding the path information). Example:

.conf :


Alias /xxx  /opt/jakarta/tomcat/webapps/xxx

JkMount /xxx/secure/*.jsp ajp13
JkMount /xxx/*.jsp ajp13

Location /xxx/
#AllowOverride None
RewriteEngine on
RewriteCond %{SERVER_PORT} !=443
RewriteRule ^.*/xxx/secure(.*)$ https://%{SERVER_NAME}/xxx/secure$1
[R,L]
/Location



rewrite log :
--

[per-dir /xxx/] applying pattern '^.*/xxx/secure(.*)$' to uri 'page.jsp'
[per-dir /xxx/] pass through page.jsp 



Rewrite works fine if I omit the JkMount directives.

Any help is welcome

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



mod_jk problem

2003-10-05 Thread Jack Lauman
I'm trying to get apache 2.0.47, mod_jk-cvs to work with tc-4.1.27.

I can successfully load and execute the tc examples.

I have 3 webapps that are for a single url ie: www.java.com
They are all accessed from a subdirectory called members which
has a simple .htaccess .htpasswd scheme.

When I access the app using ie: www.java.com/members/app-1/index.jsp
I get the jsp file returned to the browseras text.  If I load it as:
localhost:8080/members/app-1/index.jsp I get the correct response.

Also the mod_jk log defined in mod_jk.conf indicates that tomcat
is attempting to map every single directory in apache.  Any help
would be appreciated.

Thanks,

Jack


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: First mod_jk problem - can't start apache with Include statement (revisited)

2003-08-28 Thread Denise Mangano
Not really sure if this is a problem as of yet.  I currently cannot test
my configuration ... But I just wanted to write again regarding this
issue.  As I followed the how-to, I did things a little out of order.
Before changing Tomcat, and while Tomcat was not running, I added the
LoadModule and Include statements into httpd.conf.  I then ran an
apachectl configtest.  The configtest executed fine and I was returned
an error message that the file mod_jk.conf could not be found.  This was
right, because the file was not generated yet.

I then set up server.xml and created my workers.properties and started
Tomcat, which started no problem.

I then went back to apache and ran another configtest, and surprise...
It hangs... And so does apachectl start ...So we're back to the same
issue.  I am having a hard time at this point believing it is an Apache
issue, because the configtest executed fine with the include before
Tomcat was started and before the mod_jk.conf was created.

So what I did next was one at a time, I added in the Jk statements into
the httpd.conf to rule out this being an issue with the mod_jk
module(?).  First I added in the JkWorkersFile, then ran a configtest.
Then added in the JkLogFile and ran a configtest.  Lastly added in some
JkMount statements and ran a configtest.  At each of these points, the
configtest executed and was successful.  I can also start and stop
apache no problem.

As I mentioned, I cannot test whether or not mod_jk works just yet
(network issues)... There were no errors when starting either Tomcat or
apache.  But I do find it strange that I can't start apache just because
I have the Include statement.

Any further thoughts on this?  The output of httpd -l just lists
mod_core and mod_so.  I have all other modules added as DSO's.

Thanks :)
DEnise

 -Original Message-
 From: John Turner [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, August 27, 2003 11:08 AM
 To: Tomcat Users List
 Subject: Re: [OFF-TOPIC] Re: First mod_jk problem - can't 
 start apache with Include statement
 
 
 
 Cool.  My typical Apache build is:
 
 ./configure --enable-so --enable-ssl
 make
 make install
 
 John
 
 Denise Mangano wrote:
 
  Yes I am.  The problem (right now) definitely appears to be some 
  issues with Apache.  Unfortunately, the Apache list isn't 
 as heavily 
  trafficked, or as quick to response, so I'm still waiting on some 
  replies while I search the archives.  I think I have to recompile 
  Apache.  I added in a few extra flags when I did this yesterday to 
  make it more secure but I think I am better off just 
 keeping it as 
  is, then taking out what I don't need later...
  
  Won't be able to determine if I have a mod_jk problem at 
 all until I 
  get my Apache running properly.
  
  
 -Original Message-
 From: John Turner [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, August 27, 2003 10:47 AM
 To: Tomcat Users List
 Subject: [OFF-TOPIC] Re: First mod_jk problem - can't start 
 apache with Include statement
 
 
 
 Are you loading mod_ssl?
 
 I'm marking this as off-topic because we haven't determined
 that this is 
 a JK/Tomcat problem yet.
 
 John
 
 Denise Mangano wrote:
 
 
 Yeah, it appears to be my apache.  I still get that
 
 SSLMutex error.  I
 
 have to work on getting that resolved.
 
 This is the output of httpd -l:
 
http_core.c
mod_env.c
mod_log_config.c
mod_mime.c
mod_negotiation.c
mod_status.c
mod_include.c
mod_dir.c
mod_cgi.c
mod_asis.c
mod_imap.c
mod_actions.c
mod_alias.c
mod_access.c
mod_auth.c
mod_so.c
mod_setenvif.c
 suexec: disabled; invalid wrapper /usr/local/apache/bin/suexec
 
 Denise
 
 
 
 -Original Message-
 From: John Turner [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, August 27, 2003 10:25 AM
 To: Tomcat Users List
 Subject: Re: First mod_jk problem - can't start apache with
 Include statement
 
 
 
 Hate to say it, but it sounds like your Apache is munged up.
 
 If you delete the mod_jk.conf Include, and you delete all 
 other JK 
 stuff
 
 from httpd.conf, your Apache starts up properly, with no errors?
 
 What is the output of httpd -l?
 
 John
 
 Denise Mangano wrote:
 
 
 
 OK, I tried adding the Jk directives directly into the 
 httpd.conf 
 file, and apache at least starts.  So the problem is the include 
 statement. Is it possible that I don't have whatever module
 
 is needed
 
 
 to support the Include statement?
 
 So now the problem is that although apache starts, it does
 
 not start
 
 
 properly.  When I run ps -aux | grep httpd I get the following:
  www 80740.0   0.0   00  ?Z10:070:00
 [httpd defunct]
  www 80740.0   0.0   00  ?Z10:070:00
 [httpd defunct]
  www 80740.0   0.0   00  ?Z10:070:00
 [httpd defunct]
  www 80740.0   0.0   00  ?Z10:070:00
 [httpd defunct]
 
 And needless to say I can't get to my web page.  Now again I am

Re: First mod_jk problem - can't start apache with Include statement(revisited)

2003-08-28 Thread John Turner
I woudl skip the Include statement and modify httpd.conf manually as you 
have.  For anything but a simple configuration, you have to do it 
anyway, so there's no real loss.

John

Denise Mangano wrote:

Not really sure if this is a problem as of yet.  I currently cannot test
my configuration ... But I just wanted to write again regarding this
issue.  As I followed the how-to, I did things a little out of order.
Before changing Tomcat, and while Tomcat was not running, I added the
LoadModule and Include statements into httpd.conf.  I then ran an
apachectl configtest.  The configtest executed fine and I was returned
an error message that the file mod_jk.conf could not be found.  This was
right, because the file was not generated yet.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: First mod_jk problem - can't start apache with Include statement(revisited)

2003-08-28 Thread John Turner
A good test would be to create a file called test.conf in 
APACHE_HOME/conf.

In that file, put the following:

###
### this is an apache comment
###
Change the Include line in httpd.conf to include the file test.conf and 
NOT mod_jk.conf.

Then start Apache or run configtest and see what happens.  If it hangs, 
its definitely an Apache issue.

John

Denise Mangano wrote:

Not really sure if this is a problem as of yet.  I currently cannot test
my configuration ... But I just wanted to write again regarding this
issue.  As I followed the how-to, I did things a little out of order.
Before changing Tomcat, and while Tomcat was not running, I added the
LoadModule and Include statements into httpd.conf.  I then ran an
apachectl configtest.  The configtest executed fine and I was returned
an error message that the file mod_jk.conf could not be found.  This was
right, because the file was not generated yet.
I then set up server.xml and created my workers.properties and started
Tomcat, which started no problem.
I then went back to apache and ran another configtest, and surprise...
It hangs... And so does apachectl start ...So we're back to the same
issue.  I am having a hard time at this point believing it is an Apache
issue, because the configtest executed fine with the include before
Tomcat was started and before the mod_jk.conf was created.
So what I did next was one at a time, I added in the Jk statements into
the httpd.conf to rule out this being an issue with the mod_jk
module(?).  First I added in the JkWorkersFile, then ran a configtest.
Then added in the JkLogFile and ran a configtest.  Lastly added in some
JkMount statements and ran a configtest.  At each of these points, the
configtest executed and was successful.  I can also start and stop
apache no problem.
As I mentioned, I cannot test whether or not mod_jk works just yet
(network issues)... There were no errors when starting either Tomcat or
apache.  But I do find it strange that I can't start apache just because
I have the Include statement.
Any further thoughts on this?  The output of httpd -l just lists
mod_core and mod_so.  I have all other modules added as DSO's.
Thanks :)
DEnise

-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 27, 2003 11:08 AM
To: Tomcat Users List
Subject: Re: [OFF-TOPIC] Re: First mod_jk problem - can't 
start apache with Include statement



Cool.  My typical Apache build is:

./configure --enable-so --enable-ssl
make
make install
John

Denise Mangano wrote:


Yes I am.  The problem (right now) definitely appears to be some 
issues with Apache.  Unfortunately, the Apache list isn't 
as heavily 

trafficked, or as quick to response, so I'm still waiting on some 
replies while I search the archives.  I think I have to recompile 
Apache.  I added in a few extra flags when I did this yesterday to 
make it more secure but I think I am better off just 
keeping it as 

is, then taking out what I don't need later...

Won't be able to determine if I have a mod_jk problem at 
all until I 

get my Apache running properly.



-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 27, 2003 10:47 AM
To: Tomcat Users List
Subject: [OFF-TOPIC] Re: First mod_jk problem - can't start 
apache with Include statement



Are you loading mod_ssl?

I'm marking this as off-topic because we haven't determined
that this is 
a JK/Tomcat problem yet.

John

Denise Mangano wrote:



Yeah, it appears to be my apache.  I still get that
SSLMutex error.  I


have to work on getting that resolved.

This is the output of httpd -l:

http_core.c
mod_env.c
mod_log_config.c
mod_mime.c
mod_negotiation.c
mod_status.c
mod_include.c
mod_dir.c
mod_cgi.c
mod_asis.c
mod_imap.c
mod_actions.c
mod_alias.c
mod_access.c
mod_auth.c
mod_so.c
mod_setenvif.c
  suexec: disabled; invalid wrapper /usr/local/apache/bin/suexec
Denise




-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 27, 2003 10:25 AM
To: Tomcat Users List
Subject: Re: First mod_jk problem - can't start apache with
Include statement


Hate to say it, but it sounds like your Apache is munged up.

If you delete the mod_jk.conf Include, and you delete all 
other JK 

stuff

from httpd.conf, your Apache starts up properly, with no errors?


What is the output of httpd -l?

John

Denise Mangano wrote:




OK, I tried adding the Jk directives directly into the 
httpd.conf 

file, and apache at least starts.  So the problem is the include 
statement. Is it possible that I don't have whatever module
is needed



to support the Include statement?

So now the problem is that although apache starts, it does
not start



properly.  When I run ps -aux | grep httpd I get the following:
www 80740.0   0.0   00  ?Z10:070:00

Re: First mod_jk problem - can't start apache with Include statement

2003-08-27 Thread Bill Barker
I'm afraid that you are clueless ;-).  Apache+mod_jk only needs read, which
it's got.

You could try posting your conf files, to see if anyone can spot the
error..

- Original Message - 
From: Denise Mangano [EMAIL PROTECTED]
Newsgroups: gmane.comp.jakarta.tomcat.user
Sent: Tuesday, August 26, 2003 3:38 PM
Subject: First mod_jk problem - can't start apache with Include statement


I've been following John Turner's how-to (diff apache version but the
instructions can still apply).  I think they problem is a permission
issue, but wanted some verification.

Apache install is ok, Tomcat install is ok.  I followed the steps, and
added the Listeners, and the LoadModule and Include statement at the end
of my httpd.conf.  When I uncomment the Include statement apache starts
up no problem.  When I try to use it, my system just hangs as I try to
start apache.

Tomcat is running under user tomcat, and all directories from
/usr/local/tomcat down have rwx for tomcat, and r only for all others.
However, Apache runs as user 'www'.  I tried changing permissions to be
executable by all but that didn't seem to do the trick.  The system
still hangs when I try to start Apache.

Here is my structure with permissions:

--usr drwxr-xr-x
   --local  drwxr-xr-x
 --apache  drwxr-xr-x
 --tomcat  drwxr-xr-x
  --conf  drwxr-xr-x
  --auto  drwxr-xr-x
  mod_jk.conf -rwxr-xr-x


If its not a permissions issue, then I'm quite clueless as to what it
can be.  I can't even run a config test.  Any suggestions/advice is
greatly appreciated.

Denise

This message is intended only for the use of the person(s) listed above as the 
intended recipient(s), and may contain information that is PRIVILEGED and 
CONFIDENTIAL.  If you are not an intended recipient, you may not read, copy, or 
distribute this message or any attachment. If you received this communication in 
error, please notify us immediately by e-mail and then delete all copies of this 
message and any attachments.

In addition you should be aware that ordinary (unencrypted) e-mail sent through the 
Internet is not secure. Do not send confidential or sensitive information, such as 
social security numbers, account numbers, personal identification numbers and 
passwords, to us via ordinary (unencrypted) e-mail.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: First mod_jk problem - can't start apache with Include statement

2003-08-27 Thread John Turner
Hi -

Things I would check:

- apache's access and error log - is Apache trying to handle the 
request instead of Tomcat?

- Tomcat's log - is Tomcat even getting the request?

- move mod_jk.conf to APACHE_HOME/conf, change your Include to match. 
Then change JkLogLevel to debug or info (I forget which..try info 
first) and check mod_jk.log for more info

- verify a Connector on port 8009

- doublecheck your workers.properties file, especially the .host parameter

John

Denise Mangano wrote:

I've been following John Turner's how-to (diff apache version but the
instructions can still apply).  I think they problem is a permission
issue, but wanted some verification.
Apache install is ok, Tomcat install is ok.  I followed the steps, and
added the Listeners, and the LoadModule and Include statement at the end
of my httpd.conf.  When I uncomment the Include statement apache starts
up no problem.  When I try to use it, my system just hangs as I try to
start apache.
Tomcat is running under user tomcat, and all directories from
/usr/local/tomcat down have rwx for tomcat, and r only for all others.
However, Apache runs as user 'www'.  I tried changing permissions to be
executable by all but that didn't seem to do the trick.  The system
still hangs when I try to start Apache.
Here is my structure with permissions:

--usr drwxr-xr-x
   --local  drwxr-xr-x
 --apache  drwxr-xr-x
 --tomcat  drwxr-xr-x
	  --conf  drwxr-xr-x
  --auto  drwxr-xr-x
  mod_jk.conf -rwxr-xr-x  
 

If its not a permissions issue, then I'm quite clueless as to what it
can be.  I can't even run a config test.  Any suggestions/advice is
greatly appreciated.
Denise

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: First mod_jk problem - can't start apache with Include statement

2003-08-27 Thread Denise Mangano
John -

I just realized that I explained it slightly wrong.  When I comment
the Include statement, apache starts ok.  When I uncomment apache will
not start.

I checked what you suggested.  As Bill suggested, I am including my conf
files as well.

1.  Apache's error logs are completely empty ...  Yesterday I checked
them and they had the following:
[error]mod_ssl: Child could not open SSLMutex lockfile
/usr/local/apache/logs/ssl_mutex.30776 (System error follows)
[error]System: Permission denied (errno: 13)

That was a permissions issue, which I corrected.  Now when after
starting apache, I wait about 10 seconds, then attempt to start Apache
and it hangs, but nothing is written to either the access_log or the
error_log.

2.  The only thing in Tomcat's log is the server starting and
stopping...  Here's the relevant mod_jk output:
INFO: Initializing Coyote HTTP/1.1 on port 8080
INFO: Starting Coyote HTTP/1.1 on port 8009
INFO: JK2: ajp13 listening on /0.0.0.0./8009
INFO: Jk running ID=0 time=0/28
config=/usr/local/tomcat/conf/jk2.properties

Same thing that I had on my previous installation. Not sure why there is
mention of jk2.properties.

3.  Tried moving mod_jk.conf and changing the include statement but
still apache is a no go...

4.  There are two connectors on port 8009 in the server.xml file.  These
are still the defaults:
!-- Define a Coyote/JK2 AJP1.3 Connector on port 8009 --
Connector className=org.apache.coyote.tomcat4.CoyoteConnector
port=8009 minProcessors=5 maxProcessors=75
enableLookups=true redirectPort=8443
acceptCount=10 debug=0 connectionTimeout=0
useURIValidationHack=false

protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/

!-- Define an AJP1.3 Connector on port 8009 --
!--
Connector className=org.apache.ajp.tomcat4.Ajp13Connector
port=8009 minProcessors=5 maxProcessors=75
acceptCount=10 debug=0/
--

5.  workers.properties file in /usr/local/tomcat/conf/jk
#BEGIN workers.properties
worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
#END workers.properties

Thanks, 

Denise

 -Original Message-
 From: John Turner [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, August 27, 2003 8:19 AM
 To: Tomcat Users List
 Subject: Re: First mod_jk problem - can't start apache with 
 Include statement
 
 
 
 Hi -
 
 Things I would check:
 
 - apache's access and error log - is Apache trying to handle the 
 request instead of Tomcat?
 
 - Tomcat's log - is Tomcat even getting the request?
 
 - move mod_jk.conf to APACHE_HOME/conf, change your Include to match. 
 Then change JkLogLevel to debug or info (I forget 
 which..try info 
 first) and check mod_jk.log for more info
 
 - verify a Connector on port 8009
 
 - doublecheck your workers.properties file, especially the 
 .host parameter
 
 John
 
 Denise Mangano wrote:
 
  I've been following John Turner's how-to (diff apache 
 version but the 
  instructions can still apply).  I think they problem is a 
 permission 
  issue, but wanted some verification.
  
  Apache install is ok, Tomcat install is ok.  I followed the 
 steps, and 
  added the Listeners, and the LoadModule and Include 
 statement at the 
  end of my httpd.conf.  When I uncomment the Include 
 statement apache 
  starts up no problem.  When I try to use it, my system just 
 hangs as I 
  try to start apache.
  
  Tomcat is running under user tomcat, and all directories from 
  /usr/local/tomcat down have rwx for tomcat, and r only for 
 all others. 
  However, Apache runs as user 'www'.  I tried changing 
 permissions to 
  be executable by all but that didn't seem to do the trick.  
 The system 
  still hangs when I try to start Apache.
  
  Here is my structure with permissions:
  
  --usr drwxr-xr-x
 --local  drwxr-xr-x
   --apache  drwxr-xr-x
   --tomcat  drwxr-xr-x
--conf  drwxr-xr-x
--auto  drwxr-xr-x
mod_jk.conf -rwxr-xr-x
   
  
  If its not a permissions issue, then I'm quite clueless as 
 to what it 
  can be.  I can't even run a config test.  Any suggestions/advice is 
  greatly appreciated.
  
  Denise
  
  
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
!-- Example Server Configuration File --
!-- Note that component elements are nested corresponding to their
 parent-child relationships with each other --

!-- A Server is a singleton element that represents the entire JVM,
 which may contain one or more

Re: First mod_jk problem - can't start apache with Include statement

2003-08-27 Thread John Turner
What's the output of APACHE_HOME/bin/apachectl configtest?

John

Denise Mangano wrote:

John -

I just realized that I explained it slightly wrong.  When I comment
the Include statement, apache starts ok.  When I uncomment apache will
not start.
I checked what you suggested.  As Bill suggested, I am including my conf
files as well.
1.  Apache's error logs are completely empty ...  Yesterday I checked
them and they had the following:
[error]mod_ssl: Child could not open SSLMutex lockfile
/usr/local/apache/logs/ssl_mutex.30776 (System error follows)
[error]System: Permission denied (errno: 13)
That was a permissions issue, which I corrected.  Now when after
starting apache, I wait about 10 seconds, then attempt to start Apache
and it hangs, but nothing is written to either the access_log or the
error_log.
2.  The only thing in Tomcat's log is the server starting and
stopping...  Here's the relevant mod_jk output:
INFO: Initializing Coyote HTTP/1.1 on port 8080
INFO: Starting Coyote HTTP/1.1 on port 8009
INFO: JK2: ajp13 listening on /0.0.0.0./8009
INFO: Jk running ID=0 time=0/28
config=/usr/local/tomcat/conf/jk2.properties
Same thing that I had on my previous installation. Not sure why there is
mention of jk2.properties.
3.  Tried moving mod_jk.conf and changing the include statement but
still apache is a no go...
4.  There are two connectors on port 8009 in the server.xml file.  These
are still the defaults:
!-- Define a Coyote/JK2 AJP1.3 Connector on port 8009 --
Connector className=org.apache.coyote.tomcat4.CoyoteConnector
port=8009 minProcessors=5 maxProcessors=75
enableLookups=true redirectPort=8443
acceptCount=10 debug=0 connectionTimeout=0
useURIValidationHack=false

protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/
!-- Define an AJP1.3 Connector on port 8009 --
!--
Connector className=org.apache.ajp.tomcat4.Ajp13Connector
port=8009 minProcessors=5 maxProcessors=75
acceptCount=10 debug=0/
--
5.  workers.properties file in /usr/local/tomcat/conf/jk
#BEGIN workers.properties
worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
#END workers.properties
Thanks, 

Denise


-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 27, 2003 8:19 AM
To: Tomcat Users List
Subject: Re: First mod_jk problem - can't start apache with 
Include statement



Hi -

Things I would check:

- apache's access and error log - is Apache trying to handle the 
request instead of Tomcat?

- Tomcat's log - is Tomcat even getting the request?

- move mod_jk.conf to APACHE_HOME/conf, change your Include to match. 
Then change JkLogLevel to debug or info (I forget 
which..try info 
first) and check mod_jk.log for more info

- verify a Connector on port 8009

- doublecheck your workers.properties file, especially the 
.host parameter

John

Denise Mangano wrote:


I've been following John Turner's how-to (diff apache 
version but the 

instructions can still apply).  I think they problem is a 
permission 

issue, but wanted some verification.

Apache install is ok, Tomcat install is ok.  I followed the 
steps, and 

added the Listeners, and the LoadModule and Include 
statement at the 

end of my httpd.conf.  When I uncomment the Include 
statement apache 

starts up no problem.  When I try to use it, my system just 
hangs as I 

try to start apache.

Tomcat is running under user tomcat, and all directories from 
/usr/local/tomcat down have rwx for tomcat, and r only for 
all others. 

However, Apache runs as user 'www'.  I tried changing 
permissions to 

be executable by all but that didn't seem to do the trick.  
The system 

still hangs when I try to start Apache.

Here is my structure with permissions:

--usr drwxr-xr-x
  --local  drwxr-xr-x
--apache  drwxr-xr-x
--tomcat  drwxr-xr-x
	  --conf  drwxr-xr-x
 --auto  drwxr-xr-x
 mod_jk.conf -rwxr-xr-x


If its not a permissions issue, then I'm quite clueless as 
to what it 

can be.  I can't even run a config test.  Any suggestions/advice is 
greatly appreciated.

Denise



-

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




!-- Example Server Configuration File --
!-- Note that component elements are nested corresponding to their
 parent-child relationships with each other --
!-- A Server is a singleton element that represents the entire JVM

RE: First mod_jk problem - can't start apache with Include statement

2003-08-27 Thread Denise Mangano
The same thing happens... It just hangs  Also, the same situation.
If I comment out the Include statement in httpd.conf I can run the
configtest ok.

 -Original Message-
 From: John Turner [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, August 27, 2003 9:20 AM
 To: Tomcat Users List
 Subject: Re: First mod_jk problem - can't start apache with 
 Include statement
 
 
 
 What's the output of APACHE_HOME/bin/apachectl configtest?
 
 John
 
 Denise Mangano wrote:
 
  John -
  
  I just realized that I explained it slightly wrong.  When I 
 comment 
  the Include statement, apache starts ok.  When I uncomment apache 
  will not start.
  
  I checked what you suggested.  As Bill suggested, I am including my 
  conf files as well.
  
  1.  Apache's error logs are completely empty ...  Yesterday 
 I checked 
  them and they had the following:
  [error]mod_ssl: Child could not open SSLMutex lockfile 
  /usr/local/apache/logs/ssl_mutex.30776 (System error follows)
  [error]System: Permission denied (errno: 13)
  
  That was a permissions issue, which I corrected.  Now when after 
  starting apache, I wait about 10 seconds, then attempt to 
 start Apache 
  and it hangs, but nothing is written to either the 
 access_log or the 
  error_log.
  
  2.  The only thing in Tomcat's log is the server starting and 
  stopping...  Here's the relevant mod_jk output:
  INFO: Initializing Coyote HTTP/1.1 on port 8080
  INFO: Starting Coyote HTTP/1.1 on port 8009
  INFO: JK2: ajp13 listening on /0.0.0.0./8009
  INFO: Jk running ID=0 time=0/28 
  config=/usr/local/tomcat/conf/jk2.properties
  
  Same thing that I had on my previous installation. Not sure 
 why there 
  is mention of jk2.properties.
  
  3.  Tried moving mod_jk.conf and changing the include statement but 
  still apache is a no go...
  
  4.  There are two connectors on port 8009 in the server.xml file.  
  These are still the defaults:
  !-- Define a Coyote/JK2 AJP1.3 Connector on port 8009 --
  Connector className=org.apache.coyote.tomcat4.CoyoteConnector
  port=8009 minProcessors=5 maxProcessors=75
  enableLookups=true redirectPort=8443
  acceptCount=10 debug=0 connectionTimeout=0
  useURIValidationHack=false
  
  protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/
  
  !-- Define an AJP1.3 Connector on port 8009 --
  !--
  Connector className=org.apache.ajp.tomcat4.Ajp13Connector
  port=8009 minProcessors=5 maxProcessors=75
  acceptCount=10 debug=0/
  --
  
  5.  workers.properties file in /usr/local/tomcat/conf/jk
  #BEGIN workers.properties
  worker.list=ajp13
  worker.ajp13.port=8009
  worker.ajp13.host=localhost
  worker.ajp13.type=ajp13
  #END workers.properties
  
  Thanks,
  
  Denise
  
  
 -Original Message-
 From: John Turner [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, August 27, 2003 8:19 AM
 To: Tomcat Users List
 Subject: Re: First mod_jk problem - can't start apache with 
 Include statement
 
 
 
 Hi -
 
 Things I would check:
 
 - apache's access and error log - is Apache trying to handle the
 request instead of Tomcat?
 
 - Tomcat's log - is Tomcat even getting the request?
 
 - move mod_jk.conf to APACHE_HOME/conf, change your Include 
 to match.
 Then change JkLogLevel to debug or info (I forget 
 which..try info 
 first) and check mod_jk.log for more info
 
 - verify a Connector on port 8009
 
 - doublecheck your workers.properties file, especially the
 .host parameter
 
 John
 
 Denise Mangano wrote:
 
 
 I've been following John Turner's how-to (diff apache
 
 version but the
 
 instructions can still apply).  I think they problem is a
 
 permission
 
 issue, but wanted some verification.
 
 Apache install is ok, Tomcat install is ok.  I followed the
 
 steps, and
 
 added the Listeners, and the LoadModule and Include
 
 statement at the
 
 end of my httpd.conf.  When I uncomment the Include
 
 statement apache
 
 starts up no problem.  When I try to use it, my system just
 
 hangs as I
 
 try to start apache.
 
 Tomcat is running under user tomcat, and all directories from
 /usr/local/tomcat down have rwx for tomcat, and r only for 
 
 all others.
 
 However, Apache runs as user 'www'.  I tried changing
 
 permissions to
 
 be executable by all but that didn't seem to do the trick.
 
 The system
 
 still hangs when I try to start Apache.
 
 Here is my structure with permissions:
 
 --usr drwxr-xr-x
--local  drwxr-xr-x
  --apache  drwxr-xr-x
  --tomcat  drwxr-xr-x
  --conf  drwxr-xr-x
   --auto  drwxr-xr-x
   mod_jk.conf -rwxr-xr-x
  
 
 If its not a permissions issue, then I'm quite clueless as
 
 to what it
 
 can be.  I can't even run a config test.  Any suggestions/advice is
 greatly appreciated.
 
 Denise
 
 
 
 
 
 -
 
 To unsubscribe, e-mail

Re: First mod_jk problem - can't start apache with Include statement

2003-08-27 Thread John Turner
configtest doesn't return an error?  It just hangs?  That is very funky.

Can you post your mod_jk.conf?

John

Denise Mangano wrote:

The same thing happens... It just hangs  Also, the same situation.
If I comment out the Include statement in httpd.conf I can run the
configtest ok.

-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 27, 2003 9:20 AM
To: Tomcat Users List
Subject: Re: First mod_jk problem - can't start apache with 
Include statement



What's the output of APACHE_HOME/bin/apachectl configtest?

John



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: First mod_jk problem - can't start apache with Include statement

2003-08-27 Thread Denise Mangano
, August 27, 2003 9:29 AM
 To: Tomcat Users List
 Subject: Re: First mod_jk problem - can't start apache with 
 Include statement
 
 
 
 configtest doesn't return an error?  It just hangs?  That is 
 very funky.
 
 Can you post your mod_jk.conf?
 
 John
 
 Denise Mangano wrote:
 
  The same thing happens... It just hangs  Also, the same 
 situation. 
  If I comment out the Include statement in httpd.conf I can run the 
  configtest ok.
  
  
 -Original Message-
 From: John Turner [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, August 27, 2003 9:20 AM
 To: Tomcat Users List
 Subject: Re: First mod_jk problem - can't start apache with 
 Include statement
 
 
 
 What's the output of APACHE_HOME/bin/apachectl configtest?
 
 John
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: First mod_jk problem - can't start apache with Include statement

2003-08-27 Thread Denise Mangano
OK, I tried adding the Jk directives directly into the httpd.conf file,
and apache at least starts.  So the problem is the include statement.
Is it possible that I don't have whatever module is needed to support
the Include statement?  

So now the problem is that although apache starts, it does not start
properly.  When I run ps -aux | grep httpd I get the following:
www 80740.0   0.0   00  ?Z10:070:00
[httpd defunct]
www 80740.0   0.0   00  ?Z10:070:00
[httpd defunct]
www 80740.0   0.0   00  ?Z10:070:00
[httpd defunct]
www 80740.0   0.0   00  ?Z10:070:00
[httpd defunct]

And needless to say I can't get to my web page.  Now again I am getting
those error messages in both my error_log and ssl_engine_log:
[error]mod_ssl: Child could not open SSLMutex lockfile
/usr/local/apache/logs/ssl_mutex.30776 (System error follows)
[error]System: Permission denied (errno: 13)

So apparently I have a problem with mod_ssl, which I guess I didn't
resolve yesterday and should post to the apache list.  But the question
still remains why using the Include statement would prevent Apache from
starting at all?

Thanks for your help :)
Denise



 -Original Message-  
 From: John Turner [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, August 27, 2003 9:29 AM
 To: Tomcat Users List
 Subject: Re: First mod_jk problem - can't start apache with 
 Include statement
 
 
 
 configtest doesn't return an error?  It just hangs?  That is 
 very funky.
 
 Can you post your mod_jk.conf?
 
 John
 
 Denise Mangano wrote:
 
  The same thing happens... It just hangs  Also, the same 
 situation. 
  If I comment out the Include statement in httpd.conf I can run the 
  configtest ok.
  
  
 -Original Message-
 From: John Turner [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, August 27, 2003 9:20 AM
 To: Tomcat Users List
 Subject: Re: First mod_jk problem - can't start apache with 
 Include statement
 
 
 
 What's the output of APACHE_HOME/bin/apachectl configtest?
 
 John
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: First mod_jk problem - can't start apache with Include statement

2003-08-27 Thread John Turner
Hate to say it, but it sounds like your Apache is munged up.

If you delete the mod_jk.conf Include, and you delete all other JK stuff 
from httpd.conf, your Apache starts up properly, with no errors?

What is the output of httpd -l?

John

Denise Mangano wrote:

OK, I tried adding the Jk directives directly into the httpd.conf file,
and apache at least starts.  So the problem is the include statement.
Is it possible that I don't have whatever module is needed to support
the Include statement?  

So now the problem is that although apache starts, it does not start
properly.  When I run ps -aux | grep httpd I get the following:
www 80740.0   0.0   00  ?Z10:070:00
[httpd defunct]
www 80740.0   0.0   00  ?Z10:070:00
[httpd defunct]
www 80740.0   0.0   00  ?Z10:070:00
[httpd defunct]
www 80740.0   0.0   00  ?Z10:070:00
[httpd defunct]
And needless to say I can't get to my web page.  Now again I am getting
those error messages in both my error_log and ssl_engine_log:
[error]mod_ssl: Child could not open SSLMutex lockfile
/usr/local/apache/logs/ssl_mutex.30776 (System error follows)
[error]System: Permission denied (errno: 13)
So apparently I have a problem with mod_ssl, which I guess I didn't
resolve yesterday and should post to the apache list.  But the question
still remains why using the Include statement would prevent Apache from
starting at all?
Thanks for your help :)
Denise


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: First mod_jk problem - can't start apache with Include statement

2003-08-27 Thread Denise Mangano
Yeah, it appears to be my apache.  I still get that SSLMutex error.  I
have to work on getting that resolved.

This is the output of httpd -l:

http_core.c
mod_env.c
mod_log_config.c
mod_mime.c
mod_negotiation.c
mod_status.c
mod_include.c
mod_dir.c
mod_cgi.c
mod_asis.c
mod_imap.c
mod_actions.c
mod_alias.c
mod_access.c
mod_auth.c
mod_so.c
mod_setenvif.c
suexec: disabled; invalid wrapper /usr/local/apache/bin/suexec

Denise

 -Original Message-
 From: John Turner [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, August 27, 2003 10:25 AM
 To: Tomcat Users List
 Subject: Re: First mod_jk problem - can't start apache with 
 Include statement
 
 
 
 Hate to say it, but it sounds like your Apache is munged up.
 
 If you delete the mod_jk.conf Include, and you delete all 
 other JK stuff 
 from httpd.conf, your Apache starts up properly, with no errors?
 
 What is the output of httpd -l?
 
 John
 
 Denise Mangano wrote:
 
  OK, I tried adding the Jk directives directly into the httpd.conf 
  file, and apache at least starts.  So the problem is the include 
  statement. Is it possible that I don't have whatever module 
 is needed 
  to support the Include statement?
  
  So now the problem is that although apache starts, it does 
 not start 
  properly.  When I run ps -aux | grep httpd I get the following:
  www 80740.0   0.0   00  ?Z10:070:00
  [httpd defunct]
  www 80740.0   0.0   00  ?Z10:070:00
  [httpd defunct]
  www 80740.0   0.0   00  ?Z10:070:00
  [httpd defunct]
  www 80740.0   0.0   00  ?Z10:070:00
  [httpd defunct]
  
  And needless to say I can't get to my web page.  Now again I am 
  getting those error messages in both my error_log and 
 ssl_engine_log:
  [error]mod_ssl: Child could not open SSLMutex lockfile 
  /usr/local/apache/logs/ssl_mutex.30776 (System error follows)
  [error]System: Permission denied (errno: 13)
  
  So apparently I have a problem with mod_ssl, which I guess I didn't 
  resolve yesterday and should post to the apache list.  But the 
  question still remains why using the Include statement 
 would prevent 
  Apache from starting at all?
  
  Thanks for your help :)
  Denise
  
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[OFF-TOPIC] Re: First mod_jk problem - can't start apache with Includestatement

2003-08-27 Thread John Turner
Are you loading mod_ssl?

I'm marking this as off-topic because we haven't determined that this is 
a JK/Tomcat problem yet.

John

Denise Mangano wrote:

Yeah, it appears to be my apache.  I still get that SSLMutex error.  I
have to work on getting that resolved.
This is the output of httpd -l:

http_core.c
mod_env.c
mod_log_config.c
mod_mime.c
mod_negotiation.c
mod_status.c
mod_include.c
mod_dir.c
mod_cgi.c
mod_asis.c
mod_imap.c
mod_actions.c
mod_alias.c
mod_access.c
mod_auth.c
mod_so.c
mod_setenvif.c
suexec: disabled; invalid wrapper /usr/local/apache/bin/suexec
Denise


-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 27, 2003 10:25 AM
To: Tomcat Users List
Subject: Re: First mod_jk problem - can't start apache with 
Include statement



Hate to say it, but it sounds like your Apache is munged up.

If you delete the mod_jk.conf Include, and you delete all 
other JK stuff 
from httpd.conf, your Apache starts up properly, with no errors?

What is the output of httpd -l?

John

Denise Mangano wrote:


OK, I tried adding the Jk directives directly into the httpd.conf 
file, and apache at least starts.  So the problem is the include 
statement. Is it possible that I don't have whatever module 
is needed 

to support the Include statement?

So now the problem is that although apache starts, it does 
not start 

properly.  When I run ps -aux | grep httpd I get the following:
www 80740.0   0.0   00  ?Z10:070:00
[httpd defunct]
www 80740.0   0.0   00  ?Z10:070:00
[httpd defunct]
www 80740.0   0.0   00  ?Z10:070:00
[httpd defunct]
www 80740.0   0.0   00  ?Z10:070:00
[httpd defunct]
And needless to say I can't get to my web page.  Now again I am 
getting those error messages in both my error_log and 
ssl_engine_log:

	[error]mod_ssl: Child could not open SSLMutex lockfile 
/usr/local/apache/logs/ssl_mutex.30776 (System error follows)
	[error]System: Permission denied (errno: 13)	

So apparently I have a problem with mod_ssl, which I guess I didn't 
resolve yesterday and should post to the apache list.  But the 
question still remains why using the Include statement 
would prevent 

Apache from starting at all?

Thanks for your help :)
Denise


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: [OFF-TOPIC] Re: First mod_jk problem - can't start apache with Include statement

2003-08-27 Thread Denise Mangano
Yes I am.  The problem (right now) definitely appears to be some issues
with Apache.  Unfortunately, the Apache list isn't as heavily
trafficked, or as quick to response, so I'm still waiting on some
replies while I search the archives.  I think I have to recompile
Apache.  I added in a few extra flags when I did this yesterday to make
it more secure but I think I am better off just keeping it as is, then
taking out what I don't need later...  

Won't be able to determine if I have a mod_jk problem at all until I get
my Apache running properly.

 -Original Message-
 From: John Turner [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, August 27, 2003 10:47 AM
 To: Tomcat Users List
 Subject: [OFF-TOPIC] Re: First mod_jk problem - can't start 
 apache with Include statement
 
 
 
 Are you loading mod_ssl?
 
 I'm marking this as off-topic because we haven't determined 
 that this is 
 a JK/Tomcat problem yet.
 
 John
 
 Denise Mangano wrote:
 
  Yeah, it appears to be my apache.  I still get that 
 SSLMutex error.  I 
  have to work on getting that resolved.
  
  This is the output of httpd -l:
  
  http_core.c
  mod_env.c
  mod_log_config.c
  mod_mime.c
  mod_negotiation.c
  mod_status.c
  mod_include.c
  mod_dir.c
  mod_cgi.c
  mod_asis.c
  mod_imap.c
  mod_actions.c
  mod_alias.c
  mod_access.c
  mod_auth.c
  mod_so.c
  mod_setenvif.c
  suexec: disabled; invalid wrapper /usr/local/apache/bin/suexec
  
  Denise
  
  
 -Original Message-
 From: John Turner [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, August 27, 2003 10:25 AM
 To: Tomcat Users List
 Subject: Re: First mod_jk problem - can't start apache with 
 Include statement
 
 
 
 Hate to say it, but it sounds like your Apache is munged up.
 
 If you delete the mod_jk.conf Include, and you delete all
 other JK stuff 
 from httpd.conf, your Apache starts up properly, with no errors?
 
 What is the output of httpd -l?
 
 John
 
 Denise Mangano wrote:
 
 
 OK, I tried adding the Jk directives directly into the httpd.conf
 file, and apache at least starts.  So the problem is the include 
 statement. Is it possible that I don't have whatever module 
 
 is needed
 
 to support the Include statement?
 
 So now the problem is that although apache starts, it does
 
 not start
 
 properly.  When I run ps -aux | grep httpd I get the following:
www 80740.0   0.0   00  ?Z10:070:00
 [httpd defunct]
www 80740.0   0.0   00  ?Z10:070:00
 [httpd defunct]
www 80740.0   0.0   00  ?Z10:070:00
 [httpd defunct]
www 80740.0   0.0   00  ?Z10:070:00
 [httpd defunct]
 
 And needless to say I can't get to my web page.  Now again I am
 getting those error messages in both my error_log and 
 
 ssl_engine_log:
 
[error]mod_ssl: Child could not open SSLMutex lockfile
 /usr/local/apache/logs/ssl_mutex.30776 (System error follows)
[error]System: Permission denied (errno: 13)
 
 So apparently I have a problem with mod_ssl, which I guess I didn't
 resolve yesterday and should post to the apache list.  But the 
 question still remains why using the Include statement 
 
 would prevent
 
 Apache from starting at all?
 
 Thanks for your help :)
 Denise
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
  
  
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [OFF-TOPIC] Re: First mod_jk problem - can't start apache withInclude statement

2003-08-27 Thread John Turner
Cool.  My typical Apache build is:

./configure --enable-so --enable-ssl
make
make install
John

Denise Mangano wrote:

Yes I am.  The problem (right now) definitely appears to be some issues
with Apache.  Unfortunately, the Apache list isn't as heavily
trafficked, or as quick to response, so I'm still waiting on some
replies while I search the archives.  I think I have to recompile
Apache.  I added in a few extra flags when I did this yesterday to make
it more secure but I think I am better off just keeping it as is, then
taking out what I don't need later...  

Won't be able to determine if I have a mod_jk problem at all until I get
my Apache running properly.

-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 27, 2003 10:47 AM
To: Tomcat Users List
Subject: [OFF-TOPIC] Re: First mod_jk problem - can't start 
apache with Include statement



Are you loading mod_ssl?

I'm marking this as off-topic because we haven't determined 
that this is 
a JK/Tomcat problem yet.

John

Denise Mangano wrote:


Yeah, it appears to be my apache.  I still get that 
SSLMutex error.  I 

have to work on getting that resolved.

This is the output of httpd -l:

http_core.c
mod_env.c
mod_log_config.c
mod_mime.c
mod_negotiation.c
mod_status.c
mod_include.c
mod_dir.c
mod_cgi.c
mod_asis.c
mod_imap.c
mod_actions.c
mod_alias.c
mod_access.c
mod_auth.c
mod_so.c
mod_setenvif.c
   suexec: disabled; invalid wrapper /usr/local/apache/bin/suexec
Denise



-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 27, 2003 10:25 AM
To: Tomcat Users List
Subject: Re: First mod_jk problem - can't start apache with 
Include statement



Hate to say it, but it sounds like your Apache is munged up.

If you delete the mod_jk.conf Include, and you delete all
other JK stuff 

from httpd.conf, your Apache starts up properly, with no errors?

What is the output of httpd -l?

John

Denise Mangano wrote:



OK, I tried adding the Jk directives directly into the httpd.conf
file, and apache at least starts.  So the problem is the include 
statement. Is it possible that I don't have whatever module 
is needed


to support the Include statement?

So now the problem is that although apache starts, it does
not start


properly.  When I run ps -aux | grep httpd I get the following:
www 80740.0   0.0   00  ?Z10:070:00
[httpd defunct]
www 80740.0   0.0   00  ?Z10:070:00
[httpd defunct]
www 80740.0   0.0   00  ?Z10:070:00
[httpd defunct]
www 80740.0   0.0   00  ?Z10:070:00
[httpd defunct]
And needless to say I can't get to my web page.  Now again I am
getting those error messages in both my error_log and 
ssl_engine_log:


[error]mod_ssl: Child could not open SSLMutex lockfile
/usr/local/apache/logs/ssl_mutex.30776 (System error follows)
[error]System: Permission denied (errno: 13)
So apparently I have a problem with mod_ssl, which I guess I didn't
resolve yesterday and should post to the apache list.  But the 
question still remains why using the Include statement 
would prevent


Apache from starting at all?

Thanks for your help :)
Denise



-

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


First mod_jk problem - can't start apache with Include statement

2003-08-26 Thread Denise Mangano
I've been following John Turner's how-to (diff apache version but the
instructions can still apply).  I think they problem is a permission
issue, but wanted some verification.

Apache install is ok, Tomcat install is ok.  I followed the steps, and
added the Listeners, and the LoadModule and Include statement at the end
of my httpd.conf.  When I uncomment the Include statement apache starts
up no problem.  When I try to use it, my system just hangs as I try to
start apache.

Tomcat is running under user tomcat, and all directories from
/usr/local/tomcat down have rwx for tomcat, and r only for all others.
However, Apache runs as user 'www'.  I tried changing permissions to be
executable by all but that didn't seem to do the trick.  The system
still hangs when I try to start Apache.

Here is my structure with permissions:

--usr drwxr-xr-x
   --local  drwxr-xr-x
 --apache  drwxr-xr-x
 --tomcat  drwxr-xr-x
  --conf  drwxr-xr-x
  --auto  drwxr-xr-x
  mod_jk.conf -rwxr-xr-x  
 

If its not a permissions issue, then I'm quite clueless as to what it
can be.  I can't even run a config test.  Any suggestions/advice is
greatly appreciated.

Denise


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: mod_jk problem with serving jsp from apache root dir...from tomcat alias dir is ok

2003-08-14 Thread Mike Klein
I 'figured' out the problem I was having...or at least got things working.

In addition to: JkMount /*.jsp ajp13

I also had to add a servlet context to server.xml:

Context path= docBase=/www/html/VxAppliance debug=0/

Originally docBase said ROOT, which I guess is Tomcat's root dir as opposed
to DocumentRoot in Apache.

I thought it might be cleaner to place individual 'markup' files (jsp, html,
php) under Apache, and only webapps and possibly servlets under Tomcat.

I didn't seem to think a servlet context was needed for stuff under apache,
just for webapps...my mistake. Most of my work has been with webapps, and to
Apache's credit, I haven't had a whole lot of problems up till now...with
cocoon, apache, tomcat, etc.

I'm putting my server into a sort of test mode now, and am creating samples
of various 'similar' web pages using different web technologies (jsp, php,
cocoon). For this reason I wanted the files placed singlely under my apache
root, rather than tomcat using webapps/etc.


mike

-Original Message-
From: Mike Klein [mailto:[EMAIL PROTECTED]
Sent: Sunday, August 10, 2003 9:30 PM
To: [EMAIL PROTECTED]
Subject: mod_jk problem with serving jsp from apache root dir...from
tomcat alias dir is ok


This has to be brain freeze of something...this s/be so simple...and
probably is.

I'm running tomcat 4.1.24-LE-jdk14 and Apache 1.3.27. I've got jsps coming
up on the web server port (via alias'd tomcat examples dir), in addition to
default of tomcat 8080 port...of course.

However, when I added the following:

JkMount /*.jsp ajp13

to my mod_jk.conf, which is Included at the end of my httpd.conf, it doesn't
seem to work. I get an http 404 740 error (requested resource is not
available). I put a HelloWorld.jsp into the web root of one of my virtual
hosts and it can't be pulled up. I've copied it as a .txt file, which is
returned just fine, and have double-checked permissions.

I can't seem to dish up jsps located directly under my server root...why?


mike


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



mod_jk-problem with rewritten urls

2003-08-14 Thread Karsten Dello
dear list,

i have a problem with the conjunctional use of mod_rewrite and mod_jk.

i set up apache 2.0.40 and tomcat 4.1.27 and compiled mod_jk from source.
i made them use the same webroot,
and processing of jsp by tomcat works great as long as mod_rewrite is not involved.

but i have rewrite-rules which transform static-looking html-urls into parameterized 
jsp-urls.

in these cases, mod_rewrite seems to work, but the jsp isn't processed by
tomcat,
and instead its source is send to the client.

an example: a client requests the url /fb-publikationen/60326.html
which is supposed to be transformed to /pd/viewdetail.jsp?db=60326style=1,
and afterwards to be processed by tomcat. 

the affected rewrite-rule is
RewriteRule ^/fb-publikationen/([0-9]+).html$ /pd/viewdetail.jsp?db=$1style=1 [PT]

mod_rewite's log says:
160.45.94.239 - - [06/Aug/2003:03:38:19 +0200]
[WEBSERVER/sid#8104640][rid#81ea9d8/initial] (2) init rewrite engine with requested 
uri /fb-publikationen/60326.html
160.45.94.239 - - [06/Aug/2003:03:38:19 +0200]
[WEBSERVER/sid#8104640][rid#81ea9d8/initial] (2) rewrite/fb-publikationen/60326.html 
- /pd/viewdetail.jsp?db=60326style=1
160.45.94.239 - - [06/Aug/2003:03:38:19 +0200]
[WEBSERVER/sid#8104640][rid#81ea9d8/initial] (2) forcing '/pd/viewdetail.jsp' to get 
passed through to next API URI-to-filename handler

mod_jk's log says:
[Wed Aug 06 03:38:19 2003]  [jk_uri_worker_map.c (501)]: Attempting to map URI 
'/fb-publikationen/60326.html'
[Wed Aug 06 03:38:19 2003]  [jk_uri_worker_map.c (623)]: 
jk_uri_worker_map_t::map_uri_to_worker, done without a match

so it seems that the url is rewritten,
but after that it is not send to tomcat again,
as i can't find the transformed jsp-url  in the mod_jk-log.

is this a conceptual problem,
or a configuration error?

any help would be appreciated,

best regards

karsten dello

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: mod_jk problem with serving jsp from apache root dir...from tomcatalias dir is ok

2003-08-14 Thread John Turner
JSP end up as servlets.  Thus, they fall under the web app realm. 
They are not distinct pages like HTML or PHP.

You do have to match your Apache config to your Tomcat config.  Tomcat 
is not integrated into Apache as PHP is...Tomcat is a distinct 
environment, and can stand by itself without Apache.  The communications 
between Apache and Tomcat happen over the network via a 
connectorthey have their own process space, etc.  It's not like CGI 
or PHP where things are executed in process with Apache.  Tomcat has no 
knowledge whatsoever of Apache config...Tomcat only knows that requests 
are coming in on a port.

John

Mike Klein wrote:

I 'figured' out the problem I was having...or at least got things working.

In addition to: JkMount /*.jsp ajp13

I also had to add a servlet context to server.xml:

Context path= docBase=/www/html/VxAppliance debug=0/

Originally docBase said ROOT, which I guess is Tomcat's root dir as opposed
to DocumentRoot in Apache.
I thought it might be cleaner to place individual 'markup' files (jsp, html,
php) under Apache, and only webapps and possibly servlets under Tomcat.
I didn't seem to think a servlet context was needed for stuff under apache,
just for webapps...my mistake. Most of my work has been with webapps, and to
Apache's credit, I haven't had a whole lot of problems up till now...with
cocoon, apache, tomcat, etc.
I'm putting my server into a sort of test mode now, and am creating samples
of various 'similar' web pages using different web technologies (jsp, php,
cocoon). For this reason I wanted the files placed singlely under my apache
root, rather than tomcat using webapps/etc.
mike

-Original Message-
From: Mike Klein [mailto:[EMAIL PROTECTED]
Sent: Sunday, August 10, 2003 9:30 PM
To: [EMAIL PROTECTED]
Subject: mod_jk problem with serving jsp from apache root dir...from
tomcat alias dir is ok
This has to be brain freeze of something...this s/be so simple...and
probably is.
I'm running tomcat 4.1.24-LE-jdk14 and Apache 1.3.27. I've got jsps coming
up on the web server port (via alias'd tomcat examples dir), in addition to
default of tomcat 8080 port...of course.
However, when I added the following:

JkMount /*.jsp ajp13

to my mod_jk.conf, which is Included at the end of my httpd.conf, it doesn't
seem to work. I get an http 404 740 error (requested resource is not
available). I put a HelloWorld.jsp into the web root of one of my virtual
hosts and it can't be pulled up. I've copied it as a .txt file, which is
returned just fine, and have double-checked permissions.
I can't seem to dish up jsps located directly under my server root...why?

mike

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


mod_jk problem with serving jsp from apache root dir...from tomcat alias dir is ok

2003-08-14 Thread Mike Klein
This has to be brain freeze of something...this s/be so simple...and
probably is.

I'm running tomcat 4.1.24-LE-jdk14 and Apache 1.3.27. I've got jsps coming
up on the web server port (via alias'd tomcat examples dir), in addition to
default of tomcat 8080 port...of course.

However, when I added the following:

JkMount /*.jsp ajp13

to my mod_jk.conf, which is Included at the end of my httpd.conf, it doesn't
seem to work. I get an http 404 740 error (requested resource is not
available). I put a HelloWorld.jsp into the web root of one of my virtual
hosts and it can't be pulled up. I've copied it as a .txt file, which is
returned just fine, and have double-checked permissions.

I can't seem to dish up jsps located directly under my server root...why?


mike


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: mod_jk-problem with rewritten urls

2003-08-14 Thread Bill Barker
This is supposed to be fixed in the upcoming mod_jk 1.2.5.  It's still being
evaluated, but you can get the early-access from
http://cvs.apache.org/~glenn/jakarta-tomcat-connectors-jk-1.2.5-src.tar.gz.



Karsten Dello [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 dear list,

 i have a problem with the conjunctional use of mod_rewrite and mod_jk.

 i set up apache 2.0.40 and tomcat 4.1.27 and compiled mod_jk from source.
 i made them use the same webroot,
 and processing of jsp by tomcat works great as long as mod_rewrite is not
involved.

 but i have rewrite-rules which transform static-looking html-urls into
parameterized jsp-urls.

 in these cases, mod_rewrite seems to work, but the jsp isn't processed by
 tomcat,
 and instead its source is send to the client.

 an example: a client requests the url /fb-publikationen/60326.html
 which is supposed to be transformed to
/pd/viewdetail.jsp?db=60326style=1,
 and afterwards to be processed by tomcat.

 the affected rewrite-rule is
 RewriteRule ^/fb-publikationen/([0-9]+).html$
/pd/viewdetail.jsp?db=$1style=1 [PT]

 mod_rewite's log says:
 160.45.94.239 - - [06/Aug/2003:03:38:19 +0200]
 [WEBSERVER/sid#8104640][rid#81ea9d8/initial] (2) init rewrite engine with
requested uri /fb-publikationen/60326.html
 160.45.94.239 - - [06/Aug/2003:03:38:19 +0200]
 [WEBSERVER/sid#8104640][rid#81ea9d8/initial] (2)
rewrite/fb-publikationen/60326.html - /pd/viewdetail.jsp?db=60326style=1
 160.45.94.239 - - [06/Aug/2003:03:38:19 +0200]
 [WEBSERVER/sid#8104640][rid#81ea9d8/initial] (2) forcing
'/pd/viewdetail.jsp' to get passed through to next API URI-to-filename
handler

 mod_jk's log says:
 [Wed Aug 06 03:38:19 2003]  [jk_uri_worker_map.c (501)]: Attempting to map
URI '/fb-publikationen/60326.html'
 [Wed Aug 06 03:38:19 2003]  [jk_uri_worker_map.c (623)]:
jk_uri_worker_map_t::map_uri_to_worker, done without a match

 so it seems that the url is rewritten,
 but after that it is not send to tomcat again,
 as i can't find the transformed jsp-url  in the mod_jk-log.

 is this a conceptual problem,
 or a configuration error?

 any help would be appreciated,

 best regards

 karsten dello




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Apache-Tomcat mod_jk Problem

2003-06-23 Thread John Turner
Did you restart Tomcat to generate a new mod_jk.conf file?  If so, did you 
also restart Apache so that it picks up the new changes?  If so, can you 
post the new mod_jk.conf file that shows the new configuration?

Have you tried it without using the Alias command in server.xml?

John

On Sat, 21 Jun 2003 11:55:16 -0700 (PDT), Sam at Yahoo 
[EMAIL PROTECTED] wrote:

I tried both of your URLs and they seem to be working
now! I'm trying to do the exact same thing...but am
having problems.   I've got it all working with
localhost but can't get it working with my domain name
(e.g. http://localhost/examples vs
http://www.mydomain.com/examples).  Can you give me
any hints or suggestions on what I need to change in
my httpd.conf and server.xml?
I haven't set up any virtual hosts in my httpd.conf
and have added the following Alias line in my
server.xml (in Host definition):
Host name=localhost debug=0
appBase=webapps unpackWARs=true autoDeploy=true
Aliaswww.mydomain.com/Alias
This didn't help me.  Any suggestions?



--- Dave Wicks [EMAIL PROTECTED] wrote:
I have recently setup mod_jk with Apache 2.0.40
serving as a proxyfor Tomcat 4.1.24.
The problem is that some redirects don't work
correctly.
e.g. Access the login.jsp on Tomcat directly (port
8080)  login (tomcat/password), this works fine!
http://funbox.hopto.org:8080/examples/jsp/security/protected/login.jsp
then try the proxy:

http://funbox.hopto.org/examples/jsp/security/protected/login.jsp
This only results on a 404 from the Apache server.

Can someone please suggest why?

Also, would the remedy work over SSL?

Many Thanks


_
Hotmail is now available on Australian mobile
phones. Go to  http://ninemsn.com.au/mobilecentral/signup.asp


-
To unsubscribe, e-mail:
[EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Apache-Tomcat mod_jk Problem

2003-06-21 Thread Dave Wicks
I have recently setup mod_jk with Apache 2.0.40 serving as a proxyfor Tomcat 
4.1.24.

The problem is that some redirects don't work correctly.

e.g. Access the login.jsp on Tomcat directly (port 8080)  login 
(tomcat/password), this works fine!
http://funbox.hopto.org:8080/examples/jsp/security/protected/login.jsp

then try the proxy:
http://funbox.hopto.org/examples/jsp/security/protected/login.jsp
This only results on a 404 from the Apache server.
Can someone please suggest why?

Also, would the remedy work over SSL?

Many Thanks

_
Hotmail is now available on Australian mobile phones. Go to  
http://ninemsn.com.au/mobilecentral/signup.asp

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Apache-Tomcat mod_jk Problem

2003-06-21 Thread Sam at Yahoo
I tried both of your URLs and they seem to be working
now! I'm trying to do the exact same thing...but am
having problems.   I've got it all working with
localhost but can't get it working with my domain name
(e.g. http://localhost/examples vs
http://www.mydomain.com/examples).  Can you give me
any hints or suggestions on what I need to change in
my httpd.conf and server.xml?

I haven't set up any virtual hosts in my httpd.conf
and have added the following Alias line in my
server.xml (in Host definition):

  Host name=localhost debug=0
appBase=webapps unpackWARs=true autoDeploy=true
Aliaswww.mydomain.com/Alias 

This didn't help me.  Any suggestions?




--- Dave Wicks [EMAIL PROTECTED] wrote:
 I have recently setup mod_jk with Apache 2.0.40
 serving as a proxyfor Tomcat 
 4.1.24.
 
 The problem is that some redirects don't work
 correctly.
 
 e.g. Access the login.jsp on Tomcat directly (port
 8080)  login 
 (tomcat/password), this works fine!

http://funbox.hopto.org:8080/examples/jsp/security/protected/login.jsp
 
 then try the proxy:

http://funbox.hopto.org/examples/jsp/security/protected/login.jsp
 This only results on a 404 from the Apache server.
 
 Can someone please suggest why?
 
 Also, would the remedy work over SSL?
 
 Many Thanks
 

_
 Hotmail is now available on Australian mobile
 phones. Go to  
 http://ninemsn.com.au/mobilecentral/signup.asp
 
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Apache-Tomcat mod_jk Problem

2003-06-19 Thread Dave Wicks
Hello,

I have compiled and configure mod_jk for use with Apache 2.0.40 proxying for 
Tomcat 4.1.24.
There seems to be a problem when I try out the example login.jsp. It works 
fine if I go directly
to the tomcat server directly, but if I access it via the proxy then Apache 
returns 404 (not found).

e.g this works
http://funbox.hopto.org:8080/examples/jsp/security/protected/login.jsp
user=tomcat/password=password
this returns a 404 ;-(
http://funbox.hopto.org/examples/jsp/security/protected/login.jsp
I have scoured the mail archives for a solution, alas still no answer.
Does anyone out there know what causes this?
Finally can someone please inform me where I go to view the replies to this 
message,
it was mentioned that there was a forum somewhere.

Hope this is a 'smart question'.

Many thanks in advance.

Dave

_
Get mobile Hotmail. Go to  http://ninemsn.com.au/mobilecentral/signup.asp
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Apache-Tomcat mod_jk Problem

2003-06-19 Thread John Turner
We'll need more information, like what are your JkMount statements, what 
are the contents of your workers.properties file, and what does mod_jk.log 
say when you make the request on port 80.

You might want to increase JkLogLevel in Apache's httpd.conf to get more 
info in mod_jk.log.

John

On Thu, 19 Jun 2003 17:50:11 +, Dave Wicks [EMAIL PROTECTED] 
wrote:

Hello,

I have compiled and configure mod_jk for use with Apache 2.0.40 proxying 
for Tomcat 4.1.24.
There seems to be a problem when I try out the example login.jsp. It 
works fine if I go directly
to the tomcat server directly, but if I access it via the proxy then 
Apache returns 404 (not found).

e.g this works
http://funbox.hopto.org:8080/examples/jsp/security/protected/login.jsp
user=tomcat/password=password
this returns a 404 ;-(
http://funbox.hopto.org/examples/jsp/security/protected/login.jsp
I have scoured the mail archives for a solution, alas still no answer.
Does anyone out there know what causes this?
Finally can someone please inform me where I go to view the replies to 
this message,
it was mentioned that there was a forum somewhere.

Hope this is a 'smart question'.

Many thanks in advance.

Dave

_
Get mobile Hotmail. Go to  http://ninemsn.com.au/mobilecentral/signup.asp
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


mod_jk problem

2003-03-13 Thread Gaston Escobar
I have tomcat working with apache using mod_jk.

This is the line I have in the httpd.conf:
VirtualHost 192.168.1.28
DocumentRoot /myapp/index.html
ServerName 192.168.1.28
JkMount /* ajp13
ServerAdmin gaston
CustomLog /home/gaston/access_log special
/VirtualHost


everything works well while I'm inside the intranet. But then we've tried to
put it to the internet, therefore we configured the firewall to map a public
ip adress to our private one. And this didn't work, when you try to access
to myapp from client through the internet the client machine answers with
gateway timeout. However, it still works inside the intranet¿?


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: mod_jk problem

2003-03-13 Thread Larry

I think you are looking in the wrong area.  If mod_jk is working on the intranet it 
should work from outside.

Does a page served just by apache work through the internet (not using mod_jk)?  

Can you connect directly through to the tomcat service (not using mod_jk and apache, 
opening port 8080) over the internet (I know you don't want to leave it that way, but 
it may be a good one time test.)

Larry


 --- On Thu 03/13, Gaston Escobar  [EMAIL PROTECTED]  wrote:
From: Gaston Escobar [mailto: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Date: Thu, 13 Mar 2003 16:57:17 -0300
Subject: mod_jk problem

I have tomcat working with apache using mod_jk.

This is the line I have in the httpd.conf:
VirtualHost 192.168.1.28
DocumentRoot /myapp/index.html
ServerName 192.168.1.28
JkMount /* ajp13
ServerAdmin gaston
CustomLog /home/gaston/access_log special
/VirtualHost


everything works well while I'm inside the intranet. But then we've tried to
put it to the internet, therefore we configured the firewall to map a public
ip adress to our private one. And this didn't work, when you try to access
to myapp from client through the internet the client machine answers with
gateway timeout. However, it still works inside the intranet¿?


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



___
No banners. No pop-ups. No kidding.
Introducing My Way - http://www.myway.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: mod_jk problem

2003-03-13 Thread Gaston Escobar
yes, when I configure apache to serve an application just by itself, it
worked out perfectly. The lines were like this:
VirtualHost 192.168.1.28
DocumentRoot /usr/www/myapp
ServerName 192.168.1.28
ServerAdmin gaston
CustomLog /home/gaston/access_log special
/VirtualHost


And I also connected tomcat directly, and it worked! I know it's strange,
separetly, both of them work well. But, they don't work together??




-Mensaje original-
De: Larry [mailto:[EMAIL PROTECTED]
Enviado el: Jueves, 13 de Marzo de 2003 05:10 p.m.
Para: [EMAIL PROTECTED]
Asunto: RE: mod_jk problem



I think you are looking in the wrong area.  If mod_jk is working on the
intranet it should work from outside.

Does a page served just by apache work through the internet (not using
mod_jk)?

Can you connect directly through to the tomcat service (not using mod_jk and
apache, opening port 8080) over the internet (I know you don't want to leave
it that way, but it may be a good one time test.)

Larry


 --- On Thu 03/13, Gaston Escobar  [EMAIL PROTECTED]  wrote:
From: Gaston Escobar [mailto: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Date: Thu, 13 Mar 2003 16:57:17 -0300
Subject: mod_jk problem

I have tomcat working with apache using mod_jk.

This is the line I have in the httpd.conf:
VirtualHost 192.168.1.28
DocumentRoot /myapp/index.html
ServerName 192.168.1.28
JkMount /* ajp13
ServerAdmin gaston
CustomLog /home/gaston/access_log special
/VirtualHost


everything works well while I'm inside the intranet. But then we've tried to
put it to the internet, therefore we configured the firewall to map a public
ip adress to our private one. And this didn't work, when you try to access
to myapp from client through the internet the client machine answers with
gateway timeout. However, it still works inside the intranet??


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



___
No banners. No pop-ups. No kidding.
Introducing My Way - http://www.myway.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: mod_jk problem

2003-03-13 Thread Chong Yu Meng
I think the problem may have something to do with the IP address 
specified inside your VirtualHost. That's a non-routable IP, and even 
though you may have done a mapping on your router/firewall/gateway, the 
IP address returned to your client will be 192.168.1.28, which I assume 
will be blocked by your firewall. One way to test is to put static 
content on your Apache server and try to access it from outside your 
network. If you can see that and not access Tomcat, then that's yr 
problem. How do u solve it ? Short of changing the address to something 
public, I really don't know. You'll have to ask yr network engineer 
about this.

Regards,
pascal chong
Gaston Escobar wrote:

This is the line I have in the httpd.conf:
VirtualHost 192.168.1.28
DocumentRoot /myapp/index.html
ServerName 192.168.1.28
JkMount /* ajp13
ServerAdmin gaston
CustomLog /home/gaston/access_log special
/VirtualHost
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Apache Tomcat mod_jk problem

2002-12-03 Thread R. C. Hill
Hi,
I'm trying to use the mod_jk connector with Apache 2.0.43 (Win32) and Tomcat 
4.1.10. When I add the Include c:/tomcat/conf/auto/mod_jk.conf line in the 
apache httpd.conf file, apache will not start. No sign of an error in the 
error.log file. I'm stumped...it should work?! Does anyone know what I'm 
doing wrong?

I configured them as follows:

1.) I downloaded the mod_jk-2.0.43.dll and placed it in the C:\Program 
Files\Apache Group\Apache2\modules directory

2.) Created workers.properties in the C:\tomcat\conf\jk directory.

   # (optional) make this equal to CATALINA_HOME
   workers.CATALINA_HOME=C:\tomcat

   # (optional) make this equal to JAVA_HOME
   workers.java_home=C:\j2sdk1.4.0_01

   # Windows uses back slashes
   ps=\
   worker.list=ajp13

   # Definition for Ajp13 worker
   worker.ajp13.port=8009
   worker.ajp13.host=localhost
   worker.ajp13.type=ajp13

3.) I added the following to tomcat's server.xml:

   After the Server port=8005 ... declaration:

   Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
   modJk=C:\Program Files\Apache 
Group\Apache2\modules\mod_jk-2.0.43.dll
	jkDebug=info
   workersConfig=C:\tomcat\conf\jk\workers.properties
   jkLog=C:\tomcat\logs\mod_jk.log/

   !-- Define an AJP 1.3 Connector on port 8009 --
   Connector className=org.apache.ajp.tomcat4.Ajp13Connector
	port=8009 minProcessors=5 maxProcessors=75
   acceptCount=10 debug=0/

   !-- Define the default virtual host --
 Host name=localhost debug=0 appBase=webapps
  unpackWARs=true autoDeploy=true

4.) Added to the end of the apache httpd.conf file:
   Include c:/tomcat/conf/auto/mod_jk.conf

5.) The contents of C:\tomcat\conf\auto\mod_jk.conf shows:

   IfModule !mod_jk.c
 LoadModule jk_module C:/Program Files/Apache  
Group/Apache2/modules/mod_jk-1.3.27.dll
   /IfModule

   JkWorkersFile C:/tomcat/conf/jk/workers.properties
   JkLogFile C:/tomcat/logs/mod_jk.log

   JkLogLevel info


Any help would be much appreciated!
Thanks,
- R


_
STOP MORE SPAM with the new MSN 8 and get 2 months FREE* 
http://join.msn.com/?page=features/junkmail


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]



Re: Apache Tomcat mod_jk problem

2002-12-03 Thread GEESOFT
Hi,
I did have a similar setup so I hope my comments below help you.

Regards,
Glenn Drew


---
Director
GEESOFT PTY LTD
- Original Message -
From: R. C. Hill [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, December 03, 2002 7:38 PM
Subject: Apache Tomcat mod_jk problem


 Hi,
 I'm trying to use the mod_jk connector with Apache 2.0.43 (Win32) and
Tomcat
 4.1.10. When I add the Include c:/tomcat/conf/auto/mod_jk.conf line in
the
 apache httpd.conf file, apache will not start. No sign of an error in the
 error.log file. I'm stumped...it should work?! Does anyone know what I'm
 doing wrong?

 I configured them as follows:

 1.) I downloaded the mod_jk-2.0.43.dll and placed it in the C:\Program
 Files\Apache Group\Apache2\modules directory
Good.

 2.) Created workers.properties in the C:\tomcat\conf\jk directory.

 # (optional) make this equal to CATALINA_HOME
 workers.CATALINA_HOME=C:\tomcat

 # (optional) make this equal to JAVA_HOME
 workers.java_home=C:\j2sdk1.4.0_01

 # Windows uses back slashes
 ps=\
 worker.list=ajp13

 # Definition for Ajp13 worker
 worker.ajp13.port=8009
 worker.ajp13.host=localhost
 worker.ajp13.type=ajp13

Good So far.

 3.) I added the following to tomcat's server.xml:

 After the Server port=8005 ... declaration:


 Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
 modJk=C:\Program Files\Apache
 Group\Apache2\modules\mod_jk-2.0.43.dll
 jkDebug=info
 workersConfig=C:\tomcat\conf\jk\workers.properties
 jkLog=C:\tomcat\logs\mod_jk.log/
I felt that hard coding my mod_jk.conf file rather than dynamically building
it more useful particularily when you change things.
I have attached both my workers.properties and mod_jk-manual.conf file.  Use
it if you like. Copy the file into the mod_jk.conf directory and change the
end of httpd.conf to:
   Include c:/tomcat/conf/auto/mod_jk-manual.conf (I do not
use quotes)

Also, when you refer to the module, use
c:\progra~1\apache~1\apache2\modules\mod_jk-2.0.43.dll and keep it on the
same line.  This should make no difference, but just to be safe.


 !-- Define an AJP 1.3 Connector on port 8009 --
 Connector className=org.apache.ajp.tomcat4.Ajp13Connector
 port=8009 minProcessors=5 maxProcessors=75
 acceptCount=10 debug=0/
I use the Coyote/JK2 AJP 1.3 Connector and set to port 8009


 !-- Define the default virtual host --
   Host name=localhost debug=0 appBase=webapps
unpackWARs=true autoDeploy=true
Good

 4.) Added to the end of the apache httpd.conf file:
 Include c:/tomcat/conf/auto/mod_jk.conf
Beware if you use the manual file to make sure the filename is correct.

 5.) The contents of C:\tomcat\conf\auto\mod_jk.conf shows:

 IfModule !mod_jk.c
   LoadModule jk_module C:/Program Files/Apache
 Group/Apache2/modules/mod_jk-1.3.27.dll
Ahh!   You quoted mod_jk-2.0.43.dll in your server.xml.  But it is wrong
here.  Check to make sure it is consistent with whatever you named the
module in Apachehome\modules.
 /IfModule

 JkWorkersFile C:/tomcat/conf/jk/workers.properties
 JkLogFile C:/tomcat/logs/mod_jk.log

 JkLogLevel info


You also need to create a servlet Context in server.xml and have a
corresponding web.xml file configured.  Look at the Tomcat docs for
assistance on this one.  I think the example webapps is done for you.

To test if your servlet is working...
Compile your servlet with an init() method that prints a diagnostic message.
 public void init() {
 System.out.println(The servlet is starting for the first time);
 }
and see if this pops out when you direct your browser to the url
http:\\localhost\command\servlet\[YourServlet as defined in the web.xml
file]

I hope this helps in some way.

Regards
Glenn Drew

 Any help would be much appreciated!
 Thanks,
 - R


 _
 STOP MORE SPAM with the new MSN 8 and get 2 months FREE*
 http://join.msn.com/?page=features/junkmail


 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]





workers.properties
Description: Binary data


mod_jk.conf-manual
Description: Binary data
--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


RE: Apache Tomcat mod_jk problem

2002-12-03 Thread Turner, John

Near as I can tell you are missing a Listener element for ApacheConfig in
your server.xml.  You need 2 Listeners, minimum.  One of them at the Server
level, which it looks like you have, and one of them at the Host level
which it looks like you don't have.  That's why your auto-generated
mod_jk.conf file is complete.

John


 -Original Message-
 From: R. C. Hill [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 03, 2002 3:38 AM
 To: [EMAIL PROTECTED]
 Subject: Apache Tomcat mod_jk problem
 
 
 Hi,
 I'm trying to use the mod_jk connector with Apache 2.0.43 
 (Win32) and Tomcat 
 4.1.10. When I add the Include 
 c:/tomcat/conf/auto/mod_jk.conf line in the 
 apache httpd.conf file, apache will not start. No sign of an 
 error in the 
 error.log file. I'm stumped...it should work?! Does anyone 
 know what I'm 
 doing wrong?
 
 I configured them as follows:
 
 1.) I downloaded the mod_jk-2.0.43.dll and placed it in the 
 C:\Program 
 Files\Apache Group\Apache2\modules directory
 
 2.) Created workers.properties in the C:\tomcat\conf\jk directory.
 
 # (optional) make this equal to CATALINA_HOME
 workers.CATALINA_HOME=C:\tomcat
 
 # (optional) make this equal to JAVA_HOME
 workers.java_home=C:\j2sdk1.4.0_01
 
 # Windows uses back slashes
 ps=\
 worker.list=ajp13
 
 # Definition for Ajp13 worker
 worker.ajp13.port=8009
 worker.ajp13.host=localhost
 worker.ajp13.type=ajp13
 
 3.) I added the following to tomcat's server.xml:
 
 After the Server port=8005 ... declaration:
 
 Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
 modJk=C:\Program Files\Apache 
 Group\Apache2\modules\mod_jk-2.0.43.dll
   jkDebug=info
 workersConfig=C:\tomcat\conf\jk\workers.properties
 jkLog=C:\tomcat\logs\mod_jk.log/
 
 !-- Define an AJP 1.3 Connector on port 8009 --
 Connector className=org.apache.ajp.tomcat4.Ajp13Connector
   port=8009 minProcessors=5 maxProcessors=75
 acceptCount=10 debug=0/
 
 !-- Define the default virtual host --
   Host name=localhost debug=0 appBase=webapps
unpackWARs=true autoDeploy=true
 
 4.) Added to the end of the apache httpd.conf file:
 Include c:/tomcat/conf/auto/mod_jk.conf
 
 5.) The contents of C:\tomcat\conf\auto\mod_jk.conf shows:
 
 IfModule !mod_jk.c
   LoadModule jk_module C:/Program Files/Apache  
 Group/Apache2/modules/mod_jk-1.3.27.dll
 /IfModule
 
 JkWorkersFile C:/tomcat/conf/jk/workers.properties
 JkLogFile C:/tomcat/logs/mod_jk.log
 
 JkLogLevel info
 
 
 Any help would be much appreciated!
 Thanks,
 - R
 
 
 _
 STOP MORE SPAM with the new MSN 8 and get 2 months FREE* 
 http://join.msn.com/?page=features/junkmail
 
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Mod_jk Problem

2002-11-25 Thread Dayo Oliyide

I'm currently having problems getting Apache to use load mod_jk, it keeps giving this 
error [emerg] Error while opening the workers. The workers.properties file exists 
and has the right attributes. I'm using Tomcat 3.3.1, Apache 1.3.9 and 
mod_jk-3.3-ap13-noeapi.so  with Sun's jdk 1.4(build 1.4.0_02-b02) on linux (2.2.12-20).

Everything used to work okay the only change I've made is to Web app and its logic, it 
used to run using Apache, tomcat and jonas but now uses just Apache and tomcat. I 
can't understand how this could affect the mod_jk.

Thanks for any help

Dayo



-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now


Re: Mod_jk Problem

2002-11-25 Thread Bill Barker
Without looking at the code, I believe that this is only caused when the
'JkWorkersFile' no longer points to the correct place in your httpd.conf (or
included file).  It can also be caused if the file can't be read from the
Apache user (On RedHat, defaults to 'apache', in the download defaults to
'nobody').

You are very brave to still be running Apache 1.3.9 :).

Dayo Oliyide [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

 I'm currently having problems getting Apache to use load mod_jk, it keeps
giving this error [emerg] Error while opening the workers. The
workers.properties file exists and has the right attributes. I'm using
Tomcat 3.3.1, Apache 1.3.9 and mod_jk-3.3-ap13-noeapi.so  with Sun's jdk
1.4(build 1.4.0_02-b02) on linux (2.2.12-20).

 Everything used to work okay the only change I've made is to Web app and
its logic, it used to run using Apache, tomcat and jonas but now uses just
Apache and tomcat. I can't understand how this could affect the mod_jk.

 Thanks for any help

 Dayo



 -
 Do you Yahoo!?
 Yahoo! Mail Plus - Powerful. Affordable. Sign up now





--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: mod_jk Problem

2002-11-13 Thread Rudolph Araujo
Milt,

Yes it does work if I just include the file. I have also done as you suggested 
i.e. make changes to the auto generated file and include that one. Also I think that 
Internal Server Error was due to Tomcat not being started up in time. Is there an 
init.d script that I can use for it?


Thanks,

RudolphGet more from the Web.  FREE MSN Explorer download : http://explorer.msn.com



RE: mod_jk Problem

2002-11-13 Thread Turner, John

You just have to wait a few seconds for Tomcat to startup, and the
mod_jk.conf file to be written.  5-10 seconds should do it.

John

 -Original Message-
 From: Rudolph Araujo [mailto:rudolphoa;hotmail.com]
 Sent: Wednesday, November 13, 2002 12:27 PM
 To: [EMAIL PROTECTED]
 Subject: RE: mod_jk Problem
 
 
 Milt,
 
 Yes it does work if I just include the file. I have also 
 done as you suggested i.e. make changes to the auto generated 
 file and include that one. Also I think that Internal Server 
 Error was due to Tomcat not being started up in time. Is 
 there an init.d script that I can use for it?
 
 
 Thanks,
 
 RudolphGet more from the Web.  FREE MSN Explorer download : 
 http://explorer.msn.com
 

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




mod_jk Problem

2002-11-12 Thread Rudolph Araujo
Hi All,

   I am running Apache 1.3 and Tomcat 4.1.12 and am not being able to link the two 
via mod_jk. The two are working correctly on their own, but if I hit 
http://localhost/examples I get a 404 from Apache (http://localhost:8080/examples does 
work). The logs say that /var/www/html/examples does not exist hence it is obviously 
not going to tomcat. My workers.properties files is as shown  

# BEGIN workers.properties
#
# Setup for apache system
#
# (optional) make this equal to CATALINA_HOME
workers.tomcat_home=/install/jakarta-tomcat-4.1.12
#
# (optional) make this equal to JAVA_HOME
workers.java_home=/usr/java/j2sdk1.4.1_01
#
ps=/
worker.list=remote
worker.remote.type=ajp13
# Definition for Ajp13 worker
#
worker.remote.port=8009
# change this line to match apache ServerName and Host name in server.xml
worker.remote.host=localhost

#
# END workers.properties

The mod_jk.conf is auto-generated and is as dollows:
## Auto generated on Tue Nov 12 16:12:05 EST 2002##
IfModule !mod_jk.c
  LoadModule jk_module /usr/lib/apache/mod_jk.so
/IfModule
JkWorkersFile /install/jakarta-tomcat-4.1.12/conf/jk/workers.properties
JkLogFile /install/jakarta-tomcat-4.1.12/logs/mod_jk.log
JkLogLevel emerg

VirtualHost localhost
ServerName localhost
 localhost:/admin 
# Static files  
Alias /admin /install/jakarta-tomcat-4.1.12/webapps/../server/webapps/admin
Directory /install/jakarta-tomcat-4.1.12/webapps/../server/webapps/admin
Options Indexes FollowSymLinks
DirectoryIndex index.html index.htm index.jsp  
/Directory

# Deny direct access to WEB-INF and META-INF
#
Location /admin/WEB-INF/*
AllowOverride None
deny from all
/Location
Location /admin/META-INF/*
AllowOverride None
deny from all
/Location
JkMount /admin/j_security_check  ajp13
JkMount /admin/*.do  ajp13
JkMount /admin/*.jsp  ajp13
 localhost:/webdav 
# Static files  
Alias /webdav /install/jakarta-tomcat-4.1.12/webapps/webdav
Directory /install/jakarta-tomcat-4.1.12/webapps/webdav
Options Indexes FollowSymLinks
DirectoryIndex index.jsp index.html index.htm  
/Directory

# Deny direct access to WEB-INF and META-INF
#
Location /webdav/WEB-INF/*
AllowOverride None
deny from all
/Location
Location /webdav/META-INF/*
AllowOverride None
deny from all
/Location
JkMount /webdav/*.jsp  ajp13
 localhost:/examples 
# Static files  
Alias /examples /install/jakarta-tomcat-4.1.12/webapps/examples
Directory /install/jakarta-tomcat-4.1.12/webapps/examples
Options Indexes FollowSymLinks
DirectoryIndex index.html index.htm index.jsp  
/Directory

# Deny direct access to WEB-INF and META-INF
#
Location /examples/WEB-INF/*
AllowOverride None
deny from all
/Location
Location /examples/META-INF/*
AllowOverride None
deny from all
/Location
JkMount /examples/jsp/security/protected/j_security_check  ajp13
JkMount /examples/snoop  ajp13
JkMount /examples/servlet/*  ajp13
JkMount /examples/CompressionTest  ajp13
JkMount /examples/*.jsp  ajp13
JkMount /examples/servletToJsp  ajp13
JkMount /examples/SendMailServlet  ajp13
 localhost:/tomcat-docs 
# Static files  
Alias /tomcat-docs /install/jakarta-tomcat-4.1.12/webapps/tomcat-docs
Directory /install/jakarta-tomcat-4.1.12/webapps/tomcat-docs
Options Indexes FollowSymLinks
DirectoryIndex index.html index.htm index.jsp  
/Directory

# Deny direct access to WEB-INF and META-INF
#
Location /tomcat-docs/WEB-INF/*
AllowOverride None
deny from all
/Location
Location /tomcat-docs/META-INF/*
AllowOverride None
deny from all
/Location
JkMount /tomcat-docs/*.jsp  ajp13
 localhost:/manager 
# Static files  
Alias /manager /install/jakarta-tomcat-4.1.12/webapps/../server/webapps/manager
Directory /install/jakarta-tomcat-4.1.12/webapps/../server/webapps/manager
Options Indexes FollowSymLinks
DirectoryIndex index.html index.htm index.jsp  
/Directory

# Deny direct access to WEB-INF and META-INF
#
Location /manager/WEB-INF/*
AllowOverride None
deny from all
/Location
Location /manager/META-INF/*
AllowOverride None
deny from all
/Location
JkMount /manager/html/*  ajp13
JkMount /manager/*  ajp13
JkMount /manager/*.jsp  ajp13
/VirtualHost

The server.xml file is as shown:
!-- Example Server Configuration File --
!-- Note that component elements are nested corresponding to their
 parent-child relationships with each 

RE: mod_jk Problem

2002-11-12 Thread Tref Gare
Hi Rudolph,

I share your pain, I had a similar two week ordeal a month ago or so.

What are your other logs saying, namely mod_jk.log and the stdout
(tomcat.out)?  I'm using TC 4.1.12 so we have some discrepancy in the
set up there but the following howto got me through the worst of it.

http://www.johnturner.com/howto/apache2-tomcat404-howto.html

As I said this was specific to Apache2 but may be of some help.  I think
there is a version for 1.3 as well, give the archives a trawl (if you
havn't already of course) and I suspect you'll find a million variations
on the theme.

Your workers.properties looks fine as does the mod_jk.conf-auto file.
The location of your mod_jk.so seems a tad strange, I'd normally expect
to see it in the APACHE_HOME/modules directory but that also may be a
1.3 to 2.0.43 variation.

I'd make sure that your apache server is referencing itself as localhost
as that's one reason the two might not be on speaking terms.

I also (for reasons not completely known) had to take the mod_jk.conf
file and copy it directly into httpd.conf.  You might want to try
something similar with a cut down set of virtual hosts... or even no
virtual hosts
Ie: paste the following into the bottom of httpd.conf

IfModule !mod_jk.c
  LoadModule jk_module /usr/lib/apache/mod_jk.so
/IfModule
JkWorkersFile
/install/jakarta-tomcat-4.1.12/conf/jk/workers.properties
JkLogFile /install/jakarta-tomcat-4.1.12/logs/mod_jk.log
JkLogLevel emerg

 localhost:/examples 
# Static files  
Alias /examples /install/jakarta-tomcat-4.1.12/webapps/examples
Directory /install/jakarta-tomcat-4.1.12/webapps/examples
Options Indexes FollowSymLinks
  DirectoryIndex index.html index.htm index.jsp  
/Directory

# Deny direct access to WEB-INF and META-INF
#
Location /examples/WEB-INF/*
AllowOverride None
  deny from all
/Location
Location /examples/META-INF/*
AllowOverride None
  deny from all
/Location
JkMount /examples/jsp/security/protected/j_security_check  ajp13
JkMount /examples/snoop  ajp13
JkMount /examples/servlet/*  ajp13
JkMount /examples/CompressionTest  ajp13
JkMount /examples/*.jsp  ajp13
JkMount /examples/servletToJsp  ajp13
JkMount /examples/SendMailServlet  ajp13


That at least will narrow down the issue a tad to see if it's related to
the virtual host setup.

Good luck.

Tref


--
Tref Gare
Development Consultant
Areeba
Level 19/114 William St, Melbourne VIC 3000
email: [EMAIL PROTECTED]
phone: +61 3 9642 5553
fax: +61 3 9642 1335
website: http://www.areeba.com.au
--
This email is intended only for the use of the individual or entity
named above and contains information that is confidential. No
confidentiality is waived or lost by any mis-transmission. If you
received this correspondence in error, please notify the sender and
immediately delete it from your system. You must not disclose, copy or
rely on any part of this correspondence if you are not the intended
recipient. Any communication directed to clients via this message is
subject to our Agreement and relevant Project Schedule. Any information
that is transmitted via email which may offend may have been sent
without knowledge or the consent of Areeba.
--

-Original Message-
From: Rudolph Araujo [mailto:rudolphoa;hotmail.com] 
Sent: Wednesday, 13 November 2002 8:23 AM
To: [EMAIL PROTECTED]
Subject: mod_jk Problem

Hi All,

   I am running Apache 1.3 and Tomcat 4.1.12 and am not being able
to link the two via mod_jk. The two are working correctly on their own,
but if I hit http://localhost/examples I get a 404 from Apache
(http://localhost:8080/examples does work). The logs say that
/var/www/html/examples does not exist hence it is obviously not going to
tomcat. My workers.properties files is as shown  

# BEGIN workers.properties
#
# Setup for apache system
#
# (optional) make this equal to CATALINA_HOME
workers.tomcat_home=/install/jakarta-tomcat-4.1.12
#
# (optional) make this equal to JAVA_HOME
workers.java_home=/usr/java/j2sdk1.4.1_01
#
ps=/
worker.list=remote
worker.remote.type=ajp13
# Definition for Ajp13 worker
#
worker.remote.port=8009
# change this line to match apache ServerName and Host name in
server.xml
worker.remote.host=localhost

#
# END workers.properties

The mod_jk.conf is auto-generated and is as dollows:
## Auto generated on Tue Nov 12 16:12:05 EST 2002##
IfModule !mod_jk.c
  LoadModule jk_module /usr/lib/apache/mod_jk.so
/IfModule
JkWorkersFile
/install/jakarta-tomcat-4.1.12/conf/jk/workers.properties
JkLogFile /install/jakarta-tomcat-4.1.12/logs/mod_jk.log
JkLogLevel emerg

VirtualHost localhost
ServerName localhost
 localhost:/admin 
# Static files  
Alias /admin
/install/jakarta-tomcat-4.1.12/webapps/../server/webapps/admin

Re: mod_jk Problem

2002-11-12 Thread Milt Epstein
On Tue, 12 Nov 2002, Rudolph Araujo wrote:

 Hi All,

I am running Apache 1.3 and Tomcat 4.1.12 and am not being
 able to link the two via mod_jk. The two are working correctly on
 their own, but if I hit http://localhost/examples I get a 404 from
 Apache (http://localhost:8080/examples does work). The logs say that
 /var/www/html/examples does not exist hence it is obviously not
 going to tomcat. My workers.properties files is as shown

 # BEGIN workers.properties
 #
 # Setup for apache system
 #
 # (optional) make this equal to CATALINA_HOME
 workers.tomcat_home=/install/jakarta-tomcat-4.1.12
 #
 # (optional) make this equal to JAVA_HOME
 workers.java_home=/usr/java/j2sdk1.4.1_01
 #
 ps=/

FWIW, you don't need any of the above.  They're just macros/variables
internal to this file, and since you're not using them elsewhere, you
don't need them.

 worker.list=remote
 worker.remote.type=ajp13
 # Definition for Ajp13 worker
 #
 worker.remote.port=8009
 # change this line to match apache ServerName and Host name in server.xml
 worker.remote.host=localhost

 #
 # END workers.properties

First, are you sure you're properly including the mod_jk.conf in your
httpd.conf file?

Second, I see one definite problem here -- in your workers.properties
file above, the worker name is remote, but in your mod_jk.conf
below, the worker name is ajp13 (that's the last parameter in your
JkMount directives).  Make them agree, i.e. be the same thing, and
that should fix that problem.  There may perhaps be other problems.
Your mod_jk.log file should be informative in that regard.


 The mod_jk.conf is auto-generated and is as dollows:
 ## Auto generated on Tue Nov 12 16:12:05 EST 2002##
 IfModule !mod_jk.c
   LoadModule jk_module /usr/lib/apache/mod_jk.so
 /IfModule
 JkWorkersFile /install/jakarta-tomcat-4.1.12/conf/jk/workers.properties
 JkLogFile /install/jakarta-tomcat-4.1.12/logs/mod_jk.log
 JkLogLevel emerg

 VirtualHost localhost
 ServerName localhost
  localhost:/admin 
 # Static files
 Alias /admin /install/jakarta-tomcat-4.1.12/webapps/../server/webapps/admin
 Directory /install/jakarta-tomcat-4.1.12/webapps/../server/webapps/admin
 Options Indexes FollowSymLinks
 DirectoryIndex index.html index.htm index.jsp
 /Directory

 # Deny direct access to WEB-INF and META-INF
 #
 Location /admin/WEB-INF/*
 AllowOverride None
 deny from all
 /Location
 Location /admin/META-INF/*
 AllowOverride None
 deny from all
 /Location
 JkMount /admin/j_security_check  ajp13
 JkMount /admin/*.do  ajp13
 JkMount /admin/*.jsp  ajp13
  localhost:/webdav 
 # Static files
 Alias /webdav /install/jakarta-tomcat-4.1.12/webapps/webdav
 Directory /install/jakarta-tomcat-4.1.12/webapps/webdav
 Options Indexes FollowSymLinks
 DirectoryIndex index.jsp index.html index.htm
 /Directory

 # Deny direct access to WEB-INF and META-INF
 #
 Location /webdav/WEB-INF/*
 AllowOverride None
 deny from all
 /Location
 Location /webdav/META-INF/*
 AllowOverride None
 deny from all
 /Location
 JkMount /webdav/*.jsp  ajp13
  localhost:/examples 
 # Static files
 Alias /examples /install/jakarta-tomcat-4.1.12/webapps/examples
 Directory /install/jakarta-tomcat-4.1.12/webapps/examples
 Options Indexes FollowSymLinks
 DirectoryIndex index.html index.htm index.jsp
 /Directory

 # Deny direct access to WEB-INF and META-INF
 #
 Location /examples/WEB-INF/*
 AllowOverride None
 deny from all
 /Location
 Location /examples/META-INF/*
 AllowOverride None
 deny from all
 /Location
 JkMount /examples/jsp/security/protected/j_security_check  ajp13
 JkMount /examples/snoop  ajp13
 JkMount /examples/servlet/*  ajp13
 JkMount /examples/CompressionTest  ajp13
 JkMount /examples/*.jsp  ajp13
 JkMount /examples/servletToJsp  ajp13
 JkMount /examples/SendMailServlet  ajp13
  localhost:/tomcat-docs 
 # Static files
 Alias /tomcat-docs /install/jakarta-tomcat-4.1.12/webapps/tomcat-docs
 Directory /install/jakarta-tomcat-4.1.12/webapps/tomcat-docs
 Options Indexes FollowSymLinks
 DirectoryIndex index.html index.htm index.jsp
 /Directory

 # Deny direct access to WEB-INF and META-INF
 #
 Location /tomcat-docs/WEB-INF/*
 AllowOverride None
 deny from all
 /Location
 Location /tomcat-docs/META-INF/*
 AllowOverride None
 deny from all
 /Location
 JkMount /tomcat-docs/*.jsp  ajp13
  localhost:/manager 
 # Static files
 Alias /manager 

RE: mod_jk Problem

2002-11-12 Thread Turner, John
 
You've got a worker in mod_jk.conf defined as ajp13.

The worker defined in workers.properites is called remote.

They need to match...change one or the other...mod_jk.log is probably
holding a bunch of can't open worker messages.

John

-Original Message-
From: Rudolph Araujo
To: [EMAIL PROTECTED]
Sent: 11/12/02 4:23 PM
Subject: mod_jk Problem

Hi All,

   I am running Apache 1.3 and Tomcat 4.1.12 and am not being able
to link the two via mod_jk. The two are working correctly on their own,
but if I hit http://localhost/examples I get a 404 from Apache
(http://localhost:8080/examples does work). The logs say that
/var/www/html/examples does not exist hence it is obviously not going to
tomcat. My workers.properties files is as shown  

# BEGIN workers.properties
#
# Setup for apache system
#
# (optional) make this equal to CATALINA_HOME
workers.tomcat_home=/install/jakarta-tomcat-4.1.12
#
# (optional) make this equal to JAVA_HOME
workers.java_home=/usr/java/j2sdk1.4.1_01
#
ps=/
worker.list=remote
worker.remote.type=ajp13
# Definition for Ajp13 worker
#
worker.remote.port=8009
# change this line to match apache ServerName and Host name in
server.xml
worker.remote.host=localhost

#
# END workers.properties

The mod_jk.conf is auto-generated and is as dollows:
## Auto generated on Tue Nov 12 16:12:05 EST 2002##
IfModule !mod_jk.c
  LoadModule jk_module /usr/lib/apache/mod_jk.so
/IfModule
JkWorkersFile
/install/jakarta-tomcat-4.1.12/conf/jk/workers.properties
JkLogFile /install/jakarta-tomcat-4.1.12/logs/mod_jk.log
JkLogLevel emerg

VirtualHost localhost
ServerName localhost
 localhost:/admin 
# Static files  
Alias /admin
/install/jakarta-tomcat-4.1.12/webapps/../server/webapps/admin
Directory
/install/jakarta-tomcat-4.1.12/webapps/../server/webapps/admin
Options Indexes FollowSymLinks
DirectoryIndex index.html index.htm index.jsp  
/Directory

# Deny direct access to WEB-INF and META-INF
#
Location /admin/WEB-INF/*
AllowOverride None
deny from all
/Location
Location /admin/META-INF/*
AllowOverride None
deny from all
/Location
JkMount /admin/j_security_check  ajp13
JkMount /admin/*.do  ajp13
JkMount /admin/*.jsp  ajp13
 localhost:/webdav 
# Static files  
Alias /webdav /install/jakarta-tomcat-4.1.12/webapps/webdav
Directory /install/jakarta-tomcat-4.1.12/webapps/webdav
Options Indexes FollowSymLinks
DirectoryIndex index.jsp index.html index.htm  
/Directory

# Deny direct access to WEB-INF and META-INF
#
Location /webdav/WEB-INF/*
AllowOverride None
deny from all
/Location
Location /webdav/META-INF/*
AllowOverride None
deny from all
/Location
JkMount /webdav/*.jsp  ajp13
 localhost:/examples 
# Static files  
Alias /examples /install/jakarta-tomcat-4.1.12/webapps/examples
Directory /install/jakarta-tomcat-4.1.12/webapps/examples
Options Indexes FollowSymLinks
DirectoryIndex index.html index.htm index.jsp  
/Directory

# Deny direct access to WEB-INF and META-INF
#
Location /examples/WEB-INF/*
AllowOverride None
deny from all
/Location
Location /examples/META-INF/*
AllowOverride None
deny from all
/Location
JkMount /examples/jsp/security/protected/j_security_check  ajp13
JkMount /examples/snoop  ajp13
JkMount /examples/servlet/*  ajp13
JkMount /examples/CompressionTest  ajp13
JkMount /examples/*.jsp  ajp13
JkMount /examples/servletToJsp  ajp13
JkMount /examples/SendMailServlet  ajp13
 localhost:/tomcat-docs 
# Static files  
Alias /tomcat-docs
/install/jakarta-tomcat-4.1.12/webapps/tomcat-docs
Directory /install/jakarta-tomcat-4.1.12/webapps/tomcat-docs
Options Indexes FollowSymLinks
DirectoryIndex index.html index.htm index.jsp  
/Directory

# Deny direct access to WEB-INF and META-INF
#
Location /tomcat-docs/WEB-INF/*
AllowOverride None
deny from all
/Location
Location /tomcat-docs/META-INF/*
AllowOverride None
deny from all
/Location
JkMount /tomcat-docs/*.jsp  ajp13
 localhost:/manager 
# Static files  
Alias /manager
/install/jakarta-tomcat-4.1.12/webapps/../server/webapps/manager
Directory
/install/jakarta-tomcat-4.1.12/webapps/../server/webapps/manager
Options Indexes FollowSymLinks
DirectoryIndex index.html index.htm index.jsp  
/Directory

# Deny direct access to WEB-INF and META-INF
#
Location /manager/WEB-INF/*
AllowOverride None
deny from all
/Location
Location /manager/META-INF

RE: mod_jk Problem

2002-11-12 Thread Tref Gare
Ooops.. well done Milt, 

I missed that ajp13 v remote thing in the mod_jk.conf that'll definitely
be a (if not the) problem.  Mind you I can't work out where you can
reset the name of the worker that will be generated by the mod_jk.conf.
you might want to try editing your workers.properties file back such
that the workers name is ajp13 rather than remote and just confirm
whether that's the problem.

Cheers
Tref



--
Tref Gare
Development Consultant
Areeba
Level 19/114 William St, Melbourne VIC 3000
email: [EMAIL PROTECTED]
phone: +61 3 9642 5553
fax: +61 3 9642 1335
website: http://www.areeba.com.au
--
This email is intended only for the use of the individual or entity
named above and contains information that is confidential. No
confidentiality is waived or lost by any mis-transmission. If you
received this correspondence in error, please notify the sender and
immediately delete it from your system. You must not disclose, copy or
rely on any part of this correspondence if you are not the intended
recipient. Any communication directed to clients via this message is
subject to our Agreement and relevant Project Schedule. Any information
that is transmitted via email which may offend may have been sent
without knowledge or the consent of Areeba.
--

-Original Message-
From: Milt Epstein [mailto:mepstein;uiuc.edu] 
Sent: Wednesday, 13 November 2002 8:58 AM
To: Tomcat Users List
Subject: Re: mod_jk Problem

On Tue, 12 Nov 2002, Rudolph Araujo wrote:

 Hi All,

I am running Apache 1.3 and Tomcat 4.1.12 and am not being
 able to link the two via mod_jk. The two are working correctly on
 their own, but if I hit http://localhost/examples I get a 404 from
 Apache (http://localhost:8080/examples does work). The logs say that
 /var/www/html/examples does not exist hence it is obviously not
 going to tomcat. My workers.properties files is as shown

 # BEGIN workers.properties
 #
 # Setup for apache system
 #
 # (optional) make this equal to CATALINA_HOME
 workers.tomcat_home=/install/jakarta-tomcat-4.1.12
 #
 # (optional) make this equal to JAVA_HOME
 workers.java_home=/usr/java/j2sdk1.4.1_01
 #
 ps=/

FWIW, you don't need any of the above.  They're just macros/variables
internal to this file, and since you're not using them elsewhere, you
don't need them.

 worker.list=remote
 worker.remote.type=ajp13
 # Definition for Ajp13 worker
 #
 worker.remote.port=8009
 # change this line to match apache ServerName and Host name in
server.xml
 worker.remote.host=localhost

 #
 # END workers.properties

First, are you sure you're properly including the mod_jk.conf in your
httpd.conf file?

Second, I see one definite problem here -- in your workers.properties
file above, the worker name is remote, but in your mod_jk.conf
below, the worker name is ajp13 (that's the last parameter in your
JkMount directives).  Make them agree, i.e. be the same thing, and
that should fix that problem.  There may perhaps be other problems.
Your mod_jk.log file should be informative in that regard.


 The mod_jk.conf is auto-generated and is as dollows:
 ## Auto generated on Tue Nov 12 16:12:05 EST 2002##
 IfModule !mod_jk.c
   LoadModule jk_module /usr/lib/apache/mod_jk.so
 /IfModule
 JkWorkersFile
/install/jakarta-tomcat-4.1.12/conf/jk/workers.properties
 JkLogFile /install/jakarta-tomcat-4.1.12/logs/mod_jk.log
 JkLogLevel emerg

 VirtualHost localhost
 ServerName localhost
  localhost:/admin 
 # Static files
 Alias /admin
/install/jakarta-tomcat-4.1.12/webapps/../server/webapps/admin
 Directory
/install/jakarta-tomcat-4.1.12/webapps/../server/webapps/admin
 Options Indexes FollowSymLinks
 DirectoryIndex index.html index.htm index.jsp
 /Directory

 # Deny direct access to WEB-INF and META-INF
 #
 Location /admin/WEB-INF/*
 AllowOverride None
 deny from all
 /Location
 Location /admin/META-INF/*
 AllowOverride None
 deny from all
 /Location
 JkMount /admin/j_security_check  ajp13
 JkMount /admin/*.do  ajp13
 JkMount /admin/*.jsp  ajp13
  localhost:/webdav 
 # Static files
 Alias /webdav /install/jakarta-tomcat-4.1.12/webapps/webdav
 Directory /install/jakarta-tomcat-4.1.12/webapps/webdav
 Options Indexes FollowSymLinks
 DirectoryIndex index.jsp index.html index.htm
 /Directory

 # Deny direct access to WEB-INF and META-INF
 #
 Location /webdav/WEB-INF/*
 AllowOverride None
 deny from all
 /Location
 Location /webdav/META-INF/*
 AllowOverride None
 deny from all
 /Location
 JkMount /webdav/*.jsp  ajp13
  localhost:/examples 
 # Static

Re: mod_jk Problem

2002-11-12 Thread Rudolph Araujo
I actually had them both named ajp13 (the remote was a mistake) but still it won't 
work. Another key thing is that my mod_jk.log file is empty. curiously though when I 
start up my web server port 8009 is also opened. So some stuff is working I gather.

If I do paste the stuff from mod_jk.conf into httpd.conf it works though.

Thanks,

RudolphGet more from the Web.  FREE MSN Explorer download : http://explorer.msn.com



RE: mod_jk Problem

2002-11-12 Thread Tref Gare
Makes it sound like something to do with the virtual host settings..
having said that I've stuck with the manual fix in the end myself (ie:
coding direct into httpd.conf rather than using the Include)... 

--
Tref Gare
Development Consultant
Areeba
Level 19/114 William St, Melbourne VIC 3000
email: [EMAIL PROTECTED]
phone: +61 3 9642 5553
fax: +61 3 9642 1335
website: http://www.areeba.com.au
--
This email is intended only for the use of the individual or entity
named above and contains information that is confidential. No
confidentiality is waived or lost by any mis-transmission. If you
received this correspondence in error, please notify the sender and
immediately delete it from your system. You must not disclose, copy or
rely on any part of this correspondence if you are not the intended
recipient. Any communication directed to clients via this message is
subject to our Agreement and relevant Project Schedule. Any information
that is transmitted via email which may offend may have been sent
without knowledge or the consent of Areeba.
--

-Original Message-
From: Rudolph Araujo [mailto:rudolphoa;hotmail.com] 
Sent: Wednesday, 13 November 2002 3:29 PM
To: [EMAIL PROTECTED]
Subject: Re: mod_jk Problem

I actually had them both named ajp13 (the remote was a mistake) but
still it won't work. Another key thing is that my mod_jk.log file is
empty. curiously though when I start up my web server port 8009 is also
opened. So some stuff is working I gather.

If I do paste the stuff from mod_jk.conf into httpd.conf it works
though.

Thanks,

RudolphGet more from the Web.  FREE MSN Explorer download :
http://explorer.msn.com

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: mod_jk Problem

2002-11-12 Thread Milt Epstein
On Tue, 12 Nov 2002, Rudolph Araujo wrote:

 I actually had them both named ajp13 (the remote was a mistake) but
 still it won't work. Another key thing is that my mod_jk.log file is
 empty. curiously though when I start up my web server port 8009 is
 also opened. So some stuff is working I gather.

 If I do paste the stuff from mod_jk.conf into httpd.conf it works though.

You didn't answer one of my questions: Are you sure you're properly
including the mod_jk.conf in your httpd.conf?

Also, is your mod_jk.log empty even when you paste the stuff in your
httpd.conf?

Milt Epstein
Research Programmer
Integration and Software Engineering (ISE)
Campus Information Technologies and Educational Services (CITES)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: mod_jk Problem

2002-11-12 Thread Tref Gare
Another thought.

I was making the mistake of putting my Include line immediately after
the modules section of Httpd.conf which was one reason why it wasn't
working for me.  Have you got yours at the very end of httpd.conf?

Tref

--
Tref Gare
Development Consultant
Areeba
Level 19/114 William St, Melbourne VIC 3000
email: [EMAIL PROTECTED]
phone: +61 3 9642 5553
fax: +61 3 9642 1335
website: http://www.areeba.com.au
--
This email is intended only for the use of the individual or entity
named above and contains information that is confidential. No
confidentiality is waived or lost by any mis-transmission. If you
received this correspondence in error, please notify the sender and
immediately delete it from your system. You must not disclose, copy or
rely on any part of this correspondence if you are not the intended
recipient. Any communication directed to clients via this message is
subject to our Agreement and relevant Project Schedule. Any information
that is transmitted via email which may offend may have been sent
without knowledge or the consent of Areeba.
--

-Original Message-
From: Milt Epstein [mailto:mepstein;uiuc.edu] 
Sent: Wednesday, 13 November 2002 4:07 PM
To: Tomcat Users List
Subject: Re: mod_jk Problem

On Tue, 12 Nov 2002, Rudolph Araujo wrote:

 I actually had them both named ajp13 (the remote was a mistake) but
 still it won't work. Another key thing is that my mod_jk.log file is
 empty. curiously though when I start up my web server port 8009 is
 also opened. So some stuff is working I gather.

 If I do paste the stuff from mod_jk.conf into httpd.conf it works
though.

You didn't answer one of my questions: Are you sure you're properly
including the mod_jk.conf in your httpd.conf?

Also, is your mod_jk.log empty even when you paste the stuff in your
httpd.conf?

Milt Epstein
Research Programmer
Integration and Software Engineering (ISE)
Campus Information Technologies and Educational Services (CITES)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]


--
To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: mod_jk Problem

2002-11-12 Thread Rudolph Araujo
The include is occurring fine and is right at the end of the httpd.cong. Also I have 
got it logging now. I commented the VirtualHost tag in the mod_jk.conf file and it 
still works. Now hoever, I get an Internal Server error whenever it tries to execute a 
JSP. How di I fix this? Also since mod_jk.conf generates the file each time, how do I 
get it not to create the virtual host tags?


Thanks,

RudolphGet more from the Web.  FREE MSN Explorer download : http://explorer.msn.com



RE: mod_jk Problem

2002-11-12 Thread Milt Epstein
On Wed, 13 Nov 2002, Rudolph Araujo wrote:

 The include is occurring fine and is right at the end of the
 httpd.cong. Also I have got it logging now. I commented the
 VirtualHost tag in the mod_jk.conf file and it still works. Now
 hoever, I get an Internal Server error whenever it tries to execute
 a JSP. How di I fix this? Also since mod_jk.conf generates the file
 each time, how do I get it not to create the virtual host tags?

Are you saying that it now works when you have the separate
mod_jk.conf file and include it in your httpd.conf?

To address your new question, I don't think you can completely control
what goes into the auto-generated mod_jk.conf file.  That's why it's
sometimes recommended to take the auto-generated one, edit it
accordingly, and include that in your httpd.conf.  (This process isn't
quite as fully automated, but when you've got things settled down in a
production environment, it should work fine because things won't be
changing very often.)

Milt Epstein
Research Programmer
Integration and Software Engineering (ISE)
Campus Information Technologies and Educational Services (CITES)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




mod_jk Problem

2002-11-09 Thread Rudolph Araujo
 Hi, I am trying to configure Apache and Tomcat to work together using  connectors so that anytime a .JSP page is requested from Apache (sitting on  port 80) it will automatically connect to Tomcat (port 8080). This is  possible using a connector. In my case I am using mod_jk. I have Apache set  up correctly and so too Tomcat i.e. I can access both the web sites at 80  and 8080 respectively. I haven't been able to link the two through the  mod_jk connector. I did everything I was supposed to but no luck. I have  attached the configuration files. I am using Apache 1.3 and Tomcat 4.1.12. mod_jk is mod_jk-1.3-eapi.so.  Thanks,  Rudolph AraujoGet more from the Web.  FREE MSN Explorer download : http://explorer.msn.com


conf.zip
Description: Zip compressed data
--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org


Re: mod_jk Problem

2002-11-09 Thread .: B i g D o g :.
Rudolph,

check the arhives...this was just discussed yesterday...

John Turner created some great howtos for it

http://www.johnturner.com/howto


On Sat, 2002-11-09 at 23:10, Rudolph Araujo wrote:
 Hi,
 I am trying to configure Apache and Tomcat to work together using  
 connectors so that anytime a .JSP page is requested from Apache (sitting on  
 port 80) it will automatically connect to Tomcat (port 8080). This is  
 possible using a connector. In my case I am using mod_jk. I have Apache set  
 up correctly and so too Tomcat i.e. I can access both the web sites at 80  
 and 8080 respectively. I haven't been able to link the two through the  
 mod_jk connector. I did everything I was supposed to but no luck. I have  
 attached the configuration files.
 I am using Apache 1.3 and Tomcat 4.1.12. mod_jk is mod_jk-1.3-eapi.so.
 
 Thanks,
 
 Rudolph AraujoGet more from the Web.  FREE MSN Explorer download : 
http://explorer.msn.com
 
 

 --
 To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
-- 
.: B i g D o g :.



--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: mod_jk problem

2002-10-21 Thread Turner, John

Oops, you are right.  I checked the other worker.* statements, but for some
reason missed that one.  This same problem happened to someone else last
week, and nobody caught it except Milt Epstein.

John


 -Original Message-
 From: Jean-Baptiste Onofré [mailto:jbonofre;phpfr.org]
 Sent: Monday, October 21, 2002 2:29 PM
 To: Tomcat Users List
 Subject: Re: mod_jk problem
 
 
 Re,
 
 I have find the problem !!
 
 In my workers.properties, i have :
 workers.list=ajp13
 
 and not :
 worker.list=ajp13
 
 Thanks for your help :)
 
 Excuse me for big messages,
 
 Best regards
 -- 
 Jean-Baptiste Onofré (Nanthrax)
 Membre fondateur de phpFR.org
 http://www.phpfr.org
 [EMAIL PROTECTED]
 Membre fondateur du LUG Béziers
 http://www.lug-beziers.org
 [EMAIL PROTECTED]
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail: 
 mailto:tomcat-user-help;jakarta.apache.org
 

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: mod_jk problem

2002-10-21 Thread Aryeh Katz
 Re,
 
 thanks for your help.
 
 You can find in attach file : config and log.
 
your error_log file seems to state the problem.
Tomcat couldn't bind to 8080 (it's already in use)
Try renaming the port and see in that helps.
Aryeh


---
Aryeh Katz
VASCO   
www.vasco.com   


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: mod_jk problem

2002-10-21 Thread Jean-Baptiste Onofré
Re,

I have find the problem !!

In my workers.properties, i have :
workers.list=ajp13

and not :
worker.list=ajp13

Thanks for your help :)

Excuse me for big messages,

Best regards
-- 
Jean-Baptiste Onofré (Nanthrax)
Membre fondateur de phpFR.org
http://www.phpfr.org
[EMAIL PROTECTED]
Membre fondateur du LUG Béziers
http://www.lug-beziers.org
[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: mod_jk problem

2002-10-21 Thread Turner, John

I'm not sure that's it.

The Apache ServerName is www.nanthrax.net yet everything else is
localhost.  The JkMount commands are not nested within VirtualHost
containers, so the URL that is trying to get mapped is
http://www.nanathrax.net/tomcat-docs .  There are no workers defined for
that...there are only workers defined for http://localhost/tomcat-docs.

I would either change Apache's ServerName to localhost or switch
localhost to www.nanthrax.net in workers.properties.  I would also
change the name of the Host element in server.xml to www.nanthrax.net.

Basically, for testing and debugging, you want everything to be localhost.
Then you can worry about setting up virtual hosts.

John


 -Original Message-
 From: Aryeh Katz [mailto:aryeh;vasco.com]
 Sent: Monday, October 21, 2002 2:27 PM
 To: Tomcat Users List
 Subject: Re: mod_jk problem
 
 
  Re,
  
  thanks for your help.
  
  You can find in attach file : config and log.
  
 your error_log file seems to state the problem.
 Tomcat couldn't bind to 8080 (it's already in use)
 Try renaming the port and see in that helps.
 Aryeh
 
 
 ---
 Aryeh Katz
 VASCO 
 www.vasco.com 
 
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail: 
 mailto:tomcat-user-help;jakarta.apache.org
 

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: mod_jk problem

2002-10-21 Thread Turner, John

Please be more specific.  

Please post your current configuration files, with any changes that you have
made since the last time you posted.

John


 -Original Message-
 From: Jean-Baptiste Onofré [mailto:jbonofre;phpfr.org]
 Sent: Monday, October 21, 2002 1:47 PM
 To: Tomcat Users List
 Subject: Re: mod_jk problem
 
 
 Re,
 
 excuse me but i have change the connector name yet and the 
 result is the
 same : Internal Server Error.
 I have exactly the same setup with another server which work.
 I don't know why my new server don't work with the same setup :(
 
 Help
 
 Best regards
 -- 
 Jean-Baptiste Onofré (Nanthrax)
 Membre fondateur de phpFR.org
 http://www.phpfr.org
 [EMAIL PROTECTED]
 Membre fondateur du LUG Béziers
 http://www.lug-beziers.org
 [EMAIL PROTECTED]
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail: 
 mailto:tomcat-user-help;jakarta.apache.org
 

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: mod_jk problem

2002-10-21 Thread Milt Epstein
On Mon, 21 Oct 2002, Turner, John wrote:

 Oops, you are right.  I checked the other worker.* statements, but
 for some reason missed that one.  This same problem happened to
 someone else last week, and nobody caught it except Milt Epstein.

Somebody call me? :-)

BTW, some good clues as to what was going on here (or at least where
to look for the problem) can be found in the mod_jk.log file.  To wit,
here are the entries for the last URL it's trying to find a worker for:

[lun oct 21 19:53:18 2002] [jk_uri_worker_map.c (351)]: Into 
jk_uri_worker_map_t::map_uri_to_worker
[lun oct 21 19:53:18 2002] [jk_uri_worker_map.c (368)]: Attempting to map URI 
'/tomcat-docs/'
[lun oct 21 19:53:18 2002] [jk_uri_worker_map.c (391)]: 
jk_uri_worker_map_t::map_uri_to_worker, Found a context match ajp13 - /tomcat-docs/
[lun oct 21 19:53:18 2002] [jk_worker.c (123)]: Into wc_get_worker_for_name ajp13
[lun oct 21 19:53:18 2002] [jk_worker.c (127)]: wc_get_worker_for_name, done did not 
found a worker

The third line indicates that it found a context match.  That means
that it found a JkMount directive that covers the URL.  The fifth and
final line indicates that it didn't find a worker for the context
match it found previously.  That points to a problem in the
workers.properties file (including perhaps a mismatch between the
worker name specified in a JkMount directive and those specified in
the workers.properties file).

FWIW, in this case, as someone else did, I saw the BindingException in
the one log file and thought the problem was related to that --
something like the running instance of Tomcat was not shut down before
restarting, and that it was actually the old instance, with the old
config -- using the mismatched worker names -- that was still
running.  I was going to suggest the person make sure the Tomcat
instance was really down before restarting it.  But looks like they
found the problem anyway.


  -Original Message-
  From: Jean-Baptiste Onofré [mailto:jbonofre;phpfr.org]
  Sent: Monday, October 21, 2002 2:29 PM
  To: Tomcat Users List
  Subject: Re: mod_jk problem
 
 
  Re,
 
  I have find the problem !!
 
  In my workers.properties, i have :
  workers.list=ajp13
 
  and not :
  worker.list=ajp13
 
  Thanks for your help :)
 
  Excuse me for big messages,
 
  Best regards
  --
  Jean-Baptiste Onofré (Nanthrax)
  Membre fondateur de phpFR.org
  http://www.phpfr.org
  [EMAIL PROTECTED]
  Membre fondateur du LUG Béziers
  http://www.lug-beziers.org
  [EMAIL PROTECTED]
 
  --
  To unsubscribe, e-mail:
  mailto:tomcat-user-unsubscribe;jakarta.apache.org
  For additional commands, e-mail:
  mailto:tomcat-user-help;jakarta.apache.org
 

 --
 To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org



Milt Epstein
Research Programmer
Integration and Software Engineering (ISE)
Campus Information Technologies and Educational Services (CITES)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




mod_jk problem

2002-10-21 Thread Jean-Baptiste Onofré
Hello all, 

my mod_jk don't work and i don't know why.

I'am under linux debian with apache 1.3.26 (from debian deb), j2sdk
1.4.1, tomcat 4.0.6, mod_jk 1.2.
I have compiled mod_jk from source with :
./configure --with-apxs=/usr/bin/apxs --enable-EAPI

I have copied the binary mod_jk.so.0.0.0 in
/usr/lib/apache/1.3/mod_jk.so.

In my apache httpd.conf i have just add at the end :
Include /usr/local/tomcat/conf/jk/mod_jk.conf

In my tomcat server.xml, i have :
82   Connector className=org.apache.ajp.tomcat4.Ajp13Connector
83   port=9009 minProcessors=5 maxProcessors=75
84   acceptCount=10 debug=0/
(i have delete the warp connector).

In the mod_jk.conf, i have :
1 # Load mod_jk
2 LoadModule jk_module /usr/lib/apache/1.3/mod_jk.so
3 #AddModule mod_jk.c
4 
5 # Configure mod_jk
6 JkWorkersFile /usr/local/tomcat/conf/jk/workers.properties
7 JkLogFile /var/log/apache/mod_jk.log
8 JkLogLevel debug
9 JkLogStampFormat [%a %b %d %H:%M:%S %Y]
10 
11 # Mount jakarta
12 JkMount /*.jsp * nanthrax
13 JkMount /servlet/* nanthrax
14 JkMount /examples/* nanthrax
15 JkMount /tomcat-docs nanthrax
16 JkMount /tomcat-docs/* nanthrax

and in my workers.properties :
1 workers.tomcat_home=/usr/local/tomcat
2 workers.java_home=/usr/local/j2sdk1.4.1
3 ps=/
4 workers.list=ajp13
5 
6 worker.ajp13.port=9009
7 worker.ajp13.host=localhost
8 worker.ajp13.type=ajp13

I start apache and tomcat.

In tomcat log, the ajp connector launch :
2002-10-21 09:37:15 Ajp13Connector[9009] Starting background thread
2002-10-21 09:37:15 Ajp13Processor[9009][0] Starting background thread
2002-10-21 09:37:15 Ajp13Processor[9009][1] Starting background thread
2002-10-21 09:37:15 Ajp13Processor[9009][2] Starting background thread
2002-10-21 09:37:15 Ajp13Processor[9009][3] Starting background thread
2002-10-21 09:37:15 Ajp13Processor[9009][4] Starting background thread

when i try to access to http://localhost/tomcat-docs
i always have an Internal Server Error.
In the mod_jk log, i have :
[lun oct 21 09:43:45 2002] [jk_uri_worker_map.c (368)]: Attempting to
map URI '/tomcat-docs'
[lun oct 21 09:43:45 2002] [jk_uri_worker_map.c (381)]:
jk_uri_worker_map_t::map_uri_to_worker, Found an exact match nanthrax -
/tomcat-d
ocs
[lun oct 21 09:43:45 2002] [jk_worker.c (123)]: Into
wc_get_worker_for_name nanthrax
[lun oct 21 09:43:45 2002] [jk_worker.c (127)]: wc_get_worker_for_name,
done did not found a worker

I have try any mod_jk (from binary, from source) and it's the same
result :(

Someone has an idea ???
Please help me 

Best regards
-- 
Jean-Baptiste Onofré (Nanthrax)
Membre fondateur de phpFR.org
http://www.phpfr.org
[EMAIL PROTECTED]
Membre fondateur du LUG Béziers
http://www.lug-beziers.org
[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Apache + SSL + TOMCAT4 + mod_jk : problem (Socket Timeout) : Help

2002-10-20 Thread rami rosen
Hello, 
 I have surfed the net thourouly, including 
 Tomcat NessGroups, and did not find 
 an answer to my problem ;
 May I ask :
  I am running  Tomcat4 + Apache + SSL + Mod _JK 
 on RH 8.0; I had configure Apache 
 to and Tomcat to use SSL (including 
 uncommenting the SSL connector lines 
 in server.xml of tomcat , and creating a changeit
 with alias tomcat with -keytool .
 
 
 I am using the (default) 8543. 
 
 
 I am creating an SLLSocket on this port from the client
 side ; when I am sending a post request. 
 I see (while debugging) that there is a SocketTimeOut 
 exception. (This happens when HttpProcessor 
 calls parseRequest() and we reach the readRequestLine()
 in the SocketInputStream. 
 
 When I set connectionTimeout to -1 , to disable 
 timeout , I do not have this Exception , but 
 I see that the data in the input stream 
 does not exist.
 
 When I run the same code and 
 just cretae a Non-SSL socket (on a 
 different port, 8180) everyhting is OK. 
 
 Do you have any idea what the problen can be ?
 
 rr





___
Sent by TalkMil WEBMail Server 
MailVision Inc.
http://www.mailvision.net



--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




mod_jk problem with Apache 2.0.40 and directory index/.jsp

2002-09-12 Thread Andre Schild

Hello,

when we setup apache 2.0.40 with mod_jk and Tomcat 4.0.4 or 4.1.10 we
see the following behaviour:

Normal operation of .jsp pages is ok
index.jsp pages are served correctly (recognized as default page)

When tomcat isn't running then the .jsp pages give error not found
back. Not realy ok, better Error 500
But when we access the directory without a running tomcat, then the
index.jsp is returned back unprocessed, instead of a error 500 or 404

/app/index.jsp - error not found
/app/ - returns the content of index.jsp without processing

Any ideas where the problem is ?

André


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Apache 2.0 and Tomcat 4.0.4 - Compiling mod_jk problem

2002-09-06 Thread Claude Coiffier

Hi,

I'm working with Apache 2.0 and Tomcat 4.0.4,
I've been trying to execute build-unix.sh to compile mod_jk under Linux, and
I get the following error :

...
/usr/local/apache2/build/libtool --silent --mode=link gcc -o
mod_jk.so -rpath
/usr/local/apache2/modules -module -avoid-version -I../common -I/usr/local/a
pache2/include/apr-util -I/usr/local/j2sdk1.4.0_01/include -I/usr/local/j2sd
k1.4.0_01/include/linux   mod_jk.lo jk_worker.lo jk_util.lo
jk_uri_worker_map.lo jk_sockbuf.lo jk_pool.lo jk_nwmain.lo jk_msg_buff.lo
jk_md5.lo jk_map.lo jk_lb_worker.lo jk_jni_worker.lo jk_context.lo
jk_connect.lo jk_ajp_common.lo jk_ajp14_worker.lo jk_ajp14.lo
jk_ajp13_worker.lo jk_ajp13.lo jk_ajp12_worker.lo
/usr/lib/crt1.o: In function `_start':
/usr/lib/crt1.o(.text+0x18): undefined reference to `main'
mod_jk.o: In function `ws_start_response':
/usr/local/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/mod_j
k.c:225: undefined reference to `apr_psprintf'
/usr/local/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/mod_j
k.c:229: undefined reference to `apr_pstrdup'
/usr/local/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/mod_j
k.c:230: undefined reference to `ap_content_type_tolower'
/usr/local/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/mod_j
k.c:233: undefined reference to `apr_table_set'
/usr/local/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/mod_j
k.c:236: undefined reference to `apr_table_set'
/usr/local/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/mod_j
k.c:239: undefined reference to `apr_table_set'
/usr/local/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/mod_j
k.c:246: undefined reference to `apr_date_parse_http'
/usr/local/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/mod_j
k.c:246: undefined reference to `ap_update_mtime'
/usr/local/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/mod_j
k.c:247: undefined reference to `ap_set_last_modified'
/usr/local/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/mod_j
k.c:249: undefined reference to `apr_table_add'
mod_jk.o: In function `ws_read':
/usr/local/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/mod_j
k.c:280: undefined reference to `ap_should_client_block'
/usr/local/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/mod_j
k.c:287: undefined reference to `ap_get_client_block'
mod_jk.o: In function `ws_write':
/usr/local/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/mod_j
k.c:339: undefined reference to `ap_rwrite'
/usr/local/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/mod_j
k.c:354: undefined reference to `ap_rflush'
/usr/local/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/mod_j
k.c:355: undefined reference to `ap_log_error'
mod_jk.o: In function `jk_error_exit':
/usr/local/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/mod_j
k.c:384: undefined reference to `apr_pvsprintf'
/usr/local/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/mod_j
k.c:387: undefined reference to `ap_log_error'
mod_jk.o: In function `get_content_length':
/usr/local/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/mod_j
k.c:398: undefined reference to `apr_table_get'
mod_jk.o: In function `init_ws_service':
/usr/local/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/mod_j
k.c:431: undefined reference to `ap_get_remote_host'
/usr/local/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/mod_j
k.c:437: undefined reference to `ap_get_server_name'
/usr/local/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/mod_j
k.c:437: undefined reference to `ap_get_server_port'
/usr/local/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/mod_j
k.c:453: undefined reference to `apr_sockaddr_port_get'
/usr/local/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/mod_j
k.c:456: undefined reference to `ap_get_server_version'
/usr/local/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/mod_j
k.c:498: undefined reference to `ap_os_escape_path'
/usr/local/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/mod_j
k.c:514: undefined reference to `ap_add_common_vars'
/usr/local/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/mod_j
k.c:517: undefined reference to `apr_table_get'
/usr/local/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/mod_j
k.c:522: undefined reference to `apr_table_get'
/usr/local/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/mod_j
k.c:529: undefined reference to `apr_table_get'
/usr/local/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/mod_j
k.c:532: undefined reference to `apr_table_get'
/usr/local/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/mod_j
k.c:538: undefined reference to `apr_table_get'
/usr/local/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/mod_j
k.c:551: undefined reference to `apr_palloc'

RE: Apache 2.0 and Tomcat 4.0.4 - Compiling mod_jk problem

2002-09-06 Thread Turner, John


Cool error!

Which build process are you doing?  I don't have a build-unix.sh in my dir
tree.

On a Linux (I use RH), you should be able to simply do the following:

- change to /path/to/connector-src/jk/native
- run buildconf.sh
- run ./configure --with-apxs=/some/path/to/apache2/bin/apxs
--with-java-home=${JAVA_HOME}
- run make
- take the resulting mod_jk.so in apache-2.0 directory and copy it to
$APACHE_HOME/modules

John

 -Original Message-
 From: Claude Coiffier [mailto:[EMAIL PROTECTED]]
 Sent: Friday, September 06, 2002 9:03 AM
 To: 'Tomcat Users List' (E-mail)
 Subject: Apache 2.0 and Tomcat 4.0.4 - Compiling mod_jk problem
 
 
 Hi,
 
 I'm working with Apache 2.0 and Tomcat 4.0.4,
 I've been trying to execute build-unix.sh to compile mod_jk 
 under Linux, and
 I get the following error :
 

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Apache 2.0 and Tomcat 4.0.4 - Compiling mod_jk problem

2002-09-06 Thread Claude Coiffier

Uh sorry, the error log seems to have disappeared between my sending it and
my ail being posted ! :)

To say it short, it's in the last line of the compilation (the 'link' line),
I get
/usr/lib/crt1.o: In function `_start':
/usr/lib/crt1.o(.text+0x18): undefined reference to `main'
mod_jk.o: In function `ws_start_response':
/usr/local/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/mod_j
k.c:225: undefined reference to `apr_psprintf'
... Then a heap of 'undefined reference' error lines.

Thank if you can help ! :)

 --
 Claude Coiffier -TEAMLOG
 +33(0)4 76 61 36 48



-Message d'origine-
De : Turner, John [mailto:[EMAIL PROTECTED]]
Envoyé : vendredi 6 septembre 2002 15:19
À : 'Tomcat Users List'
Objet : RE: Apache 2.0 and Tomcat 4.0.4 - Compiling mod_jk problem



Cool error!

Which build process are you doing?  I don't have a build-unix.sh in my dir
tree.

On a Linux (I use RH), you should be able to simply do the following:

- change to /path/to/connector-src/jk/native
- run buildconf.sh
- run ./configure --with-apxs=/some/path/to/apache2/bin/apxs
--with-java-home=${JAVA_HOME}
- run make
- take the resulting mod_jk.so in apache-2.0 directory and copy it to
$APACHE_HOME/modules

John

 -Original Message-
 From: Claude Coiffier [mailto:[EMAIL PROTECTED]]
 Sent: Friday, September 06, 2002 9:03 AM
 To: 'Tomcat Users List' (E-mail)
 Subject: Apache 2.0 and Tomcat 4.0.4 - Compiling mod_jk problem


 Hi,

 I'm working with Apache 2.0 and Tomcat 4.0.4,
 I've been trying to execute build-unix.sh to compile mod_jk
 under Linux, and
 I get the following error :


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Apache 2.0 and Tomcat 4.0.4 - Compiling mod_jk problem

2002-09-06 Thread Turner, John


No, I saw it.  I deleted it in my reply, as there was no need to keep
sending it back and forth.

Which build process are you using?  Which Linux?  I am using RedHat, and I
don't have a build-unix.sh in my dir tree.

John


 -Original Message-
 From: Claude Coiffier [mailto:[EMAIL PROTECTED]]
 Sent: Friday, September 06, 2002 10:53 AM
 To: 'Tomcat Users List'
 Subject: RE: Apache 2.0 and Tomcat 4.0.4 - Compiling mod_jk problem
 
 
 Uh sorry, the error log seems to have disappeared between my 
 sending it and
 my ail being posted ! :)
 
 To say it short, it's in the last line of the compilation 
 (the 'link' line),
 I get
 /usr/lib/crt1.o: In function `_start':
 /usr/lib/crt1.o(.text+0x18): undefined reference to `main'
 mod_jk.o: In function `ws_start_response':
 /usr/local/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/ap
 ache-2.0/mod_j
 k.c:225: undefined reference to `apr_psprintf'
 ... Then a heap of 'undefined reference' error lines.
 
 Thank if you can help ! :)
 
  --
  Claude Coiffier -TEAMLOG
  +33(0)4 76 61 36 48
 
 
 
 -Message d'origine-
 De : Turner, John [mailto:[EMAIL PROTECTED]]
 Envoyé : vendredi 6 septembre 2002 15:19
 À : 'Tomcat Users List'
 Objet : RE: Apache 2.0 and Tomcat 4.0.4 - Compiling mod_jk problem
 
 
 
 Cool error!
 
 Which build process are you doing?  I don't have a 
 build-unix.sh in my dir
 tree.
 
 On a Linux (I use RH), you should be able to simply do the following:
 
 - change to /path/to/connector-src/jk/native
 - run buildconf.sh
 - run ./configure --with-apxs=/some/path/to/apache2/bin/apxs
 --with-java-home=${JAVA_HOME}
 - run make
 - take the resulting mod_jk.so in apache-2.0 directory and copy it to
 $APACHE_HOME/modules
 
 John
 
  -Original Message-
  From: Claude Coiffier [mailto:[EMAIL PROTECTED]]
  Sent: Friday, September 06, 2002 9:03 AM
  To: 'Tomcat Users List' (E-mail)
  Subject: Apache 2.0 and Tomcat 4.0.4 - Compiling mod_jk problem
 
 
  Hi,
 
  I'm working with Apache 2.0 and Tomcat 4.0.4,
  I've been trying to execute build-unix.sh to compile mod_jk
  under Linux, and
  I get the following error :
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




mod_jk problem

2002-07-25 Thread Andrew

Hi,

I'm installing mod_jk for apache1.3.24 and tomcat4.0.4.  I received the
following error under mod_jk.log when I try to access the JSP examples
without going through port 8080.

[Thu Jul 25 13:12:13 2002]  [jk_ajp_common.c (1013)]: Error reading reply
[Thu Jul 25 13:12:13 2002]  [jk_ajp_common.c (1150)]: In
jk_endpoint_t::service, ajp_get_reply failed in send loop 0
[Thu Jul 25 13:12:13 2002]  [jk_connect.c (151)]: jk_open_socket, connect()
failed errno = 146
[Thu Jul 25 13:12:13 2002]  [jk_ajp_common.c (599)]: In
jk_endpoint_t::ajp_connect_to_endpoint, failed errno = 146
[Thu Jul 25 13:12:13 2002]  [jk_ajp_common.c (844)]: Error connecting to the
Tomcat process.
[Thu Jul 25 13:12:13 2002]  [jk_ajp_common.c (1153)]: In
jk_endpoint_t::service, ajp_send_request failed in send loop 1
[Thu Jul 25 13:12:13 2002]  [jk_connect.c (151)]: jk_open_socket, connect()
failed errno = 146
[Thu Jul 25 13:12:13 2002]  [jk_ajp_common.c (599)]: In
jk_endpoint_t::ajp_connect_to_endpoint, failed errno = 146
[Thu Jul 25 13:12:13 2002]  [jk_ajp_common.c (844)]: Error connecting to the
Tomcat process.
[Thu Jul 25 13:12:13 2002]  [jk_ajp_common.c (1153)]: In
jk_endpoint_t::service, ajp_send_request failed in send loop 2


Any clue?

Andrew


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: mod_jk problem

2002-07-25 Thread Eddie Bush

Check out ubeans.com/tomcat - compare what you have with what they have. 
 Your versions are close enough you should be able to detect the problem 
by doing that.

Andrew wrote:

Hi,

I'm installing mod_jk for apache1.3.24 and tomcat4.0.4.  I received the
following error under mod_jk.log when I try to access the JSP examples
without going through port 8080.

[Thu Jul 25 13:12:13 2002]  [jk_ajp_common.c (1013)]: Error reading reply
[Thu Jul 25 13:12:13 2002]  [jk_ajp_common.c (1150)]: In
jk_endpoint_t::service, ajp_get_reply failed in send loop 0
[Thu Jul 25 13:12:13 2002]  [jk_connect.c (151)]: jk_open_socket, connect()
failed errno = 146
[Thu Jul 25 13:12:13 2002]  [jk_ajp_common.c (599)]: In
jk_endpoint_t::ajp_connect_to_endpoint, failed errno = 146
[Thu Jul 25 13:12:13 2002]  [jk_ajp_common.c (844)]: Error connecting to the
Tomcat process.
[Thu Jul 25 13:12:13 2002]  [jk_ajp_common.c (1153)]: In
jk_endpoint_t::service, ajp_send_request failed in send loop 1
[Thu Jul 25 13:12:13 2002]  [jk_connect.c (151)]: jk_open_socket, connect()
failed errno = 146
[Thu Jul 25 13:12:13 2002]  [jk_ajp_common.c (599)]: In
jk_endpoint_t::ajp_connect_to_endpoint, failed errno = 146
[Thu Jul 25 13:12:13 2002]  [jk_ajp_common.c (844)]: Error connecting to the
Tomcat process.
[Thu Jul 25 13:12:13 2002]  [jk_ajp_common.c (1153)]: In
jk_endpoint_t::service, ajp_send_request failed in send loop 2


Any clue?

Andrew


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: mod_jk problem

2002-07-25 Thread Andrew

sorry I have checked out www.ubeans.com/tomcat but it doesn't seem to help
much.  The same configuration works on Redhat Linux but not on my solaris
box.

-Original Message-
From: Eddie Bush [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 25, 2002 2:28 PM
To: Tomcat Users List
Subject: Re: mod_jk problem


Check out ubeans.com/tomcat - compare what you have with what they have.
 Your versions are close enough you should be able to detect the problem
by doing that.

Andrew wrote:

Hi,

I'm installing mod_jk for apache1.3.24 and tomcat4.0.4.  I received the
following error under mod_jk.log when I try to access the JSP examples
without going through port 8080.

[Thu Jul 25 13:12:13 2002]  [jk_ajp_common.c (1013)]: Error reading reply
[Thu Jul 25 13:12:13 2002]  [jk_ajp_common.c (1150)]: In
jk_endpoint_t::service, ajp_get_reply failed in send loop 0
[Thu Jul 25 13:12:13 2002]  [jk_connect.c (151)]: jk_open_socket, connect()
failed errno = 146
[Thu Jul 25 13:12:13 2002]  [jk_ajp_common.c (599)]: In
jk_endpoint_t::ajp_connect_to_endpoint, failed errno = 146
[Thu Jul 25 13:12:13 2002]  [jk_ajp_common.c (844)]: Error connecting to
the
Tomcat process.
[Thu Jul 25 13:12:13 2002]  [jk_ajp_common.c (1153)]: In
jk_endpoint_t::service, ajp_send_request failed in send loop 1
[Thu Jul 25 13:12:13 2002]  [jk_connect.c (151)]: jk_open_socket, connect()
failed errno = 146
[Thu Jul 25 13:12:13 2002]  [jk_ajp_common.c (599)]: In
jk_endpoint_t::ajp_connect_to_endpoint, failed errno = 146
[Thu Jul 25 13:12:13 2002]  [jk_ajp_common.c (844)]: Error connecting to
the
Tomcat process.
[Thu Jul 25 13:12:13 2002]  [jk_ajp_common.c (1153)]: In
jk_endpoint_t::service, ajp_send_request failed in send loop 2


Any clue?

Andrew


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]




--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: mod_jk problem

2002-07-25 Thread Eddie Bush

Oh, dang :-/  Sorry, but - that's how I went about it.  I finally got 
mine knocked together enough I could continue development of my app - 
and that's what I've been doing.  I haven't had an opportunity yet to 
dig into any particulars.  Hopefully someone that knows more will 
respond - but I wouldn't hold my breath.  Questions of this sort don't 
seem to get answered as often as they should - at least, they didn't 
when I was asking them.

... maybe try to compile your own copy of mod_jk.so - that'd be my best 
guess on what the difference is.  I can't see why config should change 
over OS platform, but I honestly do not know.

Best Luck! (I mean that)

Eddie

Andrew wrote:

sorry I have checked out www.ubeans.com/tomcat but it doesn't seem to help
much.  The same configuration works on Redhat Linux but not on my solaris
box.




--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




mod_jk problem == Invalid command 'JkMount'?

2002-07-23 Thread mpauley

Hi,

I'm  trying  to get Tomcat 4 running with Apache 1.3 on Linux (RedHat 7.3).
I  have  followed the configuration instructions at
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/ajp.html and
http://www.galatea.com/flashguides/apache-tomcat-4-unix.xml  on  how  to do
this.   From  what  I  can  tell,  tomcat  is  running  correctly  with the
modifications  I  have made (no errors on restart).  However, when I try to
restart  Apache  (or  use  apachectl configtest), I get the following error
message:

Syntax error on line 1260 of /etc/httpd/conf/httpd.conf:
Invalid  command  'JkMount', perhaps mis-spelled or defined by a module not
included in the server configuration

Line 1260 of httpd.conf is the fifth line of the following:

VirtualHost 137.48.138.201
ServerName bioinformatics.ist.unomaha.edu
ServerAlias bioinformatics.unomaha.edu
DocumentRoot /bioinformatics/webapps
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
DirectoryIndex index.jsp index.html
/VirtualHost

I  have  no  idea how to fix this as JkMount is indeed spelled correctly.
Any help in resolving this would be greatly appreciated.

Another question, if you have time.
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/ajp.html   indicates
that  you  need  to  load  the  mod_jk  module  in http.conf using both the
LoadModule and AddModule directives; e.g.,
LoadModule jk_module libexec/mod_jk.so
AddModule mod_jk.c

When  I  try  to  restart  Apache,  this  gives me a warning (someone about
mod_jk.c  already being loaded) which goes away when I remove the AddModule
line.  Is just having LoadModule sufficient?

Mark


Mark A. Pauley
College of Information Science  Technology, UNO
Omaha, NE 68182-0116
e-mail:  [EMAIL PROTECTED]
phone:  (402) 554-4954  fax:  (402) 554-3284




--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: mod_jk problem == Invalid command 'JkMount'?

2002-07-23 Thread Mark Pelillo

To answer your second question, I don't believe you need the AddModule
line.  I ran into the same problem, but when I deleted the line it
worked great.  The only thing you have to be carefully of is the order
in which the modules are loaded.  FYI if you are going to use PHP4.2.1
and mod_jk/mod_jk2, the php has to added last.  Don't ask me why, but it
took me a week and about two dozen compile to figure it out.


On Tue, 2002-07-23 at 16:31, [EMAIL PROTECTED] wrote:
 Hi,
 
 I'm  trying  to get Tomcat 4 running with Apache 1.3 on Linux (RedHat 7.3).
 I  have  followed the configuration instructions at
 http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/ajp.html and
 http://www.galatea.com/flashguides/apache-tomcat-4-unix.xml  on  how  to do
 this.   From  what  I  can  tell,  tomcat  is  running  correctly  with the
 modifications  I  have made (no errors on restart).  However, when I try to
 restart  Apache  (or  use  apachectl configtest), I get the following error
 message:
 
 Syntax error on line 1260 of /etc/httpd/conf/httpd.conf:
 Invalid  command  'JkMount', perhaps mis-spelled or defined by a module not
 included in the server configuration
 
 Line 1260 of httpd.conf is the fifth line of the following:
 
 VirtualHost 137.48.138.201
 ServerName bioinformatics.ist.unomaha.edu
 ServerAlias bioinformatics.unomaha.edu
 DocumentRoot /bioinformatics/webapps
 JkMount /*.jsp ajp13
 JkMount /servlet/* ajp13
 DirectoryIndex index.jsp index.html
 /VirtualHost
 
 I  have  no  idea how to fix this as JkMount is indeed spelled correctly.
 Any help in resolving this would be greatly appreciated.
 
 Another question, if you have time.
 http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/ajp.html   indicates
 that  you  need  to  load  the  mod_jk  module  in http.conf using both the
 LoadModule and AddModule directives; e.g.,
 LoadModule jk_module libexec/mod_jk.so
 AddModule mod_jk.c
 
 When  I  try  to  restart  Apache,  this  gives me a warning (someone about
 mod_jk.c  already being loaded) which goes away when I remove the AddModule
 line.  Is just having LoadModule sufficient?
 
 Mark
 
 
 Mark A. Pauley
 College of Information Science  Technology, UNO
 Omaha, NE 68182-0116
 e-mail:  [EMAIL PROTECTED]
 phone:  (402) 554-4954  fax:  (402) 554-3284
 
 
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: mod_jk problem

2002-07-10 Thread David Mossakowski

About that 'load-balanced Tomcat'...

Are you load balancing them through an Apache connector (the mod_jk this 
thread is about)?

Is it possible to use the catalina HTTPConnector?  I suppose it would 
require telling HTTPConnector that there are multiple instances of 
Tomcat right?  WOuld that be the Tomcat workers stuff?

I'm conisdering using standalone Tomcat in load balanced, https 
environment and would really appreciate any suggestions on this.

How is Tomcat's SSL performance?

Thanks,
d.

Eddie Bush wrote:
 Oh - I was going to add that I'm trying to set up http - https 
 redirection, and it's anything but obvious to me how I should go about 
 it.  I think I could probably set up a load-balanced Tomcat pretty 
 easily, but I _cannot_ seem to figure out how I should do the http/https 
 thing.  If you have seen any resources on doing such a thing, I'd really 
 appreciate your sending them my way.
 
 Thanks!
 
 Eddie
 
 STEVE R BURRUS wrote:
 
 Hello, I am Steve Burrus and I am 1 of your fellow Tomcat Server 
 users, and I was
 wondering if you would kindly email me the link to access the 
 mod_jk.dll file
 which allows one to connect the Apache 2.* HTTP Server with the 
 Tomcat 4.*
 Server. And, in your response to me, you might also throw in some 
 info on how
 you use the directives in Apache's configuration file!!

 
 
 
 -- 
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 
 
 


-- 
David Mossakowski  [EMAIL PROTECTED]
Instinet Corporation 212.310.7275



***
Disclaimer

This message is intended only for the use of the Addressee and 
may contain information that is PRIVILEGED and/or
CONFIDENTIAL or both.

This email is intended only for the personal and confidential use
of the recipient(s) named above.

If the reader of this email is not an intended recipient, you have
received this email in error and any review, dissemination,
distribution or copying is strictly prohibited.

If you have received this email in error, please notify the sender
immediately by return mail and permanently deleting the copy
you received.

Thank you.

***


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: mod_jk problem

2002-07-10 Thread Eddie Bush

You've successfully stumped me.  Don't feel as though it is a great 
accomplishment though ;-)  Every time I feel I nearly have my mind 
around this stuff, I realize another aspect that I am clueless about.

My inference is that people who want to load-balance use mod_jk.  Using 
mod_jk (to me) is indicative of Apache + Tomcat.  You want to do 
standalone.  If you're willing to install Apache to get load-balancing 
going, then check out http://www.ubeans.com/tomcat/.  That was my 
guide to making mod_jk work for me.  You should be able to gleen a 
lot of information out of that.  If you're insistent on doing 
standalone, I wish you the best luck!

So far as Tomcat's SSL performance goes - I have done no benchmarks. 
 In fact, I don't use TC for SSL.  What I do is use Apache to serve 
static content and handle SSL translation for me.  I haven't messed 
with the SSL stuff yet at all since I upgraded the OS on my dev box, but 
that is not far down the road (I wanted to be sure I had the basics 
before I added bells  whistles).  Apache (mod_ssl) will do it though 
- not Tomcat.  I did have SSL going just fine on the previous box - it 
wasn't that bad at all.  Apache came to me with mod_ssl installed and 
there were only minor modifications to make to get it working.

I haven't decided yet if redirection works - I've been having some 
issues this morning that required my attention and haven't really gotten 
to actually do any dvel work yet today.  Hopefully I will get to it 
after lunch... or during lunch *contemplates ordering in*  If it's as 
easy as I'm lead to believe from looking over the old TC 3.3 stuff it's 
basically transparent.  I don't really see how this could be, but maybe 
I'm wrong.  It would be really nice if we had the quality of 
documentation for TC 4.* as (apparantly) exists for TC 3.*.  I think, 
were that the case, this list would see a huge reduction in the number 
of VERY confused people (put me in that group, please) that post.  Isn't 
this fun?!

Hopefully my ramblings are of some use to you.  If the ubeans site 
walk-through doesn't cure your ills, let me know.  I will eventually 
(a ways down the road, I think) be doing load-balancing.  I could always 
(try to) set up load-balancing here on the dvel box and try to make it go.

I too would really appreciate some help on this LOL - but apparantly 
nobody knows how or cares to.  Hopefully you, Steve, and myself can work 
this out!

Regards,

Eddie

David Mossakowski wrote:

 About that 'load-balanced Tomcat'...

 Are you load balancing them through an Apache connector (the mod_jk 
 this thread is about)?

 Is it possible to use the catalina HTTPConnector?  I suppose it would 
 require telling HTTPConnector that there are multiple instances of 
 Tomcat right?  WOuld that be the Tomcat workers stuff?

 I'm conisdering using standalone Tomcat in load balanced, https 
 environment and would really appreciate any suggestions on this.

 How is Tomcat's SSL performance?

 Thanks,
 d. 




--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: mod_jk problem

2002-07-10 Thread Eddie Bush

You peaked my interest.  I did some digging.  I see no mention of doing 
load-balancing that does not include Apache.  There are other ways:

DNS Load Balancing (affinity not guaranteed - dead server = bad requests)
Clustering (better - but SSL geeks affinity)

As it happens, you can wire a hardware SSL-decoder in front of your 
cluster-manager and overcome the shortcomings of that approach.  I think 
the best solution is Apache + Tomcat though.  It's undoubtedly 
cheaper/easier.  So - you ready to install Apache yet?  Breeze over to 
the Oreilly site and look for Apache Wrangler and something called 
LAMP.  You'll find an article that will point you to a script that will 
download/install Apache + SSL (it even pre-configures it for you - 
whatever that means).  If you have the option of using RPMs, I'd go with 
that option though.  RPM == good (IMHO).

HTH,

Eddie

David Mossakowski wrote:

 About that 'load-balanced Tomcat'...

 Are you load balancing them through an Apache connector (the mod_jk 
 this thread is about)?

 Is it possible to use the catalina HTTPConnector?  I suppose it would 
 require telling HTTPConnector that there are multiple instances of 
 Tomcat right?  WOuld that be the Tomcat workers stuff?

 I'm conisdering using standalone Tomcat in load balanced, https 
 environment and would really appreciate any suggestions on this.

 How is Tomcat's SSL performance?

 Thanks,
 d. 




--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: mod_jk problem

2002-07-10 Thread Craig R. McClanahan



On Wed, 10 Jul 2002, Eddie Bush wrote:

 Date: Wed, 10 Jul 2002 13:38:04 -0500
 From: Eddie Bush [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: Re: mod_jk problem

 You peaked my interest.  I did some digging.  I see no mention of doing
 load-balancing that does not include Apache.  There are other ways:

 DNS Load Balancing (affinity not guaranteed - dead server = bad requests)
 Clustering (better - but SSL geeks affinity)

 As it happens, you can wire a hardware SSL-decoder in front of your
 cluster-manager and overcome the shortcomings of that approach.  I think
 the best solution is Apache + Tomcat though.  It's undoubtedly
 cheaper/easier.  So - you ready to install Apache yet?  Breeze over to
 the Oreilly site and look for Apache Wrangler and something called
 LAMP.  You'll find an article that will point you to a script that will
 download/install Apache + SSL (it even pre-configures it for you -
 whatever that means).  If you have the option of using RPMs, I'd go with
 that option though.  RPM == good (IMHO).


One thing you will need to ensure is that your load balancing solution
routes all requests for the same session back to the same Tomcat instance
(like the balancing through Apache does).

 HTH,

 Eddie

Craig


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: mod_jk problem

2002-07-10 Thread Eddie Bush

Yep - that's why I mentioned that as the favorable solution hehe - I 
guess I should have clearified.  Whereas you've probably (had the joy of 
having) implemented this, I just read about it.  Hey, by the way, Craig 
- have you followed my struggle at all?  How would _you_ suggest I 
implement http/https and redirects back and forth under Tomcat + Apache 
+ mod_jk?  I'd love a tip or two =)  I trust your word a great deal.

Thanks,

Eddie

Craig R. McClanahan wrote:


On Wed, 10 Jul 2002, Eddie Bush wrote:

You peaked my interest.  I did some digging.  I see no mention of doing
load-balancing that does not include Apache.  There are other ways:

DNS Load Balancing (affinity not guaranteed - dead server = bad requests)
Clustering (better - but SSL geeks affinity)

As it happens, you can wire a hardware SSL-decoder in front of your
cluster-manager and overcome the shortcomings of that approach.  I think
the best solution is Apache + Tomcat though.  It's undoubtedly
cheaper/easier.  So - you ready to install Apache yet?  Breeze over to
the Oreilly site and look for Apache Wrangler and something called
LAMP.  You'll find an article that will point you to a script that will
download/install Apache + SSL (it even pre-configures it for you -
whatever that means).  If you have the option of using RPMs, I'd go with
that option though.  RPM == good (IMHO).

One thing you will need to ensure is that your load balancing solution
routes all requests for the same session back to the same Tomcat instance
(like the balancing through Apache does).

HTH,

Eddie


Craig



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




  1   2   >