You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Craig Setera <se...@home.com> on 2001/10/19 04:17:24 UTC

Help with webapp module, Apache 1.3 and Tomcat 4.0

Hoping someone can help me get this combination working correctly.

I've downloaded the webapp module and Tomcat 4.0 RPMS and installed them on
my Redhat 7.0 Linux machine.  The details of my install:

Redhat 7.0 Linux
Apache 1.3.14
mod_webapp-1.0-1.i386.rpm
tomcat4-4.0-1.noarch.rpm
Sun's JDK 1.3.1 (rpm installed)

I've configured everything and it seems to actually work.  The problem is
that Apache and Tomcat are both spewing error messages like crazy.  In the
Apache log, I'm seeing tons of errors like this:
[root@CB551857-B httpd]# tail -n 20 error_log
[Thu Oct 18 15:55:03 2001] [error] Cannot deploy application WebMail
[Thu Oct 18 15:55:03 2001] [error] Cannot deploy application WebMail
[Thu Oct 18 15:55:03 2001] [error] Cannot deploy application WebMail
[Thu Oct 18 15:55:03 2001] [error] Cannot deploy application WebMail
[Thu Oct 18 15:55:03 2001] [error] Cannot read packet (pr_warp_config.c:139)
[Thu Oct 18 15:55:03 2001] [error] Cannot configure connection
"warpConnection"
[Thu Oct 18 15:55:03 2001] [error] Cannot deploy application WebMail
[Thu Oct 18 15:55:03 2001] [error] Cannot read packet (pr_warp_config.c:139)
[Thu Oct 18 15:55:03 2001] [error] Cannot configure connection
"warpConnection"
[Thu Oct 18 15:55:03 2001] [error] Cannot read packet (pr_warp_config.c:139)
[Thu Oct 18 15:55:03 2001] [error] Cannot configure connection
"warpConnection"
[Thu Oct 18 15:55:03 2001] [error] Cannot read packet (pr_warp_config.c:139)
[Thu Oct 18 15:55:03 2001] [error] Cannot configure connection
"warpConnection"
[Thu Oct 18 15:55:03 2001] [error] Cannot read packet (pr_warp_config.c:139)
[Thu Oct 18 15:55:03 2001] [error] Cannot configure connection
"warpConnection"
[Thu Oct 18 15:55:03 2001] [error] Cannot read packet (pr_warp_config.c:139)
[Thu Oct 18 15:55:03 2001] [error] Cannot configure connection
"warpConnection"
[Thu Oct 18 15:55:03 2001] [error] Cannot read packet (pr_warp_config.c:139)
[Thu Oct 18 15:55:03 2001] [error] Cannot shutdown "warpConnection"
[Thu Oct 18 15:55:03 2001] [error] Cannot configure connection
"warpConnection"

In the Tomcat log file, I see tons of related errors:

2001-10-18 15:55:03
[org.apache.catalina.connector.warp.WarpConfigurationHandler]
java.lang.IllegalArgumentException: addChild:  Child name 'xxx.home.com' is
not unique
        at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java)
        at
org.apache.catalina.core.StandardEngine.addChild(StandardEngine.java)
        at
org.apache.catalina.connector.warp.WarpConfigurationHandler.deploy(WarpConfi
gurationHandler.java)
        at
org.apache.catalina.connector.warp.WarpConfigurationHandler.handle(WarpConfi
gurationHandler.java)
        at
org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java)
        at java.lang.Thread.run(Thread.java:484)

2001-10-18 15:55:03
[org.apache.catalina.connector.warp.WarpConfigurationHandler] Error
deploying web application "WebMail" under <http://xxx.home.com:80/WebMail/>

Yet, at the beginning, the deployment seems to go just fine.  Accessing the
web application works... But the log files grow WAY too fast.  It is as if
Apache continually tries to deploy the web application over and over.  I've
looked through the sources for the Tomcat side of the configuration and I
can't see a way that it should try to add the same host twice.  I've looked
at the sources for the Apache module and can't see why it would try to
deploy the web app more than once.  I can't see anything wrong with my
config (syntax checks out ok).  At this point, I've completely run out of
ideas.

Any help appreciated,
Craig


RE: Help with webapp module, Apache 1.3 and Tomcat 4.0, ATT: Pier, Bug # 4334

Posted by Philippe Khalife <pk...@dinmar.com>.
Bug track #4334


