mod_webapp config problem

2003-02-27 Thread Selvaraj N
Hi,

I am experiencing problems in configuring webapp with Apache 1.3.26 and
Tomcat 4.0.3.

httpd.conf
---
LoadModule webapp_module libexec/mod_webapp.so
WebAppConnection warpConnection warp localhost:8008
WebAppDeploy examples warpConnection /examples/


Tomcat starts fine and listens at the configured port - 8008. When the
Apache server is started I get the following error message.

Syntax error on line 1416 of /opt/apache/conf/httpd.conf:
Invalid virtual host name
/opt/apache/bin/apachectl start: httpd could not be started


Line number 1416 is . WebAppDeploy examples warpConnection /examples/

Please note that the same Apache+Tomcat setup works fine with the mod_jk
module and I could access examples application.

Please correct me if I am missing anything in webapp configuration.

Regards,
Selva


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



tomcat-apache mod_webapp config problem

2002-03-18 Thread matt


I'm running Tomcat 4.0.3 and Apache 1.3.23 on Red Hat 7.2. Tomcat is set up correctly 
and is running on port 8080. Port 8008 is set up for use by the Tomcat WARP connector 
and requests to this port generate an error in the apache_log.txt file. Unfortunately, 
Apache doesn't talk to this port. I've installed mod_webapp.so in the /libexec 
directory. I'm trying to set this up with a virtual host. I do not have a ServerName 
defined outside any vitual host block, but adding one doesn't seem to help matters. 
Here are the relevant portions of my httpd.conf

LoadModule webapp_module  libexec/mod_webapp.so
(...)
AddModule mod_webapp.c
(...)

NameVirtualHost yyy.yyy.yyy.yyy:8000
NameVirtualHost yyy.yyy.yyy.yyy


WebAppConnection webapp_conn warp mydomain.com:8008
WebAppInfo /webapp-info



ServerName www.myotherdomain.com
WebAppDeploy myWebapp webapp_conn /
WebAppDeploy examples webapp_conn /examples


The only change I've made to Tomcat's server.xml file is the addition of the virtual 
host settings for www.myotherdomain.com.

Any ideas what I'm doing wrong here?

Thanks,
Matt Belcher








--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: mod_webapp config

2001-12-13 Thread JStanczak


Never mind. I didn't see the directions that you sent later.


Thank You,

Justin A. Stanczak
Web Manager
Shake Learning Resource Center
Vincennes University
(812)888-5813


   
   
Mike Kelley
   
<[EMAIL PROTECTED]   To: "'Tomcat Users List'" 
<[EMAIL PROTECTED]>   
OM>  cc:   
   
         Subject: RE: mod_webapp config
   
12/04/2001 
   
05:00 PM   
   
Please respond 
   
to "Tomcat 
   
Users List"
   
   
   
   
   




I gave up also  I followed the steps set by a few others to use Mod_jk
. Works wonderfully  If you would like me to forward the steps just
let me know 




-Original Message-
From: vendo [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 2:20 PM
To: Tomcat Users List
Subject: Re: mod_webapp config


yes, sorry, but for sure, mod_webapp at least doesn't work on win95, even
with all the suggestions I kindly got from this list. I give up too. Vendo

- Original Message -
From: "Endre Stølsvik" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, December 04, 2001 8:53 AM
Subject: Re: mod_webapp config


> On Tue, 4 Dec 2001, hanzo wrote:
>
> |
> | - Original Message -
> | From: "William Tansill" <[EMAIL PROTECTED]>
> | To: "Tomcat Users List" <[EMAIL PROTECTED]>
> | Sent: Monday, December 03, 2001 1:15 AM
> | Subject: RE: mod_webapp config
> |
> |
> | > My guess is that if you want to create and run your own JSP's, you
will need
> | > to install them per the standard deployment mechanism, update
server.xml to
> | > reflect the new deployment context, and then restart Tomcat.  At
> | > least
those
> | > are the steps I'm planning on taking when I get an example up and
running.
> | > If you get your stuff working first, write back to the group and
> | > let
me know
> | > how you did it.  Thanks!
> |
> | I give up using mod_webapp.. mod_rewrite is -a lot easier-
>
> That is just such a cool idea! :) Just f*** that whole stupid
>
mod_shitty_connectors_stuff_won't_ever_work_stable_anyway_because_noone_take

s_-
> responsibility_even_though_both_projects_are_apache_and_it's_such_a_-
> blantantly_needed_piece_of_software.so and just go for something
> that'll rewrite the whole URL!
>
> Great idea! Really! ;)
>
> But I guess you loose a bit functionality, e.g. the
> Context|Request|Config.getSomeAttribute() returns the wrong values?
>
>
> --
> Mvh,
> Endre
>
>
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
>


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>






--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




RE: mod_webapp config

2001-12-13 Thread JStanczak


Send me the steps. I'm running a Solaris 8 7/01 Sparc station with apache
and tomcat 4.0.1. I try to use the mod_webapp.so but get errors every time.
I complains that the mod can't be loaded. I'm going to ask the question on
the list again, but I think mod_jk is the only way.


Thank You,

Justin A. Stanczak
Web Manager
Shake Learning Resource Center
Vincennes University
(812)888-5813


   
   
Mike Kelley
   
<[EMAIL PROTECTED]   To: "'Tomcat Users List'" 
<[EMAIL PROTECTED]>   
OM>  cc:   
   
         Subject: RE: mod_webapp config
   
