Re: JK2 uri context question
Jack Lauman wrote: I have a site where users enter the members area through a URL like this: http://www.domain.com/members/minutes.jsp My workers2.properties file [uri:/minutes/*] group:ajp13:localhost:8009 How do you remap the members directory so that jk2 know that it point to a tomcat app called minutes in the root context? With the above, you map one set of URI to a worker, which (in case of ajp13) will deliver it to some Tomcat instance. Tomcat instance will parse the URI (yes, it does that) and decide which context (web application) it belongs to. In short, both your Apache and Tomcat must have a matching definition of VHosts and paths. I believe there is also a path parameter in the [uri:...], which can map to a new path, so paths can differ. I've never done it myself - I had matching paths. Nix. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jk2 problems
[EMAIL PROTECTED] wrote: I'm getting error in my apache tomcat configuration and I don't know why. I'm running Tomcat 4.1.18 with apache 2.0.49 under linux. And I can't make apache running with mod jk stuff. Here is an extract of my apache httpd.conf file LoadModule jk2_module modules/mod_jk2.so IfModule mod_jk2.c JkWorkersFile /opt/jboss/prod-intraneta/intraneta/prod/conf/workers.properties JkLogFile /var/log/apache/inet/jk.log JkLogLevel info JkMount /jmx-console/* ajp13 /IfModule when I start apache, I get the error message below Invalid command 'JkWorkersFile', perhaps mis-spelled or defined by a module not included in the server configuration can someone tells me what I'm doing wrong Those directives are from mod_jk and you're using mod_jk2. Take a look at Tomcat docs (on Jakarta's site, if you can't get your local copy running). There is a section on JK connectors. The examples are mostly OK. Nix. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Only love?
This message was verified by the filtering system of our mail server. Original message was replaced by this one by the following reason : *** A suspicious file (executable code) was found in the message ! Original message had the following attached files : (X-FILE ??? ) : loveletter02.pif TYPE : application/octet-stream SUSPECT FILES : 1 Original message was sent by From : [EMAIL PROTECTED] If you think this is an error and the message should not be rejected by the filtering system, you may contact your system administrator for instructions. Sincerely, freenet-daemon.freenet.am j-chkmail - (c) Ecole des Mines de Paris 2002, 2003 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 4.* compilation of the WEB-INF classes
Dear List, I am using tomcat 4.0. My experience sofar is that when I put my uncompiled .java files inside the WEB-INF\classes directory, and do a restart the java files will ALL be compiled. This is not due to my web-xml settings, but default Tomcat 4. behaviour. However, later when I made a change to one .java file, I thought I would just need to remove the affected .class file, do a re-start and I would see the effects of my changes. This does not seem to be the case, and I got a 404 type error I think that the class file was not available. What is the behaviour of Tomcat regarding compilation? There must be an option inside the server.xml regarding this, and why when I removed one .class file did tomcat not see that it was missing and re-compile it !! regards Ben - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Changing the 'ROOT' webapp (newbie question)
Definitely smart! Yoav, I think you're a smartass, but I mean that in the nicest and most complimentary way possible ;-) You're a constant source of help and relief to tomcat users on this list. I am always interested to read your posts and take a great interest in what you have to say! Thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Apps terminating abruptly
Thanks for replying, Well, a thread dump wouldn't help. I've noticed last night that the app actually terminates at a specific point, but no exception is raised, so I can't figure out what the problem is. Java sends the exception back to .NOT - I get a java.lang.reflect.InvocationTargetException from within my C# application. I have now narrowed it down to not being a 5.0.24 issue, as I have just copied the whole jakarta-5.0.18 dir from my test server to my local machine, and it *still* doesn't work. I.e. something is buggered on my machine. I have set PATH= and CLASSPATH= to nothing before running startup.bat, just to make sure I'm not picking up Oracle's JRE instead of 1.4.2. The JSDK verions on production and my machine are identical. H... apart from the /jre/lib/ext directories - maybe there's something extra in there that makes it work on the production box. Will give that a try. But in the meantime I would greatly appreciate any help - esp. what the java.lang.reflect.InvocationTargetException exactly means. Thanks, Andi ** Everything in this e-mail and attachments relating to the official business of MultiChoice Africa is proprietary to the company. Any view or opinion expressed in this message may be the view of the individual and should not automatically be ascribed to the company. If you are not the intended recipient, you may not peruse, use, disseminate, distribute or copy this message. If you have received this message in error, please notify the sender immediately by email, facsimile or telephone and destroy the original message. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Apps terminating abruptly
Hi There, This exception is thrown when the Method.invoke method is called. The actual reason for this exception occurring is that the method invoked by this call has thrown an Exception. For more information on the exception an the Method class please look at the API documentation: http://java.sun.com/j2se/1.4.2/docs/api/ Thanks Pete -Original Message- From: Andi Reinbrech [mailto:[EMAIL PROTECTED] Sent: 18 May 2004 09:24 To: 'Tomcat Users List' Subject: RE: Apps terminating abruptly Thanks for replying, Well, a thread dump wouldn't help. I've noticed last night that the app actually terminates at a specific point, but no exception is raised, so I can't figure out what the problem is. Java sends the exception back to .NOT - I get a java.lang.reflect.InvocationTargetException from within my C# application. I have now narrowed it down to not being a 5.0.24 issue, as I have just copied the whole jakarta-5.0.18 dir from my test server to my local machine, and it *still* doesn't work. I.e. something is buggered on my machine. I have set PATH= and CLASSPATH= to nothing before running startup.bat, just to make sure I'm not picking up Oracle's JRE instead of 1.4.2. The JSDK verions on production and my machine are identical. H... apart from the /jre/lib/ext directories - maybe there's something extra in there that makes it work on the production box. Will give that a try. But in the meantime I would greatly appreciate any help - esp. what the java.lang.reflect.InvocationTargetException exactly means. Thanks, Andi ** Everything in this e-mail and attachments relating to the official business of MultiChoice Africa is proprietary to the company. Any view or opinion expressed in this message may be the view of the individual and should not automatically be ascribed to the company. If you are not the intended recipient, you may not peruse, use, disseminate, distribute or copy this message. If you have received this message in error, please notify the sender immediately by email, facsimile or telephone and destroy the original message. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
InvocationTargetException
Hi Yoav. The problem with my machine was indeed the /jre/lib/ext directory, I have a whole bunch of jars in there in production, that were missing on my box. Neat, now 5.0.18 works, but running 5.0.24 gives the following exception at startup: Using CATALINA_BASE: C:\jakarta-tomcat-5.0.24 Using CATALINA_HOME: C:\jakarta-tomcat-5.0.24 Using CATALINA_TMPDIR: C:\jakarta-tomcat-5.0.24\temp Using JAVA_HOME: c:\j2sdk1.4.2_03 java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:247) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:421) Caused by: java.lang.NoClassDefFoundError: org/apache/commons/collections/ArrayS tack at org.apache.commons.digester.Digester.init(Digester.java:185) at org.apache.catalina.util.CatalinaDigester.init(CatalinaDigester.jav a:36) at org.apache.catalina.startup.Catalina.createStartDigester(Catalina.jav a:264) at org.apache.catalina.startup.Catalina.load(Catalina.java:456) at org.apache.catalina.startup.Catalina.load(Catalina.java:528) ... 6 more Thanks, Andi ** Everything in this e-mail and attachments relating to the official business of MultiChoice Africa is proprietary to the company. Any view or opinion expressed in this message may be the view of the individual and should not automatically be ascribed to the company. If you are not the intended recipient, you may not peruse, use, disseminate, distribute or copy this message. If you have received this message in error, please notify the sender immediately by email, facsimile or telephone and destroy the original message. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem using JMS with Tomcat
Hello, I'm trying to use Sun Messaging Queue. I use javax.jms package in my code. I got the j2ee.jar file and put under tomcat common\lib but this causes a conflict.. my tomcat won't start. If I don't put the jar file there, tomcat starts without any problem. However, my code won't run because cannot find javax.jms classes. Please advise how I can use javax.jms packages with tomcat. Thanks, --Kawthar Confidential information may be contained in this e-mail and any files transmitted with it ('Message'). If you are not the addressee indicated in this Message (or responsible for delivery of this Message to such person), you are hereby notified that any dissemination, distribution, printing or copying of this Message or any part thereof is strictly prohibited. In such a case, you should delete this Message immediately and advise the sender by return e-mail. Opinions, conclusions and other information in this Message that do not relate to the official business of Maxis shall be understood as neither given nor endorsed by Maxis. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ANN] Apache Tomcat 5.0.24 Stable released
a big bright red button saying changelog : ) i'll admit, when looking for differences between 5.0.19 and 5.0.24 i spent five min looking for the changelog and couldn't find it. On Mon, 17 May 2004, Zachary Hartley wrote: Date: Mon, 17 May 2004 15:22:44 -0400 From: Zachary Hartley [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: [ANN] Apache Tomcat 5.0.24 Stable released Shapira, Yoav wrote: Hi, I'm glad to help. I think we were both too edgy / attitude-y, but let's forget about that. What would have been the ideal location(s) for you to make finding the changelog trivial? We're always flexible towards accommodating user requests to make documentation easier to find/use. Well, having a link to the changelog directly from the announcement (email and jakarta news) and maybe putting a link directly from the tomcat menu would be my only suggestions. However, after thinking about it, putting the links under the documentation is perfectly alright, I was just used to seeing it more directly before. Definately my fault for flying off the handle. Zachary Hartley - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem using JMS with Tomcat
Well, seeing your exception stack trace would help and perhaps a manifest of your j2ee.jar file. Otherwise if you included it into you WEB-INF/lib for your webapp that may help, but considering the name of the JAR file, I would be hesitant to use it at all, where did it come from? If you just need the JMS API Jar file then why not download it as a separate Jar file from java.sun.com, you can find the link to it from here: http://java.sun.com/products/jms/docs.html Hopefully your JMS provider isn't in that j2ee.jar file either... not that I know anything about JMS providers... Regards, Shane. -Original Message- From: Kawthar Bt M Sulaiman [mailto:[EMAIL PROTECTED] Sent: Tuesday, 18 May 2004 4:47 PM To: [EMAIL PROTECTED] Subject: Problem using JMS with Tomcat Hello, I'm trying to use Sun Messaging Queue. I use javax.jms package in my code. I got the j2ee.jar file and put under tomcat common\lib but this causes a conflict.. my tomcat won't start. If I don't put the jar file there, tomcat starts without any problem. However, my code won't run because cannot find javax.jms classes. Please advise how I can use javax.jms packages with tomcat. Thanks, --Kawthar Confidential information may be contained in this e-mail and any files transmitted with it ('Message'). If you are not the addressee indicated in this Message (or responsible for delivery of this Message to such person), you are hereby notified that any dissemination, distribution, printing or copying of this Message or any part thereof is strictly prohibited. In such a case, you should delete this Message immediately and advise the sender by return e-mail. Opinions, conclusions and other information in this Message that do not relate to the official business of Maxis shall be understood as neither given nor endorsed by Maxis. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Default directory
Hi everyone. I am back to where I was 5 months ago - files *have* to be in the default directory, classpath doesn't help. I copy them to bin and start tomcat manually, then all works fine. I then install as a service and it doesn't work anymore. Tomcat 5.0.18 had ImagePath and WorkingPath in their config, which I set up to point to my bin folder, and everything worked fine. How do I do this in 5.0.18? Please help sigh Andi ** Everything in this e-mail and attachments relating to the official business of MultiChoice Africa is proprietary to the company. Any view or opinion expressed in this message may be the view of the individual and should not automatically be ascribed to the company. If you are not the intended recipient, you may not peruse, use, disseminate, distribute or copy this message. If you have received this message in error, please notify the sender immediately by email, facsimile or telephone and destroy the original message. **
Help: Tomcat JAAS Authentication Help (How does j_security_check work?)
I'm trying to implement a servlet filter that intercepts requests to a servlet and if the user is not authenticated, run the supplied username and password through a JAAS authentication cycle. I would like to know how this process is done using the j_security_check as I'd like to implement the same functionality. I wish to be able to JAAS authenticate when the filter intercepts the request so that after the authentication I can call request.isUserInRole(), request.getUserPrincipal(), request.getRemoteUser() etc. After looking at the API docs at http://jakarta.apache.org/tomcat/tomcat-4.1-doc/catalina/docs/api/index.html I have found the org.apache.catalina.realm.JAASCallbackHandler and suspected that if I can find the realm, (set up as a JDBC realm in the server.xml), and then pass in the username and password to this callback handler - I can run the .login() method somehow. Any help would be appreciated, if you know of any howtos or docs, that would be great! Cheers, Ben This email may contain information which is privileged or confidential. If you are not the intended recipient of this email, please notify the sender immediately and delete it without reading, copying, storing, forwarding or disclosing its contents to any other person Thank you Check us out at http://www.btsyntegra.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat start problem
Hi all, I am running Tomcat 4.0.24 on Red Hat Linux 7.3, I installed it from the jpackage RPM a few months ago. Tomcat worked fine until this morning, when I upgraded the control panel server (SWsoft Plesk) for the server to a new major version (5.0.5 to 7.0.2). The problem is that Tomcat doesn't start anymore as user tomcat4, it starts fine as user root, I am using the script /usr/bin/dtomcat4 to launch it. (I don't like the idea of running Tomcat as root!) The control panel upgrade procedure did a few tasks on the server and I not sure what broke my Tomcat installation. I cannot figure out what's wrong and log files are not helping much (check out below), I took a quick look at tomcat files/directories permissions and they look fine to me, but there may be something wrong that I am missing ... Any idea? Here is the content of the file catalina.out from a successfull start as root: --- May 18, 2004 6:59:39 AM org.apache.commons.modeler.Registry loadRegistry INFO: Loading registry information May 18, 2004 6:59:39 AM org.apache.commons.modeler.Registry getRegistry INFO: Creating new Registry instance May 18, 2004 6:59:39 AM org.apache.commons.modeler.Registry getServer INFO: Creating MBeanServer May 18, 2004 6:59:40 AM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on port 8080 Starting service Tomcat-Standalone Apache Tomcat/4.1 May 18, 2004 6:59:46 AM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on port 8080 May 18, 2004 6:59:46 AM org.apache.jk.common.ChannelSocket init INFO: JK2: ajp13 listening on /0.0.0.0:8009 May 18, 2004 6:59:46 AM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=4/153 config=/var/tomcat4/conf/jk2.properties --- Here is the content from a failed start as tomcat4: --- May 18, 2004 6:58:49 AM org.apache.commons.modeler.Registry loadRegistry INFO: Loading registry information May 18, 2004 6:58:49 AM org.apache.commons.modeler.Registry getRegistry INFO: Creating new Registry instance May 18, 2004 6:58:50 AM org.apache.commons.modeler.Registry getServer INFO: Creating MBeanServer May 18, 2004 6:58:51 AM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on port 8080 Starting service Tomcat-Standalone Apache Tomcat/4.1 java.lang.NullPointerException at org.apache.catalina.startup.HostConfig.deployDescriptors(Unknown Source) at org.apache.catalina.startup.HostConfig.deployApps(Unknown Source) at org.apache.catalina.startup.HostConfig.start(Unknown Source) at org.apache.catalina.startup.HostConfig.lifecycleEvent(Unknown Source) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Unknown Source) at org.apache.catalina.core.ContainerBase.start(Unknown Source) at org.apache.catalina.core.StandardHost.start(Unknown Source) at org.apache.catalina.core.ContainerBase.start(Unknown Source) at org.apache.catalina.core.StandardEngine.start(Unknown Source) at org.apache.catalina.core.StandardService.start(Unknown Source) at org.apache.catalina.core.StandardServer.start(Unknown Source) at org.apache.catalina.startup.Catalina.start(Unknown Source) at org.apache.catalina.startup.Catalina.execute(Unknown Source) at org.apache.catalina.startup.Catalina.process(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Unknown Source) --- Thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Classpath and directories.
Me again :-( OK, it's not the default dir, I copied all the relevant files and *.dtd to c:\windows\system32 and it still didn't work. I added %CATALINA_HOME%\bin to the classpath and copied all the files and *.dtd to the bin folder. This works 100% when run via startup.bat, but *not* when run as a service. I have tried setting the service to log on as a specific user and then copied all the files to the users's deafult home dir, but no luck. Please help... For some reason 5.0.18 works fine with identical configuration. ** Everything in this e-mail and attachments relating to the official business of MultiChoice Africa is proprietary to the company. Any view or opinion expressed in this message may be the view of the individual and should not automatically be ascribed to the company. If you are not the intended recipient, you may not peruse, use, disseminate, distribute or copy this message. If you have received this message in error, please notify the sender immediately by email, facsimile or telephone and destroy the original message. **
please take me off the mailing list!
I've made numerous attempts through other channels and I'm still getting mail. Is anybody driving? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
The Logger Component
2 small questions regarding the Logger Component: Logger className=org.apache.catalina.logger.FileLogger directory=/home/client/public_html/test/WEB-INF/logs prefix=client. suffix=.log timestamp=true/ 1) Is the only way to make the log file to be rolled is by defining time stamp to true (timestamp=true)? 2) Is it possible to limit the amount of rolled logged files as it can be done in the log4j ? P.S. My question is regarding Tomcat 5.0.19 thanks, Ariel Pessah Mailvision LTD. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: please take me off the mailing list!
Have you followed the instructions at the end of the message? -Original Message- From: Roy Smith [mailto:[EMAIL PROTECTED] Sent: 18 May 2004 12:37 To: [EMAIL PROTECTED] Cc: Roy Smith Subject: please take me off the mailing list! I've made numerous attempts through other channels and I'm still getting mail. Is anybody driving? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This email may contain information which is privileged or confidential. If you are not the intended recipient of this email, please notify the sender immediately and delete it without reading, copying, storing, forwarding or disclosing its contents to any other person Thank you Check us out at http://www.btsyntegra.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem using JMS with Tomcat
If you want to use JMS, add a jar that just contains JMS classes. Don't assume you can add any jar you want without side effects. If you look inside j2ee.jar, you will find a ton of additional classes besides those for JMS. Among them you will find an older version of Tomcat which, not unexpectedly, corrupts your Tomcat installation when you add it to common\lib. Cheers, Larry -Original Message- From: Kawthar Bt M Sulaiman [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 18, 2004 4:47 AM To: [EMAIL PROTECTED] Subject: Problem using JMS with Tomcat Hello, I'm trying to use Sun Messaging Queue. I use javax.jms package in my code. I got the j2ee.jar file and put under tomcat common\lib but this causes a conflict.. my tomcat won't start. If I don't put the jar file there, tomcat starts without any problem. However, my code won't run because cannot find javax.jms classes. Please advise how I can use javax.jms packages with tomcat. Thanks, --Kawthar Confidential information may be contained in this e-mail and any files transmitted with it ('Message'). If you are not the addressee indicated in this Message (or responsible for delivery of this Message to such person), you are hereby notified that any dissemination, distribution, printing or copying of this Message or any part thereof is strictly prohibited. In such a case, you should delete this Message immediately and advise the sender by return e-mail. Opinions, conclusions and other information in this Message that do not relate to the official business of Maxis shall be understood as neither given nor endorsed by Maxis. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is it possible to intercept all requests and be serviced by a ser vlet?
You can use a Valve. Or you can use a Filter configured in $CATALINA_HOME/conf/server.xml and the class would live in the common/ classloader -Tim Chippada, Sreeni wrote: Hi, I am using Tomcat 5. I need all the requests be serviced by a particular servlet irrespective of the web apps deployed. Is there a way to do it? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how about the load capability of tomcat?
1) There is no common hardware config. 2) Every Servlet is different in memory, cpu, and other resource usage - no test has been developed to test this. (A brief) List of items influence any servlet benchmark - - How much logging do you do - Do you need access logs - Do you use a database - are the connection pools - Do you do file system access (servlet open multiple files) - Does your webapp -use custom tags (pooled?) -jsps? -filters? -xml parsing? - Is your servlet cpu bound? - Do you require sessions? - Are your session light or heavy? - Does each request allocate a lot of objects? - Is your webapp very static - (1 servlet with lots of images) or very dynamic? All servlets - hardly any image requests. But tomcat holds its own very well when people try to come up with bechmarks. *The most important bechmark is your webapp under stress.* -Tim wrote: hello, who may tell me about the load capability with common hardware config? Does th using of apache can increase the capability capability of my website? anyone has some good ideals about the load capability of tomcat? thank you for any comment! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Windows XP X Windows 2003 . What are the advantages to use with the same JVM.
Title: Windows XP X Windows 2003 . What are the advantages to use with the same JVM. Hello, I´d like to use the Windows Operational System with Tom Cat 5.0.24. I intend to use one Pentium III 700 MHz , 2 CPU´s (DP) with 2 Gb RAM and SCSI Disk´s 9x5 Raid 5 by Hardware only for this purpose I need to download the JVM from Sun Site because neither XP and W2003 contains JVM and the JVM is the same for both. I have license for windows XP and one doubt.Will I have some advantages to use Windows 2003 Server?? IF Yes, what are they ?? Thanks Acacio Furtado Costa [EMAIL PROTECTED] (31)3368-1349
RE: Windows XP X Windows 2003 . What are the advantages to use with the same JVM.
In some of the windows versions the number of concurrent inbound tcp connections is limited. http://support.microsoft.com/?kbid=122920 http://support.microsoft.com/default.aspx?scid=kb;en-us;328459 I'm not shure if this is still true for xp and 2003. (But I think it is) -Original Message- From: Acácio Furtado Costa [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 18, 2004 2:12 PM To: Tomcat Users List Subject: Windows XP X Windows 2003 . What are the advantages to use with the same JVM. Hello, I´d like to use the Windows Operational System with Tom Cat 5.0.24. I intend to use one Pentium III 700 MHz , 2 CPU´s (DP) with 2 Gb RAM and SCSI Disk´s 9x5 Raid 5 by Hardware only for this purpose I need to download the JVM from Sun Site because neither XP and W2003 contains JVM and the JVM is the same for both. I have license for windows XP and one doubt.Will I have some advantages to use Windows 2003 Server?? IF Yes, what are they ?? Thanks Acacio Furtado Costa [EMAIL PROTECTED] (31)3368-1349 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: 5.0.24 HotFix Answer
Hi, Since you're being precise, let's be correct: there can only be one class definition per classloader. You can have two classes with the same fully-qualified name loaded twice in the same JVM instance by separate classloaders. For example, com.foo v1 in webapp1/WEB-INF/classes and com.foo v2 in webapp2/WEB-INF/classes. But if there was a com.foo (any version) in jre/lib/ext it's the ONLY one that would get loaded, because that repository is common to both webapp classloaders and has higher priority than either webapp repository. 5.0.25 includes the bug fix, so the hotfix is not needed. Yoav Shapira Millennium Research Informatics -Original Message- From: Mike Curwen [mailto:[EMAIL PROTECTED] Sent: Monday, May 17, 2004 6:37 PM To: 'Tomcat Users List' Subject: RE: 5.0.24 HotFix Answer As the Highlander says: THERE CAN BE ONLY ONE! ;) More properly, you would say that the JVM loads only one class definition per class, and so the first one wins, not only because it's first, but because it will then become the only. -Original Message- From: wsedio [mailto:[EMAIL PROTECTED] Sent: Monday, May 17, 2004 5:23 PM To: Tomcat Users List Subject: Re: 5.0.24 HotFix Answer On 17-05-2004 15:02, Shapira, Yoav wrote: Yup, just extract it. By definition (of the Servlet Spec), for the same repository classes comes before lib, so an individual .class file will be loaded before its equivalent that's in a .jar. So the first class that is loaded prevails? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: how about the load capability of tomcat?
(BHi, (BThere ARE sites servings millions of hits per day on tomcat. Tim's post is right on. (B (BYoav Shapira (BMillennium Research Informatics (B (B (B-Original Message- (BFrom: Tim Funk [mailto:[EMAIL PROTECTED] (BSent: Tuesday, May 18, 2004 7:58 AM (BTo: Tomcat Users List (BSubject: Re: how about the load capability of tomcat? (B (B1) There is no common hardware config. (B2) Every Servlet is different in memory, cpu, and other resource usage - no (Btest has been developed to test this. (B (B(A brief) List of items influence any servlet benchmark - (B- How much logging do you do (B- Do you need access logs (B- Do you use a database - are the connection pools (B- Do you do file system access (servlet open multiple files) (B- Does your webapp (B-use custom tags (pooled?) (B-jsps? (B-filters? (B-xml parsing? (B- Is your servlet cpu bound? (B- Do you require sessions? (B- Are your session light or heavy? (B- Does each request allocate a lot of objects? (B- Is your webapp very static - (1 servlet with lots of images) or very (Bdynamic? All servlets - hardly any image requests. (B (BBut tomcat holds its own very well when people try to come up with (Bbechmarks. (B*The most important bechmark is your webapp under stress.* (B (B-Tim (B (B (B (B$B.
RE: InvocationTargetException
Hi, There is a direct correlation (I'd even say a causal relationship, but let's not add statistics to this list's topics ;)) between the amount of things you have in jre/lib/ext and the amount of headaches you will experience. Remove everything you can from there. Using CATALINA_BASE: C:\jakarta-tomcat-5.0.24 Using CATALINA_HOME: C:\jakarta-tomcat-5.0.24 Using CATALINA_TMPDIR: C:\jakarta-tomcat-5.0.24\temp Using JAVA_HOME: c:\j2sdk1.4.2_03 java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:247) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:421) Caused by: java.lang.NoClassDefFoundError: org/apache/commons/collections/ArrayS That's fairly predictable: the version of commons-collections found at runtime is different from that expected (and found) and compile-time. Look for multiple commons-collections jars on the classpath, remembering that tomcat ships its own as well (in common/lib). Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem using JMS with Tomcat
Hi, You can't have the j2ee.jar as-is on the tomcat classpath: it's that simple. You have to hack out a ton of things, including the servlet, JSP, and XML parsing APIs. Obviously this is a kludge. The right way to do this is to add two jars to your webapp's WEB-INF/lib (assuming you're coding the JMS connection yourself): jms.jar (the API definition, downloadable from java.sun.com) and the JMS client jar (and dependent jars if any) for your JMS server. For example, if your webapp wants to connect to a remote OpenJMS server (an excellent product!), you get jms.jar, openjms-client-[version].jar, and exolab-core-[version] (a dependency of openjms-client), and you're all set. Yoav Shapira Millennium Research Informatics -Original Message- From: Larry Isaacs [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 18, 2004 7:50 AM To: Tomcat Users List Subject: RE: Problem using JMS with Tomcat If you want to use JMS, add a jar that just contains JMS classes. Don't assume you can add any jar you want without side effects. If you look inside j2ee.jar, you will find a ton of additional classes besides those for JMS. Among them you will find an older version of Tomcat which, not unexpectedly, corrupts your Tomcat installation when you add it to common\lib. Cheers, Larry -Original Message- From: Kawthar Bt M Sulaiman [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 18, 2004 4:47 AM To: [EMAIL PROTECTED] Subject: Problem using JMS with Tomcat Hello, I'm trying to use Sun Messaging Queue. I use javax.jms package in my code. I got the j2ee.jar file and put under tomcat common\lib but this causes a conflict.. my tomcat won't start. If I don't put the jar file there, tomcat starts without any problem. However, my code won't run because cannot find javax.jms classes. Please advise how I can use javax.jms packages with tomcat. Thanks, --Kawthar Confidential information may be contained in this e-mail and any files transmitted with it ('Message'). If you are not the addressee indicated in this Message (or responsible for delivery of this Message to such person), you are hereby notified that any dissemination, distribution, printing or copying of this Message or any part thereof is strictly prohibited. In such a case, you should delete this Message immediately and advise the sender by return e-mail. Opinions, conclusions and other information in this Message that do not relate to the official business of Maxis shall be understood as neither given nor endorsed by Maxis. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: The Logger Component
Hi, 2 small questions regarding the Logger Component: 1) Is the only way to make the log file to be rolled is by defining time stamp to true (timestamp=true)? I don't think so, but I'm not sure. IIRC timestamp affects only the content of the logged messages, not the rollover. 2) Is it possible to limit the amount of rolled logged files as it can be done in the log4j ? No, and that's not going to be added either. In general, if you have complex/advanced/enterprise logging needs, get a toolkit like log4j. Tomcat's loggers are intended to be a simple implementation as required by the Servlet Spec, nothing fancy. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Why 41 processes with Tomcat under Linux
Hi, It depends on your kernel: most show the behavior Senor Schroeder describes (so what you're seeing is expected, not a problem). Some more recent kernels/thread libs correctly show one process per JVM. As to why 41 specifically: there's a handful JVM default threads (main, finalizer, system, etc.), a handful default tomcat threads (its own main, any watchdogs, etc.), and many request processors (depending on your server.xml connector configuration). Yoav Shapira Millennium Research Informatics -Original Message- From: Kevin Schroeder [mailto:[EMAIL PROTECTED] Sent: Monday, May 17, 2004 6:08 PM To: Tomcat Users List; [EMAIL PROTECTED] Subject: Re: Why 41 processes with Tomcat under Linux I might be wrong about this, but I believe that under Linux each thread shows up as a process. In my own multi-threaded applications I see many threads under ps when I start a single instance of that program. Kevin - Original Message - From: Bob White [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, May 17, 2004 5:04 PM Subject: Why 41 processes with Tomcat under Linux I just installed TC 5.0.19 under Linux and I find that it causes 41 Tomcat processes to be launched. Why is this? How can I control the number of processes that are created? Is this to be expected? I naively expected only one Tomcat process. There is absolutely no load on the server, it just initally generates 41 Tomcat processes. ..Bob. = --Bob White-- home:727-490-7363, cell:727-463-6061 New (popup free!) photos of Polina: http://polina.70kg.com/ Everything that irritates us about others can lead us to an understanding of ourselves. - Carl Jung - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 4.* compilation of the WEB-INF classes
Hi, The option you're looking for (most likely) is the reloadable attribute of the Context element. Its description has some answers for you. Yoav Shapira Millennium Research Informatics -Original Message- From: Ben Bookey [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 18, 2004 3:13 AM To: Tomcat User List Subject: Tomcat 4.* compilation of the WEB-INF classes Dear List, I am using tomcat 4.0. My experience sofar is that when I put my uncompiled .java files inside the WEB-INF\classes directory, and do a restart the java files will ALL be compiled. This is not due to my web-xml settings, but default Tomcat 4. behaviour. However, later when I made a change to one .java file, I thought I would just need to remove the affected .class file, do a re-start and I would see the effects of my changes. This does not seem to be the case, and I got a 404 type error I think that the class file was not available. What is the behaviour of Tomcat regarding compilation? There must be an option inside the server.xml regarding this, and why when I removed one .class file did tomcat not see that it was missing and re-compile it !! regards Ben - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Why 41 processes with Tomcat under Linux
Faq faq faq http://jakarta.apache.org/tomcat/faq/unix.html#ps -Tim Shapira, Yoav wrote: Hi, It depends on your kernel: most show the behavior Senor Schroeder describes (so what you're seeing is expected, not a problem). Some more recent kernels/thread libs correctly show one process per JVM. As to why 41 specifically: there's a handful JVM default threads (main, finalizer, system, etc.), a handful default tomcat threads (its own main, any watchdogs, etc.), and many request processors (depending on your server.xml connector configuration). Yoav Shapira Millennium Research Informatics -Original Message- From: Kevin Schroeder [mailto:[EMAIL PROTECTED] Sent: Monday, May 17, 2004 6:08 PM To: Tomcat Users List; [EMAIL PROTECTED] Subject: Re: Why 41 processes with Tomcat under Linux I might be wrong about this, but I believe that under Linux each thread shows up as a process. In my own multi-threaded applications I see many threads under ps when I start a single instance of that program. Kevin - Original Message - From: Bob White [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, May 17, 2004 5:04 PM Subject: Why 41 processes with Tomcat under Linux I just installed TC 5.0.19 under Linux and I find that it causes 41 Tomcat processes to be launched. Why is this? How can I control the number of processes that are created? Is this to be expected? I naively expected only one Tomcat process. There is absolutely no load on the server, it just initally generates 41 Tomcat processes. ..Bob. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[ANN] Apache Tomcat 5.0.25 Alpha released
The Tomcat Team announces the immediate availability of Apache Tomcat 5.0.25 Alpha. Please refer to the change log for the list of changes: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/changelog.html Release notes: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/RELEASE-NOTES Downloads: Binaries: http://jakarta.apache.org/site/binindex.cgi Sources: http://jakarta.apache.org/site/sourceindex.cgi The Apache Tomcat Team This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: 5.0.24 HotFix Answer
On 18-05-2004 14:42, Shapira, Yoav wrote: 5.0.25 includes the bug fix, so the hotfix is not needed. Is it a stable version? If not, do you have any ETA about the next stable build? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Using JAAS as for authorisation in Tomcat 5 tutorial
As promised a while back, I've written a small tutorial for getting JAAS working as an authorisation mechanism (rather than an authentication mechanism like in JAASRealm). The initial version van be found here: http://www.kopz.org/public/documents/tomcat/jaasintomcat.html It does assume you can get a full JAAS implementation up and running outside of Tomcat (i.e. not for the faint-of-heart). If you have any comments or suggestions, please let me know! Cheers, Michiel P.S. This could also be interesting in regards to the thread javax.security.auth.subject disappears - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: 5.0.24 HotFix Answer
Hi, 5.0.25 is alpha for now. We vote on its stability in a few days if no showstoppers come up. There's no ETA, there'll never be one, and there are long explanations of why this is the case in the archives (of this list). Yoav Shapira Millennium Research Informatics -Original Message- From: wsedio [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 18, 2004 9:06 AM To: Tomcat Users List Subject: Re: 5.0.24 HotFix Answer On 18-05-2004 14:42, Shapira, Yoav wrote: 5.0.25 includes the bug fix, so the hotfix is not needed. Is it a stable version? If not, do you have any ETA about the next stable build? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Persistent workspace
-BEGIN PGP SIGNED MESSAGE- I've been deploying webapps with Tomcat since 1997, so you'd think I should know what I'm doing by now... But I find I don't. I'm increasingly trying to package my webapps so that they can be 'just dropped in' without any skill or knowledge being needed by the site administrator to get them set up and deployed, and this has raised two problems with relation to persistent workspace. If a preconfigured war file is installed into Tomcat using the manager webapp, it doesn't get unpacked, and in many ways that's a good thing. But I have up till now used sub-directories of the webapp root directory to store persistent data, for example cached pages and uploaded files. More particularly, I've been using the presence of a file 'WEB-INF/hymen.txt' as a marker that this webapp has never been accessed before and needs final initialisation, and had any servlet redirect to a special servlet which handled final setup if that file exists. Obviously, the final setup servlet then removed the marker file. Clearly neither of these things work if the webapp is delivered as a war file. Generally my webapps talk to databases (usually SQL databases, but could be LDAP, or other things) so it should be possible to replace the 'hymen.txt' mechanism with a simple database call which will succeed if the database has been initialised but fail if it hasn't. However this doesn't solve the problem of where to put caches and upload directories, and I can't find anything in the Servlet API which helps with this. I really don't want to be storing large lumps of arbitrary data into the database. Is there any mechanism in the Servlet spec which allows me either (i) to request that my war file should be unpacked when it is deployed, or else (ii) to get hold of some persistent filespace that my webapp can write to? Cheers Simon - -- [EMAIL PROTECTED] (Simon Brooke) http://www.jasmine.org.uk/~simon/ ;; Our modern industrial economy takes a mountain covered with trees, ;; lakes, running streams and transforms it into a mountain of junk, ;; garbage, slime pits, and debris. -- Edward Abbey -BEGIN PGP SIGNATURE- Version: 2.6.3ia Charset: noconv iQCVAwUBQKoM4nr1UrYJMbiJAQHbngP/SGMuawDkFhjStVUZUka8wjhPy+0yM+k/ Fm6v8niMFNyxGLvRhBkQEt7Wd8ZLrfIMKmssIiivuHZkf0ErYyc/hfRBmizG8xCG j3fc2KtvoRp1L2+sH+UyfJwW8lWQHDNFF+kc9MXTXKfs3nTFMBUtvjmVx6tI6fYe fOc3H1eikjE= =lAMw -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Persistent workspace
Hi, see this: Host name=localhost debug=0 appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false There is unpackWARs attribute in the Host element in the server.xml. But I'm not sure that you have asked about this. Lipi -Original Message- From: Simon Brooke [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 18, 2004 3:17 PM To: Tomcat Users List Subject: Persistent workspace -BEGIN PGP SIGNED MESSAGE- I've been deploying webapps with Tomcat since 1997, so you'd think I should know what I'm doing by now... But I find I don't. I'm increasingly trying to package my webapps so that they can be 'just dropped in' without any skill or knowledge being needed by the site administrator to get them set up and deployed, and this has raised two problems with relation to persistent workspace. If a preconfigured war file is installed into Tomcat using the manager webapp, it doesn't get unpacked, and in many ways that's a good thing. But I have up till now used sub-directories of the webapp root directory to store persistent data, for example cached pages and uploaded files. More particularly, I've been using the presence of a file 'WEB-INF/hymen.txt' as a marker that this webapp has never been accessed before and needs final initialisation, and had any servlet redirect to a special servlet which handled final setup if that file exists. Obviously, the final setup servlet then removed the marker file. Clearly neither of these things work if the webapp is delivered as a war file. Generally my webapps talk to databases (usually SQL databases, but could be LDAP, or other things) so it should be possible to replace the 'hymen.txt' mechanism with a simple database call which will succeed if the database has been initialised but fail if it hasn't. However this doesn't solve the problem of where to put caches and upload directories, and I can't find anything in the Servlet API which helps with this. I really don't want to be storing large lumps of arbitrary data into the database. Is there any mechanism in the Servlet spec which allows me either (i) to request that my war file should be unpacked when it is deployed, or else (ii) to get hold of some persistent filespace that my webapp can write to? Cheers Simon - -- [EMAIL PROTECTED] (Simon Brooke) http://www.jasmine.org.uk/~simon/ ;; Our modern industrial economy takes a mountain covered with trees, ;; lakes, running streams and transforms it into a mountain of junk, ;; garbage, slime pits, and debris. -- Edward Abbey -BEGIN PGP SIGNATURE- Version: 2.6.3ia Charset: noconv iQCVAwUBQKoM4nr1UrYJMbiJAQHbngP/SGMuawDkFhjStVUZUka8wjhPy+0yM+k/ Fm6v8niMFNyxGLvRhBkQEt7Wd8ZLrfIMKmssIiivuHZkf0ErYyc/hfRBmizG8xCG j3fc2KtvoRp1L2+sH+UyfJwW8lWQHDNFF+kc9MXTXKfs3nTFMBUtvjmVx6tI6fYe fOc3H1eikjE= =lAMw -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Is it possible to intercept all requests and be serviced by a ser vlet?
Hi Tim, Thanks for your reply. I know how to create a valve. But I do not know how to execute a servlet from a valve. I will be glad if you can you can tell me how to ro point me to appropriate resources. Also, I do not know how to configure the filters in the server.xml. Appreciate any help. Thanks, Sreeni -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 18, 2004 7:50 AM To: Tomcat Users List Subject: Re: Is it possible to intercept all requests and be serviced by a ser vlet? You can use a Valve. Or you can use a Filter configured in $CATALINA_HOME/conf/server.xml and the class would live in the common/ classloader -Tim Chippada, Sreeni wrote: Hi, I am using Tomcat 5. I need all the requests be serviced by a particular servlet irrespective of the web apps deployed. Is there a way to do it? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
hotfix question
Are any hotfixes applied directly to releases that are on the tomcat download site? So if I get a new copy of tomcat directly from the download site, is there still a need to get hotfixes for that version, or are they included? Thanks, Daniel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: taglib - O'Reilly tutorial problem
Yeah, I was a little concerned about the date as well. Do you have any suggestions for basic, up to date, solid examples/tutorials that I could run to a) make sure everything in my Tomcat server is working correctly b) increases/broadens my knowledge of what goes into typical to difficult web applications. All of your help is appreciated, thanks again. Here is the full stack trace: HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: javax.servlet.jsp.tagext.TagInfo.init(Ljava/lang/String;Ljava/lang/Str ing;Ljava/lang/String;Ljava/lang/String;Ljavax/servlet/jsp/tagext/TagLib raryInfo;Ljavax/servlet/jsp/tagext/TagExtraInfo;[Ljavax/servlet/jsp/tage xt/TagAttributeInfo;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Strin g;[Ljavax/servlet/jsp/tagext/TagVariableInfo;Z)V org.apache.jasper.servlet.JspServlet.service(JspServlet.java:256) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) com.onjava.login.doPost(login.java:40) javax.servlet.http.HttpServlet.service(HttpServlet.java:763) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet. java:466) org.apache.catalina.servlets.InvokerServlet.doPost(InvokerServlet.java:2 16) javax.servlet.http.HttpServlet.service(HttpServlet.java:763) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) root cause java.lang.NoSuchMethodError: javax.servlet.jsp.tagext.TagInfo.init(Ljava/lang/String;Ljava/lang/Str ing;Ljava/lang/String;Ljava/lang/String;Ljavax/servlet/jsp/tagext/TagLib raryInfo;Ljavax/servlet/jsp/tagext/TagExtraInfo;[Ljavax/servlet/jsp/tage xt/TagAttributeInfo;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Strin g;[Ljavax/servlet/jsp/tagext/TagVariableInfo;Z)V org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo(TagLibraryIn foImpl.java:469) org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImp l.java:291) org.apache.jasper.compiler.TagLibraryInfoImpl.init(TagLibraryInfoImpl. java:205) org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:458) org.apache.jasper.compiler.Parser.parseDirective(Parser.java:523) org.apache.jasper.compiler.Parser.parseElements(Parser.java:1577) org.apache.jasper.compiler.Parser.parse(Parser.java:171) org.apache.jasper.compiler.ParserController.doParse(ParserController.jav a:258) org.apache.jasper.compiler.ParserController.parse(ParserController.java: 139) org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:237) org.apache.jasper.compiler.Compiler.compile(Compiler.java:456) org.apache.jasper.compiler.Compiler.compile(Compiler.java:439) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.ja va:553) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja va:291) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) com.onjava.login.doPost(login.java:40) javax.servlet.http.HttpServlet.service(HttpServlet.java:763) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet. java:466) org.apache.catalina.servlets.InvokerServlet.doPost(InvokerServlet.java:2 16) javax.servlet.http.HttpServlet.service(HttpServlet.java:763) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: taglib - O'Reilly tutorial problem
looks like you are running compiled code against different version jar/class files. NoSuchMethod error means that the method the code is expecting doesn't exist, this happens when you compile your code using a library of version A, then deploy the same code with library of version B and B doesn't have the same signatures as A does Filip - Original Message - From: Zollinhofer, Matt [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, May 18, 2004 9:11 AM Subject: RE: taglib - O'Reilly tutorial problem Yeah, I was a little concerned about the date as well. Do you have any suggestions for basic, up to date, solid examples/tutorials that I could run to a) make sure everything in my Tomcat server is working correctly b) increases/broadens my knowledge of what goes into typical to difficult web applications. All of your help is appreciated, thanks again. Here is the full stack trace: HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: javax.servlet.jsp.tagext.TagInfo.init(Ljava/lang/String;Ljava/lang/Str ing;Ljava/lang/String;Ljava/lang/String;Ljavax/servlet/jsp/tagext/TagLib raryInfo;Ljavax/servlet/jsp/tagext/TagExtraInfo;[Ljavax/servlet/jsp/tage xt/TagAttributeInfo;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Strin g;[Ljavax/servlet/jsp/tagext/TagVariableInfo;Z)V org.apache.jasper.servlet.JspServlet.service(JspServlet.java:256) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) com.onjava.login.doPost(login.java:40) javax.servlet.http.HttpServlet.service(HttpServlet.java:763) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet. java:466) org.apache.catalina.servlets.InvokerServlet.doPost(InvokerServlet.java:2 16) javax.servlet.http.HttpServlet.service(HttpServlet.java:763) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) root cause java.lang.NoSuchMethodError: javax.servlet.jsp.tagext.TagInfo.init(Ljava/lang/String;Ljava/lang/Str ing;Ljava/lang/String;Ljava/lang/String;Ljavax/servlet/jsp/tagext/TagLib raryInfo;Ljavax/servlet/jsp/tagext/TagExtraInfo;[Ljavax/servlet/jsp/tage xt/TagAttributeInfo;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Strin g;[Ljavax/servlet/jsp/tagext/TagVariableInfo;Z)V org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo(TagLibraryIn foImpl.java:469) org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImp l.java:291) org.apache.jasper.compiler.TagLibraryInfoImpl.init(TagLibraryInfoImpl. java:205) org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:458) org.apache.jasper.compiler.Parser.parseDirective(Parser.java:523) org.apache.jasper.compiler.Parser.parseElements(Parser.java:1577) org.apache.jasper.compiler.Parser.parse(Parser.java:171) org.apache.jasper.compiler.ParserController.doParse(ParserController.jav a:258) org.apache.jasper.compiler.ParserController.parse(ParserController.java: 139) org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:237) org.apache.jasper.compiler.Compiler.compile(Compiler.java:456) org.apache.jasper.compiler.Compiler.compile(Compiler.java:439) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.ja va:553) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja va:291) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) com.onjava.login.doPost(login.java:40) javax.servlet.http.HttpServlet.service(HttpServlet.java:763) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet. java:466) org.apache.catalina.servlets.InvokerServlet.doPost(InvokerServlet.java:2 16) javax.servlet.http.HttpServlet.service(HttpServlet.java:763) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is it possible to intercept all requests and be serviced by a ser vlet?
It sounds like using a Filter would be easier. With a filter - you can use the Servlet API to get a Dispatcher for the servlet you wish to call. For example, this filter reroute all requests to FooServlet: package more.cowbell; import javax.servlet.Filter; import javax.servlet.FilterConfig; import javax.servlet.FilterChain; import javax.servlet.ServletRequest; import javax.servlet.ServletResponse; import javax.servlet.ServletException; import java.io.IOException; public class ReRouteFilter implements Filter { public void init(FilterConfig filterConfig) throws ServletException { ; } public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { request.getRequestDispatcher(/FooServlet).forward(request, response); } public void destroy() { ; } } --- Then in $CATALINA_HOME/conf/web.xml filter filter-nameReRoute Filter/filter-name filter-classmore.cowbell.ReRouteFilter/filter-class /filter !-- Trap everything going to the default servlet-- filter-mapping filter-nameReRoute Filter/filter-name servlet-namedefault/servlet-name /filter-mapping !-- Trap by file extension html-- filter-mapping filter-nameReRoute Filter/filter-name url-pattern*.html/url-pattern /filter-mapping --- -Tim Chippada, Sreeni wrote: Hi Tim, Thanks for your reply. I know how to create a valve. But I do not know how to execute a servlet from a valve. I will be glad if you can you can tell me how to ro point me to appropriate resources. Also, I do not know how to configure the filters in the server.xml. Appreciate any help. Thanks, Sreeni -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 18, 2004 7:50 AM To: Tomcat Users List Subject: Re: Is it possible to intercept all requests and be serviced by a ser vlet? You can use a Valve. Or you can use a Filter configured in $CATALINA_HOME/conf/server.xml and the class would live in the common/ classloader -Tim Chippada, Sreeni wrote: Hi, I am using Tomcat 5. I need all the requests be serviced by a particular servlet irrespective of the web apps deployed. Is there a way to do it? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: hotfix question
Hi, If a hotfix is released for version X, all versions after X already have that hotfix applied. So if you download 5.0.25 and onwards, you don't need to apply the 5.0.24 hotfix. The change log (and the actual code of course) confirm this. Yoav Shapira Millennium Research Informatics -Original Message- From: Daniel Gibby [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 18, 2004 10:10 AM To: Tomcat Users List Subject: hotfix question Are any hotfixes applied directly to releases that are on the tomcat download site? So if I get a new copy of tomcat directly from the download site, is there still a need to get hotfixes for that version, or are they included? Thanks, Daniel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Persistent workspace
Hi, He did ask in this area, but that's not the answer he wants. 1. No, the Servlet Spec does not provide a means to control packing or unpacking of WARs. This is a container-specific feature that's not even required by the spec (only running packed WARs is required). 2. There is no portable persistent space to store things like uploaded files. The javax.servlet.context.tempdir is for temporary things and may be wiped out by the server when it restarts. The reason these things aren't there goes to the roots of the J2EE philosophy, and the role of the Application Deployer. This person is responsible for configuring (ideally via JNDI) those environment needs of your app that you declare in your web.xml. See the Servlet Spec explanation of the env-entry/env-entry-ref elements. Yoav Shapira Millennium Research Informatics -Original Message- From: rlipi [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 18, 2004 9:37 AM To: 'Tomcat Users List' Subject: RE: Persistent workspace Hi, see this: Host name=localhost debug=0 appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false There is unpackWARs attribute in the Host element in the server.xml. But I'm not sure that you have asked about this. Lipi -Original Message- From: Simon Brooke [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 18, 2004 3:17 PM To: Tomcat Users List Subject: Persistent workspace -BEGIN PGP SIGNED MESSAGE- I've been deploying webapps with Tomcat since 1997, so you'd think I should know what I'm doing by now... But I find I don't. I'm increasingly trying to package my webapps so that they can be 'just dropped in' without any skill or knowledge being needed by the site administrator to get them set up and deployed, and this has raised two problems with relation to persistent workspace. If a preconfigured war file is installed into Tomcat using the manager webapp, it doesn't get unpacked, and in many ways that's a good thing. But I have up till now used sub-directories of the webapp root directory to store persistent data, for example cached pages and uploaded files. More particularly, I've been using the presence of a file 'WEB-INF/hymen.txt' as a marker that this webapp has never been accessed before and needs final initialisation, and had any servlet redirect to a special servlet which handled final setup if that file exists. Obviously, the final setup servlet then removed the marker file. Clearly neither of these things work if the webapp is delivered as a war file. Generally my webapps talk to databases (usually SQL databases, but could be LDAP, or other things) so it should be possible to replace the 'hymen.txt' mechanism with a simple database call which will succeed if the database has been initialised but fail if it hasn't. However this doesn't solve the problem of where to put caches and upload directories, and I can't find anything in the Servlet API which helps with this. I really don't want to be storing large lumps of arbitrary data into the database. Is there any mechanism in the Servlet spec which allows me either (i) to request that my war file should be unpacked when it is deployed, or else (ii) to get hold of some persistent filespace that my webapp can write to? Cheers Simon - -- [EMAIL PROTECTED] (Simon Brooke) http://www.jasmine.org.uk/~simon/ ;; Our modern industrial economy takes a mountain covered with trees, ;; lakes, running streams and transforms it into a mountain of junk, ;; garbage, slime pits, and debris. -- Edward Abbey -BEGIN PGP SIGNATURE- Version: 2.6.3ia Charset: noconv iQCVAwUBQKoM4nr1UrYJMbiJAQHbngP/SGMuawDkFhjStVUZUka8wjhPy+0yM+k/ Fm6v8niMFNyxGLvRhBkQEt7Wd8ZLrfIMKmssIiivuHZkf0ErYyc/hfRBmizG8xCG j3fc2KtvoRp1L2+sH+UyfJwW8lWQHDNFF+kc9MXTXKfs3nTFMBUtvjmVx6tI6fYe fOc3H1eikjE= =lAMw -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: hotfix question
But what about the most recent version So say that a hotfix is applied to 5.0.25... Is there automatically a new version released at the same time (ie. 5.0.26) or would 5.0.25 be patched in its place? I think the answer is the former, but I'm just making sure. Thanks again, Daniel Shapira, Yoav wrote: Hi, If a hotfix is released for version X, all versions after X already have that hotfix applied. So if you download 5.0.25 and onwards, you don't need to apply the 5.0.24 hotfix. The change log (and the actual code of course) confirm this. Yoav Shapira Millennium Research Informatics -Original Message- From: Daniel Gibby [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 18, 2004 10:10 AM To: Tomcat Users List Subject: hotfix question Are any hotfixes applied directly to releases that are on the tomcat download site? So if I get a new copy of tomcat directly from the download site, is there still a need to get hotfixes for that version, or are they included? Thanks, Daniel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: hotfix question
Hi, It's the former: new build. We don't re-tag, re-release, or patch in place for any builds. Yoav Shapira Millennium Research Informatics -Original Message- From: Daniel Gibby [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 18, 2004 10:36 AM To: Tomcat Users List Subject: Re: hotfix question But what about the most recent version So say that a hotfix is applied to 5.0.25... Is there automatically a new version released at the same time (ie. 5.0.26) or would 5.0.25 be patched in its place? I think the answer is the former, but I'm just making sure. Thanks again, Daniel Shapira, Yoav wrote: Hi, If a hotfix is released for version X, all versions after X already have that hotfix applied. So if you download 5.0.25 and onwards, you don't need to apply the 5.0.24 hotfix. The change log (and the actual code of course) confirm this. Yoav Shapira Millennium Research Informatics -Original Message- From: Daniel Gibby [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 18, 2004 10:10 AM To: Tomcat Users List Subject: hotfix question Are any hotfixes applied directly to releases that are on the tomcat download site? So if I get a new copy of tomcat directly from the download site, is there still a need to get hotfixes for that version, or are they included? Thanks, Daniel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat and Apache
I am trying to start using Tomcat on my server without having to stop using the Apache and PHP (at least for the moment) While if I select http://localhost:8080/test.jsp it works when I select http://mysite.com/test.jsp it doesn't I have in my Apache config the following extract (which should work) VirtualHost mysite.com:80 ServerAdmin [EMAIL PROTECTED] ServerName mysite.com ProxyPass / http://localhost:8080 ProxyPassReverse / http://localhost:8080 /VirtualHost Sometimes it serves a jsp page but will not serve any graphics or other files (and now it isn't even serving JSP's) Any idea where I am going wrong or is there another way to do what I need Mike. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.681 / Virus Database: 443 - Release Date: 10/05/2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [ANN] Apache Tomcat 5.0.24 Stable released
Hi, It's time consuming to keep those documentations and I really appreciate the time and effort spent by the people who maintain them. Just some suggestions to consider: Why not just keep the README in the distribution? It may include the URLs that specify the highlights, caveats, CHANGELOG, etc. In this case the developers just need to maintain the web contents and they are so much easier to manage this way :) Rgds, On Tue, 2004-05-18 at 00:34, Mike Curwen wrote: May I contribute? I'd love to see the Tomcat docs download links to be re-pointed to an actual Tomcat download directory, rather than the generic 'all' page for jakarta downloads. ie: http://jakarta.apache.org/site/sourceindex.cgi The links for downloads are direct to the zip files. The only way I can get to see the changelog, is to click 'tomcat 3' (which thankfully is still linked). This gets me to: http://apache.mirror.secondchapter.info/jakarta/tomcat-3/v3.3.2/src/ Then I click 'Parent Directory' 3 times Then I can click Tomcat 4 or tomcat 5, as I want. So, 1) the Tomcat docs download links should point to the actual directories from which I can download things, not just the generic jakarta page. 2) on the generic jakarta page, please link the tomcat 4 and tomcat 5 to those directories as well. I have also been frustrated at finding that changelog thingy. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Monday, May 17, 2004 8:59 AM To: Tomcat Users List Subject: RE: [ANN] Apache Tomcat 5.0.24 Stable released Hi, I'm glad to help. I think we were both too edgy / attitude-y, but let's forget about that. What would have been the ideal location(s) for you to make finding the changelog trivial? We're always flexible towards accommodating user requests to make documentation easier to find/use. Yoav Shapira Millennium Research Informatics -Original Message- From: Zachary Hartley [mailto:[EMAIL PROTECTED] Sent: Monday, May 17, 2004 9:53 AM To: Tomcat Users List Subject: Re: [ANN] Apache Tomcat 5.0.24 Stable released Shapira, Yoav wrote: I said the download pages for tomcat releases. Do you see any changelogs or other docs for any specific products on the URLs you posted above? No, because they're for all the Apache products. If you click on the tomcat links, you get a URL such as the one I quoted above, which has the changelog right along with the release notes. I see, thank you for pointing out the distinction to me. Zachary Hartley - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- dontrango [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: hotfix question
That's what I thought. Thanks! Shapira, Yoav wrote: Hi, It's the former: new build. We don't re-tag, re-release, or patch in place for any builds. Yoav Shapira Millennium Research Informatics -Original Message- From: Daniel Gibby [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 18, 2004 10:36 AM To: Tomcat Users List Subject: Re: hotfix question But what about the most recent version So say that a hotfix is applied to 5.0.25... Is there automatically a new version released at the same time (ie. 5.0.26) or would 5.0.25 be patched in its place? I think the answer is the former, but I'm just making sure. Thanks again, Daniel Shapira, Yoav wrote: Hi, If a hotfix is released for version X, all versions after X already have that hotfix applied. So if you download 5.0.25 and onwards, you don't need to apply the 5.0.24 hotfix. The change log (and the actual code of course) confirm this. Yoav Shapira Millennium Research Informatics -Original Message- From: Daniel Gibby [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 18, 2004 10:10 AM To: Tomcat Users List Subject: hotfix question Are any hotfixes applied directly to releases that are on the tomcat download site? So if I get a new copy of tomcat directly from the download site, is there still a need to get hotfixes for that version, or are they included? Thanks, Daniel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat and Apache
Have a look at the JK or JK2 connectors, they are used to connect Tomcat and Apache webserver. Ta Matt -Original Message- From: mpforste [mailto:[EMAIL PROTECTED] Sent: 18 May 2004 15:43 To: Tomcat Users List Subject: Tomcat and Apache I am trying to start using Tomcat on my server without having to stop using the Apache and PHP (at least for the moment) While if I select http://localhost:8080/test.jsp it works when I select http://mysite.com/test.jsp it doesn't I have in my Apache config the following extract (which should work) VirtualHost mysite.com:80 ServerAdmin [EMAIL PROTECTED] ServerName mysite.com ProxyPass / http://localhost:8080 ProxyPassReverse / http://localhost:8080 /VirtualHost Sometimes it serves a jsp page but will not serve any graphics or other files (and now it isn't even serving JSP's) Any idea where I am going wrong or is there another way to do what I need Mike. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.681 / Virus Database: 443 - Release Date: 10/05/2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Is it possible to intercept all requests and be serviced by a ser vlet?
That will solve my issue. Thank you very much, Sreeni -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 18, 2004 10:18 AM To: Tomcat Users List Subject: Re: Is it possible to intercept all requests and be serviced by a ser vlet? It sounds like using a Filter would be easier. With a filter - you can use the Servlet API to get a Dispatcher for the servlet you wish to call. For example, this filter reroute all requests to FooServlet: package more.cowbell; import javax.servlet.Filter; import javax.servlet.FilterConfig; import javax.servlet.FilterChain; import javax.servlet.ServletRequest; import javax.servlet.ServletResponse; import javax.servlet.ServletException; import java.io.IOException; public class ReRouteFilter implements Filter { public void init(FilterConfig filterConfig) throws ServletException { ; } public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { request.getRequestDispatcher(/FooServlet).forward(request, response); } public void destroy() { ; } } --- Then in $CATALINA_HOME/conf/web.xml filter filter-nameReRoute Filter/filter-name filter-classmore.cowbell.ReRouteFilter/filter-class /filter !-- Trap everything going to the default servlet-- filter-mapping filter-nameReRoute Filter/filter-name servlet-namedefault/servlet-name /filter-mapping !-- Trap by file extension html-- filter-mapping filter-nameReRoute Filter/filter-name url-pattern*.html/url-pattern /filter-mapping --- -Tim Chippada, Sreeni wrote: Hi Tim, Thanks for your reply. I know how to create a valve. But I do not know how to execute a servlet from a valve. I will be glad if you can you can tell me how to ro point me to appropriate resources. Also, I do not know how to configure the filters in the server.xml. Appreciate any help. Thanks, Sreeni -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 18, 2004 7:50 AM To: Tomcat Users List Subject: Re: Is it possible to intercept all requests and be serviced by a ser vlet? You can use a Valve. Or you can use a Filter configured in $CATALINA_HOME/conf/server.xml and the class would live in the common/ classloader -Tim Chippada, Sreeni wrote: Hi, I am using Tomcat 5. I need all the requests be serviced by a particular servlet irrespective of the web apps deployed. Is there a way to do it? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Mail Delivery (failure tomcat-user@jakarta.apache.org)
** ** WARNING: eShield has detected a virus in file attached to this e-mail message! The attachment has been automatically removed to protect your network. eShield Administrator: [EMAIL PROTECTED] 05/18/04 15:58:15 eShield (Version 5.0 R1g (5.0.28.26)) - http://www.Ositis.com/ Antivirus Vendor: Trend Micro, Inc. Scan Engine Version: 7.000-1004 Pattern File Version: 891.64218 (Timestamp: 2004/05/15 11:41:56) Machine name: eShield Machine IP address: 192.168.101.71 Server: 209.237.227.199 Client: 192.168.60.136 Protocol: SMTP Virus: HTML_Netsky.P found! Attachment: No file name available ** ** ** ** WARNING: eShield has detected a virus in file attached to this e-mail message! The attachment has been automatically removed to protect your network. eShield Administrator: [EMAIL PROTECTED] 05/18/04 15:58:15 eShield (Version 5.0 R1g (5.0.28.26)) - http://www.Ositis.com/ Antivirus Vendor: Trend Micro, Inc. Scan Engine Version: 7.000-1004 Pattern File Version: 891.64218 (Timestamp: 2004/05/15 11:41:56) Machine name: eShield Machine IP address: 192.168.101.71 Server: 209.237.227.199 Client: 192.168.60.136 Protocol: SMTP Virus: WORM_NETSKY.P found! Attachment: message.scr ** **
Re: taglib - O'Reilly tutorial problem
On Tue, May 18, 2004 at 10:11:21AM -0400, Zollinhofer, Matt wrote: : Do you have any : suggestions for basic, up to date, solid examples/tutorials that I could : run to a) make sure everything in my Tomcat server is working correctly : b) increases/broadens my knowledge of what goes into typical to : difficult web applications. Perhaps the Sun Blueprints may be of note. They demonstrate full-fledged, working webapps and come with documentation thereof. Sun sort of has an obligation to keep those up to date. ;) Otherwise, experience. Create webapps, toy with configs, see what breaks and make note of it. Follow tomcat-user and other J2EE-related mailing lists to see what others are running into. Know the spec inside-out, or at least have a copy handy. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat-user Digest 18 May 2004 12:51:46 -0000 Issue 4449
On May 18, 2004, at 8:51 AM, [EMAIL PROTECTED] wrote: From: [EMAIL PROTECTED] Date: May 18, 2004 7:39:32 AM EDT To: [EMAIL PROTECTED] Subject: RE: please take me off the mailing list! Have you followed the instructions at the end of the message? Yes I have. I've sent mail to [EMAIL PROTECTED], and to [EMAIL PROTECTED], neither of which have gotten any responses. I'm sorry to bother the whole list with this, but I must have sent about a half-dozen unsubscribe requests to the above addresses over the past few weeks, and they all seem to have fallen into a black hole. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat-user Digest 18 May 2004 12:51:46 -0000 Issue 4449
Has your mail address changed or do you now use a different address than in your subscription ? Look at the return path of the mails you receive from the list and you get: Return-Path: tomcat-user-return-26788-your name=your domain@jakarta.apache.org If that doesn't match roy=panix.com use this address to unsubscribe: tomcat-user-unsubscribe-your name=your domain@jakarta.apache.org -Original Message- From: Roy Smith [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 18, 2004 5:10 PM To: Tomcat Users List Cc: Roy Smith Subject: Re: tomcat-user Digest 18 May 2004 12:51:46 - Issue 4449 On May 18, 2004, at 8:51 AM, [EMAIL PROTECTED] wrote: - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: httpd jk2 connections persisting in CLOSE_WAIT state
OK, ive got some more information here, I forgot that I updated my JK2 configuration file for httpd a little, I wonder if there's anything in it that's wrong? # Alternate file logger [logger.file:0] level=ERROR file=${serverRoot}/logs/jk2.log [workerEnv:] info=Global server options logger=logger.file:0 [config:] file=${serverRoot}/conf/workers2.properties debug=0 debugEnv=0 [shm:] file=/etc/httpd/logs/jk2.shm size=1048576 [channel.socket:localhost:8009] info=Ajp13 forwarding over socket port=8009 host=127.0.0.1 tomcatId=localhost:8009 [ajp13:localhost:8009] channel=channel.socket:localhost:8009 [status:status] [uri:/jkstatus/*] [uri:/monster/*] worker=ajp13:localhost:8009 Also, I noticed something. So there's currently 9 CLOSE_WAITs when I run netstat. There are no webpages currently accessing the server, BUT, if I then open a webpage, one of the CLOSE_WAITs disappear, and then if I close the window, the CLOSE_WAIT reappears What is going on?? S Sam Seaver wrote: Dear all, Im running Httpd 2.0.48 Tomcat 4.1.24 Connect by JK2 (unfortunately, I have no record of the version number) on RH9 This set-up has worked really well, up till recently, where I found that after a couple of visits to the JSP pages compiled by my tomcat server caused a couple of CLOSE_WAIT connections to persist: tcp1 0 127.0.0.1:42567 127.0.0.1:8009 CLOSE_WAIT The JK2 connector is running at port 8009, and this is the connection between a spawned httpd process and the JK2 connector, or so I believe. I recently did a massive cut down on my server.xml file, (backing it up of course) to all the essentials I thought I needed and nothing more. So I'm posting it below: Server port=8005 shutdown=SHUTDOWN debug=0 Service name=Monster !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=99 scheme=http connectionTimeout=6000 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ !-- Define the top level container in our container hierarchy -- Engine name=Standalone defaultHost=localhost debug=0 Valve className=org.apache.catalina.valves.RequestDumperValve/ !-- Global logger unless overridden at lower levels -- Logger className=org.apache.catalina.logger.FileLogger prefix=catalina_log. suffix=.txt timestamp=true verbosity=4/ Host name=monster.northwestern.edu debug=99 appBase=/home/monster/web unpackWARs=false autoDeploy=false Context path= docBase= debug=99 reloadable=false/ Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=monster_access_log. suffix=.txt pattern=common resolveHosts=false/ /Host /Engine /Service /Server my website is not going to be used a lot, maybe more in July, but I really need to make sure I can keep it running for months on end, and there's no way its doing that, it keeps getting 'blocked' by these CLOSE_WAITs im getting, any insight? By the way, when I shut down Catalina, the CLOSE_WAITs persist, but they go away if I restart httpd. Cheers Sam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat hangs
Well, here's an update on our tomcat 'lockups'. When tomcat 'locks up', it won't answer any requests to any webapp, including the manager webapp, even on port 8080. Apache still runs fine on requests for things that are not directed to tomcat. We are having mixed results right now fixing this. We have two separate servers running different versions of tomcat and apache but used to be running the same JVM from IBM that were having problems. We upgraded the java version on machine #1 to the latest IBM version to see if it would continue having problems. We have restarted that server a couple of times in the last week, but not because it locked up... so our results on that server are inconclusive since it hasn't been given the chance to run straight for a while. That server runs apache 1.3.27 and tomcat 4.1.27 and the java version is: java version 1.4.1 Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1) Classic VM (build 1.4.1, J2RE 1.4.1 IBM build cxia321411-20040301 (JIT enabled: jitc)) It used to be what our other machine (#2) is using: java version 1.4.1 Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1) Classic VM (build 1.4.1, J2RE 1.4.1 IBM build cxia321411-20030930 (JIT enabled: jitc)) Machine #2 runs tomcat 4.1.30, apache 2.0.40 and mod_jk2.0.2. It used to lock up daily or once every two days (it has a higher load). We have put a cron in place to restart tomcat nightly. So we assume that it would still be having problems if it wasn't for that. We are not using jboss or JMX. If I can get server #1 to run consistently for an extended period of time, I'll try that java on machine #2 and turn off the nightly restarts and see if that works as well. There were quite a few fixes in the IBM changelog that talked about lockups that had to do with jitc. Let me know how you are doing with this issue as well. Daniel Rupprecht, Alexander wrote: Hi Daniel, unfortunately we've got exactly the same problem. Do You have any further informations concerning Your problem or any solutions? We've tested a lot, analyzed everything (including tcp-connectivity), but jboss cannot answer all request while there is heavy load on our servers. With kind regards Alex -- Alexander Rupprecht PlanetHome AG Münchnerstraße 14 85774 Unterföhring http://www.planethome.de Email:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JKJNI connector.
Hi, I am working with Apache 2.48 and tomcat 5.16. I am able to connect them using the mod_jk2 connector and jkjni connector. My question is with the jkjni connector, both apache and tomcat run in separate processes. Is it possible to configure the jkjni connector so that tomcat runs in the same process as apache? Thanks, Sreeni - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JKJNI connector.
It is supposed to be possible but with that version of tomcat (5.0.16 i'm assuming) it doesnt work. I've not tried yet but it is supposed to now work with the latest version of both tomcat and the connector. You configure this in workers2.properties and set the connector to be inprocess. Ta Matt -Original Message- From: Chippada, Sreeni [mailto:[EMAIL PROTECTED] Sent: 18 May 2004 19:28 To: Tomcat Users List Subject: JKJNI connector. Hi, I am working with Apache 2.48 and tomcat 5.16. I am able to connect them using the mod_jk2 connector and jkjni connector. My question is with the jkjni connector, both apache and tomcat run in separate processes. Is it possible to configure the jkjni connector so that tomcat runs in the same process as apache? Thanks, Sreeni - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JKJNI connector.
Thanks for the reply. -Sreeni -Original Message- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 18, 2004 2:33 PM To: Tomcat Users List Subject: RE: JKJNI connector. It is supposed to be possible but with that version of tomcat (5.0.16 i'm assuming) it doesnt work. I've not tried yet but it is supposed to now work with the latest version of both tomcat and the connector. You configure this in workers2.properties and set the connector to be inprocess. Ta Matt -Original Message- From: Chippada, Sreeni [mailto:[EMAIL PROTECTED] Sent: 18 May 2004 19:28 To: Tomcat Users List Subject: JKJNI connector. Hi, I am working with Apache 2.48 and tomcat 5.16. I am able to connect them using the mod_jk2 connector and jkjni connector. My question is with the jkjni connector, both apache and tomcat run in separate processes. Is it possible to configure the jkjni connector so that tomcat runs in the same process as apache? Thanks, Sreeni - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Persistent workspace
-BEGIN PGP SIGNED MESSAGE- On Tuesday 18 May 2004 14:37, rlipi wrote: Hi, see this: Host name=localhost debug=0 appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false There is unpackWARs attribute in the Host element in the server.xml. But I'm not sure that you have asked about this. Yup... but I'm delivering the war files, I don't control the servers. And I don't want to have to give complex instructions to the server administrators, because frankly I don't really trust them to carry them out. So I'd still, if possible, like a platform independent way of getting hold of some persistent filespace which will work both on MSWin and on UN*X platforms whether or not my war file is unpacked. Can it be done? Cheers Simon - -- [EMAIL PROTECTED] (Simon Brooke) http://www.jasmine.org.uk/~simon/ Morning had broken, and there was nothing left for us to do but pick up the pieces. -BEGIN PGP SIGNATURE- Version: 2.6.3ia Charset: noconv iQCVAwUBQKpZj3r1UrYJMbiJAQGyywQAjqYFA5DHeygEtZP3ozyZdco8SINDELVx R9suGF/+Pqe6332sfUpoONSMrmLcxeLMkDjyP4B/8eh9WkTnJFLXA1a1MZ+jz6ln M8jCzBHtS64xmbOvdyR1IrZmHnmPul9tQ7hheBw2bZRtgJF8BqOnp3lvIeS34k7t zyI/DNmq8b4= =nH2I -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Persistent workspace
Can it be done? The safest bet is to write to the user's (the user running your tomcat) home directory. The property is user.home (System.getProperty(user.home) Filip - Original Message - From: Simon Brooke [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, May 18, 2004 1:44 PM Subject: Re: Persistent workspace -BEGIN PGP SIGNED MESSAGE- On Tuesday 18 May 2004 14:37, rlipi wrote: Hi, see this: Host name=localhost debug=0 appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false There is unpackWARs attribute in the Host element in the server.xml. But I'm not sure that you have asked about this. Yup... but I'm delivering the war files, I don't control the servers. And I don't want to have to give complex instructions to the server administrators, because frankly I don't really trust them to carry them out. So I'd still, if possible, like a platform independent way of getting hold of some persistent filespace which will work both on MSWin and on UN*X platforms whether or not my war file is unpacked. Can it be done? Cheers Simon - -- [EMAIL PROTECTED] (Simon Brooke) http://www.jasmine.org.uk/~simon/ Morning had broken, and there was nothing left for us to do but pick up the pieces. -BEGIN PGP SIGNATURE- Version: 2.6.3ia Charset: noconv iQCVAwUBQKpZj3r1UrYJMbiJAQGyywQAjqYFA5DHeygEtZP3ozyZdco8SINDELVx R9suGF/+Pqe6332sfUpoONSMrmLcxeLMkDjyP4B/8eh9WkTnJFLXA1a1MZ+jz6ln M8jCzBHtS64xmbOvdyR1IrZmHnmPul9tQ7hheBw2bZRtgJF8BqOnp3lvIeS34k7t zyI/DNmq8b4= =nH2I -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to detect tomcat down
Hi, I am running Apache 2.0.47 and Tomcat 4.1.24 on Win2K/NT. I would like to monitor the tomcat server and restart it automatically if it is detected down. I did a lot research but could not find any convincing way to do it. Another issue, I am running tomcat load balancing with mod_jk. I would like to know from mod_jk.log (or anywhere else?) which tomcat instance has problem (if it happens). But I could not find how to put the information there. Those flags in mod_jk documentation does not work for me. I would highly appreciate it if anyone here could help me out. Thanks, -Simon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JK2 uri context question
Here's a more detailed description of the problem: Apache 2.0.49 site 'www.domain.com' has a subdirectory called 'members'. Users entering this directory are authenticated using .htaccess. The index.html file in the 'members' directory has a hyperlink to a webapp called 'minutes' (http://www.domain.com/members/minutes/index.jsp). On the Tomcat 5.0.24 side there is a webapp called minutes.war in the 'webapp' deployment directory. How can I map the 'minutes' app so that apache thinks is under the apache 'members' directory? This works... http://www.domain.com/members/index.jsp This doesn't... http://www.domain.com/members/minutes/index.jsp In mod_jk and webapp it was possible to do this. How can it be done using mod_jk2? Thanks, Jack Nikola Milutinovic wrote: Jack Lauman wrote: I have a site where users enter the members area through a URL like this: http://www.domain.com/members/minutes.jsp My workers2.properties file [uri:/minutes/*] group:ajp13:localhost:8009 How do you remap the members directory so that jk2 know that it point to a tomcat app called minutes in the root context? With the above, you map one set of URI to a worker, which (in case of ajp13) will deliver it to some Tomcat instance. Tomcat instance will parse the URI (yes, it does that) and decide which context (web application) it belongs to. In short, both your Apache and Tomcat must have a matching definition of VHosts and paths. I believe there is also a path parameter in the [uri:...], which can map to a new path, so paths can differ. I've never done it myself - I had matching paths. Nix. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Mod_jk2/unix socket/multiple Tomcat instances: Do I need more than one socket file?
I am attempting to set up on one box with two separate Tomcat instances, one for dev, and one for stage, all using Unix Sockets. In configuring this, I am wondering if I need to specify a separate socket file for each Tomcat instance, or can they share the same one? Is there a better performance out of either pattern? For reference, here is my workers2.properites file that I used to finally get what I want (two separate virtual host to not load-balance, using Unix Sockets). I would also love any suggestions on a better way to do this: [shm:] info=Scoreboard. Required for reconfiguration and status with multiprocess servers file=/usr/local/apache2/logs/jk2.shm size=100 debug=0 disabled=0 [channel.un:/usr/local/apache2/modules/jk2_dev.socket] group=devlbgroup [channel.un:/usr/local/apache2/modules/jk2_stage.socket] group=stagelbgroup [uri:192.168.1.152/*] channel=channel.un:/usr/local/apache2/modules/jk2_dev.socket group=devlbgroup [uri:192.168.1.153/*] channel=channel.un:/usr/local/apache2/modules/jk2_stage.socket group=stagelbgroup
Re: Persistent workspace
On Tue, May 18, 2004 at 01:47:32PM -0500, Filip Hanik - Dev wrote: : The safest bet is to write to the user's (the user running your tomcat) home directory. : The property is user.home (System.getProperty(user.home) Not always. Put another way, this would be more specific instructions you'd have to send to the remote admins, which you mentioned you weren't too keen on providing (since they wouldn't be followed). In some security-conscious environments, admins want generic users to have as few writable spaces as possible. e.g. the home dir for the tomcat user could be /dev/null, or just a non-writable dir with some local defaults. What about using a specific subdirectory of the temp dir, I believe it's sys property temp.dir or tmp.dir? This would also permit the cached data to be cleared in the event of trouble, and when the machine rebooted (under Solaris, or any other setup that uses a memory-based fs for /tmp). -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tag library compile
I get the following error when compiling HelloTag.java (below as well). It has an associated taglib.tld in the lib directory. I thought I found a solution after googling the error that suggested I put servlet.jar in the java classpath. So, I put it in the extentions directory. I could compile HelloTag.java, but it broke other parts of tomcat (the examples that come with the standard installation of Tomcat stopped working). ---Error--- HelloTag.java:3: package javax.servlet.jsp does not exist import javax.servlet.jsp.JspException; HelloTag.java:4: package javax.servlet.jsp does not exist import javax.servlet.jsp.JspTagException; HelloTag.java:7: cannot resolve symbol symbol : class TagSupport location: class com.onjava.HelloTag public class HelloTag extends TagSupport ---Code-- HelloTag.java code: package com.onjava; import javax.servlet.jsp.JspException; import javax.servlet.jsp.JspTagException; import javax.servlet.jsp.tagext.TagSupport; public class HelloTag extends TagSupport { public void HelloTag() { } public int doEndTag() throws JspException { try { pageContext.getOut().print(Hello); } catch (Exception e) { throw new JspTagException(e.getMessage()); } return SKIP_BODY; } public void release() { super.release(); } } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tag library compile
Hi, Did you put the same version of servlet.jar on the classpath as the version that ships with tomcat? However, you should not put this servlet.jar in the extensions (jre/lib/ext) directory: that can break other applications, such as tomcat's examples. Instead, put this in another directory that's on your classpath but not on any other application's classpath. Yoav Shapira Millennium Research Informatics -Original Message- From: Zollinhofer, Matt [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 18, 2004 4:02 PM To: Tomcat Users List Subject: tag library compile I get the following error when compiling HelloTag.java (below as well). It has an associated taglib.tld in the lib directory. I thought I found a solution after googling the error that suggested I put servlet.jar in the java classpath. So, I put it in the extentions directory. I could compile HelloTag.java, but it broke other parts of tomcat (the examples that come with the standard installation of Tomcat stopped working). ---Error--- HelloTag.java:3: package javax.servlet.jsp does not exist import javax.servlet.jsp.JspException; HelloTag.java:4: package javax.servlet.jsp does not exist import javax.servlet.jsp.JspTagException; HelloTag.java:7: cannot resolve symbol symbol : class TagSupport location: class com.onjava.HelloTag public class HelloTag extends TagSupport ---Code-- HelloTag.java code: package com.onjava; import javax.servlet.jsp.JspException; import javax.servlet.jsp.JspTagException; import javax.servlet.jsp.tagext.TagSupport; public class HelloTag extends TagSupport { public void HelloTag() { } public int doEndTag() throws JspException { try { pageContext.getOut().print(Hello); } catch (Exception e) { throw new JspTagException(e.getMessage()); } return SKIP_BODY; } public void release() { super.release(); } } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
trick question
Httpd by default, because of the logfile rotation that occurs every Sunday morning at 4am, restarts at the same time. If Tomcat is never re-started, what does this do to the jk2 connection between the two? S - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tag library compile
Would the servlet.jar be in the $CATALINA_HOME directory stucture, or does the installer put it elsewhere on the system? I ask because I can't find the servlet.jar in the $CATALINA_HOME directories.(jre/...) and I didn't realize it shipped with tomcat, that is probably my problem. thanks, matt -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 18, 2004 4:12 PM To: Tomcat Users List Subject: RE: tag library compile Hi, Did you put the same version of servlet.jar on the classpath as the version that ships with tomcat? However, you should not put this servlet.jar in the extensions (jre/lib/ext) directory: that can break other applications, such as tomcat's examples. Instead, put this in another directory that's on your classpath but not on any other application's classpath. Yoav Shapira Millennium Research Informatics -Original Message- From: Zollinhofer, Matt [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 18, 2004 4:02 PM To: Tomcat Users List Subject: tag library compile I get the following error when compiling HelloTag.java (below as well). It has an associated taglib.tld in the lib directory. I thought I found a solution after googling the error that suggested I put servlet.jar in the java classpath. So, I put it in the extentions directory. I could compile HelloTag.java, but it broke other parts of tomcat (the examples that come with the standard installation of Tomcat stopped working). ---Error--- HelloTag.java:3: package javax.servlet.jsp does not exist import javax.servlet.jsp.JspException; HelloTag.java:4: package javax.servlet.jsp does not exist import javax.servlet.jsp.JspTagException; HelloTag.java:7: cannot resolve symbol symbol : class TagSupport location: class com.onjava.HelloTag public class HelloTag extends TagSupport ---Code-- HelloTag.java code: package com.onjava; import javax.servlet.jsp.JspException; import javax.servlet.jsp.JspTagException; import javax.servlet.jsp.tagext.TagSupport; public class HelloTag extends TagSupport { public void HelloTag() { } public int doEndTag() throws JspException { try { pageContext.getOut().print(Hello); } catch (Exception e) { throw new JspTagException(e.getMessage()); } return SKIP_BODY; } public void release() { super.release(); } } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to detect tomcat down
On Tue, May 18, 2004 at 03:04:28PM -0400, Simon Zeng wrote: : I am running Apache 2.0.47 and Tomcat 4.1.24 on Win2K/NT. I would like to : monitor the tomcat : server and restart it automatically if it is detected down. I did a lot : research but could not find any convincing way to do it. Some commercial monitoring products perform a request to an (unprotected) URI and, in the event of a failure, perform some specified action. -that is, call the start script. Otherwise, you could have Tomcat started by a (custom) watchdog, the idea being that it kicks the start script if the expected process isn't running. I recall iPlanet 4 did something similar. As for free + out-of-the-box solutions, I haven't seen any... -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tag library compile
Hi, Would the servlet.jar be in the $CATALINA_HOME directory stucture, or does the installer put it elsewhere on the system? I ask because I For tomcat 5, it's $CATALINA_HOME/common/lib/servlet-api.jar. For tomcat 4, it's $CATALINA_HOME/commons/lib/servlet.jar. The name change is related to the Servlet Specification change and wasn't our fault ;) Yoav This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Persistent workspace
-BEGIN PGP SIGNED MESSAGE- On Tuesday 18 May 2004 20:29, QM wrote: On Tue, May 18, 2004 at 01:47:32PM -0500, Filip Hanik - Dev wrote: : The safest bet is to write to the user's (the user running your tomcat) : home directory. The property is user.home : (System.getProperty(user.home) Not always. Put another way, this would be more specific instructions you'd have to send to the remote admins, which you mentioned you weren't too keen on providing (since they wouldn't be followed). In some security-conscious environments, admins want generic users to have as few writable spaces as possible. e.g. the home dir for the tomcat user could be /dev/null, or just a non-writable dir with some local defaults. What about using a specific subdirectory of the temp dir, I believe it's sys property temp.dir or tmp.dir? This would also permit the cached data to be cleared in the event of trouble, and when the machine rebooted (under Solaris, or any other setup that uses a memory-based fs for /tmp). Yup, this sounds a good solution, at least for cached part-computations (e.g. regularly requested query results) which I do a lot. It doesn't deal with the problem of uploaded data. I suppose the 'correct' thing to do with that is shove it into the database, but I'm still unwilling if I can find a way around. Yoav Shapira's suggestion of using env-entry in the web.xml looks most promising to me because I already have an interactive process which pastes user supplied values into a web.xml template prior to the war being packed for delivery, and the path to a persistent writable directory could be one of the parameters I ask for. - -- [EMAIL PROTECTED] (Simon Brooke) http://www.jasmine.org.uk/~simon/ There's nae Gods, an there's precious few heroes but there's plenty on the dole in th Land o th Leal; And it's time now, tae sweep the future clear o th lies o a past that we know wis never real. -BEGIN PGP SIGNATURE- Version: 2.6.3ia Charset: noconv iQCVAwUBQKp7p3r1UrYJMbiJAQGWqQQAz4AzrqBbmVEUqqtmCEHMHaZgwo0Ep0oi 2hVc513b8/Ol0Jg4l1d2vkMDZwBqdhP4TXZnO3/eQYWSxKQC4D4lD8U4B3DILIsE YwyOP84OdwnfF3kNaaoKKGFylPzSjayZcTFNeuEzQx5TRRKkHJEzoEM7KQP/tFAH 8fBlv+JKYAc= =6wVL -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to detect tomcat down
I can come up with a WatchDog to do the monitoring/restart. But We have a few tomcat instance runing in load balance mode with one Apache dispatching request to them. How could we figure out if one/more(not all) tomcat instances down and how to decide which ones they are? Basically the question is can we bypass Apache to go directly to Tomcat since we know where they are? Thanks, -Simon -Original Message- From: QM [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 18, 2004 4:40 PM To: Tomcat Users List Subject: Re: How to detect tomcat down On Tue, May 18, 2004 at 03:04:28PM -0400, Simon Zeng wrote: : I am running Apache 2.0.47 and Tomcat 4.1.24 on Win2K/NT. I would like to : monitor the tomcat : server and restart it automatically if it is detected down. I did a lot : research but could not find any convincing way to do it. Some commercial monitoring products perform a request to an (unprotected) URI and, in the event of a failure, perform some specified action. -that is, call the start script. Otherwise, you could have Tomcat started by a (custom) watchdog, the idea being that it kicks the start script if the expected process isn't running. I recall iPlanet 4 did something similar. As for free + out-of-the-box solutions, I haven't seen any... -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tag library compile
Thanks for that clarification, unfortunate name change, but it's helpful to hear that. With servlet-api.jar on the classpath I shouldn't have any problems compiling with these imports right? import javax.servlet.jsp.JspException; import javax.servlet.jsp.JspTagException; import javax.servlet.jsp.tagext.TagSupport; Assuming I shouldn't, I find myself stuck because I still get the errors. I also feel like an idiot cause this could be about the most trivial thing ever. matt -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 18, 2004 4:50 PM To: Tomcat Users List Subject: RE: tag library compile Hi, Would the servlet.jar be in the $CATALINA_HOME directory stucture, or does the installer put it elsewhere on the system? I ask because I For tomcat 5, it's $CATALINA_HOME/common/lib/servlet-api.jar. For tomcat 4, it's $CATALINA_HOME/commons/lib/servlet.jar. The name change is related to the Servlet Specification change and wasn't our fault ;) Yoav - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to detect tomcat down
You should know the port/host/IP that each of them are running on. You should be able to request them directly if you have the tomcat standalone service running, which you may or may not. All of this is configured in server.xml Daniel Gibby Simon Zeng wrote: I can come up with a WatchDog to do the monitoring/restart. But We have a few tomcat instance runing in load balance mode with one Apache dispatching request to them. How could we figure out if one/more(not all) tomcat instances down and how to decide which ones they are? Basically the question is can we bypass Apache to go directly to Tomcat since we know where they are? Thanks, -Simon -Original Message- From: QM [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 18, 2004 4:40 PM To: Tomcat Users List Subject: Re: How to detect tomcat down On Tue, May 18, 2004 at 03:04:28PM -0400, Simon Zeng wrote: : I am running Apache 2.0.47 and Tomcat 4.1.24 on Win2K/NT. I would like to : monitor the tomcat : server and restart it automatically if it is detected down. I did a lot : research but could not find any convincing way to do it. Some commercial monitoring products perform a request to an (unprotected) URI and, in the event of a failure, perform some specified action. -that is, call the start script. Otherwise, you could have Tomcat started by a (custom) watchdog, the idea being that it kicks the start script if the expected process isn't running. I recall iPlanet 4 did something similar. As for free + out-of-the-box solutions, I haven't seen any... -QM - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to detect tomcat down
Write a perl script using the perl::LWP module from cpan. You could even get really complex and write some output to a web page that tells you how memory is being used, store that information into a database for statistical reporting purposes, in addition to emailing/paging the system administrator that problems might be occuring. You could easily figure out which ones are down by the lack of a response. No request, server must be down, do something!! Heck, I am going to start writing something tonight. -Original Message- From: Daniel Gibby [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 18, 2004 3:36 PM To: Tomcat Users List Subject: Re: How to detect tomcat down You should know the port/host/IP that each of them are running on. You should be able to request them directly if you have the tomcat standalone service running, which you may or may not. All of this is configured in server.xml Daniel Gibby Simon Zeng wrote: I can come up with a WatchDog to do the monitoring/restart. But We have a few tomcat instance runing in load balance mode with one Apache dispatching request to them. How could we figure out if one/more(not all) tomcat instances down and how to decide which ones they are? Basically the question is can we bypass Apache to go directly to Tomcat since we know where they are? Thanks, -Simon -Original Message- From: QM [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 18, 2004 4:40 PM To: Tomcat Users List Subject: Re: How to detect tomcat down On Tue, May 18, 2004 at 03:04:28PM -0400, Simon Zeng wrote: : I am running Apache 2.0.47 and Tomcat 4.1.24 on Win2K/NT. I would like to : monitor the tomcat : server and restart it automatically if it is detected down. I did a lot : research but could not find any convincing way to do it. Some commercial monitoring products perform a request to an (unprotected) URI and, in the event of a failure, perform some specified action. -that is, call the start script. Otherwise, you could have Tomcat started by a (custom) watchdog, the idea being that it kicks the start script if the expected process isn't running. I recall iPlanet 4 did something similar. As for free + out-of-the-box solutions, I haven't seen any... -QM - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to detect tomcat down
Hi guys, Thanks for all your replies. I got the picture and going to do something now. -Simon -Original Message- From: Randall Svancara [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 18, 2004 5:42 PM To: Tomcat Users List Subject: RE: How to detect tomcat down Write a perl script using the perl::LWP module from cpan. You could even get really complex and write some output to a web page that tells you how memory is being used, store that information into a database for statistical reporting purposes, in addition to emailing/paging the system administrator that problems might be occuring. You could easily figure out which ones are down by the lack of a response. No request, server must be down, do something!! Heck, I am going to start writing something tonight. -Original Message- From: Daniel Gibby [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 18, 2004 3:36 PM To: Tomcat Users List Subject: Re: How to detect tomcat down You should know the port/host/IP that each of them are running on. You should be able to request them directly if you have the tomcat standalone service running, which you may or may not. All of this is configured in server.xml Daniel Gibby Simon Zeng wrote: I can come up with a WatchDog to do the monitoring/restart. But We have a few tomcat instance runing in load balance mode with one Apache dispatching request to them. How could we figure out if one/more(not all) tomcat instances down and how to decide which ones they are? Basically the question is can we bypass Apache to go directly to Tomcat since we know where they are? Thanks, -Simon -Original Message- From: QM [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 18, 2004 4:40 PM To: Tomcat Users List Subject: Re: How to detect tomcat down On Tue, May 18, 2004 at 03:04:28PM -0400, Simon Zeng wrote: : I am running Apache 2.0.47 and Tomcat 4.1.24 on Win2K/NT. I would like to : monitor the tomcat : server and restart it automatically if it is detected down. I did a lot : research but could not find any convincing way to do it. Some commercial monitoring products perform a request to an (unprotected) URI and, in the event of a failure, perform some specified action. -that is, call the start script. Otherwise, you could have Tomcat started by a (custom) watchdog, the idea being that it kicks the start script if the expected process isn't running. I recall iPlanet 4 did something similar. As for free + out-of-the-box solutions, I haven't seen any... -QM - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tag library compile
On Tue, May 18, 2004 at 05:33:31PM -0400, Zollinhofer, Matt wrote: : Thanks for that clarification, unfortunate name change, but it's helpful : to hear that. With servlet-api.jar on the classpath I shouldn't have : any problems compiling with these imports right? : : import javax.servlet.jsp.JspException; : import javax.servlet.jsp.JspTagException; : import javax.servlet.jsp.tagext.TagSupport; Also: jsp-api.jar, from the same dir. =) -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
show tomcat instance name in mod_jk.log
Another issue, I am running tomcat load balancing with mod_jk. I would like to know from mod_jk.log (or anywhere else?) which tomcat instance the logged message is for so that if there is a problem, i can quickly go to that tomcat. But I could not find how to put the information there. Those flags in mod_jk documentation does not work for me. I would highly appreciate it if anyone here could help me out. Thanks, -Simon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to detect tomcat down
For the load balanced tests, have a special (hidden) JkMount for each tomcat in the cluster. -Tim Simon Zeng wrote: I can come up with a WatchDog to do the monitoring/restart. But We have a few tomcat instance runing in load balance mode with one Apache dispatching request to them. How could we figure out if one/more(not all) tomcat instances down and how to decide which ones they are? Basically the question is can we bypass Apache to go directly to Tomcat since we know where they are? Thanks, -Simon -Original Message- From: QM [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 18, 2004 4:40 PM To: Tomcat Users List Subject: Re: How to detect tomcat down On Tue, May 18, 2004 at 03:04:28PM -0400, Simon Zeng wrote: : I am running Apache 2.0.47 and Tomcat 4.1.24 on Win2K/NT. I would like to : monitor the tomcat : server and restart it automatically if it is detected down. I did a lot : research but could not find any convincing way to do it. Some commercial monitoring products perform a request to an (unprotected) URI and, in the event of a failure, perform some specified action. -that is, call the start script. Otherwise, you could have Tomcat started by a (custom) watchdog, the idea being that it kicks the start script if the expected process isn't running. I recall iPlanet 4 did something similar. As for free + out-of-the-box solutions, I haven't seen any... -QM - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to compile sources?
Hello, users. How should I compile mod_jk2 on Windows 2003 EEServer? I've downloaded ant, then i've downloaded jars and archives mentioned in build.xml. Then I run ant in the directory with source. then-nothing happens. no errors, no messages. Just empty string. I have ANT_HOME and in PATH i have full path to Ant's bin directory. What else i must to do? Thanks in advance! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
possible to get handle to ServletContext from JNDI java:comp?
Hi All, Im using OpenJMS embedded in my web-app to handle some IO Tasks and the IO tasks have to do with folders in the web-app. I mainly looking to get the fully qualified file system address to the web-app folder which can be done with ServletConfig.getRealPath(string). In a servlet I can get a hold of the ServletContext and just get the real path from the location, however, if I have sent a JMS message and Im in my listener class that is responding, is it possible to get a handle back to the web-apps servlet context? With JNDI or the ClassLoader, etc, etc. I was looking at the JNDI namespace java:comp/env and such, but didnt find a way to get the ServletContext itself, or the path info I was looking for. I guess I can always pass it with the MessageMap if need be. Thanks for any help, -Rick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[ANN] new ListenExec alpha (Tomcat reboot runtime)
This is a holdover from a recent list thread: Tomcat reboot runtime which discussed OS-neutral ways to restart the entire container, from a container-managed resource. If you're familiar with that thread, the latest ListenExec alpha/POC release is available at: http://downloads.brandxdev.net/tomcat-479785/ There's also a readme doc at that URL for the curious. This version includes a servlet that talks to the listener, as well as a demo webapp in WAR form that uses said servlet. The demo app doesn't require authentication to access the restart servlet, so you'd do yourself a favor to test it in an isolated container. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tabindex?
From the form can we get access to the tabindex data? If so how is it done?
Re: Disabling Drowser Cache of UID / PW
On Fri, May 14, 2004 at 04:13:03PM -0400, Ben Souther wrote: I am under a mandate to disable this caching on a global basis, but I have no idea how. Any ideas out there? It's interesting that someone would mandate functionality before finding out if it's possible. While they were at it they should mandate that Outlook be made secure. Hm... no problem, just do a servlet filter that detects IE and redirects it to a you must install a secure browser to use this website page :-). -- Steven J. Owens [EMAIL PROTECTED] I'm going to make broad, sweeping generalizations and strong, declarative statements, because otherwise I'll be here all night and this document will be four times longer and much less fun to read. Take it all with a grain of salt. - Me at http://darksleep.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Disabling Browser Cache of UID / PW
At least in IE, almost anything is possible with the correct ActiveX Control some bad security settings, or click happy users :) Regards, Shane... (happy Mozilla user) -Original Message- From: Steven J.Owens [mailto:[EMAIL PROTECTED] Sent: Wednesday, 19 May 2004 1:32 PM To: Tomcat Users List Subject: Re: Disabling Drowser Cache of UID / PW On Fri, May 14, 2004 at 04:13:03PM -0400, Ben Souther wrote: I am under a mandate to disable this caching on a global basis, but I have no idea how. Any ideas out there? It's interesting that someone would mandate functionality before finding out if it's possible. While they were at it they should mandate that Outlook be made secure. Hm... no problem, just do a servlet filter that detects IE and redirects it to a you must install a secure browser to use this website page :-). -- Steven J. Owens [EMAIL PROTECTED] I'm going to make broad, sweeping generalizations and strong, declarative statements, because otherwise I'll be here all night and this document will be four times longer and much less fun to read. Take it all with a grain of salt. - Me at http://darksleep.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]