You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by fr...@virgilio.it on 2001/06/19 18:17:28 UTC

[J-T-C] WebAppMount-Deploy

Hi, 
on my linux box (Apache 1.3.19, JDK 1.3.1 and TC4beta5)
I tried:

APR
./buildconf
./configure --enable-threads=no --prefix=/usr/local/APR --enble-static \ --disable-shared
make
make install

TC4_HOME/webapp
./buildconf.sh
./configure --with-apr=/usr/local/APR \ --with-apxs=/usr/local/apache/bin/apxs
In Makefile: 
@$(APXS) -c $(APXSFLAGS) -lpthread mod_webapp.c
                         ^^^^^^^^^^
make
cp apache-1.3/mod_webapp.so /usr/local/apache/libexec/

In httpd.conf:
-----
LoadModule webapp_module libexec/mod_webapp.so
AddModule mod_webapp.c
...
WebAppConnection infoConnection info
WebAppConnection warpConnection warp localhost:8008
WebAppDeploy examples warpConnection /examples/
WebAppDeploy cocoon warpConnection /cocoon/
-----
Promptly httpd crashes after its restart!

With (in httpd.conf):
-----
WebAppConnection infoConnection info
WebAppConnection warpConnection warp localhost:8008
WebAppMount examples warpConnection /examples/
WebAppMount cocoon warpConnection /cocoon/
-----
httpd returns the known error:
-----
[Tue Jun 19 18:15:08 2001] 1979 (pr_info.c:66) INFO provider initialized
[Tue Jun 19 18:15:08 2001] 1979 (pr_warp.c:492) WARP provider initialized
[Tue Jun 19 18:15:08 2001] 1979 (wa_main.c:98) WebApp Library initialized
[Tue Jun 19 18:15:08 2001] 1979 (pr_info.c:83) Provider is configuring "infoConnection" with parameter "(null)"
[Tue Jun 19 18:15:08 2001] 1979 (wa_config.c:163) Created connection "infoConnection"
(Prov: "info" Param: "(null)")
[Tue Jun 19 18:15:08 2001] 1979 (wa_config.c:163) Created connection "warpConnection"
(Prov: "warp" Param: "localhost:8008")
Syntax error on line 1051 of /usr/local/apache/conf/httpd.conf:
Invalid command 'WebAppMount', perhaps mis-spelled or defined by a module not included in the server configuration
/usr/local/apache/bin/apachectl start: httpd could not be started
-----
Without --enable-threads=no in APR section I obtained a
"cannot switch to passive mode" error from httpd.

Any idea?

Hi, ciao
Francesco

Francesco Casalena
L.U.G. "Il Pinguino"
----------------------------------------------
Virgilio Mail - Il tuo indirizzo E-mail gratis
http://mail.virgilio.it


Re: [J-T-C] WebAppMount-Deploy

Posted by jean-frederic clere <jf...@fujitsu-siemens.com>.
francesco.casalena@virgilio.it wrote:
> 
> Hi,
> on my linux box (Apache 1.3.19, JDK 1.3.1 and TC4beta5)
> I tried:
> 
> APR
> ./buildconf
> ./configure --enable-threads=no --prefix=/usr/local/APR --enble-static \ --disable-shared
> make
> make install
> 
> TC4_HOME/webapp
> ./buildconf.sh
> ./configure --with-apr=/usr/local/APR \ --with-apxs=/usr/local/apache/bin/apxs
> In Makefile:
> @$(APXS) -c $(APXSFLAGS) -lpthread mod_webapp.c
>                          ^^^^^^^^^^
> make
> cp apache-1.3/mod_webapp.so /usr/local/apache/libexec/
> 
> In httpd.conf:
> -----
> LoadModule webapp_module libexec/mod_webapp.so
> AddModule mod_webapp.c
> ...
> WebAppConnection infoConnection info
> WebAppConnection warpConnection warp localhost:8008
> WebAppDeploy examples warpConnection /examples/
> WebAppDeploy cocoon warpConnection /cocoon/
> -----
> Promptly httpd crashes after its restart!
> 
> With (in httpd.conf):
> -----
> WebAppConnection infoConnection info
> WebAppConnection warpConnection warp localhost:8008
> WebAppMount examples warpConnection /examples/
> WebAppMount cocoon warpConnection /cocoon/
> -----
> httpd returns the known error:
> -----
> [Tue Jun 19 18:15:08 2001] 1979 (pr_info.c:66) INFO provider initialized
> [Tue Jun 19 18:15:08 2001] 1979 (pr_warp.c:492) WARP provider initialized
> [Tue Jun 19 18:15:08 2001] 1979 (wa_main.c:98) WebApp Library initialized
> [Tue Jun 19 18:15:08 2001] 1979 (pr_info.c:83) Provider is configuring "infoConnection" with parameter "(null)"
> [Tue Jun 19 18:15:08 2001] 1979 (wa_config.c:163) Created connection "infoConnection"
> (Prov: "info" Param: "(null)")
> [Tue Jun 19 18:15:08 2001] 1979 (wa_config.c:163) Created connection "warpConnection"
> (Prov: "warp" Param: "localhost:8008")
> Syntax error on line 1051 of /usr/local/apache/conf/httpd.conf:
> Invalid command 'WebAppMount', perhaps mis-spelled or defined by a module not included in the server configuration
> /usr/local/apache/bin/apachectl start: httpd could not be started
> -----
> Without --enable-threads=no in APR section I obtained a
> "cannot switch to passive mode" error from httpd.
> 
> Any idea?
> 