12/04/2001 
   
05:00 PM   
   
Please respond 
   
to "Tomcat 
   
Users List"
   
   
   
   
   




I gave up also  I followed the steps set by a few others to use Mod_jk
. Works wonderfully  If you would like me to forward the steps just
let me know 




-Original Message-
From: vendo [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 2:20 PM
To: Tomcat Users List
Subject: Re: mod_webapp config


yes, sorry, but for sure, mod_webapp at least doesn't work on win95, even
with all the suggestions I kindly got from this list. I give up too. Vendo

- Original Message -
From: "Endre Stølsvik" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, December 04, 2001 8:53 AM
Subject: Re: mod_webapp config


> On Tue, 4 Dec 2001, hanzo wrote:
>
> |
> | - Original Message -
> | From: "William Tansill" <[EMAIL PROTECTED]>
> | To: "Tomcat Users List" <[EMAIL PROTECTED]>
> | Sent: Monday, December 03, 2001 1:15 AM
> | Subject: RE: mod_webapp config
> |
> |
> | > My guess is that if you want to create and run your own JSP's, you
will need
> | > to install them per the standard deployment mechanism, update
server.xml to
> | > reflect the new deployment context, and then restart Tomcat.  At
> | > least
those
> | > are the steps I'm planning on taking when I get an example up and
running.
> | > If you get your stuff working first, write back to the group and
> | > let
me know
> | > how you did it.  Thanks!
> |
> | I give up using mod_webapp.. mod_rewrite is -a lot easier-
>
> That is just such a cool idea! :) Just f*** that whole stupid
>
mod_shitty_connectors_stuff_won't_ever_work_stable_anyway_because_noone_take

s_-
> responsibility_even_though_both_projects_are_apache_and_it's_such_a_-
> blantantly_needed_piece_of_software.so and just go for something
> that'll rewrite the whole URL!
>
> Great idea! Really! ;)
>
> But I guess you loose a bit functionality, e.g. the
> Context|Request|Config.getSomeAttribute() returns the wrong values?
>
>
> --
> Mvh,
> Endre
>
>
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
>


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>






--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




Re: mod_webapp config

2001-12-06 Thread vendo

Hi Mike
I'm encountering a few pb with mo_jk, but at least Apache httpd is starting
without any pb.
When I request http://localhost:8009, I get this error message in tomcat4

00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  | 
java.lang.ArrayIndexOutOfBoundsException
at org.apache.ajp.Ajp13Packet.hexLine(Ajp13Packet.java:521)
at org.apache.ajp.Ajp13Packet.dump(Ajp13Packet.java:539)
at org.apache.ajp.Ajp13Packet.checkIn(Ajp13Packet.java:193)
at org.apache.ajp.Ajp13.receive(Ajp13.java:914)
at org.apache.ajp.Ajp13.receiveNextRequest(Ajp13.java:296)
at
org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:339
)
at
org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:424)
at java.lang.Thread.run(Unknown Source)
=

I guess there is something wrong somewhere:
(I got the same result with all the lines about webinf ...)

here is what I've added to httpd.conf
# Tomcat 4.0 WebApp Connector

# Tomcat 4.0 AJP13 Connector
LoadModule jk_module modules/mod_jk.dll

JkWorkersFile "G:/Tomcat/conf/workers.properties"
JkLogFile "G:/Tomcat/logs/mod_jk.log"

#
# Log level to be used by mod_jk
#
JkLogLevel error

#
# Root context mounts for Tomcat
#
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13

"
And I've added the correct lines in the properties file.

If you have any idea about what is going wrong...

Vendo
- Original Message -
From: "Mike Kelley" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Tuesday, December 04, 2001 11:00 PM
Subject: RE: mod_webapp config


I gave up also  I followed the steps set by a few others to use Mod_jk
. Works wonderfully  If you would like me to forward the steps just
let me know 




-Original Message-
From: vendo [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 2:20 PM
To: Tomcat Users List
Subject: Re: mod_webapp config


yes, sorry, but for sure, mod_webapp at least doesn't work on win95, even
with all the suggestions I kindly got from this list. I give up too. Vendo

- Original Message -
From: "Endre Stølsvik" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, December 04, 2001 8:53 AM
Subject: Re: mod_webapp config


> On Tue, 4 Dec 2001, hanzo wrote:
>
> |
> | - Original Message -
> | From: "William Tansill" <[EMAIL PROTECTED]>
> | To: "Tomcat Users List" <[EMAIL PROTECTED]>
> | Sent: Monday, December 03, 2001 1:15 AM
> | Subject: RE: mod_webapp config
> |
> |
> | > My guess is that if you want to create and run your own JSP's, you
will need
> | > to install them per the standard deployment mechanism, update
server.xml to
> | > reflect the new deployment context, and then restart Tomcat.  At
> | > least
those
> | > are the steps I'm planning on taking when I get an example up and
running.
> | > If you get your stuff working first, write back to the group and
> | > let
me know
> | > how you did it.  Thanks!
> |
> | I give up using mod_webapp.. mod_rewrite is -a lot easier-
>
> That is just such a cool idea! :) Just f*** that whole stupid
>
mod_shitty_connectors_stuff_won't_ever_work_stable_anyway_because_noone_take
s_-
> responsibility_even_though_both_projects_are_apache_and_it's_such_a_-
> blantantly_needed_piece_of_software.so and just go for something
> that'll rewrite the whole URL!
>
> Great idea! Really! ;)
>
> But I guess you loose a bit functionality, e.g. the
> Context|Request|Config.getSomeAttribute() returns the wrong values?
>
>
> --
> Mvh,
> Endre
>
>
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
>


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>



