RE: mod_webapp.so

2002-07-08 Thread Ten-Hung Chu

Not sure about enable-rule=SHARE_CORE, when I build Apache 1.3 I did

./configure --enable-so

to enalbe DSO.

Also, to clarify (both connect to Tomcat 4.0.4)

For Apache 1.3.26 I add four lines to httpd.conf
 LoadModule webapp_module libexec/mod_webapp.so
   AddModule mod_webapp.c
 WebAppConnection warpConnection warp www.mydomain:8008
 WebAppDeploy examples warpConnection /examples/

For Apache 2.0.39 I add only three line to httpd.conf
 LoadModule webapp_module libexec/mod_webapp.so
 WebAppConnection warpConnection warp www.mydomain:8008
 WebAppDeploy examples warpConnection /examples/
Ten
-Original Message-
From: Mario Henley Becerril Geldis [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 08, 2002 10:10 AM
To: Ten-Hung Chu
Cc: [EMAIL PROTECTED]
Subject: RE: mod_webapp.so


On Fri, 5 Jul 2002, Ten-Hung Chu wrote:

> As I mentoned below, you need to add this line
>
> AddModule mod_webapp.c
>
> after the LoadModule line in httpd.conf, check INSTALL.txt for more
detail.


  Document say:


   


   But when i try ckeck config apache say:

  #apachectl configtest

  Invalid command 'LoadModule', perhaps mis-spelled or defined by a module
not included in the server configuration

   Any ideas..???


  I compile apache with  --enable--rule=SHARED_CORE  for enable DSO...



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



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




RE: webapp_module => apache problem when starting

2002-07-08 Thread Ten-Hung Chu

For Apache 2.0.39, you CAN NOT have the line
AddModule mod_webapp.c


Also, make sure ServerName is defined before
LoadModule webapp_module modules/mod_webapp.so

Ten

-Original Message-
From: Gunter D'Hondt [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 08, 2002 1:16 AM
To: 'Tomcat Users List'
Subject: RE: webapp_module => apache problem when starting


I've re-installed Apache and under a directory without any spaces and I
still get this problem:

C:\Apache\bin>apache -t
Syntax error on line 173 of C:/Apache/conf/httpd.conf:
Cannot load C:/Apache/modules/mod_webapp.so into server: The specified
module co
uld not be found.

What's the difference between mod_webapp and mod_jk?

Gunter



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On
Behalf Of robert rowntree
Sent: vrijdag 5 juli 2002 18:20
To: [EMAIL PROTECTED]
Subject: RE: webapp_module => apache problem when starting


you've got spaces in your path!

you may want to check the lists about how to deal with a path to your
mod_webapp.so where spaces are involved.

see: http://www.galatea.com/flashguides/index

and select from the list of links your exact combination
under the windows sections for the connector implementation, there are notes
about tricky paths with spaces in them.

BTW - im using AJP connector on Win2k ( mod_jk.dll ) and it is working.


--
To unsubscribe, e-mail:

For additional commands, e-mail:




Original message:


I configured Apache 2.0.39 correctly and Tomcat 4.0.4 (Win NT4)
Now I'm changing the httpd.conf of Apache with
LoadModule webapp_module modules/mod_webapp.so
AddModule mod_webapp.c

and I've placed the mod_webapp.so in the \modules directory and also the
libapr.dll in the same directory but when starting Apache I get the
following:

C:\PROGRA~1\Apache Group\Apache2\bin>apache
Syntax error on line 173 of C:/Program Files/Apache
Group/Apache2/conf/httpd.conf:
Cannot load C:/Program Files/Apache Group/Apache2/modules/mod_webapp.so into
server: The specified module could not be found.


Am I placing the dll in the wrong directory or what?

Greetings,
Gunter.


--
To unsubscribe, e-mail:

For additional commands, e-mail:




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




RE: mod_webapp.so

2002-07-05 Thread Ten-Hung Chu

What versions of Apache and Tomcat? If it is Apache 1.3, you need to add
AddModule mod_webapp.c after LoadModule.

Ten

-Original Message-
From: Mario Henley Becerril Geldis [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 05, 2002 5:35 PM
To: [EMAIL PROTECTED]
Subject: mod_webapp.so





   I compile and make my mod_webapp.so, but when i try run apachectl this
say:

 Syntax error on line 211 of /usr/local/apache/conf/httpd.conf:
Cannot load /usr/local/apache/libexec/mod_webapp.so into
server: /usr/local/apache/libexec/mod_webapp.so: undefined
symbol: apr_atomic_init


   My httpd.conf:


   LoadModule webapp_module libexec/mod_webapp.so
   WebAppConnection warpConnection warp www.mydomain:8008
   WebAppDeploy examples warpConnection /examples/



   why..???


   :-(


--
To unsubscribe, e-mail:

For additional commands, e-mail:




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




RE: Apache for jsp...

2002-07-04 Thread Ten-Hung Chu

If you want to run Apache HTTPd and Tomcat, you need some connection module
for Apache to talk to tomcat. Like mod_jk or mod_webapp. However if your
site does not have too much traffic and you don't mind serving static files
through tomcat, you can run tomcat on port 80 by itself. Just modify
server.xml and change 8080 to 80.

Ten

-Original Message-
From: Mario Henley Becerril Geldis [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 04, 2002 2:09 PM
To: [EMAIL PROTECTED]
Subject: Apache for jsp...





  Is posible run tomcat on port 80..???

  i want run my server with http://www.mydomain/example.jsp and no with
http://www.mydomain:8080/example.jsp...

  but i don't known if i will modify my httpd.conf for load my
context...or i need aditional module..???



--
To unsubscribe, e-mail:

For additional commands, e-mail:




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




mod_webapp returns improper HTTP header (Apache 2 + Tomcat 4)

2002-07-04 Thread Ten-Hung Chu

I am using Apache 2.0.39 with Tomcat 4.0.4 through mod_webapp (1.2.0-dev).
The connection works fine except getting to the welcome-file on tomcat. I
can request the file directly like /examples/jsp/index.html but requesting
/examples/jsp/ results in a 302 temporary moved page. Looking at the
response headers I found that mod_webapp returns an incorrect header

- correct HTTP header while accessing tomcat directly through port 8080
# lynx -head -dump http://my.host.nowhere:8080/examples/jsp/
HTTP/1.1 302 Moved Temporarily
Content-Type: text/html
Date: Thu, 04 Jul 2002 18:46:07 GMT
Location: http://my.host.nowhere:8080/examples/jsp/index.html
Server: Apache Tomcat/4.0.4 (HTTP/1.1 Connector)
Connection: close

- correct HTTP header while accessing tomcat through mod_webapp
# lynx -head -dump http://my.host.nowhere/examples/jsp/
HTTP/1.1 Moved Temporarily
Date: Thu, 04 Jul 2002 18:45:59 GMT
Server: Apache/2.0.39 (Unix) mod_ssl/2.0.39 OpenSSL/0.9.6b
mod_webapp/1.2.0-dev
Content-Type: text/html; charset=ISO-8859-1
Location: http://my.host.nowhere/examples/jsp/index.html
Connection: close

- correct HTTP header while accessing tomcat through mod_webapp
# lynx -head -dump http://my.host.nowhere/examples/jsp/index.html
HTTP/1.1 OK
Date: Thu, 04 Jul 2002 18:45:48 GMT
Server: Apache/2.0.39 (Unix) mod_ssl/2.0.39 OpenSSL/0.9.6b
mod_webapp/1.2.0-dev
Content-Type: text/html;charset=UTF-8
Connection: close


As shown above, accessing through mod_webapp result in a HTTP header without
status code (first line of the header). Therefore web browser does not know
to redirect to the welcome-file page. If accessing directly through port
8080 the header does contain the status code.

Did I do something wrong? How can I fix this?

Following is my configuration,

# Solaris 2.8

# ./httpd -l
Compiled in modules:
  core.c
  mod_access.c
  mod_auth.c
  mod_include.c
  mod_log_config.c
  mod_env.c
  mod_setenvif.c
  mod_ssl.c
  prefork.c
  http_core.c
  mod_mime.c
  mod_status.c
  mod_autoindex.c
  mod_asis.c
  mod_cgi.c
  mod_negotiation.c
  mod_dir.c
  mod_imap.c
  mod_actions.c
  mod_userdir.c
  mod_alias.c
  mod_so.c
# ./httpd -v
Server version: Apache/2.0.39
Server built:   Jun 28 2002 15:15:31

# java -version
java version "1.3.1_02"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_02-b02)
Java HotSpot(TM) Client VM (build 1.3.1_02-b02, mixed mode)

Here is how I build mod_webapp
Using jakarta-tomcat-connectors-4.0.4-src
cd in webapp source directory
./support/buildconf.sh CC=/usr/local/bin/gcc
./configure --with-apxs=/usr/local/apache2/bin/apxs
/usr/local/bin/make

Additional packages used for building mod_webapp
gnu make-3.79.1 , m4-1.4, autoconf-2.53


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