Hello,
I would like to have the Tomcat container to inject a specific
ServletContextListener to each loaded webapp on my server - without
touching the individual web.xml files, and am looking for advise on
how to achieve this.
In other words, I'd like to have the container act as if there was
You know LightBulb, been seeing your questions for a while now, you clearly
learning, but you have got one serious conceptual mind on you, not enough
just to use TC, hey ;) I think its great, a guru in the making.
To try answer your question, if its HTTP, the getLastModified() that you
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi,
if you want to use Tomcat you can also use EJB by utilizing OpenEJB.
Have a look at: http://openejb.apache.org/tomcat.html
Please beware: This is not a suggestion in favor or against EJB. Just an
info that you don't need to abandon Tomcat if you
Am not sure, but, whatever job your injected contextlistener is supposed
to do, it could perhaps be done in the container listener without
ressorting to context listener, isn't it? (using ADD_CHILD for the
'context initialized' and REMOVE_CHILD for contect destroyed)?
As for calling init on your
- Original Message -
From: Johnny Kewl [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Sunday, July 01, 2007 11:22 AM
Subject: Re: Filters and getLastModified
You know LightBulb, been seeing your questions for a while now, you
clearly learning, but you have
Bill, let me just say that your little auto module helped me tremendously
when I first looked at JK, for a newbie, having that stuff generated becomes
a great tutorial in itself, so its a damn shame it will probably fall away.
I had a look at the code, and I see there are other maintainers,
Dear all,
I've just got a simple form to post Chinese characters to my jsp file.
But the data submitted can't be seen on my web browser.
After analyzing the data posted and shown on my browser, I find the
following problem.
The letters I submit are e7 89 9b e5 9d a4 which are in UTF-8 form.
And
Thanks,
the reason why I believe I need to do this from the context level
is that the code running in the listener needs to access the context
classloader of the individual webapps - and they seem to me at least
be most straightforward to access from the webapp listener.
Of course, a way to
From: Juha Laiho [mailto:[EMAIL PROTECTED]
Subject: How to inject a webapp listener?
I would like to have the Tomcat container to inject a specific
ServletContextListener to each loaded webapp on my server - without
touching the individual web.xml files, and am looking for advise on
how
From: Robert J. Carr [mailto:[EMAIL PROTECTED]
Subject: Re: CGIServlet
http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html
So I'm not following, are the resources TOTALLY invisible to web
applications or are they made visible through this class loader?
Both. You've made
From: Robert J. Carr [mailto:[EMAIL PROTECTED]
Subject: Re: WebdavServlet
Mapping it to /edit/* allows the content to be exposed at an
alternative url.
Sure, but the content exposed would still be the whole of
the webapp, right?
Yes - allowing appropriately privileged users access.
Niu Kun wrote:
Any help would be appreciated and thanks in advance.
http://tomcat.apache.org/faq/misc.html#tomcat5CharEncoding
Mark
-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL
I would suggest spring ..but springs injected entities are *usually*
classical pojos such as DBDrivers
Here is a project which shows great promise of injecting whole listeners
which may be of help for your effort
http://oranjestad.sourceforge.net/spring-oranjestad.html
hyva?
Martin-
This
From: lightbulb432 [mailto:[EMAIL PROTECTED]
Subject: HttpSession questions
Why is it that you need an HttpSession in order to get a
ServletContext?
You don't - since your code is in a class that extends HttpServlet, just
call getServletContext() directly; it's defined under
It's also available via the servlet class. See
http://tomcat.apache.org/tomcat-5.5-doc/servletapi/javax/servlet/GenericServlet.html#getServletContext()
If you are trying this via jsp, it should be available via PageContext. See
I did notice the getServletContext() of the servlet classes, but in this case
the code is in a custom class that was forwarded to by the servlet - I don't
have access to the servlet in this class.
If however, I were to change my code and pass the return value of Servlet's
getServletContext() to
From: lightbulb432 [mailto:[EMAIL PROTECTED]
Subject: RE: HttpSession questions
If however, I were to change my code and pass the return
value of Servlet's getServletContext() to my class, would
a session still be created
No, no session is created.
Out of curiosity, why is there a
Johnny Kewl [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Bill, let me just say that your little auto module helped me tremendously
when I first looked at JK, for a newbie, having that stuff generated
becomes a great tutorial in itself, so its a damn shame it will probably
I am having trouble parsing a web.xml file using SAX. The war file will
deploy with no hassles, however, I am writing a local program that will
allow me to change the web.xml file locally before distribution.
My problem is the DTD definition in the web.xml file. I require the DTD
file
lightbulb432 [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I did notice the getServletContext() of the servlet classes, but in this
case
the code is in a custom class that was forwarded to by the servlet - I
don't
have access to the servlet in this class.
If however, I were
hello to all..
i;m using tomcat 5.5.23 and apache 2.0.52
and mod_jk 1.2.23 on centos 4.4
amd 64
i'm running it in load balancer mode
i get a few errors.. roughly 0.1%
statistics after reset, a few hours after reset shows
the access is 59697
CE (client error) is 93
Err = 0
WARN: Exception
-Original Message-
From: Angelov, Rossen [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 27, 2007 12:56 PM
To: Tomcat Users List
Subject: Tomcat Monitoring
What is recommended for monitoring Tomcat? Or is there anything built in
that can help monitoring the performance and the
Andrew Friebel [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I am having trouble parsing a web.xml file using SAX. The war file will
deploy with no hassles, however, I am writing a local program that will
allow me to change the web.xml file locally before distribution.
My
23 matches
Mail list logo