--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




Re: mod_webapp config

2001-12-05 Thread vendo

Thanks a lot
I've seen a few pages, mainly about ajp13, I don't really know what it is.
I'd appreciate if you could send me a few notes on how I should install
mod_jk on Tomcat4 for Apache1.3.22 on win95.

Thanks by advance.
Vendo

- Original Message -
From: "Mike Kelley" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Tuesday, December 04, 2001 11:00 PM
Subject: RE: mod_webapp config


I gave up also  I followed the steps set by a few others to use Mod_jk
. Works wonderfully  If you would like me to forward the steps just
let me know 




-Original Message-
From: vendo [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 2:20 PM
To: Tomcat Users List
Subject: Re: mod_webapp config


yes, sorry, but for sure, mod_webapp at least doesn't work on win95, even
with all the suggestions I kindly got from this list. I give up too. Vendo

- Original Message -
From: "Endre Stølsvik" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, December 04, 2001 8:53 AM
Subject: Re: mod_webapp config


> On Tue, 4 Dec 2001, hanzo wrote:
>
> |
> | - Original Message -
> | From: "William Tansill" <[EMAIL PROTECTED]>
> | To: "Tomcat Users List" <[EMAIL PROTECTED]>
> | Sent: Monday, December 03, 2001 1:15 AM
> | Subject: RE: mod_webapp config
> |
> |
> | > My guess is that if you want to create and run your own JSP's, you
will need
> | > to install them per the standard deployment mechanism, update
server.xml to
> | > reflect the new deployment context, and then restart Tomcat.  At
> | > least
those
> | > are the steps I'm planning on taking when I get an example up and
running.
> | > If you get your stuff working first, write back to the group and
> | > let
me know
> | > how you did it.  Thanks!
> |
> | I give up using mod_webapp.. mod_rewrite is -a lot easier-
>
> That is just such a cool idea! :) Just f*** that whole stupid
>
mod_shitty_connectors_stuff_won't_ever_work_stable_anyway_because_noone_take
s_-
> responsibility_even_though_both_projects_are_apache_and_it's_such_a_-
> blantantly_needed_piece_of_software.so and just go for something
> that'll rewrite the whole URL!
>
> Great idea! Really! ;)
>
> But I guess you loose a bit functionality, e.g. the
> Context|Request|Config.getSomeAttribute() returns the wrong values?
>
>
> --
> Mvh,
> Endre
>
>
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
>


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>



--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




Re: mod_webapp config

2001-12-04 Thread hanzo

mod_webapp turned out to be quite easy to set up... (if we had decent docs and
tutorials) *sigh*

this is a Apache virtual host setting...


ServerAlias my
ServerName my.domain


WebAppConnection TestConn warp my.domain:8008
WebAppDeploy test TestConn /


DocumentRoot C:/Program Files/Apache Tomcat 4.0/webapps/test

ErrorLog logs/my-error.log
CustomLog logs/my-access.log common



then you can save below example as index.jsp in "C:/Program Files/Apache Tomcat
4.0/webapps/test"

<%@ page language="Java" %>


JSP Request Method: <%= request.getMethod() %>
Date: <%= new java.util.Date() %>



Go to http://my.domain from your web browser...

The reason why I cant get it working in the first place is the WebAppDeploy
directive.
If you want jsp pages on your root dir then the last parameter should be "/"
like the above examples
If you set it to.. lets say "/test/" then you should point your browser to
http://my.domain/test
I hope this will end a lot of confusion..




--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: mod_webapp config

2001-12-04 Thread Mike Kelley

I gave up also  I followed the steps set by a few others to use Mod_jk
. Works wonderfully  If you would like me to forward the steps just
let me know 




-Original Message-
From: vendo [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, December 04, 2001 2:20 PM
To: Tomcat Users List
Subject: Re: mod_webapp config


yes, sorry, but for sure, mod_webapp at least doesn't work on win95, even
with all the suggestions I kindly got from this list. I give up too. Vendo

- Original Message -
From: "Endre Stølsvik" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, December 04, 2001 8:53 AM
Subject: Re: mod_webapp config


> On Tue, 4 Dec 2001, hanzo wrote:
>
> |
> | - Original Message -
> | From: "William Tansill" <[EMAIL PROTECTED]>
> | To: "Tomcat Users List" <[EMAIL PROTECTED]>
> | Sent: Monday, December 03, 2001 1:15 AM
> | Subject: RE: mod_webapp config
> |
> |
> | > My guess is that if you want to create and run your own JSP's, you
will need
> | > to install them per the standard deployment mechanism, update
server.xml to
> | > reflect the new deployment context, and then restart Tomcat.  At 
> | > least
those
> | > are the steps I'm planning on taking when I get an example up and
running.
> | > If you get your stuff working first, write back to the group and 
> | > let
me know
> | > how you did it.  Thanks!
> |
> | I give up using mod_webapp.. mod_rewrite is -a lot easier-
>
> That is just such a cool idea! :) Just f*** that whole stupid
>
mod_shitty_connectors_stuff_won't_ever_work_stable_anyway_because_noone_take
s_-
> responsibility_even_though_both_projects_are_apache_and_it's_such_a_-
> blantantly_needed_piece_of_software.so and just go for something 
> that'll rewrite the whole URL!
>
> Great idea! Really! ;)
>
> But I guess you loose a bit functionality, e.g. the
> Context|Request|Config.getSomeAttribute() returns the wrong values?
>
>
> --
> Mvh,
> Endre
>
>
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
>


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




