Re: Something like a filter
Don't think a ServletContextListener gets anything but context initialize() and destroy() calls. On 6/11/08, Christopher Schultz [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Maux, maux wrote: | I need to execute it before an application executes. What do you mean before an application executes? Do you mean that you need something to run before any requests are processed? Then you want to use a ServletContextListener. | I know filters are the way but I need to communicate with an applet and I | think filters and applets can´t have a two-way communication. Filters can do anything they want. how are you going to communicate with an applet before the application executes? Where is the applet running? What kind of information do you want to process? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkhP1YUACgkQ9CaO5/Lv0PDjxwCdGhdMaORWckijud2MEz+vTLPe EugAn0bxp+FpYOM6uxOgMeKpf13A7zUe =YAxN -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Off-topic question Re: It¡¯s amazing, apache make TC performance decrease dramatically.
I was afraid of missing a new technological trend again. +1 On 6/11/08, André Warnier [EMAIL PROTECTED] wrote: Christopher Schultz wrote: André, André Warnier wrote: | OMGWTFBBQ?! | | Would someone care to explain the last 3 letters of the above ? I can | kind of get the rest, but the last 3 puzzle me. ;-) GIYF: http://www.urbandictionary.com/define.php?term=omgwtfbbq TYVMFTI. I was afraid of missing a new technological trend again. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie: Question about first Servlet
8851-1 - Is that even a valid encoding? On 4/6/08, Kurt L Harless [EMAIL PROTECTED] wrote: OK, figured it out. I changed the Character Set to ?xml version=1.0 encoding=ISO-8859-1? Instead of ?xml version=1.0 encoding=ISO-8851-1 ? I figured this out by using the tomcat.exe to start the service and saw the dump message when it was trying to parse my xml file. Is this not the valid way of coding this encoding? -Original Message- From: Kurt L Harless [mailto:[EMAIL PROTECTED] Sent: Saturday, April 05, 2008 10:14 PM To: users@tomcat.apache.org Subject: Newbie: Question about first Servlet Greetings, Specifics: Window XP TomCat 5.5 Java 1.6 Created webapp dirs under; C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\ Called ch1\WEB-INF\classes In WEB-INF at created a web.xml file with the following contents; ?xml version=1.0 encoding=ISO-8851-1 ? web-app xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; version=2.4 servlet servlet-nameChapter1 Servlet/servlet-name servlet-classCh1Servlet/servlet-class /servlet servlet-mapping servlet-nameChapter1 Servlet/servlet-name url-pattern/Serv1/url-pattern /servlet-mapping /web-app In the classes subdir to WEB-INF I compile the following java src successfully import javax.servlet.*; import javax.servlet.http.*; import java.io.*; public class Ch1Servlet extends HttpServlet { public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException { PrintWriter out = response.getWriter(); java.util.Date today = new java.util.Date(); out.println(html + body + h1 align=centerHF\'s Chapter1 Server/h1 + br + today + /body + /html); } } I installed TomCat 5.5 as a windows server and can successfully launch http://localhost:8080 http://localhost:8080/ and get the TomCat initial page Under this page I can select the link for TomCat manager and see under applications an entry for /ch1 However, when I try to run http://localhost:8080/ch1/Serv1 http://localhost:8080/ch1/Serv1 I get HTTP Status 404 - /ch1/Serv1 Anyone want to help a newbie? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Number of open DB connections in shared a datasource pool?
I'd like to find out about this as well .. anyone have a solution? On 3/13/08, Michael L [EMAIL PROTECTED] wrote: I have a DataSource pool defined in Tomcat config shared among multiple servlets. I would like to monitor its activity level (number of active connections vs min/max values). I tried to find a way to monitor it via JMX but found only ways to see active connection per each servlet - which is sub-optimal as servlet list keeps changing as developers work on the product. Is it possible to get the total number of active connections via JMX? Or if not, how do I do I get total number of active connections from within java? (I can then write my own mbean for monitoring via JMX) Thanks, -M -- View this message in context: http://www.nabble.com/Number-of-open-DB-connections-in-shared-a-datasource-pool--tp16041502p16041502.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to timeout a connection
Are you talking about a client browser connection or a database connection? On 3/11/08, teknokrat [EMAIL PROTECTED] wrote: Are there any settings for tomcat 5.5. or 6.0 to kill a connection after a timeout? cheers - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Use of VirtualWebappLoader
When I attempt to use the virtual webapp loader, I get the following error: java.lang.IllegalStateException: ContainerBase.addChild: start: LifecycleException: start: : java.lang.ClassCastException: org.apache.catalina.loader.VirtualWebappLoader cannot be cast to org.apache.catalina.loader.WebappClassLoader However, when I subclass WebappClassLoader and create my own equivalent of VirtualWebappLoader, the start() method doesn't seem to get called nor does my custom property seem to get set. Any ideas what I'm doing wrong? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]