MOD_WEBAPP PROBLEM: RESTART APACHE IF RESTART TOMCAT

2002-10-03 Thread Fabio Marsilio

Hello,

I use tomcat 4.0.5 and apache 1.3.26 with mod_webapp (the one built from
sources of tomcat- connectors 4.0.5)

http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.5/src/
jakarta-tomcat-connectors-4.0.5-src.tar.gz

THE PROBLEM:

when I restart tomcat I must restart apache too in order to make it work
(otherwise apache works but the connection with tomcat is lost)

is there a possible configuration to avoid this behavior?

thank you in advance.

Fabio







mod_webapp problem : compulsory "/" at the end of URL

2002-07-24 Thread Lee Peik Feng

I am using tomcat 4.0.4, apache 1.3.24 with mod_webapp, on both windows and
linux platform.

When I type the url without the "/" at the end, it won't display the welcome
page.
eg: http://localhost/testWebapp, it works only when I put a "/" at the end,
http://localhost/testWebapp/

But, with mod_jk, the same url will work whether with or without the "/" at
the end.

Is this a bug in mod_webapp?

Regards,
Peik Feng



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Yet another tomcat4+apache1.3+mod_webapp problem

2002-07-19 Thread Turner, John


You said "I downloaded AJP and connectors" but the error messages are
addressing the WARP connector.  Which connector are you using, AJP (mod_jk)
or WARP (mod_webapp)?  If you have both configured, that might be causing
the problem.  You only need one of them, not both.

John Turner
[EMAIL PROTECTED]

-Original Message-
From: Daniel Ali [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 19, 2002 9:12 AM
To: [EMAIL PROTECTED]
Subject: Yet another tomcat4+apache1.3+mod_webapp problem


Hello everyone!

I use Debian Woody 3.0, Apache 1.3.26, Tomcat 4.0.4. I downloaded
ajp and connectors from cvs, which compiled without errors.

Everything seems to be well configured; I can even connect to
http://localhost/webapp-info/ and it works fine, but I can't
get anything when I try to browse the deployed applications.

This is what I get:

-- apache/error.log:
[Fri Jul 19 14:20:04 2002] [notice] Apache/1.3.26 (Unix) Debian GNU/Linux
mod_webapp/1.2.0-dev configured -- resuming normal operations
[Fri Jul 19 14:20:05 2002] [notice] suEXEC mechanism enabled
(wrapper: /usr/lib/apache/suexec)
[Fri Jul 19 14:20:05 2002] [notice] Accept mutex: sysvsem
(Default: sysvsem)
[Fri Jul 19 14:20:55 2002] [notice] child pid 28368 exit signal
Segmentation fault (11)

-- tomcat-apache-log:
2002-07-19 14:20:54 [org.apache.catalina.connector.warp.WarpConnection]
Exception on socket
java.net.SocketException: Connection reset by peer
at java.net.SocketInputStream.socketRead(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:86)
at java.net.SocketInputStream.read(SocketInputStream.java:102)
at
org.apache.catalina.connector.warp.WarpConnection.recv(WarpConnection.java:2
32)
at
org.apache.catalina.connector.warp.WarpRequestHandler.handle(WarpRequestHand
ler.java:112)
at
org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:19
4)
at java.lang.Thread.run(Thread.java:484)

-- And, when I connect to webapp-info:

WebApp Library ConfigurationWebApp Library Configuration 

  Host localhost:8808 
  ---
  Application Name  "_INFO_"
  Root URL Path "/webapp-info/"
  Local Deployment Path No local deployment path
  Configuration Details No configuration information
  Connection"_INFO_" (details)
  Deployed  TRUE

  Application Name  "examples"
  Root URL Path "/examples/"
  Local Deployment Path
"/usr/local/jakarta-tomcat-4.0.4/webapps/examples"
  Configuration Details "Application ID: 0"
  Connection"conn" (details)
  Deployed  TRUE

  Application Name  "ROOT"
  Root URL Path "/myroot/"
  Local Deployment Path
"/usr/local/jakarta-tomcat-4.0.4/webapps/ROOT"
  Configuration Details "Application ID: 1"
  Connection"conn" (details)
  Deployed  TRUE


  Connections 
  ---
  Connection Name   "_INFO_"
  Connection Parameters ""
  Provider  "info"
  Configuration Details No configuration information 

  Connection Name   "conn"
  Connection Parameters "localhost:8008"
  Provider  "warp"
  Configuration Details "Host: localhost Port:8008 Address:127.0.0.1
Socket Count:  1 Server ID: 650579793" 


Please, please, help me, I'm absolutely desperate about this!


Regards: Daniel Ali




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




Yet another tomcat4+apache1.3+mod_webapp problem

2002-07-19 Thread Daniel Ali

Hello everyone!

I use Debian Woody 3.0, Apache 1.3.26, Tomcat 4.0.4. I downloaded
ajp and connectors from cvs, which compiled without errors.

Everything seems to be well configured; I can even connect to
http://localhost/webapp-info/ and it works fine, but I can't
get anything when I try to browse the deployed applications.

This is what I get:

-- apache/error.log:
[Fri Jul 19 14:20:04 2002] [notice] Apache/1.3.26 (Unix) Debian GNU/Linux
mod_webapp/1.2.0-dev configured -- resuming normal operations
[Fri Jul 19 14:20:05 2002] [notice] suEXEC mechanism enabled
(wrapper: /usr/lib/apache/suexec)
[Fri Jul 19 14:20:05 2002] [notice] Accept mutex: sysvsem
(Default: sysvsem)
[Fri Jul 19 14:20:55 2002] [notice] child pid 28368 exit signal
Segmentation fault (11)

-- tomcat-apache-log:
2002-07-19 14:20:54 [org.apache.catalina.connector.warp.WarpConnection]
Exception on socket
java.net.SocketException: Connection reset by peer
at java.net.SocketInputStream.socketRead(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:86)
at java.net.SocketInputStream.read(SocketInputStream.java:102)
at
org.apache.catalina.connector.warp.WarpConnection.recv(WarpConnection.java:232)
at
org.apache.catalina.connector.warp.WarpRequestHandler.handle(WarpRequestHandler.java:112)
at
org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:194)
at java.lang.Thread.run(Thread.java:484)

-- And, when I connect to webapp-info:

WebApp Library ConfigurationWebApp Library Configuration 

  Host localhost:8808 
  ---
  Application Name  "_INFO_"
  Root URL Path "/webapp-info/"
  Local Deployment Path No local deployment path
  Configuration Details No configuration information
  Connection"_INFO_" (details)
  Deployed  TRUE

  Application Name  "examples"
  Root URL Path "/examples/"
  Local Deployment Path "/usr/local/jakarta-tomcat-4.0.4/webapps/examples"
  Configuration Details "Application ID: 0"
  Connection"conn" (details)
  Deployed  TRUE

  Application Name  "ROOT"
  Root URL Path "/myroot/"
  Local Deployment Path "/usr/local/jakarta-tomcat-4.0.4/webapps/ROOT"
  Configuration Details "Application ID: 1"
  Connection"conn" (details)
  Deployed  TRUE


  Connections 
  ---
  Connection Name   "_INFO_"
  Connection Parameters ""
  Provider  "info"
  Configuration Details No configuration information 

  Connection Name   "conn"
  Connection Parameters "localhost:8008"
  Provider  "warp"
  Configuration Details "Host: localhost Port:8008 Address:127.0.0.1 Socket 
Count:  1 Server ID: 650579793" 


Please, please, help me, I'm absolutely desperate about this!


Regards: Daniel Ali




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: mod_webapp problem

2002-04-04 Thread James Williamson

Julien,

Does that mean that patch I hacked together works OK? I haven't had time to
properly test it yet.

Regards,

James Williamson
www.nameonthe.net

- Original Message -
From: Julien OIX <[EMAIL PROTECTED]>
To: Tomcat list <[EMAIL PROTECTED]>
Sent: Thursday, April 04, 2002 10:45 AM
Subject: mod_webapp problem