Re: mod_webapp config

2001-12-04 Thread vendo

yes, sorry, but for sure, mod_webapp at least doesn't work on win95, even
with all the suggestions I kindly got from this list.
I give up too.
Vendo

- Original Message -
From: "Endre Stølsvik" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, December 04, 2001 8:53 AM
Subject: Re: mod_webapp config


> On Tue, 4 Dec 2001, hanzo wrote:
>
> |
> | - Original Message -
> | From: "William Tansill" <[EMAIL PROTECTED]>
> | To: "Tomcat Users List" <[EMAIL PROTECTED]>
> | Sent: Monday, December 03, 2001 1:15 AM
> | Subject: RE: mod_webapp config
> |
> |
> | > My guess is that if you want to create and run your own JSP's, you
will need
> | > to install them per the standard deployment mechanism, update
server.xml to
> | > reflect the new deployment context, and then restart Tomcat.  At least
those
> | > are the steps I'm planning on taking when I get an example up and
running.
> | > If you get your stuff working first, write back to the group and let
me know
> | > how you did it.  Thanks!
> |
> | I give up using mod_webapp.. mod_rewrite is -a lot easier-
>
> That is just such a cool idea! :) Just f*** that whole stupid
>
mod_shitty_connectors_stuff_won't_ever_work_stable_anyway_because_noone_take
s_-
> responsibility_even_though_both_projects_are_apache_and_it's_such_a_-
> blantantly_needed_piece_of_software.so and just go for something that'll
> rewrite the whole URL!
>
> Great idea! Really! ;)
>
> But I guess you loose a bit functionality, e.g. the
> Context|Request|Config.getSomeAttribute() returns the wrong values?
>
>
> --
> Mvh,
> Endre
>
>
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
>


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




Re: mod_webapp config

2001-12-03 Thread Endre Stølsvik

On Tue, 4 Dec 2001, hanzo wrote:

|
| - Original Message -
| From: "William Tansill" <[EMAIL PROTECTED]>
| To: "Tomcat Users List" <[EMAIL PROTECTED]>
| Sent: Monday, December 03, 2001 1:15 AM
| Subject: RE: mod_webapp config
|
|
| > My guess is that if you want to create and run your own JSP's, you will need
| > to install them per the standard deployment mechanism, update server.xml to
| > reflect the new deployment context, and then restart Tomcat.  At least those
| > are the steps I'm planning on taking when I get an example up and running.
| > If you get your stuff working first, write back to the group and let me know
| > how you did it.  Thanks!
|
| I give up using mod_webapp.. mod_rewrite is -a lot easier-

That is just such a cool idea! :) Just f*** that whole stupid
mod_shitty_connectors_stuff_won't_ever_work_stable_anyway_because_noone_takes_-
responsibility_even_though_both_projects_are_apache_and_it's_such_a_-
blantantly_needed_piece_of_software.so and just go for something that'll
rewrite the whole URL!

Great idea! Really! ;)

But I guess you loose a bit functionality, e.g. the
Context|Request|Config.getSomeAttribute() returns the wrong values?


-- 
Mvh,
Endre


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




Re: mod_webapp config

2001-12-03 Thread hanzo


- Original Message - 
From: "William Tansill" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, December 03, 2001 1:15 AM
Subject: RE: mod_webapp config


> My guess is that if you want to create and run your own JSP's, you will need
> to install them per the standard deployment mechanism, update server.xml to
> reflect the new deployment context, and then restart Tomcat.  At least those
> are the steps I'm planning on taking when I get an example up and running.
> If you get your stuff working first, write back to the group and let me know
> how you did it.  Thanks!

I give up using mod_webapp.. mod_rewrite is -a lot easier-


ServerAlias my
ServerName my.domain

RewriteEngine on
RewriteLog "logs/my-rewrite.log"
RewriteLogLevel 1

RewriteCond %{SERVER_PORT} ^80$
RewriteRule ^/(.*) http://my.domain:8080/$1 [L,R]

DocumentRoot C:/Program Files/Apache Tomcat 4.0/webapps/test
DirectoryIndex index.html index.php index.jsp

ErrorLog logs/my-error.log
CustomLog logs/my-access.log common



--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




Re: mod_webapp config

2001-12-02 Thread Nikola Milutinovic

> I've just gotten Tomcat up and talking to Apache, so I'm not certain.  In
> looking at the file server.xml though, I see the following entry:
> 
> 
>   reloadable="true">
> 
> followed by a number of other entries dealing with persistence and such.
> 
> My guess is that if you want to create and run your own JSP's, you will need
> to install them per the standard deployment mechanism, update server.xml to
> reflect the new deployment context, and then restart Tomcat.  At least those
> are the steps I'm planning on taking when I get an example up and running.
> If you get your stuff working first, write back to the group and let me know
> how you did it.  Thanks!

Unlike mod_jk, mod_webapp is not supposed to distinguish serevlets from JSPs. It 
simply installs a handler for a virtual path and all requests made to an URL belonging 
to that path will be forwarded to it's registered Warp connection.

Nix.



Re: mod_webapp config

2001-12-02 Thread Nikola Milutinovic