-----Original Message-----
From: Pier Fumagalli [mailto:pier@betaversion.org]
Sent: October 22, 2001 9:59 AM
To: tomcat-user@jakarta.apache.org
Subject: Re: Help with webapp module, Apache 1.3 and Tomcat 4.0, ATT:
Pier


Philippe Khalife at pkhalife@dinmar.com wrote:

> 
> I'm not claiming I know the reason why this error happens, but I have the
> same problem.
> 
> My fix:
> Change the ServerName in httpd.conf to be the IP address instead of the
> hostname.domain.com, keep the name in server.xml
> it works.

And actually, since I was reviewing the code, that's a very good hint... If
the two definitions in server.xml and httpd.conf are different, the Warp
code will actually create a new "WarpHost" instance in your configuration
tree, and that might be the very root of the problem (using <Host> in
server.xml..)...

I'll make some tests, can someone file this into
http://nagoya.apache.org/bugzilla

Thanks :)

    Pier





Re: Help with webapp module, Apache 1.3 and Tomcat 4.0, ATT: Pier

Posted by Pier Fumagalli <pi...@betaversion.org>.
Philippe Khalife at pkhalife@dinmar.com wrote:

> 
> I'm not claiming I know the reason why this error happens, but I have the
> same problem.
> 
> My fix:
> Change the ServerName in httpd.conf to be the IP address instead of the
> hostname.domain.com, keep the name in server.xml
> it works.

And actually, since I was reviewing the code, that's a very good hint... If
the two definitions in server.xml and httpd.conf are different, the Warp
code will actually create a new "WarpHost" instance in your configuration
tree, and that might be the very root of the problem (using <Host> in
server.xml..)...

I'll make some tests, can someone file this into
http://nagoya.apache.org/bugzilla

Thanks :)

    Pier


RE: Help with webapp module, Apache 1.3 and Tomcat 4.0, ATT: Pier

Posted by Philippe Khalife <pk...@dinmar.com>.
I'm not claiming I know the reason why this error happens, but I have the
same problem.

My fix:
Change the ServerName in httpd.conf to be the IP address instead of the
hostname.domain.com, keep the name in server.xml
it works.

;)
PK

-----Original Message-----
From: Craig Setera [mailto:setera@home.com]
Sent: October 19, 2001 7:01 PM
To: tomcat-user@jakarta.apache.org
Subject: Re: Help with webapp module, Apache 1.3 and Tomcat 4.0


Sorry.  I wasn't sure what would be necessary.  I've attached the requested
information.

I appreciate anything that you can tell me about what I might be doing
wrong.
Thanks,
Craig

----- Original Message -----
From: "Pier Fumagalli" <pi...@betaversion.org>
To: <to...@jakarta.apache.org>
Sent: Friday, October 19, 2001 3:18 PM
Subject: Re: Help with webapp module, Apache 1.3 and Tomcat 4.0