> hi everyone,
>
>
> I'm using Tomcat4 and Apache (mod_webapp connector) on a Linux RedHat
> 7.1;
>
> to build my connector, I do a snapshot from CVS repository:
>
> cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic checkout
> jakarta-tomcat-connectors/webapp
> cd jakarta-tomcat-connectors/webapp/
> cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic checkout apr
>
> then,
>
> ./support/buildconf.sh
> ./configure --with-apxs=/usr/sbin/apxs --with-apr=./apr/
> make
>
> and I move my mod_webapp.so to my apache module directory
>
> if I stop here, access control directives from apache can't work (
>  sections and .htaccess ); I can't accept that, that's one of
> the reasons why I'm using Tomcat AND apache
>
> I had a solution, which was to apply before compiling a patch (see
> attached file); the effect of it should be the capacity to add
> WebAppIgnore directives to my httpd.conf, but a second effect was that
> my control directives worked !!
>
> this solution (CVS + patch) worked fine last week, but now with the same
> protocol, when I try a jsp, I have the source code in my browser, and
> when I call a servlet in a .html, here's what I get in my error_log:
>
> [Thu Apr  4 11:10:01 2002] [error] [client 193.52.112.79] File does not
> exist: /var/tomcat4/webapps/univ/servlet/com.jsbsoft.jtf.core.SG
>
>
> in first case, can I consider there's a bug in CVS sources ?
>
> any ideas are welcome
>
> thanks in advance.
>
> Julien OIX
> Service Informatique de Gestion
> Tél: 02 40 99 83 65
> mail: [EMAIL PROTECTED]






> --- apache-1.3/mod_webapp.c Wed Feb 13 17:53:58 2002
> +++ apache-1.3/mod_webapp.c.new Sat Mar 23 17:30:05 2002
> @@ -227,6 +227,16 @@
>  return(NULL);
>  }
>
> +/* Allow the option to override certain urls */
> +static const char *wam_directive_ignore(cmd_parms *parms, void *mconfig,
char *w) {
> + wa_virtualhost *vhost = NULL;
> + vhost = (wa_virtualhost
*)ap_get_module_config(parms->server->module_config, &webapp_module);
> + if(wa_ignore(vhost, w) != NULL) {
> +  ap_log_error(APLOG_MARK,APLOG_NOERRNO|APLOG_ERR, parms->server,"Cannot
add new ignore url");
> + }
> + return NULL;
> +}
> +
>  /* The list of Directives for the WebApp module */
>  static const command_rec wam_directives[] = {
>  {
> @@ -250,7 +260,14 @@
>  RSRC_CONF,  /* where available */
>  TAKE3,  /* arguments */
>  "  "
> -}, {NULL}
> +}, {
> + "WebAppIgnore",
> + wam_directive_ignore,
> + NULL,
> + RSRC_CONF,
> + ITERATE,
> + ""
> + }, {NULL}
>
>  };
>
> @@ -410,7 +427,7 @@
>
>  /* Set the webapp request structure into Apache's request structure
*/
>  ap_set_module_config(r->request_config, &webapp_module, appl);
> -return(OK);
> +return(DECLINED);
>  }
>
>  /* Handle the current request */
> @@ -420,6 +437,7 @@
>  wa_application *appl=NULL;
>  wa_request *req=NULL;
>  const char *msg=NULL;
> + ignore_urls *igurls = NULL;
>  char *stmp=NULL;
>  char *ctmp=NULL;
>  char *ssl_temp;
> @@ -431,6 +449,14 @@
>  /* Try to get a hold on the webapp request structure */
>  appl=(wa_application *)ap_get_module_config(r->request_config,
>  &webapp_module);
> +
> + /* Now check for ignored urls */
> + for(igurls = appl->host->ignore_urls; igurls; igurls = igurls->next) {
> + if(apr_fnmatch(igurls->url, r->uri) == APR_SUCCESS) {
> + return(DECLINED);
> + }
> + }
> +
>  if (appl==NULL) return(DECLINED);
>
>  /* Allocate the webapp request structure */
> --- lib/wa_config.c Wed Feb 13 17:53:58 2002
> +++ lib/wa_config.c.new Sat Mar 23 17:28:29 2002
> @@ -121,6 +121,7 @@
>  host->name=apr_pstrdup(wa_pool,n);
>  host->port=p;
>  host->apps=NULL;
> + host->ignore_urls = NULL;
>
>  /* Done! :) */
>  wa_debug(WA_MARK,"Created virtual host
\"%s:%d\"",host->name,host->port);
> @@ -168,4 +169,14 @@
>   n,p,a);
>  *c=conn;
>  return(NULL);
> +}
> +
> +/* Add an ignored url 

mod_webapp problem

2002-04-04 Thread Julien OIX

hi everyone,


I'm using Tomcat4 and Apache (mod_webapp connector) on a Linux RedHat
7.1;

to build my connector, I do a snapshot from CVS repository:

cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic checkout
jakarta-tomcat-connectors/webapp
cd jakarta-tomcat-connectors/webapp/
cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic checkout apr

then,

./support/buildconf.sh
./configure --with-apxs=/usr/sbin/apxs --with-apr=./apr/
make

and I move my mod_webapp.so to my apache module directory

if I stop here, access control directives from apache can't work (
 sections and .htaccess ); I can't accept that, that's one of
the reasons why I'm using Tomcat AND apache

I had a solution, which was to apply before compiling a patch (see
attached file); the effect of it should be the capacity to add
WebAppIgnore directives to my httpd.conf, but a second effect was that
my control directives worked !!

this solution (CVS + patch) worked fine last week, but now with the same
protocol, when I try a jsp, I have the source code in my browser, and
when I call a servlet in a .html, here's what I get in my error_log:

[Thu Apr  4 11:10:01 2002] [error] [client 193.52.112.79] File does not
exist: /var/tomcat4/webapps/univ/servlet/com.jsbsoft.jtf.core.SG


in first case, can I consider there's a bug in CVS sources ?

any ideas are welcome 

thanks in advance.

Julien OIX
Service Informatique de Gestion
Tél: 02 40 99 83 65
mail: [EMAIL PROTECTED]


## mod_webapp.patch
###
--- apache-1.3/mod_webapp.c Wed Feb 13 17:53:58 2002
+++ apache-1.3/mod_webapp.c.new Sat Mar 23 17:30:05 2002
@@ -227,6 +227,16 @@
 return(NULL);
 }
 
+/* Allow the option to override certain urls */
+static const char *wam_directive_ignore(cmd_parms *parms, void
*mconfig, char *w) {
+ wa_virtualhost *vhost = NULL;
+ vhost = (wa_virtualhost
*)ap_get_module_config(parms->server->module_config, &webapp_module);
+ if(wa_ignore(vhost, w) != NULL) {
+  ap_log_error(APLOG_MARK,APLOG_NOERRNO|APLOG_ERR,
parms->server,"Cannot add new ignore url");
+ }
+ return NULL;
+}
+
 /* The list of Directives for the WebApp module */
 static const command_rec wam_directives[] = {
 {
@@ -250,7 +260,14 @@
 RSRC_CONF,  /* where available */
 TAKE3,  /* arguments */
 "  "
-}, {NULL}
+}, {
+ "WebAppIgnore", 
+ wam_directive_ignore,
+ NULL,
+ RSRC_CONF,
+ ITERATE,
+ ""
+ }, {NULL}
 
 };
 
@@ -410,7 +427,7 @@
 
 /* Set the webapp request structure into Apache's request structure
*/
 ap_set_module_config(r->request_config, &webapp_module, appl);
-return(OK);
+return(DECLINED);
 }
 
 /* Handle the current request */
@@ -420,6 +437,7 @@
 wa_application *appl=NULL;
 wa_request *req=NULL;
 const char *msg=NULL;
+ ignore_urls *igurls = NULL;
 char *stmp=NULL;
 char *ctmp=NULL;
 char *ssl_temp;
@@ -431,6 +449,14 @@
 /* Try to get a hold on the webapp request structure */
 appl=(wa_application *)ap_get_module_config(r->request_config,
 &webapp_module);
+
+ /* Now check for ignored urls */
+ for(igurls = appl->host->ignore_urls; igurls; igurls = igurls->next) {
+ if(apr_fnmatch(igurls->url, r->uri) == APR_SUCCESS) {
+ return(DECLINED);
+ }
+ }
+
 if (appl==NULL) return(DECLINED);
 
 /* Allocate the webapp request structure */
--- lib/wa_config.c Wed Feb 13 17:53:58 2002
+++ lib/wa_config.c.new Sat Mar 23 17:28:29 2002
@@ -121,6 +121,7 @@
 host->name=apr_pstrdup(wa_pool,n);
 host->port=p;
 host->apps=NULL;