> > William Tansill wrote:
> >
> > > This is a partial listing of my VHosts section of Apache's httpd.conf file:
> 
> > What does your web.xml look like? I'm having troubles with Tomcat side, I'd
> say.
> > I'm using one of Pier's nightly builds, but I have a nasty feeling it's me
> > screwing something up - Pier's code looks clean on the part that's bugging me.
> 
> What troubles ?

I'm attaching my config file (web.xml) for detailed look.

I have Tomcat with a virtual host defined in "Tomcat-Standalone" service and I have 
also "Warp" service. Standalone works, as defined, but the warp connection refuses to 
deploy. The adiional "spice" to my config is that I'm trying to connect from Apache on 
another host.

The virtual host on Tomcat is "Mercury.ev.co.yu:8080" and it works from browsers. I'm 
trying to connect from Apache on Legba.ev.co.yu. On Legba I have defined ServerName 
(no virtual host on Apache, should I have one?) and my connect in httpd.conf looks 
like this:


ServerName  Legba.ev.co.yu:80
WebAppConnectionTomcat40warpMercury.ev.co.yu:8008
WebAppDeployaddr_book   Tomcat40/addr_book
WebAppDeployaddr_admin  Tomcat40/addr_admin
WebAppDeploytomcat-docs Tomcat40/tomcat-docs


All of these Deploy directives produce an error in Tomcat's log:

2001-11-27 21:22:38 [org.apache.catalina.connector.warp.WarpConfigurationHandler] 
java.lang.IllegalArgumentException: addChild:  Child name 'legba.ev.co.yu' is not 
unique
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java, 
Compiled Code)
at org.apache.catalina.core.StandardEngine.addChild(StandardEngine.java, 
Compiled Code)
at 
org.apache.catalina.connector.warp.WarpConfigurationHandler.deploy(WarpConfigurationHandler.java,
 Compiled Code)
at 
org.apache.catalina.connector.warp.WarpConfigurationHandler.handle(WarpConfigurationHandler.java,
 Compiled Code)
at org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java, 
Compiled Code)
at java.lang.Thread.run(Thread.java:484)

I have looked at the source, the error originates not from Warp, but deeper, from 
Container.addChild(...). Looks like Warp tries to register "Legba.ev.co.yu" twice, but 
I can clearly see it is synchronized on "getContainer", so it couldn't be the 
troublemaker...

Any additional insight? Any unhealthy practices in my approach?

Nix.










  

  
  

























  
  

  
  

  

  

  

  

  

  

  
  




















  
  
  
		  
  
  
  
  
usersa
password
driverClassName
  org.hsql.jdbcDriver
driverName
  jdbc:HypersonicSQL:database
  
  
  

  mail.smtp.host
  localhost

  


  
  
  









  



  

  

  






  
  

  
  
  

  


  





--
To unsubscribe:   
For additional commands: 
Troubles with the list: 


RE: mod_webapp config

2001-12-02 Thread William Tansill

I've just gotten Tomcat up and talking to Apache, so I'm not certain.  In
looking at the file server.xml though, I see the following entry:




followed by a number of other entries dealing with persistence and such.

My guess is that if you want to create and run your own JSP's, you will need
to install them per the standard deployment mechanism, update server.xml to
reflect the new deployment context, and then restart Tomcat.  At least those
are the steps I'm planning on taking when I get an example up and running.
If you get your stuff working first, write back to the group and let me know
how you did it.  Thanks!

-Original Message-
From: hanzo [mailto:[EMAIL PROTECTED]]
Sent: Sunday, December 02, 2001 13:02 PM
To: [EMAIL PROTECTED]
Subject: Re: mod_webapp config


- Original Message -
From: "William Tansill"
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Sunday, December 02, 2001 3:52 AM
Subject: RE: mod_webapp config

Thanks a lot, it works.. now I have _more_ questions ^_^

> This is a partial listing of my VHosts section of Apache's httpd.conf
file:
>
> #
> # Use name-based virtual hosting.
> #
> NameVirtualHost 192.168.123.105
>
> 
>ServerName www.servlets.com
>DocumentRoot "d:/Program Files/Apache Tomcat 4.0/webapps/ROOT/"
>
>WebAppConnection conn warp localhost:8008
>WebAppDeploy examples conn /examples
> 

How can I tell Apache to process jsp files ?
the above config dont process jsp files.. for example.. if I drop index.jsp
into
the /ROOT/ dir, Apache wont process it
Even if I have add DirectoryIndex directives, it just display the file (just
like HTML files), but not 'process' it
The strange thing is if I click on the examples, it works..
Should I modify the config, or I just have to use port 8080 (which I don't
want
to)

Thanks in advance



--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>



--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




RE: mod_webapp config

2001-12-02 Thread William Tansill

I haven't modified server.xml.  I just got Tomcat up and running, and
haven't started any development yet.  Simply adding the VHost and Hosts
entries let me connect to Tomcat and run the examples.  FWIW, I've started
getting ArrayIndexOutOfBounds errors just running some of the Servlet
examples, so all may not be well after all... 

-Original Message-
From: Nikola Milutinovic [mailto:[EMAIL PROTECTED]]
Sent: Sunday, December 02, 2001 12:25 PM
To: Tomcat Users List
Subject: Re: mod_webapp config


William Tansill wrote:

> This is a partial listing of my VHosts section of Apache's httpd.conf
file:
>
> #
> # Use name-based virtual hosting.
> #
> NameVirtualHost 192.168.123.105
>
> 
>ServerName www.servlets.com
>DocumentRoot "d:/Program Files/Apache Tomcat 4.0/webapps/ROOT/"
>
>WebAppConnection conn warp localhost:8008
>WebAppDeploy examples conn /examples
> 

What does your web.xml look like? I'm having troubles with Tomcat side, I'd
say.
I'm using one of Pier's nightly builds, but I have a nasty feeling it's me
screwing something up - Pier's code looks clean on the part that's bugging
me.

Nix.


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>



--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




Re: mod_webapp config

2001-12-02 Thread hanzo

- Original Message -
From: "Nikola Milutinovic" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, December 03, 2001 12:25 AM
Subject: Re: mod_webapp config


> William Tansill wrote:
>
> > This is a partial listing of my VHosts section of Apache's httpd.conf file:

> What does your web.xml look like? I'm having troubles with Tomcat side, I'd
say.
> I'm using one of Pier's nightly builds, but I have a nasty feeling it's me
> screwing something up - Pier's code looks clean on the part that's bugging me.

What troubles ?


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




Re: mod_webapp config

2001-12-02 Thread hanzo

- Original Message -
From: "William Tansill"
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Sunday, December 02, 2001 3:52 AM
Subject: RE: mod_webapp config

Thanks a lot, it works.. now I have _more_ questions ^_^

> This is a partial listing of my VHosts section of Apache's httpd.conf file:
>
> #
> # Use name-based virtual hosting.
> #
> NameVirtualHost 192.168.123.105
>
> 
>ServerName www.servlets.com
>DocumentRoot "d:/Program Files/Apache Tomcat 4.0/webapps/ROOT/"
>
>WebAppConnection conn warp localhost:8008
>WebAppDeploy examples conn /examples
> 

How can I tell Apache to process jsp files ?
the above config dont process jsp files.. for example.. if I drop index.jsp into
the /ROOT/ dir, Apache wont process it
Even if I have add DirectoryIndex directives, it just display the file (just
like HTML files), but not 'process' it
The strange thing is if I click on the examples, it works..
Should I modify the config, or I just have to use port 8080 (which I don't want
to)

Thanks in advance



--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




Re: mod_webapp config

2001-12-02 Thread Nikola Milutinovic

William Tansill wrote:

> This is a partial listing of my VHosts section of Apache's httpd.conf file:
> 
> #
> # Use name-based virtual hosting.
> #
> NameVirtualHost 192.168.123.105
> 
> 
>ServerName www.servlets.com
>DocumentRoot "d:/Program Files/Apache Tomcat 4.0/webapps/ROOT/"
> 
>WebAppConnection conn warp localhost:8008
>WebAppDeploy examples conn /examples
> 

What does your web.xml look like? I'm having troubles with Tomcat side, I'd say. 
I'm using one of Pier's nightly builds, but I have a nasty feeling it's me 
screwing something up - Pier's code looks clean on the part that's bugging me.

Nix.


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: mod_webapp config

2001-12-01 Thread William Tansill

This is a partial listing of my VHosts section of Apache's httpd.conf file:

#
# Use name-based virtual hosting.
#
NameVirtualHost 192.168.123.105


   ServerName www.servlets.com
   DocumentRoot "d:/Program Files/Apache Tomcat 4.0/webapps/ROOT/"

   WebAppConnection conn warp localhost:8008
   WebAppDeploy examples conn /examples


Since this is a LOCAL server for my development, www.servlets.com doesn't
actually exist.  Instead, I've edited my HOSTS file (on Win2k this is
located in c:\winnt\system32\drivers\etc) to add the line:

192.168.123.105  www.servlets.com

If you have DNS up and running, then you'll need to add something similar to
your DNS configuration.

