Re: mod_webapp apache2 problems:

2001-11-22 Thread jean-frederic clere

Brian P Millett wrote:
 
 Justin Erenkrantz wrote:
 
  On Wed, Nov 21, 2001 at 09:22:02AM -0600, Brian P Millett wrote:
   Quick Synopsis of error (apache 2.0):
   Syntax error on line 2 of /opt/apache/conf/mod_webapp.conf:
   Invalid port number (p1) No Port statement found
 
  Oooh, I bet it is related to the change that we committed to set
  port to 0 internally to represent that the port for the virtual
  server should be the port the connection actually comes in on.
  It's now done dynamically by the core at run-time per connection
  if port == 0 - which is the default for vhosts.  When the connection
  is actually received, the port will be the correct value.
 
  I'll take a gander at compiling webapp and posting a patch.  Can
  you verify with gdb or whatnot that wa_cvirtualhost is getting
  p=0?
 
 Put in a print statement, for the args going to wa_cvirtualhost:  n=shaka, p=0

Use something like:
+++
ServerName vtxclere.bcn.fsc.net:
+++
It works for me :))

 
 hope this helps
 
 --
 Brian Millett
 Enterprise Consulting Group   Shifts in paradigms
 (314) 205-9030   often cause nose bleeds.
 [EMAIL PROTECTED]   Greg Glenn
 
 --
 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]




mod_webapp apache2 problems:

2001-11-21 Thread Brian P Millett

All of the particulars:

uname -a = SunOS shaka 5.8 Generic_108529-12 i86pc i386 i86pc
gcc -v = gcc version 2.95.3 20010315 (release)
java -version = java version 1.4.0-beta3

Server version: Apache/1.3.22 (Unix)
Server built:   Nov 20 2001 12:00:29

Server version: Apache/2.0.29-dev
Server built:   Nov 20 2001 16:24:29

jakarta-tomcat-4.0  jakarta-tomcat-connectors CVS checkout on 11/21/01

Quick Synopsis of error (apache 2.0):
Syntax error on line 2 of /opt/apache/conf/mod_webapp.conf:
Invalid port number (p1) No Port statement found

Apache 1.3.22 configured as:
CFLAGS=-DEAPI \
./configure --with-apr=/home/bpm/compile_area/httpd-2.0/srclib/apr \
--with-apxs=/opt/apache/bin/apxs \
--with-java \
--with-tomcat=/opt/jakarta-tomcat \
--enable-debug

Apache 1.3.22 configured as:
./configure --with-apr=/home/bpm/compile_area/httpd-2.0/srclib/apr \
--with-apxs=/opt/apache2/bin/apxs \
--with-java \
--with-tomcat=/opt/jakarta-tomcat \
--enable-debug

This is my mod_webapp.conf:
--BEGIN--
WebAppConnection  warpConnection  warp   shaka:8008
WebAppDeploy   examples   warpConnection /examples/
WebAppDeploy   velexample   warpConnection /veloExample/
WebAppDeploy   forumdemowarpConnection /forumdemo/
WebAppDeploy   cocoonwarpConnection /cocoon/
WebAppInfo   /webapp-info
--END--

For apache 2.0:
/opt/apache2/bin/apachectl configtest
[Wed Nov 21 08:54:00 2001] 3938 (wa_main.c:77) WebApp Library initializing
[Wed Nov 21 08:54:00 2001] 3938 (wa_main.c:81) Initializing APR
[Wed Nov 21 08:54:00 2001] 3938 (pr_info.c:66) INFO provider initialized
[Wed Nov 21 08:54:00 2001] 3938 (pr_warp.c:62) WARP provider initialized
[Wed Nov 21 08:54:00 2001] 3938 (wa_main.c:101) WebApp Library initialized
[Wed Nov 21 08:54:00 2001] 3938 (wa_config.c:167) Created connection warpConnection 
(Prov: warp
Param: shaka:8008)
Syntax error on line 2 of /opt/apache/conf/mod_webapp.conf:
Invalid port number (p1) No Port statement found