+ host->ignore_urls = NULL; 
 
 /* Done! :) */
 wa_debug(WA_MARK,"Created virtual host
\"%s:%d\"",host->name,host->port);
@@ -168,4 +169,14 @@
  n,p,a);
 *c=conn;
 return(NULL);
+}
+
+/* Add an ignored url to a virtual host */
+const char *wa_ignore(wa_virtualhost *vhost, char *url) {
+ ignore_urls *ig = vhost->ignore_urls;
+ ignore_urls *igu = apr_palloc(wa_pool, sizeof(ignore_urls));
+ igu->url = apr_pstrdup(wa_pool, url);
+ igu->next = ig;
+ vhost->ignore_urls = igu; 
+ return(NULL);
 }
--- include/wa_config.h Wed Feb 13 17:53:58 2002
+++ include/wa_config.h.new Sat Mar 23 17:36:32 2002
@@ -63,6 +63,14 @@
 #ifndef _WA_CONFIG_H_
 #define _WA_CONFIG_H_
 
+/** 
+ * What a 'orrible hack
+ */
+typedef struct {
+ char *url;
+ void *next;
+} ignore_urls;
+
 /**
  * The WebApp Library connection structure.
  * 
@@ -91,6 +99,8 @@
 char *name;
 /** The virtual host port. */
 int port;
+ /* Patterns to ignore */
+ ignore_urls *ignore_urls;
 /** The list of all applications deployed in this virtual hosts. */
 wa_chain *apps;
 };
@@ -167,5 +177,8 @@
const char *n,
const char *p,
const char *a);
+
+/* Ignore certain urls */
+const char *wa_ignore(wa_virtualhost *vhost, char *url);
 
 #endif /* ifndef _WA

mod_webapp problem

2002-04-04 Thread Julien OIX

hi everyone,


I'm using Tomcat4 and Apache (mod_webapp connector) on a Linux RedHat
7.1;

to build my connector, I do a snapshot from CVS repository:

cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic checkout
jakarta-tomcat-connectors/webapp
cd jakarta-tomcat-connectors/webapp/
cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic checkout apr

then,

./support/buildconf.sh
./configure --with-apxs=/usr/sbin/apxs --with-apr=./apr/
make

and I move my mod_webapp.so to my apache module directory

if I stop here, access control directives from apache can't work (
 sections and .htaccess ); I can't accept that, that's one of
the reasons why I'm using Tomcat AND apache

I had a solution, which was to apply before compiling a patch (see
attached file); the effect of it should be the capacity to add
WebAppIgnore directives to my httpd.conf, but a second effect was that
my control directives worked !!

this solution (CVS + patch) worked fine last week, but now with the same
protocol, when I try a jsp, I have the source code in my browser, and
when I call a servlet in a .html, here's what I get in my error_log:

[Thu Apr  4 11:10:01 2002] [error] [client 193.52.112.79] File does not
exist: /var/tomcat4/webapps/univ/servlet/com.jsbsoft.jtf.core.SG


in first case, can I consider there's a bug in CVS sources ?

any ideas are welcome 

thanks in advance.

Julien OIX
Service Informatique de Gestion
Tél: 02 40 99 83 65
mail: [EMAIL PROTECTED]

--- apache-1.3/mod_webapp.c Wed Feb 13 17:53:58 2002
+++ apache-1.3/mod_webapp.c.new Sat Mar 23 17:30:05 2002
@@ -227,6 +227,16 @@
 return(NULL);
 }
 
+/* Allow the option to override certain urls */
+static const char *wam_directive_ignore(cmd_parms *parms, void *mconfig, char *w) {
+ wa_virtualhost *vhost = NULL;
+ vhost = (wa_virtualhost *)ap_get_module_config(parms->server->module_config, 
+&webapp_module);
+ if(wa_ignore(vhost, w) != NULL) {
+  ap_log_error(APLOG_MARK,APLOG_NOERRNO|APLOG_ERR, parms->server,"Cannot add new 
+ignore url");
+ }
+ return NULL;
+}
+
 /* The list of Directives for the WebApp module */
 static const command_rec wam_directives[] = {
 {
@@ -250,7 +260,14 @@
 RSRC_CONF,  /* where available */
 TAKE3,  /* arguments */
 "  "
-}, {NULL}
+}, {
+ "WebAppIgnore", 
+ wam_directive_ignore,
+ NULL,
+ RSRC_CONF,
+ ITERATE,
+ ""
+ }, {NULL}
 
 };
 
@@ -410,7 +427,7 @@
 
 /* Set the webapp request structure into Apache's request structure */
 ap_set_module_config(r->request_config, &webapp_module, appl);
-return(OK);
+return(DECLINED);
 }
 
 /* Handle the current request */
@@ -420,6 +437,7 @@
 wa_application *appl=NULL;
 wa_request *req=NULL;
 const char *msg=NULL;
+ ignore_urls *igurls = NULL;
 char *stmp=NULL;
 char *ctmp=NULL;
 char *ssl_temp;
@@ -431,6 +449,14 @@
 /* Try to get a hold on the webapp request structure */
 appl=(wa_application *)ap_get_module_config(r->request_config,
 &webapp_module);
+
+ /* Now check for ignored urls */
+ for(igurls = appl->host->ignore_urls; igurls; igurls = igurls->next) {
+ if(apr_fnmatch(igurls->url, r->uri) == APR_SUCCESS) {
+ return(DECLINED);
+ }
+ }
+
 if (appl==NULL) return(DECLINED);
 
 /* Allocate the webapp request structure */
--- lib/wa_config.c Wed Feb 13 17:53:58 2002
+++ lib/wa_config.c.new Sat Mar 23 17:28:29 2002
@@ -121,6 +121,7 @@
 host->name=apr_pstrdup(wa_pool,n);
 host->port=p;
 host->apps=NULL;
+ host->ignore_urls = NULL; 
 
 /* Done! :) */
 wa_debug(WA_MARK,"Created virtual host \"%s:%d\"",host->name,host->port);
@@ -168,4 +169,14 @@
  n,p,a);
 *c=conn;
 return(NULL);
+}
+
+/* Add an ignored url to a virtual host */
+const char *wa_ignore(wa_virtualhost *vhost, char *url) {
+ ignore_urls *ig = vhost->ignore_urls;
+ ignore_urls *igu = apr_palloc(wa_pool, sizeof(ignore_urls));
+ igu->url = apr_pstrdup(wa_pool, url);
+ igu->next = ig;
+ vhost->ignore_urls = igu; 
+ return(NULL);
 }
--- include/wa_config.h Wed Feb 13 17:53:58 2002
+++ include/wa_config.h.new Sat Mar 23 17:36:32 2002
@@ -63,6 +63,14 @@
 #ifndef _WA_CONFIG_H_
 #define _WA_CONFIG_H_
 
+/** 
+ * What a 'orrible hack
+ */
+typedef struct {
+ char *url;
+ void *next;
+} ignore_urls;
+
 /**
  * The WebApp Library connection structure.
  * 
@@ -91,6 +99,8 @@
 char *name;
 /** The virtual host port. */
 int port;
+ /* Patterns to ignore */
+ ignore_urls *ignore_urls;
 /** The list of all applications deployed in this virtual hosts. */
 wa_chain *apps;
 };
@@ -167,5 +177,8 @@
const char *n,
const char *p,
const char *a);
+
+/* Ignore certain urls */
+const char *wa_ignore(wa_virtualhost *vhost, char *url);
 
 #endif /* ifndef _WA_CONFIG_H_ */




--
To unsubscribe:   
For additional commands: 

[REPOST: mod_webapp problem]

2002-04-04 Thread Julien OIX

 
--- Begin Message ---

hi everyone,


I'm using Tomcat4 and Apache (mod_webapp connector) on a Linux RedHat
7.1;

to build my connector, I do a snapshot from CVS repository:

cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic checkout
jakarta-tomcat-connectors/webapp
cd jakarta-tomcat-connectors/webapp/
cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic checkout apr

then,

./support/buildconf.sh
./configure --with-apxs=/usr/sbin/apxs --with-apr=./apr/
make

and I move my mod_webapp.so to my apache module directory

if I stop here, access control directives from apache can't work (
 sections and .htaccess ); I can't accept that, that's one of
the reasons why I'm using Tomcat AND apache

I had a solution, which was to apply before compiling a patch (see
attached file); the effect of it should be the capacity to add
WebAppIgnore directives to my httpd.conf, but a second effect was that
my control directives worked !!