-Original Message-
From: hanzo [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 30, 2001 19:40 PM
To: Tomcat Users List
Subject: mod_webapp config


I'm trying to configure Tomcat 4.01 with Apache 1.3.22 on Win2k
I have installed mod_webapp, but what does it suppose to do ?
What I want is one of the Apache's virtual host will point to Tomcat
so that virtualhost can serve JSPs. (no need to type 8080 port)
But now if I type the vhost url name, it is not redirected by Apache..
Anyone have a solution ?


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>



--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




Re: mod_webapp config

2001-12-01 Thread Gerard van Enk

hanzo wrote:

> I'm trying to configure Tomcat 4.01 with Apache 1.3.22 on Win2k
> I have installed mod_webapp, but what does it suppose to do ?
> What I want is one of the Apache's virtual host will point to Tomcat
> so that virtualhost can serve JSPs. (no need to type 8080 port)
> But now if I type the vhost url name, it is not redirected by Apache..
> Anyone have a solution ?


There's information about virtual hosts in the mod_webapp install doc: 


Maybe this helps.

Gerard





--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




mod_webapp config

2001-11-30 Thread hanzo

I'm trying to configure Tomcat 4.01 with Apache 1.3.22 on Win2k
I have installed mod_webapp, but what does it suppose to do ?
What I want is one of the Apache's virtual host will point to Tomcat
so that virtualhost can serve JSPs. (no need to type 8080 port)
But now if I type the vhost url name, it is not redirected by Apache..
Anyone have a solution ?


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: tomcat 4 mod_webapp config

2001-08-21 Thread Pier P. Fumagalli

[EMAIL PROTECTED] at [EMAIL PROTECTED] wrote:

> Pier --
> 
> The patch works fine for me -- the deploy directive works as expected when
> using a URI of "/"
> 
> I am now seeing some other weirdness.  In $CATALINA_HOME/conf/server.xml,
> this context has a jdbc resource defined with it.  I'm testing access to
> it with a simple jsp which picks up the Context, looks up the resource,
> and casts to a javax.sql.DataSource.  When this context is accessed via
> Tomcat's HTTP server port, it works fine.  When I try to access it via the
> mod_webapp connector via apache, Context.lookup() returns a null
> reference. 
> 
> What's odd is that I tried iterating through what was bound in that
> context, and it does show a reference to the specified resource via tomcat
> http and apache.  It's just that I can't successfully do the lookup() via
> apache.
> 
> I've tried both of the syntaxes (sp?) for specifying a resource-ref in the
> webapp's web.xml suggested by Craig here recently.  Here's what I have
> now:
> 
> 
>   laser datasource
>   jdbc/laser_ds
>   javax.sql.DataSource
> 
> 
> I don't know how the naming context would be different between the two
> setups, unless the Warp connector interferes somehow (I'm not familiar
> with its internals at all)
> 
> I'm stumped.  Any ideas?

Well, it's definitely weird, as WARP uses the same classes of HTTP for
contexts. There shouldn't be any functional difference between the two.

The only thing I can possibly think of is that the two web-application
instances (the one accessed thru HTTP, and the one accessed thru Apache and
WARP) are different, they are _NOT_ the same instance... And this might
create some problems (but I don't think so)...

Craig, any hint?

Pier




Re: tomcat 4 mod_webapp config

2001-08-21 Thread VASQUEZ_JASON

Pier --

The patch works fine for me -- the deploy directive works as expected when 
using a URI of "/"

I am now seeing some other weirdness.  In $CATALINA_HOME/conf/server.xml, 
this context has a jdbc resource defined with it.  I'm testing access to 
it with a simple jsp which picks up the Context, looks up the resource, 
and casts to a javax.sql.DataSource.  When this context is accessed via 
Tomcat's HTTP server port, it works fine.  When I try to access it via the 
mod_webapp connector via apache, Context.lookup() returns a null 
reference. 

What's odd is that I tried iterating through what was bound in that 
context, and it does show a reference to the specified resource via tomcat 
http and apache.  It's just that I can't successfully do the lookup() via 
apache.

I've tried both of the syntaxes (sp?) for specifying a resource-ref in the 
webapp's web.xml suggested by Craig here recently.  Here's what I have 
now:

  
laser datasource
jdbc/laser_ds
javax.sql.DataSource
  

I don't know how the naming context would be different between the two 
setups, unless the Warp connector interferes somehow (I'm not familiar 
with its internals at all)

I'm stumped.  Any ideas?

-jason






"Pier P. Fumagalli" <[EMAIL PROTECTED]>
08/21/2001 09:00 AM
Please respond to tomcat-user

 
    To:     [EMAIL PROTECTED]
cc: 
Subject:Re: tomcat 4 mod_webapp config



[EMAIL PROTECTED] at [EMAIL PROTECTED] wrote:

> Pier--
> 
> Thanks for the patch.  I'll give this a shot today or tomorrow and see 
if
> that does the trick.

AFAICS, it should... (I'm going to put it down in CVS later today)

Pier







Re: tomcat 4 mod_webapp config

2001-08-21 Thread Pier P. Fumagalli

[EMAIL PROTECTED] at [EMAIL PROTECTED] wrote:

> Pier--
> 
> Thanks for the patch.  I'll give this a shot today or tomorrow and see if
> that does the trick.

AFAICS, it should... (I'm going to put it down in CVS later today)

Pier




Re: tomcat 4 mod_webapp config

2001-08-21 Thread VASQUEZ_JASON

Pier--

Thanks for the patch.  I'll give this a shot today or tomorrow and see if 
that does the trick.

-jason






"Pier P. Fumagalli" <[EMAIL PROTECTED]>
08/21/2001 08:34 AM
Please respond to tomcat-user

 
To: [EMAIL PROTECTED]
cc: 
Subject:Re: tomcat 4 mod_webapp config



[EMAIL PROTECTED] at [EMAIL PROTECTED] wrote:

> All,
> 
> I'm having a little problem with mod_webapp (or maybe I'm not
> understanding this properly).
> 
> I have an application deployed in catalina (v. 4b7) called "laserweb"
> (accessible via tomcat's http server port under /laserweb).  I'd like to
> deploy this as the root of a virtual host in apache.  I've configured 
the
> connector like this within the virutal host:
> 
> WebAppConnection myconn warp localhost:8008
> WebAppDeploy laserweb myconn /
> 
> This doesn't seem to have any affect, as .jsp's, etc. are not being
> processed.  If I pick an URI other than "/", it will work.  (i.e.,
> 
> WebAppDeploy laserweb myconn /testuri
> 
> works as expected -- the webapp is available via
> http:///testuri

Philippe Richter just sent me a patch about this one... And AFAICS it's a
good one (I didn't try it yet!) but it'll be in the next version of the
module.

--- wa_config.c Tue Aug 21 13:53:02 2001
+++ webapp-module-1.0-tc40b7.new/lib/wa_config.cTue Aug 21
13:44:13 2001
@@ -81,10 +81,10 @@
 strncpy(buf,p,1024);
 l=strlen(buf)-1;
 if (buf[l]=='/') buf[l]='\0';
-if (buf[0]=='/') {
-appl->rpth=apr_pstrcat(wa_pool,buf,"/",NULL);
+if (buf[0]=='/' || l==0) {
+  appl->rpth=apr_pstrcat(wa_pool,buf,"/",NULL);
 } else {
-appl->rpth=apr_pstrcat(wa_pool,"/",buf,"/",NULL);
+  appl->rpth=apr_pstrcat(wa_pool,"/",buf,"/",NULL);
 }
 
 /* Zero all other parameters */

> Also, does the module have some way of resolving symbolic links? 
laserweb
> is symlinked into the $CATALINA_HOME/webapps directory, yet the
> /webapp-info/ page from my virtual host displays the "actual" directory
> location (the target of the link)---I found this a little odd.  How does
> the module know?

I don't know... It's all done in APR... I simply check if that directory
exists or not... Note, the webapp-info should be _really_ disabled on any
propduction server...

> My understanding is that using mod_webapp, tomcat virtual hosts don't
> matter.  Is this incorrect?  Can anyone shed some light on this?

Nope, they don't... You can even remove the whole full first part of the
server.xml (you can keep only the Tomcat-Apache engine).
If you need virtualhost support, just configure them in your Apache
httpd.conf, and put your WebAppDeploy lines inside your  
tags.

It's all done automatically (no mod_rewrite, no auto-creation of
configuration files, no nothing)

Pier







Re: tomcat 4 mod_webapp config

2001-08-21 Thread Pier P. Fumagalli

[EMAIL PROTECTED] at [EMAIL PROTECTED] wrote:

> All,
> 
> I'm having a little problem with mod_webapp (or maybe I'm not
> understanding this properly).
> 
> I have an application deployed in catalina (v. 4b7) called "laserweb"
> (accessible via tomcat's http server port under /laserweb).  I'd like to
> deploy this as the root of a virtual host in apache.  I've configured the
> connector like this within the virutal host:
> 
> WebAppConnection myconn warp localhost:8008
> WebAppDeploy laserweb myconn /
> 
> This doesn't seem to have any affect, as .jsp's, etc. are not being
> processed.  If I pick an URI other than "/", it will work.  (i.e.,
> 
> WebAppDeploy laserweb myconn /testuri
> 
> works as expected -- the webapp is available via
> http:///testuri

Philippe Richter just sent me a patch about this one... And AFAICS it's a
good one (I didn't try it yet!) but it'll be in the next version of the
module.

--- wa_config.c Tue Aug 21 13:53:02 2001
+++ webapp-module-1.0-tc40b7.new/lib/wa_config.cTue Aug 21
13:44:13 2001
@@ -81,10 +81,10 @@
 strncpy(buf,p,1024);
 l=strlen(buf)-1;
 if (buf[l]=='/') buf[l]='\0';
-if (buf[0]=='/') {
-appl->rpth=apr_pstrcat(wa_pool,buf,"/",NULL);
+if (buf[0]=='/' || l==0) {
+  appl->rpth=apr_pstrcat(wa_pool,buf,"/",NULL);
 } else {
-appl->rpth=apr_pstrcat(wa_pool,"/",buf,"/",NULL);
+  appl->rpth=apr_pstrcat(wa_pool,"/",buf,"/",NULL);
 }
 
 /* Zero all other parameters */

> Also, does the module have some way of resolving symbolic links?  laserweb
> is symlinked into the $CATALINA_HOME/webapps directory, yet the
> /webapp-info/ page from my virtual host displays the "actual" directory
> location (the target of the link)---I found this a little odd.  How does
> the module know?

I don't know... It's all done in APR... I simply check if that directory
exists or not... Note, the webapp-info should be _really_ disabled on any
propduction server...

> My understanding is that using mod_webapp, tomcat virtual hosts don't
> matter.  Is this incorrect?  Can anyone shed some light on this?

Nope, they don't... You can even remove the whole full first part of the
server.xml (you can keep only the Tomcat-Apache engine).
If you need virtualhost support, just configure them in your Apache
httpd.conf, and put your WebAppDeploy lines inside your  tags.

It's all done automatically (no mod_rewrite, no auto-creation of
configuration files, no nothing)

Pier




tomcat 4 mod_webapp config

2001-08-20 Thread VASQUEZ_JASON

All,

I'm having a little problem with mod_webapp (or maybe I'm not 
understanding this properly).

I have an application deployed in catalina (v. 4b7) called "laserweb" 
(accessible via tomcat's http server port under /laserweb).  I'd like to 
deploy this as the root of a virtual host in apache.  I've configured the 
connector like this within the virutal host:

WebAppConnection myconn warp localhost:8008
WebAppDeploy laserweb myconn /

This doesn't seem to have any affect, as .jsp's, etc. are not being 
processed.  If I pick an URI other than "/", it will work.  (i.e.,

WebAppDeploy laserweb myconn /testuri

works as expected -- the webapp is available via 
http:///testuri

Also, does the module have some way of resolving symbolic links?  laserweb 
is symlinked into the $CATALINA_HOME/webapps directory, yet the 
/webapp-info/ page from my virtual host displays the "actual" directory 
location (the target of the link)---I found this a little odd.  How does 
the module know?

My understanding is that using mod_webapp, tomcat virtual hosts don't 
matter.  Is this incorrect?  Can anyone shed some light on this?

Thanks,
Jason