Ok, for apache 1.3.22:
/opt/apache/bin/apachectl configtest
[Wed Nov 21 08:54:08 2001] 3941 (wa_main.c:77) WebApp Library initializing
[Wed Nov 21 08:54:08 2001] 3941 (wa_main.c:81) Initializing APR
[Wed Nov 21 08:54:08 2001] 3941 (pr_info.c:66) INFO provider initialized
[Wed Nov 21 08:54:08 2001] 3941 (pr_warp.c:62) WARP provider initialized
[Wed Nov 21 08:54:08 2001] 3941 (wa_main.c:101) WebApp Library initialized
[Wed Nov 21 08:54:08 2001] 3941 (wa_config.c:167) Created connection warpConnection 
(Prov: warp
Param: shaka:8008)
[Wed Nov 21 08:54:08 2001] 3941 (wa_config.c:126) Created virtual host shaka:80
[Wed Nov 21 08:54:08 2001] 3941 (wa_config.c:100) Created application examples in 
path
/examples/
[Wed Nov 21 08:54:08 2001] 3941 (wa_main.c:187) Application examples deployed for
http://shaka:80/examples/ (Conn: warpConnection)
[Wed Nov 21 08:54:08 2001] 3941 (wa_config.c:100) Created application velexample in 
path
/veloExample/
[Wed Nov 21 08:54:08 2001] 3941 (wa_config.c:100) Created application forumdemo in 
path
/forumdemo/
[Wed Nov 21 08:54:08 2001] 3941 (wa_config.c:100) Created application cocoon in path 
/cocoon/
[Wed Nov 21 08:54:08 2001] 3941 (pr_info.c:83) Provider is configuring _INFO_ with 
parameter 
[Wed Nov 21 08:54:08 2001] 3941 (wa_config.c:167) Created connection _INFO_ (Prov: 
info Param:
)
[Wed Nov 21 08:54:08 2001] 3941 (wa_config.c:100) Created application _INFO_ in path
/webapp-info/
[Wed Nov 21 08:54:08 2001] 3941 (pr_info.c:91) Provider is deploying _INFO_ for
http://shaka:80/webapp-info/ (Conn: _INFO_)
Syntax OK


So, what happened so that Apache 2.0 doesn't work?

--
Brian Millett
Enterprise Consulting Group   Shifts in paradigms
(314) 205-9030   often cause nose bleeds.
[EMAIL PROTECTED]   Greg Glenn




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




Re: mod_webapp apache2 problems:

2001-11-21 Thread Justin Erenkrantz

On Wed, Nov 21, 2001 at 09:22:02AM -0600, Brian P Millett wrote:
 Quick Synopsis of error (apache 2.0):
 Syntax error on line 2 of /opt/apache/conf/mod_webapp.conf:
 Invalid port number (p1) No Port statement found

Oooh, I bet it is related to the change that we committed to set
port to 0 internally to represent that the port for the virtual
server should be the port the connection actually comes in on.
It's now done dynamically by the core at run-time per connection
if port == 0 - which is the default for vhosts.  When the connection
is actually received, the port will be the correct value.

I'll take a gander at compiling webapp and posting a patch.  Can
you verify with gdb or whatnot that wa_cvirtualhost is getting
p=0?  -- justin


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




Re: mod_webapp apache2 problems:

2001-11-21 Thread jean-frederic clere

Justin Erenkrantz wrote:
 
 On Wed, Nov 21, 2001 at 09:22:02AM -0600, Brian P Millett wrote:
  Quick Synopsis of error (apache 2.0):
  Syntax error on line 2 of /opt/apache/conf/mod_webapp.conf:
  Invalid port number (p1) No Port statement found
 
 Oooh, I bet it is related to the change that we committed to set
 port to 0 internally to represent that the port for the virtual
 server should be the port the connection actually comes in on.
 It's now done dynamically by the core at run-time per connection
 if port == 0 - which is the default for vhosts.  When the connection
 is actually received, the port will be the correct value.
 
 I'll take a gander at compiling webapp and posting a patch.  Can
 you verify with gdb or whatnot that wa_cvirtualhost is getting
 p=0?  -- justin

p=0 :(
The port is svr-port the hostname svr-server_hostname (svr=cmd-server)
It is used before any connections...

 
 --
 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: mod_webapp apache2 problems:

2001-11-21 Thread Brian P Millett

Justin Erenkrantz wrote:

 On Wed, Nov 21, 2001 at 09:22:02AM -0600, Brian P Millett wrote:
  Quick Synopsis of error (apache 2.0):
  Syntax error on line 2 of /opt/apache/conf/mod_webapp.conf:
  Invalid port number (p1) No Port statement found

 Oooh, I bet it is related to the change that we committed to set
 port to 0 internally to represent that the port for the virtual
 server should be the port the connection actually comes in on.
 It's now done dynamically by the core at run-time per connection
 if port == 0 - which is the default for vhosts.  When the connection
 is actually received, the port will be the correct value.

 I'll take a gander at compiling webapp and posting a patch.  Can
 you verify with gdb or whatnot that wa_cvirtualhost is getting
 p=0?

Put in a print statement, for the args going to wa_cvirtualhost:  n=shaka, p=0

hope this helps

--
Brian Millett
Enterprise Consulting Group   Shifts in paradigms
(314) 205-9030   often cause nose bleeds.
[EMAIL PROTECTED]   Greg Glenn




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