this solution (CVS + patch) worked fine last week, but now with the same
protocol, when I try a jsp, I have the source code in my browser, and
when I call a servlet in a .html, here's what I get in my error_log:

[Thu Apr  4 11:10:01 2002] [error] [client 193.52.112.79] File does not
exist: /var/tomcat4/webapps/univ/servlet/com.jsbsoft.jtf.core.SG


in first case, can I consider there's a bug in CVS sources ?

any ideas are welcome 

thanks in advance.

Julien OIX
Service Informatique de Gestion
Tél: 02 40 99 83 65
mail: [EMAIL PROTECTED]

--- apache-1.3/mod_webapp.c Wed Feb 13 17:53:58 2002
+++ apache-1.3/mod_webapp.c.new Sat Mar 23 17:30:05 2002
@@ -227,6 +227,16 @@
 return(NULL);
 }
 
+/* Allow the option to override certain urls */
+static const char *wam_directive_ignore(cmd_parms *parms, void *mconfig, char *w) {
+ wa_virtualhost *vhost = NULL;
+ vhost = (wa_virtualhost *)ap_get_module_config(parms->server->module_config, 
+&webapp_module);
+ if(wa_ignore(vhost, w) != NULL) {
+  ap_log_error(APLOG_MARK,APLOG_NOERRNO|APLOG_ERR, parms->server,"Cannot add new 
+ignore url");
+ }
+ return NULL;
+}
+
 /* The list of Directives for the WebApp module */
 static const command_rec wam_directives[] = {
 {
@@ -250,7 +260,14 @@
 RSRC_CONF,  /* where available */
 TAKE3,  /* arguments */
 "  "
-}, {NULL}
+}, {
+ "WebAppIgnore", 
+ wam_directive_ignore,
+ NULL,
+ RSRC_CONF,
+ ITERATE,
+ ""
+ }, {NULL}
 
 };
 
@@ -410,7 +427,7 @@
 
 /* Set the webapp request structure into Apache's request structure */
 ap_set_module_config(r->request_config, &webapp_module, appl);
-return(OK);
+return(DECLINED);
 }
 
 /* Handle the current request */
@@ -420,6 +437,7 @@
 wa_application *appl=NULL;
 wa_request *req=NULL;
 const char *msg=NULL;
+ ignore_urls *igurls = NULL;
 char *stmp=NULL;
 char *ctmp=NULL;
 char *ssl_temp;
@@ -431,6 +449,14 @@
 /* Try to get a hold on the webapp request structure */
 appl=(wa_application *)ap_get_module_config(r->request_config,
 &webapp_module);
+
+ /* Now check for ignored urls */
+ for(igurls = appl->host->ignore_urls; igurls; igurls = igurls->next) {
+ if(apr_fnmatch(igurls->url, r->uri) == APR_SUCCESS) {
+ return(DECLINED);
+ }
+ }
+
 if (appl==NULL) return(DECLINED);
 
 /* Allocate the webapp request structure */
--- lib/wa_config.c Wed Feb 13 17:53:58 2002
+++ lib/wa_config.c.new Sat Mar 23 17:28:29 2002
@@ -121,6 +121,7 @@
 host->name=apr_pstrdup(wa_pool,n);
 host->port=p;
 host->apps=NULL;
+ host->ignore_urls = NULL; 
 
 /* Done! :) */
 wa_debug(WA_MARK,"Created virtual host \"%s:%d\"",host->name,host->port);
@@ -168,4 +169,14 @@
  n,p,a);
 *c=conn;
 return(NULL);
+}
+
+/* Add an ignored url to a virtual host */
+const char *wa_ignore(wa_virtualhost *vhost, char *url) {
+ ignore_urls *ig = vhost->ignore_urls;
+ ignore_urls *igu = apr_palloc(wa_pool, sizeof(ignore_urls));
+ igu->url = apr_pstrdup(wa_pool, url);
+ igu->next = ig;
+ vhost->ignore_urls = igu; 
+ return(NULL);
 }
--- include/wa_config.h Wed Feb 13 17:53:58 2002
+++ include/wa_config.h.new Sat Mar 23 17:36:32 2002
@@ -63,6 +63,14 @@
 #ifndef _WA_CONFIG_H_
 #define _WA_CONFIG_H_
 
+/** 
+ * What a 'orrible hack
+ */
+typedef struct {
+ char *url;
+ void *next;
+} ignore_urls;
+
 /**
  * The WebApp Library connection structure.
  * 
@@ -91,6 +99,8 @@
 char *name;
 /** The virtual host port. */
 int port;
+ /* Patterns to ignore */
+ ignore_urls *ignore_urls;
 /** The list of all applications deployed in this virtual hosts. */
 wa_chain *apps;
 };
@@ -167,5 +177,8 @@
const char *n,
const char *p,
const char *a);
+
+/* Ignore certain urls */
+const char *wa_ignore(wa_virtualhost *vhost, char *url);
 
 #endif /* ifndef _WA_CONFIG_H_ */


--- End Message ---

--
To unsubscribe:   

Repost : Mod_webapp Problem

2002-03-03 Thread Unidux (S) - Han Lin

Hi guys,

Tomcat version : 4.0.1
Mod_webapp version : 4.0.2-01
Apache version : 1.3.23

I'm facing the uploading problem here, when uploading a binary (jpg, pdf,
psd, etc) files using the mod_webapp connector, got this error :

java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.StringBuffer.setLength(StringBuffer.java:238)
at
ueclass.upload.broadcast.MultipartInputStreamHandler.readLine(BroadcastUploa
dTest.java:798)
at
ueclass.upload.broadcast.MultipartRequest.readNextPart(BroadcastUploadTest.j
ava:452)
at
ueclass.upload.broadcast.MultipartRequest.readRequest(BroadcastUploadTest.ja
va:429)
at ueclass.upload.broadcast.MultipartRequest.(BroadcastUploadTest.java:228)
at
ueclass.upload.broadcast.BroadcastUploadTest.doPost(BroadcastUploadTest.java
:33)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:201)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:472)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:163)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.warp.WarpRequestHandler.handle(WarpRequestHand
ler.java:215)
at
org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:19
4)
at java.lang.Thread.run(Thread.java:484)

But if using the port 8080, it's ok, the error only happened when using
mod_webapp through apache.

I think this problem already fix, but why in the newest mod_webapp this
problem still occurs?

Please assist, thanks.

Regards,
Han Lin


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




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




Mod_webapp Problem

2002-02-27 Thread Unidux \(S\) - Han Lin

Hi guys,

Tomcat version : 4.0.1
Mod_webapp version : 4.0.2-01
Apache version : 1.3.23

I'm facing the uploading problem here, when uploading a binary (jpg, pdf,
psd, etc) files using the mod_webapp connector, got this error :

java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.StringBuffer.setLength(StringBuffer.java:238)
at
ueclass.upload.broadcast.MultipartInputStreamHandler.readLine(BroadcastUploa
dTest.java:798)
at
ueclass.upload.broadcast.MultipartRequest.readNextPart(BroadcastUploadTest.j
ava:452)
at
ueclass.upload.broadcast.MultipartRequest.readRequest(BroadcastUploadTest.ja
va:429)
at ueclass.upload.broadcast.MultipartRequest.(BroadcastUploadTest.java:228)
at
ueclass.upload.broadcast.BroadcastUploadTest.doPost(BroadcastUploadTest.java
:33)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:201)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:472)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:163)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.warp.WarpRequestHandler.handle(WarpRequestHand
ler.java:215)
at
org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:19
4)
at java.lang.Thread.run(Thread.java:484)

But if using the port 8080, it's ok, the error only happened when using
mod_webapp through apache.

I think this problem already fix, but why in the newest mod_webapp from cvs
this
problem still occurs?

Please assist, thanks.

Regards,
Han Lin


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




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




Mod_webapp Problem

2002-02-27 Thread Unidux \(S\) - Han Lin

Hi guys,

Tomcat version : 4.0.1
Mod_webapp version : 4.0.2-01
Apache version : 1.3.23

I'm facing the uploading problem here, when uploading a binary (jpg, pdf,
psd, etc) files using the mod_webapp connector, got this error :

