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  line in my
server.xml (in  definition):

www.mydomain.com
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]


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  line in my
server.xml (in  definition):

  
www.mydomain.com 

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-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-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]


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

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  declaration:
> 
>  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"/>
> 
> 
>port="8009" minProcessors="5" maxProcessors="75"
> acceptCount="10" debug="0"/>
> 
> 
>   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:
> 
> 
>   LoadModule jk_module C:/Program Files/Apache  
> Group/Apache2/modules/mod_jk-1.3.27.dll
> 
> 
> 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]>




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  declaration:
>

>  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.

>
> 
>  port="8009" minProcessors="5" maxProcessors="75"
> acceptCount="10" debug="0"/>
I use the Coyote/JK2 AJP 1.3 Connector and set to port 8009

>
> 
>   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:
>
> 
>   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.
> 
>
> 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]>


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  declaration:

   
   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"/>

   
   
	port="8009" minProcessors="5" maxProcessors="75"
   acceptCount="10" debug="0"/>

   
 
  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:

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

   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:   
For additional commands, e-mail: