You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Antonio Vázquez <av...@winsoftsystems.com> on 2002/09/03 10:08:55 UTC

Invalid command 'WebAppDeploy'

I tried to connect Apache and Tomcat 4.0.1 in SUSE Linux 6.4

The lines in the file httpd.conf are equal to the user guide:

httpd.conf (last lines)

# Tomcat 4.0.1
LoadModule webapp_module /usr/lib/apache/mod_webapp.so
AddModule mod_webapp.c
WebAppConnection conn warp localhost:8008
WebAppDeploy     examples  conn  /examples

But when i try to start...

Error message:

[Tue Sep  3 11:08:37 2002] [warn] Loaded DSO /usr/lib/apache/mod_webapp.so
uses plain Apache 1.3 API, this module might crash under EAPI! (please
recompile it with -DEAPI)
Syntax error on line 1550 of /etc/httpd/httpd.conf:
Invalid command 'WebAppDeploy', perhaps mis-spelled or defined by a module
not included in the server configuration

If remove the webappdeploy line, Apache start, but the tomcat example
application doesn't work, only in port 8080 (tomcat default)


Any idea....

Thanks
Antonio



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: global.jsa

Posted by Felipe Schnack <fe...@ritterdosreis.br>.
  That's not the problem. If I comment out "ServletContextListener"
interface, I still don't get any session notifications.

On Wed, 2002-09-11 at 04:23, Chris Brown wrote:
> 
> You seem to have implemented the correct interfaces.  However, I've not seen
> your web.xml deployment descriptor.  You'll need to refer to your class in
> two separate places in web.xml in order for both event types (session and
> application) to be sent to your class.  I suspect that the servlet engine
> will create one separate instance of the class for listening to application
> start/stop and another for session activation/deactivation.
> 
> If you really need to store everything in one instance of the class, you
> could always add "this" (the servlet context listener) as a servlet context
> attribute, and then when a session starts or ends, call a method of the
> "first" instance by getting the copy you put in the servlet context.  I'd
> personally make two classes, for readability and simplicity though!
> 
> - Chris
> 
> ----- Original Message -----
> From: "Felipe Schnack" <fe...@ritterdosreis.br>
> To: <br...@reflexe.fr>
> Sent: Tuesday, September 10, 2002 8:14 PM
> Subject: Re: global.jsa
> 
> 
> >   Hi!
> >   I saw this post of yours in the tomcat list and tried myself. For some
> > reason it doesn works... you can help me? I don't know what to do, it
> > works for application start/stop, but not for session.
> >
> > On Mon, 2002-09-09 at 05:51, Chris Brown wrote:
> > >
> > > Hello,
> > >
> > > I've seen a few answers to your question suggesting that you use a
> servlet
> > > that loads on startup.  I have another suggestion that you may prefer to
> > > emulate "global.asa": implement ServletContextListener and
> > > HttpSessionActivationListener.
> > >
> > > javax.servlet.ServletContextListener
> > >
> > >   ...sends you events when the webapp starts and ends.
> > >
> > > javax.servlet.http.HttpSessionActivationListener
> > >
> > >   ...sends you events when a session is created or destroyed.
> > >
> > > You'll find javadocs for these items in the following path with a
> default
> > > tomcat installation, obviously relative to the root of your
> installation:
> > >
> > >   /tomcat-docs/servletapi/index.html
> > >
> > > To use them, you'll need to add appropriate XML elements to web.xml
> (refer
> > > to a tutorial or the web.xml DTD).  It's simple and works well.
> > >
> > > - Chris
> > >
> > > ----- Original Message -----
> > > From: "neal" <ne...@yahoo.com>
> > > To: "Tomcat Users List" <to...@jakarta.apache.org>
> > > Sent: Tuesday, September 03, 2002 10:14 AM
> > > Subject: global.jsa
> > >
> > >
> > > > Is there such a thing as a global.jsa file in Tomcat?
> > > >
> > > > I first saw this concept (an idea taken from ASP's global.asa)
> implemented
> > > > in JRUN.
> > > >
> > > > If there is a global.jsa, does anyone know of any docs on this?  If
> not,
> > > is
> > > > there an alternative? The reason I would want to use this is to
> > > instantiate,
> > > > populate, and cache a few objects upon startup of the application.  If
> > > > Tomcat does not provide a global.jsa...does anyone know how otherwise
> to
> > > > achieve the goal?
> > > >
> > > > Thanks.
> > > > Neal
> > > >
> > > >
> > > > --
> > > > To unsubscribe, e-mail:
> > > <ma...@jakarta.apache.org>
> > > > For additional commands, e-mail:
> > > <ma...@jakarta.apache.org>
> > > >
> > > >
> > > >
> > >
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> > > For additional commands, e-mail:
> <ma...@jakarta.apache.org>
> > >
> > --
> >
> > Felipe Schnack
> > Analista de Sistemas
> > felipes@ritterdosreis.br
> > Cel.: (51)91287530
> > Linux Counter #281893
> >
> > Faculdade Ritter dos Reis
> > www.ritterdosreis.br
> > felipes@ritterdosreis.br
> > Fone/Fax.: (51)32303328
> >
> 
> 
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
> 
-- 

Felipe Schnack
Analista de Sistemas
felipes@ritterdosreis.br
Cel.: (51)91287530
Linux Counter #281893

Faculdade Ritter dos Reis
www.ritterdosreis.br
felipes@ritterdosreis.br
Fone/Fax.: (51)32303328


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: global.jsa

Posted by Chris Brown <br...@reflexe.fr>.
You seem to have implemented the correct interfaces.  However, I've not seen
your web.xml deployment descriptor.  You'll need to refer to your class in
two separate places in web.xml in order for both event types (session and
application) to be sent to your class.  I suspect that the servlet engine
will create one separate instance of the class for listening to application
start/stop and another for session activation/deactivation.

If you really need to store everything in one instance of the class, you
could always add "this" (the servlet context listener) as a servlet context
attribute, and then when a session starts or ends, call a method of the
"first" instance by getting the copy you put in the servlet context.  I'd
personally make two classes, for readability and simplicity though!

- Chris

----- Original Message -----
From: "Felipe Schnack" <fe...@ritterdosreis.br>
To: <br...@reflexe.fr>
Sent: Tuesday, September 10, 2002 8:14 PM
Subject: Re: global.jsa


>   Hi!
>   I saw this post of yours in the tomcat list and tried myself. For some
> reason it doesn works... you can help me? I don't know what to do, it
> works for application start/stop, but not for session.
>
> On Mon, 2002-09-09 at 05:51, Chris Brown wrote:
> >
> > Hello,
> >
> > I've seen a few answers to your question suggesting that you use a
servlet
> > that loads on startup.  I have another suggestion that you may prefer to
> > emulate "global.asa": implement ServletContextListener and
> > HttpSessionActivationListener.
> >
> > javax.servlet.ServletContextListener
> >
> >   ...sends you events when the webapp starts and ends.
> >
> > javax.servlet.http.HttpSessionActivationListener
> >
> >   ...sends you events when a session is created or destroyed.
> >
> > You'll find javadocs for these items in the following path with a
default
> > tomcat installation, obviously relative to the root of your
installation:
> >
> >   /tomcat-docs/servletapi/index.html
> >
> > To use them, you'll need to add appropriate XML elements to web.xml
(refer
> > to a tutorial or the web.xml DTD).  It's simple and works well.
> >
> > - Chris
> >
> > ----- Original Message -----
> > From: "neal" <ne...@yahoo.com>
> > To: "Tomcat Users List" <to...@jakarta.apache.org>
> > Sent: Tuesday, September 03, 2002 10:14 AM
> > Subject: global.jsa
> >
> >
> > > Is there such a thing as a global.jsa file in Tomcat?
> > >
> > > I first saw this concept (an idea taken from ASP's global.asa)
implemented
> > > in JRUN.
> > >
> > > If there is a global.jsa, does anyone know of any docs on this?  If
not,
> > is
> > > there an alternative? The reason I would want to use this is to
> > instantiate,
> > > populate, and cache a few objects upon startup of the application.  If
> > > Tomcat does not provide a global.jsa...does anyone know how otherwise
to
> > > achieve the goal?
> > >
> > > Thanks.
> > > Neal
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > <ma...@jakarta.apache.org>
> > > For additional commands, e-mail:
> > <ma...@jakarta.apache.org>
> > >
> > >
> > >
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> > For additional commands, e-mail:
<ma...@jakarta.apache.org>
> >
> --
>
> Felipe Schnack
> Analista de Sistemas
> felipes@ritterdosreis.br
> Cel.: (51)91287530
> Linux Counter #281893
>
> Faculdade Ritter dos Reis
> www.ritterdosreis.br
> felipes@ritterdosreis.br
> Fone/Fax.: (51)32303328
>



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: global.jsa

Posted by Chris Brown <br...@reflexe.fr>.
Hello,

I've seen a few answers to your question suggesting that you use a servlet
that loads on startup.  I have another suggestion that you may prefer to
emulate "global.asa": implement ServletContextListener and
HttpSessionActivationListener.

javax.servlet.ServletContextListener

  ...sends you events when the webapp starts and ends.

javax.servlet.http.HttpSessionActivationListener

  ...sends you events when a session is created or destroyed.

You'll find javadocs for these items in the following path with a default
tomcat installation, obviously relative to the root of your installation:

  /tomcat-docs/servletapi/index.html

To use them, you'll need to add appropriate XML elements to web.xml (refer
to a tutorial or the web.xml DTD).  It's simple and works well.

- Chris

----- Original Message -----
From: "neal" <ne...@yahoo.com>
To: "Tomcat Users List" <to...@jakarta.apache.org>
Sent: Tuesday, September 03, 2002 10:14 AM
Subject: global.jsa


> Is there such a thing as a global.jsa file in Tomcat?
>
> I first saw this concept (an idea taken from ASP's global.asa) implemented
> in JRUN.
>
> If there is a global.jsa, does anyone know of any docs on this?  If not,
is
> there an alternative? The reason I would want to use this is to
instantiate,
> populate, and cache a few objects upon startup of the application.  If
> Tomcat does not provide a global.jsa...does anyone know how otherwise to
> achieve the goal?
>
> Thanks.
> Neal
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
>
>



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


global.jsa

Posted by neal <ne...@yahoo.com>.
Is there such a thing as a global.jsa file in Tomcat?

I first saw this concept (an idea taken from ASP's global.asa) implemented
in JRUN.

If there is a global.jsa, does anyone know of any docs on this?  If not, is
there an alternative? The reason I would want to use this is to instantiate,
populate, and cache a few objects upon startup of the application.  If
Tomcat does not provide a global.jsa...does anyone know how otherwise to
achieve the goal?

Thanks.
Neal


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>