Try this:
+++

<IfModule mod_webapp.c>

#
# Example servlet
#
WebAppConnection  warpConnection warp localhost:8008
WebAppDeploy examples warpConnection /examples

#
# info from mod_webapp JVM
#
WebAppInfo info

</IfModule>

+++
Doc needs update?

> Hi, ciao
> Francesco
> 
> Francesco Casalena
> L.U.G. "Il Pinguino"
> ----------------------------------------------
> Virgilio Mail - Il tuo indirizzo E-mail gratis
> http://mail.virgilio.it

Re: [J-T-C] WebAppMount-Deploy

Posted by jean-frederic clere <jf...@fujitsu-siemens.com>.
francesco.casalena@virgilio.it wrote:
> 
> Hi,
> on my linux box (Apache 1.3.19, JDK 1.3.1 and TC4beta5)
> I tried:
> 
> APR
> ./buildconf
> ./configure --enable-threads=no --prefix=/usr/local/APR --enble-static \ --disable-shared
> make
> make install
> 
> TC4_HOME/webapp
> ./buildconf.sh
> ./configure --with-apr=/usr/local/APR \ --with-apxs=/usr/local/apache/bin/apxs
> In Makefile:
> @$(APXS) -c $(APXSFLAGS) -lpthread mod_webapp.c
>                          ^^^^^^^^^^
> make
> cp apache-1.3/mod_webapp.so /usr/local/apache/libexec/
> 
> In httpd.conf:
> -----
> LoadModule webapp_module libexec/mod_webapp.so
> AddModule mod_webapp.c
> ...
> WebAppConnection infoConnection info
> WebAppConnection warpConnection warp localhost:8008
> WebAppDeploy examples warpConnection /examples/
> WebAppDeploy cocoon warpConnection /cocoon/
> -----
> Promptly httpd crashes after its restart!
> 
> With (in httpd.conf):
> -----
> WebAppConnection infoConnection info
> WebAppConnection warpConnection warp localhost:8008
> WebAppMount examples warpConnection /examples/
> WebAppMount cocoon warpConnection /cocoon/
> -----
> httpd returns the known error:
> -----
> [Tue Jun 19 18:15:08 2001] 1979 (pr_info.c:66) INFO provider initialized
> [Tue Jun 19 18:15:08 2001] 1979 (pr_warp.c:492) WARP provider initialized
> [Tue Jun 19 18:15:08 2001] 1979 (wa_main.c:98) WebApp Library initialized
> [Tue Jun 19 18:15:08 2001] 1979 (pr_info.c:83) Provider is configuring "infoConnection" with parameter "(null)"
> [Tue Jun 19 18:15:08 2001] 1979 (wa_config.c:163) Created connection "infoConnection"
> (Prov: "info" Param: "(null)")
> [Tue Jun 19 18:15:08 2001] 1979 (wa_config.c:163) Created connection "warpConnection"
> (Prov: "warp" Param: "localhost:8008")
> Syntax error on line 1051 of /usr/local/apache/conf/httpd.conf:
> Invalid command 'WebAppMount', perhaps mis-spelled or defined by a module not included in the server configuration
> /usr/local/apache/bin/apachectl start: httpd could not be started
> -----
> Without --enable-threads=no in APR section I obtained a
> "cannot switch to passive mode" error from httpd.
> 
> Any idea?
> 

Try this:
+++

<IfModule mod_webapp.c>

#
# Example servlet
#
WebAppConnection  warpConnection warp localhost:8008
WebAppDeploy examples warpConnection /examples

#
# info from mod_webapp JVM
#
WebAppInfo info

</IfModule>

+++
Doc needs update?

> Hi, ciao
> Francesco
> 
> Francesco Casalena
> L.U.G. "Il Pinguino"
> ----------------------------------------------
> Virgilio Mail - Il tuo indirizzo E-mail gratis
> http://mail.virgilio.it