java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.StringBuffer.setLength(StringBuffer.java:238)
at
ueclass.upload.broadcast.MultipartInputStreamHandler.readLine(BroadcastUploa
dTest.java:798)
at
ueclass.upload.broadcast.MultipartRequest.readNextPart(BroadcastUploadTest.j
ava:452)
at
ueclass.upload.broadcast.MultipartRequest.readRequest(BroadcastUploadTest.ja
va:429)
at ueclass.upload.broadcast.MultipartRequest.(BroadcastUploadTest.java:228)
at
ueclass.upload.broadcast.BroadcastUploadTest.doPost(BroadcastUploadTest.java
:33)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:201)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:472)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:163)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.warp.WarpRequestHandler.handle(WarpRequestHand
ler.java:215)
at
org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:19
4)
at java.lang.Thread.run(Thread.java:484)

But if using the port 8080, it's ok, the error only happened when using
mod_webapp through apache.

I think this problem already fix, but why in the newest mod_webapp this
problem still occurs?

Please assist, thanks.

Regards,
Han Lin


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




Image handling mod_webapp problem

2002-02-08 Thread Andrzej Jan Taramina

> That was a known bug eith TC 4.01.  It was fixed a few weeks ago, you should
> try a more recent version of Tomcat, such as 4.02 beta2 or even a recent 
> daily snapshot.

Nope.  Still doesn't work.

I'm running on Win2K Server(SP2).  I grabbed the latest dev snapshot of 
Tomcat 4.0.2 (Feb 8th).  Grabbed the latest sources for mod_webapp from the 
CVS tree and rebuilt libapr, mod_webapp and the warp.jar file.  Still running 
the latest release build 1.3.23 of Apache.

Still does the same thingTomcat runs fine, Apache runs fine.  But if I try to 
access an html file through the warp connection (mod_webapp) I block on one 
of the image files referenced in the tomcat examples html.

This bug has NOT been fixed yet, at least not that I can determine.  

Any ideas?

Thanks!
Andrzej Jan Taramina
Chaeron Corporation: Enterprise System Solutions
http://www.chaeron.com


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




Re: Strange mod_webapp problem with Tomcat 4.01 & Apache 1.3.23...

2002-02-08 Thread Andrzej Jan Taramina

> That was a known bug eith TC 4.01.  It was fixed a few weeks ago, you should
> try a more recent version of Tomcat, such as 4.02 beta2 or even a recent 
> daily snapshot.

I tried 4.02 beta2, and the same problem still exists in that release (Under 
windoze)images are not handled correctly across the warp connection (and 
lock up the connection).

I guess it was fixed shortly after 4.02beta2 was packaged up.  I might just wait 
for beta3, not sure I want to do a whole build of Tomcat from a daily snapshot.

Andrzej Jan Taramina
Chaeron Corporation: Enterprise System Solutions
http://www.chaeron.com


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




Addendum: Strange mod_webapp problem with Tomcat 4.01 & Apache 1.3.23...

2002-02-07 Thread Andrzej Jan Taramina

I wonder if this is one of those classic end of line translation problems (akin to 
the use of binmode in Perl on Windows systems), and somewhere in the 
datastream from Tomcat to Apache to my browser, eol translation might be the 
cause of this problem?

A

---

I've hit a very strange problem with mod_webapp linking Tomcat 4.01 & 
Apache 1.3.23 running under Win2K...I've configured everything correctly 
(according to all the docs), and built the latest mod_webapp 1.1.0. 

When I access any of the Tomcat examples directly through Tomcat (listening 
on port 8081), all works like a charm, so I know Tomcat is fine. 

When I access my web sites and perl scripts through Apache (port 8080) all 
works fine as well, so I know Apache is running fine. 

Here's the funny situationrunning the JSP's or Servlets through Apache (and 
the mod_webapp warp connector) works fineso long as they don't try to 
display the example gif images (only three of them, and small ones at that).  
Processing blocks when I try to get the images back (browser says 1 image 
downloaded, and that it is "sending request to server", obviously to get the 
next image). 

If I try to go to http://server:8080/examples/jsp/index.html (through Apache), it 
shows the html, but then blocks on getting the images.  Usually on the second 
image. 

I can get each image (again through Apache, across the Warp connection) fine 
as so:  http://pagan:8080/examples/images/code.gif   

Seems the problem is somehow related to getting multiple images.  If I change 
the examples/index.html file to only reference a single image, the problem 
goes away. 

Anyone else seen this kind of behaviour?  Is it windows specific?  

Fixes? 
Andrzej Jan Taramina
Chaeron Corporation: Enterprise System Solutions
http://www.chaeron.com


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




Re: Strange mod_webapp problem with Tomcat 4.01 & Apache 1.3.23...

2002-02-07 Thread Pascal Forget

That was a known bug eith TC 4.01.  It was fixed a few weeks ago, you should
try a more recent version of Tomcat, such as 4.02 beta2 or even a recent 
daily
snapshot.

Pascal

Andrzej Jan Taramina wrote:

>I've hit a very strange problem with mod_webapp linking Tomcat 4.01 & 
>Apache 1.3.23 running under Win2K...I've configured everything correctly 
>(according to all the docs), and built the latest mod_webapp 1.1.0.
>
>When I access any of the Tomcat examples directly through Tomcat (listening 
>on port 8081), all works like a charm, so I know Tomcat is fine.
>
>When I access my web sites and perl scripts through Apache (port 8080) all 
>works fine as well, so I know Apache is running fine.
>
>Here's the funny situationrunning the JSP's or Servlets through Apache (and 
>the mod_webapp warp connector) works fineso long as they don't try to 
>display the example gif images (only three of them, and small ones at that).  
>Processing blocks when I try to get the images back (browser says 1 image 
>downloaded, and that it is "sending request to server", obviously to get the 
>next image).
>
>If I try to go to http://server:8080/examples/jsp/index.html (through Apache), it 
>shows the html, but then blocks on getting the images.  Usually on the second 
>image.
>
>I can get each image (again through Apache, across the Warp connection) fine 
>as so:  http://pagan:8080/examples/images/code.gif   
>
>Seems the problem is somehow related to getting multiple images.  If I change 
>the examples/index.html file to only reference a single image, the problem 
>goes away.
>
>Anyone else seen this kind of behaviour?  Is it windows specific?  
>
>Fixes?
>Andrzej Jan Taramina
>Chaeron Corporation: Enterprise System Solutions
>http://www.chaeron.com
>
>
>--
>To unsubscribe:   
>For additional commands: 
>Troubles with the list: 
>
>
>




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




Strange mod_webapp problem with Tomcat 4.01 & Apache 1.3.23...

2002-02-07 Thread Andrzej Jan Taramina

I've hit a very strange problem with mod_webapp linking Tomcat 4.01 & 
Apache 1.3.23 running under Win2K...I've configured everything correctly 
(according to all the docs), and built the latest mod_webapp 1.1.0.

When I access any of the Tomcat examples directly through Tomcat (listening 
on port 8081), all works like a charm, so I know Tomcat is fine.

When I access my web sites and perl scripts through Apache (port 8080) all 
works fine as well, so I know Apache is running fine.

Here's the funny situationrunning the JSP's or Servlets through Apache (and 
the mod_webapp warp connector) works fineso long as they don't try to 
display the example gif images (only three of them, and small ones at that).  
Processing blocks when I try to get the images back (browser says 1 image 
downloaded, and that it is "sending request to server", obviously to get the 
next image).

If I try to go to http://server:8080/examples/jsp/index.html (through Apache), it 
shows the html, but then blocks on getting the images.  Usually on the second 
image.

I can get each image (again through Apache, across the Warp connection) fine 
as so:  http://pagan:8080/examples/images/code.gif   

Seems the problem is somehow related to getting multiple images.  If I change 
the examples/index.html file to only reference a single image, the problem 
goes away.

Anyone else seen this kind of behaviour?  Is it windows specific?  

Fixes?
Andrzej Jan Taramina
Chaeron Corporation: Enterprise System Solutions
http://www.chaeron.com


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




RE: mod_webapp problem.. please haaaalp

2002-01-24 Thread thys de wet

I did all that.
I still get The requestes URL /examples was not found on this server
any further ideas ?