>
> > Hoping someone can help me get this combination working correctly.
> >
> > I've downloaded the webapp module and Tomcat 4.0 RPMS and installed them
on
> > my Redhat 7.0 Linux machine.  The details of my install:
> >
> > Redhat 7.0 Linux
> > Apache 1.3.14
> > mod_webapp-1.0-1.i386.rpm
> > tomcat4-4.0-1.noarch.rpm
> > Sun's JDK 1.3.1 (rpm installed)
> >
> > I've configured everything and it seems to actually work.  The problem
is
> > that Apache and Tomcat are both spewing error messages like crazy.  In
the
> > Apache log, I'm seeing tons of errors like this:
> > [root@CB551857-B httpd]# tail -n 20 error_log
> > [Thu Oct 18 15:55:03 2001] [error] Cannot deploy application WebMail
> > [Thu Oct 18 15:55:03 2001] [error] Cannot deploy application WebMail
> > [Thu Oct 18 15:55:03 2001] [error] Cannot deploy application WebMail
> > [Thu Oct 18 15:55:03 2001] [error] Cannot deploy application WebMail
> > [Thu Oct 18 15:55:03 2001] [error] Cannot read packet
(pr_warp_config.c:139)
> > [Thu Oct 18 15:55:03 2001] [error] Cannot configure connection
> > "warpConnection"
> > [Thu Oct 18 15:55:03 2001] [error] Cannot deploy application WebMail
> > [Thu Oct 18 15:55:03 2001] [error] Cannot read packet
(pr_warp_config.c:139)
> > [Thu Oct 18 15:55:03 2001] [error] Cannot configure connection
> > "warpConnection"
> > [Thu Oct 18 15:55:03 2001] [error] Cannot read packet
(pr_warp_config.c:139)
> > [Thu Oct 18 15:55:03 2001] [error] Cannot configure connection
> > "warpConnection"
> > [Thu Oct 18 15:55:03 2001] [error] Cannot read packet
(pr_warp_config.c:139)
> > [Thu Oct 18 15:55:03 2001] [error] Cannot configure connection
> > "warpConnection"
> > [Thu Oct 18 15:55:03 2001] [error] Cannot read packet
(pr_warp_config.c:139)
> > [Thu Oct 18 15:55:03 2001] [error] Cannot configure connection
> > "warpConnection"
> > [Thu Oct 18 15:55:03 2001] [error] Cannot read packet
(pr_warp_config.c:139)
> > [Thu Oct 18 15:55:03 2001] [error] Cannot configure connection
> > "warpConnection"
> > [Thu Oct 18 15:55:03 2001] [error] Cannot read packet
(pr_warp_config.c:139)
> > [Thu Oct 18 15:55:03 2001] [error] Cannot shutdown "warpConnection"
> > [Thu Oct 18 15:55:03 2001] [error] Cannot configure connection
> > "warpConnection"
> >
> > In the Tomcat log file, I see tons of related errors:
> >
> > 2001-10-18 15:55:03
> > [org.apache.catalina.connector.warp.WarpConfigurationHandler]
> > java.lang.IllegalArgumentException: addChild:  Child name 'xxx.home.com'
is
> > not unique
> >       at
> > org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java)
> >       at
> > org.apache.catalina.core.StandardEngine.addChild(StandardEngine.java)
> >       at
> >
org.apache.catalina.connector.warp.WarpConfigurationHandler.deploy(WarpConfi
> > gurationHandler.java)
> >       at
> >
org.apache.catalina.connector.warp.WarpConfigurationHandler.handle(WarpConfi
> > gurationHandler.java)
> >       at
> >
org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java)
> >       at java.lang.Thread.run(Thread.java:484)
> >
> > 2001-10-18 15:55:03
> > [org.apache.catalina.connector.warp.WarpConfigurationHandler] Error
> > deploying web application "WebMail" under
<http://xxx.home.com:80/WebMail/>
> >
> > Yet, at the beginning, the deployment seems to go just fine.  Accessing
the
> > web application works... But the log files grow WAY too fast.  It is as
if
> > Apache continually tries to deploy the web application over and over.
I've
> > looked through the sources for the Tomcat side of the configuration and
I
> > can't see a way that it should try to add the same host twice.  I've
looked
> > at the sources for the Apache module and can't see why it would try to
> > deploy the web app more than once.  I can't see anything wrong with my
> > config (syntax checks out ok).  At this point, I've completely run out
of
> > ideas.
> >
> > Any help appreciated,
> > Craig
>
> Hard to see what's wrong without your server.xml and httpd.conf...
>
>     Pier
>
>



Re: Help with webapp module, Apache 1.3 and Tomcat 4.0

Posted by Pier Fumagalli <pi...@betaversion.org>.
Craig Setera at setera@home.com wrote:

> Sorry.  I wasn't sure what would be necessary.  I've attached the requested
> information.
> 
> I appreciate anything that you can tell me about what I might be doing
> wrong.
> Thanks,
> Craig

I seriously don't see anything wrong with your server.xml and httpd.conf,
they're both correct. At this point, I believe it is some kind of timeout or
race condition in the deployment of the host...

The only problem I see in that assumption is that the whole host creation
process is synchronized over all threads (see line 257 of
WarpConfigurationHandler).

The only thing I can possibly do to figure out why it's not working, is
trying to deploy that application on my local system out here. Otherwise, I
would really have no clue...

    Pier


Re: Help with webapp module, Apache 1.3 and Tomcat 4.0

Posted by Craig Setera <se...@home.com>.
Sorry.  I wasn't sure what would be necessary.  I've attached the requested
information.

I appreciate anything that you can tell me about what I might be doing
wrong.
Thanks,
Craig

----- Original Message -----
From: "Pier Fumagalli" <pi...@betaversion.org>
To: <to...@jakarta.apache.org>
Sent: Friday, October 19, 2001 3:18 PM
Subject: Re: Help with webapp module, Apache 1.3 and Tomcat 4.0