>-Original Message-
>From: Cressatti, Dominique [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, January 24, 2002 2:25 PM
>To: Tomcat Users List
>Subject: RE: mod_webapp problem.. please hlp
>
>
>>> LoadModule webapp_module libexec/mod_webapp.so
>has to be under other LoadModule lines
>>>AddModule mod_webapp.c
>has to be under other AddModule lines
>and then add 
>
>WebAppConnection warpConnection warp localhost:8008
>WebAppDeploy  examples warpConnection /examples
>
>at the END of your httpd.conf and remove the one you had
>before.
>Then see if apache still complains. if not I'll tell
>you how to test it then.
>
>Dom
>
>-Original Message-
>From: thys de wet [mailto:[EMAIL PROTECTED]]
>Sent: 24 January 2002 12:19
>To: 'Tomcat Users List'
>Subject: RE: mod_webapp problem.. please hlp
>
>
>my httpd.conf now looks like :
>
>
>ServerName isolde.ics.didata.com
>
>
> LoadModule webapp_module libexec/mod_webapp.so
>
>AddModule mod_webapp.c
> WebAppConnection warpConnection warp localhost:8008
> WebAppDeploy  webdav warpConnection /webdav/
>WebAppInfo /webappinfo
>
>
>still no joy :(
>
>>-Original Message-
>>From: Cressatti, Dominique [mailto:[EMAIL PROTECTED]]
>>Sent: Thursday, January 24, 2002 2:14 PM
>>To: Tomcat Users List
>>Subject: RE: mod_webapp problem.. please hlp
>>
>>
>>you know what I meant by servername (not the one associated with
>>virtualhost)?
>>unommenting #ServerName and specifying your box like:
>>ServerName DNSNameOfyourServer.
>>
>>Also did you remove/unmented that WebAppInfo directive?
>>Also where did you put WebAppconnection? just after LoadModule?
>>
>>Dom
>>
>>-Original Message-
>>From: thys de wet [mailto:[EMAIL PROTECTED]]
>>Sent: 24 January 2002 12:02
>>To: 'Tomcat Users List'
>>Subject: RE: mod_webapp problem.. please hlp
>>
>>
>>I've tried that, my servername is specified in httpd.conf, 
>>I've also added
>>Addmodule mod_webapp.c. I still get the same problems..
>>
>>
>>
>>>-Original Message-
>>>From: Cressatti, Dominique [mailto:[EMAIL PROTECTED]]
>>>Sent: Thursday, January 24, 2002 1:32 PM
>>>To: Tomcat Users List
>>>Subject: RE: mod_webapp problem.. please hlp
>>>
>>>
>>>I would try:
>>>LoadModule webapp_module libexec/mod_webapp.so
>>> WebAppConnection warpConnection warp localhost:8008
>>> WebAppDeploy  examples warpConnection /examples
>>>
>>>for a start.
>>>also you missed
>>>AddModule mod_webapp.c in your httpd.conf
>>>and did you specify your SeverName as well (very important)?
>>>
>>>Dom
>>>
>>>
>>>-Original Message-
>>>From: thys de wet [mailto:[EMAIL PROTECTED]]
>>>Sent: 24 January 2002 10:59
>>>To: [EMAIL PROTECTED]
>>>Subject: mod_webapp problem.. please hlp
>>>
>>>
>>>I am having problems with mod_webapp..
>>>Yes i have browsed the archives, no i haven't found an answer.
>>>
>>>Heres the scenario .
>>>
>>>Tomcat 4.0.1 and Apache 1.3.22 running on solaris 8 sparc.
>>>
>>>Both of these work fine independantly.
>>>
>>>Entry in httpd.conf
>>>LoadModule webapp_module libexec/mod_webapp.so
>>> WebAppConnection warpConnection warp localhost:8008
>>> WebAppDeploy  webdav warpConnection /webdav/
>>>WebAppInfo /webappinfo
>>>
>>>Entry in apache error log file when trying /webappinfo
>>>
>>>[Thu Jan 24 12:36:41 2002] [error] [client 10.7.235.141] 
>File does not
>>>exist: /usr/local/apache_1.3.22/htdocs/webappinfo
>>>
>>>Any ideas please. I would realy like to get thois working.
>>>
>>>
>>>
>>>"Oh dear, I think you'll find reality's on the blink again."
>>>-- Marvin The Paranoid Android
>>>
>>>
>>>--
>>>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]>
>>
>
>
>--
>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 problem.. please haaaalp

2002-01-24 Thread Cressatti, Dominique

>> LoadModule webapp_module libexec/mod_webapp.so
has to be under other LoadModule lines
>>AddModule mod_webapp.c
has to be under other AddModule lines
and then add 

WebAppConnection warpConnection warp localhost:8008
WebAppDeploy  examples warpConnection /examples

at the END of your httpd.conf and remove the one you had
before.
Then see if apache still complains. if not I'll tell
you how to test it then.

Dom

-Original Message-
From: thys de wet [mailto:[EMAIL PROTECTED]]
Sent: 24 January 2002 12:19
To: 'Tomcat Users List'
Subject: RE: mod_webapp problem.. please hlp


my httpd.conf now looks like :


ServerName isolde.ics.didata.com


 LoadModule webapp_module libexec/mod_webapp.so

AddModule mod_webapp.c
 WebAppConnection warpConnection warp localhost:8008
 WebAppDeploy  webdav warpConnection /webdav/
WebAppInfo /webappinfo


still no joy :(

>-Original Message-
>From: Cressatti, Dominique [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, January 24, 2002 2:14 PM
>To: Tomcat Users List
>Subject: RE: mod_webapp problem.. please hlp
>
>
>you know what I meant by servername (not the one associated with
>virtualhost)?
>unommenting #ServerName and specifying your box like:
>ServerName DNSNameOfyourServer.
>
>Also did you remove/unmented that WebAppInfo directive?
>Also where did you put WebAppconnection? just after LoadModule?
>
>Dom
>
>-Original Message-
>From: thys de wet [mailto:[EMAIL PROTECTED]]
>Sent: 24 January 2002 12:02
>To: 'Tomcat Users List'
>Subject: RE: mod_webapp problem.. please hlp
>
>
>I've tried that, my servername is specified in httpd.conf, 
>I've also added
>Addmodule mod_webapp.c. I still get the same problems..
>
>
>
>>-Original Message-
>>From: Cressatti, Dominique [mailto:[EMAIL PROTECTED]]
>>Sent: Thursday, January 24, 2002 1:32 PM
>>To: Tomcat Users List
>>Subject: RE: mod_webapp problem.. please hlp
>>
>>
>>I would try:
>>LoadModule webapp_module libexec/mod_webapp.so
>> WebAppConnection warpConnection warp localhost:8008
>> WebAppDeploy  examples warpConnection /examples
>>
>>for a start.
>>also you missed
>>AddModule mod_webapp.c in your httpd.conf
>>and did you specify your SeverName as well (very important)?
>>
>>Dom
>>
>>
>>-Original Message-
>>From: thys de wet [mailto:[EMAIL PROTECTED]]
>>Sent: 24 January 2002 10:59
>>To: [EMAIL PROTECTED]
>>Subject: mod_webapp problem.. please hlp
>>
>>
>>I am having problems with mod_webapp..
>>Yes i have browsed the archives, no i haven't found an answer.
>>
>>Heres the scenario .
>>
>>Tomcat 4.0.1 and Apache 1.3.22 running on solaris 8 sparc.
>>
>>Both of these work fine independantly.
>>
>>Entry in httpd.conf
>>LoadModule webapp_module libexec/mod_webapp.so
>> WebAppConnection warpConnection warp localhost:8008
>> WebAppDeploy  webdav warpConnection /webdav/
>>WebAppInfo /webappinfo
>>
>>Entry in apache error log file when trying /webappinfo
>>
>>[Thu Jan 24 12:36:41 2002] [error] [client 10.7.235.141] File does not
>>exist: /usr/local/apache_1.3.22/htdocs/webappinfo
>>
>>Any ideas please. I would realy like to get thois working.
>>
>>
>>
>>"Oh dear, I think you'll find reality's on the blink again."
>>-- Marvin The Paranoid Android
>>
>>
>>--
>>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]>
>


--
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 problem.. please haaaalp

2002-01-24 Thread thys de wet

my httpd.conf now looks like :


ServerName isolde.ics.didata.com


 LoadModule webapp_module libexec/mod_webapp.so

AddModule mod_webapp.c
 WebAppConnection warpConnection warp localhost:8008
 WebAppDeploy  webdav warpConnection /webdav/
WebAppInfo /webappinfo


still no joy :(

>-Original Message-
>From: Cressatti, Dominique [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, January 24, 2002 2:14 PM
>To: Tomcat Users List
>Subject: RE: mod_webapp problem.. please hlp
>
>
>you know what I meant by servername (not the one associated with
>virtualhost)?
>unommenting #ServerName and specifying your box like:
>ServerName DNSNameOfyourServer.
>
>Also did you remove/unmented that WebAppInfo directive?
>Also where did you put WebAppconnection? just after LoadModule?
>
>Dom
>
>-Original Message-
>From: thys de wet [mailto:[EMAIL PROTECTED]]
>Sent: 24 January 2002 12:02
>To: 'Tomcat Users List'
>Subject: RE: mod_webapp problem.. please hlp
>
>
>I've tried that, my servername is specified in httpd.conf, 
>I've also added
>Addmodule mod_webapp.c. I still get the same problems..
>
>
>
>>-Original Message-
>>From: Cressatti, Dominique [mailto:[EMAIL PROTECTED]]
>>Sent: Thursday, January 24, 2002 1:32 PM
>>To: Tomcat Users List
>>Subject: RE: mod_webapp problem.. please hlp
>>
>>
>>I would try:
>>LoadModule webapp_module libexec/mod_webapp.so
>> WebAppConnection warpConnection warp localhost:8008
>> WebAppDeploy  examples warpConnection /examples
>>
>>for a start.
>>also you missed
>>AddModule mod_webapp.c in your httpd.conf
>>and did you specify your SeverName as well (very important)?
>>
>>Dom
>>
>>
>>-Original Message-
>>From: thys de wet [mailto:[EMAIL PROTECTED]]
>>Sent: 24 January 2002 10:59
>>To: [EMAIL PROTECTED]
>>Subject: mod_webapp problem.. please hlp
>>
>>
>>I am having problems with mod_webapp..
>>Yes i have browsed the archives, no i haven't found an answer.
>>
>>Heres the scenario .
>>
>>Tomcat 4.0.1 and Apache 1.3.22 running on solaris 8 sparc.
>>
>>Both of these work fine independantly.
>>
>>Entry in httpd.conf
>>LoadModule webapp_module libexec/mod_webapp.so
>> WebAppConnection warpConnection warp localhost:8008
>> WebAppDeploy  webdav warpConnection /webdav/
>>WebAppInfo /webappinfo
>>
>>Entry in apache error log file when trying /webappinfo
>>
>>[Thu Jan 24 12:36:41 2002] [error] [client 10.7.235.141] File does not
>>exist: /usr/local/apache_1.3.22/htdocs/webappinfo
>>
>>Any ideas please. I would realy like to get thois working.
>>
>>
>>
>>"Oh dear, I think you'll find reality's on the blink again."
>>-- Marvin The Paranoid Android
>>
>>
>>--
>>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]>
>


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




RE: mod_webapp problem.. please haaaalp

2002-01-24 Thread Cressatti, Dominique

you know what I meant by servername (not the one associated with
virtualhost)?
unommenting #ServerName and specifying your box like:
ServerName DNSNameOfyourServer.

Also did you remove/unmented that WebAppInfo directive?
Also where did you put WebAppconnection? just after LoadModule?

Dom

-Original Message-
From: thys de wet [mailto:[EMAIL PROTECTED]]
Sent: 24 January 2002 12:02
To: 'Tomcat Users List'
Subject: RE: mod_webapp problem.. please hlp


I've tried that, my servername is specified in httpd.conf, I've also added
Addmodule mod_webapp.c. I still get the same problems..



>-Original Message-
>From: Cressatti, Dominique [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, January 24, 2002 1:32 PM
>To: Tomcat Users List
>Subject: RE: mod_webapp problem.. please hlp
>
>
>I would try:
>LoadModule webapp_module libexec/mod_webapp.so
> WebAppConnection warpConnection warp localhost:8008
> WebAppDeploy  examples warpConnection /examples
>
>for a start.
>also you missed
>AddModule mod_webapp.c in your httpd.conf
>and did you specify your SeverName as well (very important)?
>
>Dom
>
>
>-Original Message-
>From: thys de wet [mailto:[EMAIL PROTECTED]]
>Sent: 24 January 2002 10:59
>To: [EMAIL PROTECTED]
>Subject: mod_webapp problem.. please hlp
>
>
>I am having problems with mod_webapp..
>Yes i have browsed the archives, no i haven't found an answer.
>
>Heres the scenario .
>
>Tomcat 4.0.1 and Apache 1.3.22 running on solaris 8 sparc.
>
>Both of these work fine independantly.
>
>Entry in httpd.conf
>LoadModule webapp_module libexec/mod_webapp.so
> WebAppConnection warpConnection warp localhost:8008
> WebAppDeploy  webdav warpConnection /webdav/
>WebAppInfo /webappinfo
>
>Entry in apache error log file when trying /webappinfo
>
>[Thu Jan 24 12:36:41 2002] [error] [client 10.7.235.141] File does not
>exist: /usr/local/apache_1.3.22/htdocs/webappinfo
>
>Any ideas please. I would realy like to get thois working.
>
>
>
>"Oh dear, I think you'll find reality's on the blink again."
>-- Marvin The Paranoid Android
>
>
>--
>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 problem.. please haaaalp

2002-01-24 Thread thys de wet

I've tried that, my servername is specified in httpd.conf, I've also added
Addmodule mod_webapp.c. I still get the same problems..



>-Original Message-
>From: Cressatti, Dominique [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, January 24, 2002 1:32 PM
>To: Tomcat Users List
>Subject: RE: mod_webapp problem.. please hlp
>
>
>I would try:
>LoadModule webapp_module libexec/mod_webapp.so
> WebAppConnection warpConnection warp localhost:8008
> WebAppDeploy  examples warpConnection /examples
>
>for a start.
>also you missed
>AddModule mod_webapp.c in your httpd.conf
>and did you specify your SeverName as well (very important)?
>
>Dom
>
>
>-Original Message-
>From: thys de wet [mailto:[EMAIL PROTECTED]]
>Sent: 24 January 2002 10:59
>To: [EMAIL PROTECTED]
>Subject: mod_webapp problem.. please hlp
>
>
>I am having problems with mod_webapp..
>Yes i have browsed the archives, no i haven't found an answer.
>
>Heres the scenario .
>
>Tomcat 4.0.1 and Apache 1.3.22 running on solaris 8 sparc.
>
>Both of these work fine independantly.
>
>Entry in httpd.conf
>LoadModule webapp_module libexec/mod_webapp.so
> WebAppConnection warpConnection warp localhost:8008
> WebAppDeploy  webdav warpConnection /webdav/
>WebAppInfo /webappinfo
>
>Entry in apache error log file when trying /webappinfo
>
>[Thu Jan 24 12:36:41 2002] [error] [client 10.7.235.141] File does not
>exist: /usr/local/apache_1.3.22/htdocs/webappinfo
>
>Any ideas please. I would realy like to get thois working.
>
>
>
>"Oh dear, I think you'll find reality's on the blink again."
>-- Marvin The Paranoid Android
>
>
>--
>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 problem.. please haaaalp

2002-01-24 Thread Cressatti, Dominique

I would try:
LoadModule webapp_module libexec/mod_webapp.so
 WebAppConnection warpConnection warp localhost:8008
 WebAppDeploy  examples warpConnection /examples

for a start.
also you missed 
AddModule mod_webapp.c in your httpd.conf
and did you specify your SeverName as well (very important)?

Dom


-Original Message-
From: thys de wet [mailto:[EMAIL PROTECTED]]
Sent: 24 January 2002 10:59
To: [EMAIL PROTECTED]
Subject: mod_webapp problem.. please hlp


I am having problems with mod_webapp..
Yes i have browsed the archives, no i haven't found an answer.

Heres the scenario .

Tomcat 4.0.1 and Apache 1.3.22 running on solaris 8 sparc.

Both of these work fine independantly.

Entry in httpd.conf
LoadModule webapp_module libexec/mod_webapp.so
 WebAppConnection warpConnection warp localhost:8008
 WebAppDeploy  webdav warpConnection /webdav/
WebAppInfo /webappinfo

Entry in apache error log file when trying /webappinfo

[Thu Jan 24 12:36:41 2002] [error] [client 10.7.235.141] File does not
exist: /usr/local/apache_1.3.22/htdocs/webappinfo

Any ideas please. I would realy like to get thois working.



"Oh dear, I think you'll find reality's on the blink again."
-- Marvin The Paranoid Android


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




mod_webapp problem.. please haaaalp

2002-01-24 Thread thys de wet

I am having problems with mod_webapp..
Yes i have browsed the archives, no i haven't found an answer.

Heres the scenario .

Tomcat 4.0.1 and Apache 1.3.22 running on solaris 8 sparc.

Both of these work fine independantly.

Entry in httpd.conf
LoadModule webapp_module libexec/mod_webapp.so
 WebAppConnection warpConnection warp localhost:8008
 WebAppDeploy  webdav warpConnection /webdav/
WebAppInfo /webappinfo

Entry in apache error log file when trying /webappinfo

[Thu Jan 24 12:36:41 2002] [error] [client 10.7.235.141] File does not
exist: /usr/local/apache_1.3.22/htdocs/webappinfo

Any ideas please. I would realy like to get thois working.



"Oh dear, I think you'll find reality's on the blink again."
-- Marvin The Paranoid Android


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




Tomcat 4.01 + Apache 1.3 + mod_webapp: problem with root context

2002-01-16 Thread Oli Gauti Gudmundsson

Hey everyone.
I've been looking for a solution to my problem for two days now, scanning
through the archives without any luck. So, I'm hoping someone here can help
me.
 
Following are the specs of my system:
 
Tomcat 4.01
Apache 1.3
JDK 1.2
Solaris 7
 
I built Apache and mod_webapp, and Tomcat now successfully serves up dynamic
content through Apache.
 
Before I can describe the problem, I'll have to give you some background
information. 
 
The first thing you need to know, is that I have a number of domain names
all pointing to the same IP address (server1.mydomain.com,
server2.mydomain.com, etc.). Apache listens on that IP address, and the same
web application serves all those domain names. The thing is that my web
application responds differently to the different domain names. For example
if the user goes to server1.mydomain.com in his browser, he gets a different
looking page than if he would go to server2.mydomain.com. The web
application selects the right content by reading the hostname.
 
The second thing you need to know, is that the webapp runs in the root
context.
 
Now, I've put the following lines into my httpd.conf:
 
WebAppConnection conn warp localhost:8044
WebAppDeploy mywebapp conn /

(and yes, I deliberately changed the warp port to 8044 for reasons that are
not the subject of this discussion). Also the ServerName in httpd.conf is
set to the IP address of the server.
 
Let's say that my IP address is 123.45.67.89. Now, if I point my browser to
http://123.45.67.89  , the webapplication serves up
dynamic content. But if I point it to http://server1.mydomain.com
  (which is pointing to 123.45.67.89), it
redirects me to http://123.45.67.89  . The same goes
for server2.mydomain.com, etc. 
 
And things get even stranger. If I include the index.jsp in the path, then
the server does not redirect!!! That is, if I point the browser to
http://server1.mydomain.com/index.jsp
  (appending the "/index.jsp"), then
Apache does not redirect and the webapp can serve the correct content.
 
This just started to happen after I upgraded Tomcat from 3.2 using mod_jserv
to Tomcat 4.01 using mod_webapp.
 
I know that you can add virtual hosts in httpd.conf, but that is an
unacceptable solution for me, because the httpd.conf should not be edited if
a new domain name is added.
 
I need some workaround for this, so that the hostname that the user inputs
stays the same.
 
If you can think of a solution, please bear in mind that it must fulfill the
following requirements:
 
1. The webapp MUST run in the root context.
2. The Apache httpd.conf SHOULD NOT HAVE TO BE EDITED if a new domain name
pointing to the IP address of the server is added.
 
Any help is greatly appreciated.
 
Gauti.



RE: Tomcat 4, mod_webapp problem

2001-05-21 Thread Williamson, James



Laurens, 
 
Which 
version of Linux are you running? pthreads aren't an integral part of the OS, 
they're a library which as far as I remember were a hack to provide some 
form of threading capacity on thread enabled OS 'es (i.e Linux). So 
the question is, are they in your library path (i.e. /lib)? Look for files like 
libpthread.so.0,  It would explain why ld.so (the dynamic 
linker) can't find these symbols.
 
Regards, 
 
James

  -Original Message-From: Laurens Fridael 
  [mailto:[EMAIL PROTECTED]]Sent: 21 May 2001 
  16:10To: Tomcat mailing listSubject: Tomcat 4, 
  mod_webapp problem
  Hi,
   
   
  I've managed to 
  build mod_webapp on our Linux machine. First I encountered 
  troubles with the APXS script of the current installation. I then installed 
  the latest version of Apache (1.3.20) and still ran into difficulties. With a 
  little modification of the apxs script (a hint from the Tomcat mailing 
  archive) I could finally build it.
   
  However, when I 
  try to load mod_webapp into Apache (using LoadModule) I get this error 
  message:
  "Cannot load 
  /usr/local/apache/libexec/mod_webapp.so into server: 
  /usr/local/apache/libexec/mod_webapp.so: undefined symbol: 
  pthread_sigmask"
   
  Apparently 
  there are still unresolved symbols, or my paths aren't set correctly. Can 
  anyone give me a hint?
   
  I'm thinking 
  of reinstalling Linux. The current installation is flaky at best but it worked 
  alright for well over a year.
   
   
  Thanks
  -Laurens

**
This e-mail (including any documents which may accompany it) contains
information which is confidential and may also be privileged.
It is for the exclusive use of the intended recipient(s).
If you are not the intended recipient(s) please note that any form of
distribution, copying or use of this e-mail or the information in it
or attached to it is strictly prohibited and may be unlawful.
If you have received this e-mail in error please notify us immediately
by e-mail to [EMAIL PROTECTED] or telephone +44 (0)207 940 1200 and
delete the e-mail.
Please advise immediately if you or your employer do not consent to
Internet E-Mail for messages of this type.
Information or opinions in this message that do not relate to the
business of Windsor plc and/or subsidiary and/or associated companies
shall be treated as neither given or endorsed by it.
**



RE: Tomcat 4, mod_webapp problem

2001-05-21 Thread Williamson, James



Sorry 
typo, on non thread enabled OS 'es

  -Original Message-From: Laurens Fridael 
  [mailto:[EMAIL PROTECTED]]Sent: 21 May 2001 
  16:10To: Tomcat mailing listSubject: Tomcat 4, 
  mod_webapp problem
  Hi,
   
   
  I've managed to 
  build mod_webapp on our Linux machine. First I encountered 
  troubles with the APXS script of the current installation. I then installed 
  the latest version of Apache (1.3.20) and still ran into difficulties. With a 
  little modification of the apxs script (a hint from the Tomcat mailing 
  archive) I could finally build it.
   
  However, when I 
  try to load mod_webapp into Apache (using LoadModule) I get this error 
  message:
  "Cannot load 
  /usr/local/apache/libexec/mod_webapp.so into server: 
  /usr/local/apache/libexec/mod_webapp.so: undefined symbol: 
  pthread_sigmask"
   
  Apparently 
  there are still unresolved symbols, or my paths aren't set correctly. Can 
  anyone give me a hint?
   
  I'm thinking 
  of reinstalling Linux. The current installation is flaky at best but it worked 
  alright for well over a year.
   
   
  Thanks
  -Laurens

**
This e-mail (including any documents which may accompany it) contains
information which is confidential and may also be privileged.
It is for the exclusive use of the intended recipient(s).
If you are not the intended recipient(s) please note that any form of
distribution, copying or use of this e-mail or the information in it
or attached to it is strictly prohibited and may be unlawful.
If you have received this e-mail in error please notify us immediately
by e-mail to [EMAIL PROTECTED] or telephone +44 (0)207 940 1200 and
delete the e-mail.
Please advise immediately if you or your employer do not consent to
Internet E-Mail for messages of this type.
Information or opinions in this message that do not relate to the
business of Windsor plc and/or subsidiary and/or associated companies
shall be treated as neither given or endorsed by it.
**



Tomcat 4, mod_webapp problem

2001-05-21 Thread Laurens Fridael



Hi,
 
 
I've managed to 
build mod_webapp on our Linux machine. First I encountered 
troubles with the APXS script of the current installation. I then installed the 
latest version of Apache (1.3.20) and still ran into difficulties. With a little 
modification of the apxs script (a hint from the Tomcat mailing archive) 
I could finally build it.
 
However, when I try 
to load mod_webapp into Apache (using LoadModule) I get this error 
message:
"Cannot 
load /usr/local/apache/libexec/mod_webapp.so into server: 
/usr/local/apache/libexec/mod_webapp.so: undefined symbol: pthread_sigmask"
 
Apparently 
there are still unresolved symbols, or my paths aren't set correctly. Can anyone 
give me a hint?
 
I'm thinking 
of reinstalling Linux. The current installation is flaky at best but it worked 
alright for well over a year.
 
 
Thanks
-Laurens