>
> > Hoping someone can help me get this combination working correctly.
> >
> > I've downloaded the webapp module and Tomcat 4.0 RPMS and installed them
on
> > my Redhat 7.0 Linux machine.  The details of my install:
> >
> > Redhat 7.0 Linux
> > Apache 1.3.14
> > mod_webapp-1.0-1.i386.rpm
> > tomcat4-4.0-1.noarch.rpm
> > Sun's JDK 1.3.1 (rpm installed)
> >
> > I've configured everything and it seems to actually work.  The problem
is
> > that Apache and Tomcat are both spewing error messages like crazy.  In
the
> > Apache log, I'm seeing tons of errors like this:
> > [root@CB551857-B httpd]# tail -n 20 error_log
> > [Thu Oct 18 15:55:03 2001] [error] Cannot deploy application WebMail
> > [Thu Oct 18 15:55:03 2001] [error] Cannot deploy application WebMail
> > [Thu Oct 18 15:55:03 2001] [error] Cannot deploy application WebMail
> > [Thu Oct 18 15:55:03 2001] [error] Cannot deploy application WebMail
> > [Thu Oct 18 15:55:03 2001] [error] Cannot read packet
(pr_warp_config.c:139)
> > [Thu Oct 18 15:55:03 2001] [error] Cannot configure connection
> > "warpConnection"
> > [Thu Oct 18 15:55:03 2001] [error] Cannot deploy application WebMail
> > [Thu Oct 18 15:55:03 2001] [error] Cannot read packet
(pr_warp_config.c:139)
> > [Thu Oct 18 15:55:03 2001] [error] Cannot configure connection
> > "warpConnection"
> > [Thu Oct 18 15:55:03 2001] [error] Cannot read packet
(pr_warp_config.c:139)
> > [Thu Oct 18 15:55:03 2001] [error] Cannot configure connection
> > "warpConnection"
> > [Thu Oct 18 15:55:03 2001] [error] Cannot read packet
(pr_warp_config.c:139)
> > [Thu Oct 18 15:55:03 2001] [error] Cannot configure connection
> > "warpConnection"
> > [Thu Oct 18 15:55:03 2001] [error] Cannot read packet
(pr_warp_config.c:139)
> > [Thu Oct 18 15:55:03 2001] [error] Cannot configure connection
> > "warpConnection"
> > [Thu Oct 18 15:55:03 2001] [error] Cannot read packet
(pr_warp_config.c:139)
> > [Thu Oct 18 15:55:03 2001] [error] Cannot configure connection
> > "warpConnection"
> > [Thu Oct 18 15:55:03 2001] [error] Cannot read packet
(pr_warp_config.c:139)
> > [Thu Oct 18 15:55:03 2001] [error] Cannot shutdown "warpConnection"
> > [Thu Oct 18 15:55:03 2001] [error] Cannot configure connection
> > "warpConnection"
> >
> > In the Tomcat log file, I see tons of related errors:
> >
> > 2001-10-18 15:55:03
> > [org.apache.catalina.connector.warp.WarpConfigurationHandler]
> > java.lang.IllegalArgumentException: addChild:  Child name 'xxx.home.com'
is
> > not unique
> >       at
> > org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java)
> >       at
> > org.apache.catalina.core.StandardEngine.addChild(StandardEngine.java)
> >       at
> >
org.apache.catalina.connector.warp.WarpConfigurationHandler.deploy(WarpConfi
> > gurationHandler.java)
> >       at
> >
org.apache.catalina.connector.warp.WarpConfigurationHandler.handle(WarpConfi
> > gurationHandler.java)
> >       at
> >
org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java)
> >       at java.lang.Thread.run(Thread.java:484)
> >
> > 2001-10-18 15:55:03
> > [org.apache.catalina.connector.warp.WarpConfigurationHandler] Error
> > deploying web application "WebMail" under
<http://xxx.home.com:80/WebMail/>
> >
> > Yet, at the beginning, the deployment seems to go just fine.  Accessing
the
> > web application works... But the log files grow WAY too fast.  It is as
if
> > Apache continually tries to deploy the web application over and over.
I've
> > looked through the sources for the Tomcat side of the configuration and
I
> > can't see a way that it should try to add the same host twice.  I've
looked
> > at the sources for the Apache module and can't see why it would try to
> > deploy the web app more than once.  I can't see anything wrong with my
> > config (syntax checks out ok).  At this point, I've completely run out
of
> > ideas.
> >
> > Any help appreciated,
> > Craig
>
> Hard to see what's wrong without your server.xml and httpd.conf...
>
>     Pier
>
>

Re: Help with webapp module, Apache 1.3 and Tomcat 4.0

Posted by Pier Fumagalli <pi...@betaversion.org>.
Craig Setera at setera@home.com wrote:

> Hoping someone can help me get this combination working correctly.
> 
> I've downloaded the webapp module and Tomcat 4.0 RPMS and installed them on
> my Redhat 7.0 Linux machine.  The details of my install:
> 
> Redhat 7.0 Linux
> Apache 1.3.14
> mod_webapp-1.0-1.i386.rpm
> tomcat4-4.0-1.noarch.rpm
> Sun's JDK 1.3.1 (rpm installed)
> 
> I've configured everything and it seems to actually work.  The problem is
> that Apache and Tomcat are both spewing error messages like crazy.  In the
> Apache log, I'm seeing tons of errors like this:
> [root@CB551857-B httpd]# tail -n 20 error_log
> [Thu Oct 18 15:55:03 2001] [error] Cannot deploy application WebMail
> [Thu Oct 18 15:55:03 2001] [error] Cannot deploy application WebMail
> [Thu Oct 18 15:55:03 2001] [error] Cannot deploy application WebMail
> [Thu Oct 18 15:55:03 2001] [error] Cannot deploy application WebMail
> [Thu Oct 18 15:55:03 2001] [error] Cannot read packet (pr_warp_config.c:139)
> [Thu Oct 18 15:55:03 2001] [error] Cannot configure connection
> "warpConnection"
> [Thu Oct 18 15:55:03 2001] [error] Cannot deploy application WebMail
> [Thu Oct 18 15:55:03 2001] [error] Cannot read packet (pr_warp_config.c:139)
> [Thu Oct 18 15:55:03 2001] [error] Cannot configure connection
> "warpConnection"
> [Thu Oct 18 15:55:03 2001] [error] Cannot read packet (pr_warp_config.c:139)
> [Thu Oct 18 15:55:03 2001] [error] Cannot configure connection
> "warpConnection"
> [Thu Oct 18 15:55:03 2001] [error] Cannot read packet (pr_warp_config.c:139)
> [Thu Oct 18 15:55:03 2001] [error] Cannot configure connection
> "warpConnection"
> [Thu Oct 18 15:55:03 2001] [error] Cannot read packet (pr_warp_config.c:139)
> [Thu Oct 18 15:55:03 2001] [error] Cannot configure connection
> "warpConnection"
> [Thu Oct 18 15:55:03 2001] [error] Cannot read packet (pr_warp_config.c:139)
> [Thu Oct 18 15:55:03 2001] [error] Cannot configure connection
> "warpConnection"
> [Thu Oct 18 15:55:03 2001] [error] Cannot read packet (pr_warp_config.c:139)
> [Thu Oct 18 15:55:03 2001] [error] Cannot shutdown "warpConnection"
> [Thu Oct 18 15:55:03 2001] [error] Cannot configure connection
> "warpConnection"
> 
> In the Tomcat log file, I see tons of related errors:
> 
> 2001-10-18 15:55:03
> [org.apache.catalina.connector.warp.WarpConfigurationHandler]
> java.lang.IllegalArgumentException: addChild:  Child name 'xxx.home.com' is
> not unique
>       at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java)
>       at
> org.apache.catalina.core.StandardEngine.addChild(StandardEngine.java)
>       at
> org.apache.catalina.connector.warp.WarpConfigurationHandler.deploy(WarpConfi
> gurationHandler.java)
>       at
> org.apache.catalina.connector.warp.WarpConfigurationHandler.handle(WarpConfi
> gurationHandler.java)
>       at
> org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java)
>       at java.lang.Thread.run(Thread.java:484)
> 
> 2001-10-18 15:55:03
> [org.apache.catalina.connector.warp.WarpConfigurationHandler] Error
> deploying web application "WebMail" under <http://xxx.home.com:80/WebMail/>
> 
> Yet, at the beginning, the deployment seems to go just fine.  Accessing the
> web application works... But the log files grow WAY too fast.  It is as if
> Apache continually tries to deploy the web application over and over.  I've
> looked through the sources for the Tomcat side of the configuration and I
> can't see a way that it should try to add the same host twice.  I've looked
> at the sources for the Apache module and can't see why it would try to
> deploy the web app more than once.  I can't see anything wrong with my
> config (syntax checks out ok).  At this point, I've completely run out of
> ideas.
> 
> Any help appreciated,
> Craig

Hard to see what's wrong without your server.xml and httpd.conf...

    Pier