Re: Tomact 5 - Out of Memory
Sorry, where and how should I set the JDK heap size - Original Message - From: Pradeep Chauhan [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, August 04, 2004 1:28 PM Subject: RE: Tomact 5 - Out of Memory Increase the JDK heap size either by JAVA_OPTS option or by registery IF Tomcat install as NT service then Use registry method else use JAVA_OPTS Pradeep -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 04.08.2004 09:08 To: Tomcat Users List Subject: Tomact 5 - Out of Memory Our enviroment is as following: Redhat 9 Tomact 5.0.19 JAVA 1.4.2_04 MYSQL 4.0.18 However, our website stop response after running for 1 day, I checked the log and there is following description StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception java.lang.OutOfMemoryError So I need to restart the server everyday. I would like to ask if there is any solution or setting to slove that. - 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]
FW: Help!! -uncaught CharConversionException ?
Hiya All, We have some standard JSP page that gets some parameters URLEncoded the usual way, (using GET) Once you take the URL and add the percent % character at the end of the URL (just after a parameter) - the entire page crashes throwing java.io.CharConversionException We tried catching the exception and handling the matter, but from some reason it never reaches the catch block and throws the exception up. Has anyone seen this ? java.io.CharConversionException: EOF at org.apache.tomcat.util.buf.UDecoder.convert(UDecoder.java:177) at org.apache.tomcat.util.buf.UDecoder.convert(UDecoder.java:144) at org.apache.tomcat.util.http.Parameters.processParameters(Parameters.java:514 ) at org.apache.tomcat.util.http.Parameters.processParameters(Parameters.java:541 ) at org.apache.tomcat.util.http.Parameters.handleQueryParameters(Parameters.java :318) at org.apache.coyote.tomcat4.CoyoteRequest.parseRequestParameters(CoyoteRequest .java:1927) at org.apache.coyote.tomcat4.CoyoteRequest.getParameter(CoyoteRequest.java:905) at org.apache.coyote.tomcat4.CoyoteRequestFacade.getParameter(CoyoteRequestFaca de.java:174) Thanks, Yoav.
Re: Tomact 5 - Out of Memory
You cannot set it if you r not even willing to read any documentation after getting so much hint. On Wed, 2004-08-04 at 01:58, [EMAIL PROTECTED] wrote: Sorry, where and how should I set the JDK heap size - Original Message - From: Pradeep Chauhan [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, August 04, 2004 1:28 PM Subject: RE: Tomact 5 - Out of Memory Increase the JDK heap size either by JAVA_OPTS option or by registery IF Tomcat install as NT service then Use registry method else use JAVA_OPTS Pradeep -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 04.08.2004 09:08 To: Tomcat Users List Subject: Tomact 5 - Out of Memory Our enviroment is as following: Redhat 9 Tomact 5.0.19 JAVA 1.4.2_04 MYSQL 4.0.18 However, our website stop response after running for 1 day, I checked the log and there is following description StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception java.lang.OutOfMemoryError So I need to restart the server everyday. I would like to ask if there is any solution or setting to slove that. - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomact 5 - Out of Memory
Also check all your objects are setting null after client leaves. Because java debugger is not working as per the expectation. -Jignesh On Wed, 2004-08-04 at 01:31, Paul Wallace wrote: Also ensure session expiry is firstly happening, and being handled (the later being optional!) -Original Message- From: Pradeep Chauhan [mailto:[EMAIL PROTECTED] Sent: Wednesday, 4 August 2004 3:28 PM To: Tomcat Users List Subject: RE: Tomact 5 - Out of Memory Increase the JDK heap size either by JAVA_OPTS option or by registery IF Tomcat install as NT service then Use registry method else use JAVA_OPTS Pradeep -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 04.08.2004 09:08 To: Tomcat Users List Subject: Tomact 5 - Out of Memory Our enviroment is as following: Redhat 9 Tomact 5.0.19 JAVA 1.4.2_04 MYSQL 4.0.18 However, our website stop response after running for 1 day, I checked the log and there is following description StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception java.lang.OutOfMemoryError So I need to restart the server everyday. I would like to ask if there is any solution or setting to slove that. - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomact 5 - Out of Memory
I would also suggest that you use a profiler and profile your application to find out what objects are using up the heap. You may find that you have a memory leak in your application that needs to be fixed. Ta Matt -Original Message- From: Jignesh Patel [mailto:[EMAIL PROTECTED] Sent: 04 August 2004 18:03 To: Tomcat Users List Subject: Re: Tomact 5 - Out of Memory You cannot set it if you r not even willing to read any documentation after getting so much hint. On Wed, 2004-08-04 at 01:58, [EMAIL PROTECTED] wrote: Sorry, where and how should I set the JDK heap size - Original Message - From: Pradeep Chauhan [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, August 04, 2004 1:28 PM Subject: RE: Tomact 5 - Out of Memory Increase the JDK heap size either by JAVA_OPTS option or by registery IF Tomcat install as NT service then Use registry method else use JAVA_OPTS Pradeep -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 04.08.2004 09:08 To: Tomcat Users List Subject: Tomact 5 - Out of Memory Our enviroment is as following: Redhat 9 Tomact 5.0.19 JAVA 1.4.2_04 MYSQL 4.0.18 However, our website stop response after running for 1 day, I checked the log and there is following description StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception java.lang.OutOfMemoryError So I need to restart the server everyday. I would like to ask if there is any solution or setting to slove that. - 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] - 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: How can I display number of requests over the past n seconds?
Mmmm, I think people is answering more than one question ;-) If you need to be strict with respect to the timings, that is, you need exactly the number of requests in the past five seconds counting from the moment your request is done, you will need the solution proposed by Tim. Just remember to synchronize the access to the list, to prevent ConcurrentModification exceptions while you iterate over the list to get the counter values :-) If the time buckets idea works well for you, both Yoav and Justin proposals are good. I just prefer Yoav one because I guess the cost associated to the hash function, even if it is simple, is greater than the associated to a thread that is sleeping most of the time (I mean, in processing time terms). I think Yoav idea could be implemented like this (with a variation on my own ;-): public class Historic extends Thread { private static final int NUM_COUNTERS = 6; private static final int INTERVAL = 5000; private int[] counters = new int[NUM_COUNTERS]; private int pos = 0; public Historic() { super(); this.setDaemon(true); } public void run() { try { while (true) { sleep(INTERVAL); synchronized (this) { pos = (pos + 1) % NUM_COUNTERS; counters[pos] = 0; } } }catch (InterruptedException e) { } } public synchronized void addRequest() { counters[pos] += 1; } public int[] getCounters() { int[] copy; int posCopy; synchronized (this) { System.arraycopy(counters, 0, copy, 0, NUM_COUNTERS); posCopy = pos; } int[] values = new int[NUM_COUNTERS]; int count = 0; int index = posCopy; for (int i = 0; i NUM_COUNTERS; i++) { count += copy[index]; values[i] = count; index = (index == 0 ? NUM_COUNTERS : index) - 1; } return values; } } Just instantiate the class and start it in your Filter initialization, and call addRequest() on each received request. The getCounters() gives you the number of requests in each time slice. Ah, and remember to interrupt it on Filter finalization :-) There is no guaranty that the pos variable will be changed exactly each five seconds, as the sleep() method is not accurate by design. In a highly loaded server with only one CPU, the time slicing will become worse. If you detect the thread scheduling is too much biased, you can raise its priority. If this is not enough, you will have to calculate the cursor position in each request, implementing the hashtable proposed by Justin: public class Historic { private static final int NUM_COUNTERS = 6; private static final int INTERVAL = 5000; private int[] counters = new int[NUM_COUNTERS]; private int pos = 0; private long ts = System.currentTimeMillis(); public Historic() { } public synchronized void addRequest() { adjust(); counters[pos] += 1; } public int[] getCounters() { int[] copy; int posCopy; synchronized (this) { adjust(); System.arraycopy(counters, 0, copy, 0, NUM_COUNTERS); posCopy = pos; } int[] values = new int[NUM_COUNTERS]; int count = 0; int index = posCopy; for (int i = 0; i NUM_COUNTERS; i++) { count += copy[index]; values[i] = count; index = (index == 0 ? NUM_COUNTERS : index) - 1; } return values; } private void adjust() { long now = System.currentTimeMillis(); while (now - ts = INTERVAL) { pos = (pos + 1) % NUM_COUNTERS; counters[pos] = 0; ts += INTERVAL; } } } HTH, Rodrigo Ruiz I need to display on a .jsp page the number of requests for Tomcat in the past 5 / 10 / 15/ 30 / 45 / 60 seconds. I've already implement a Filter will count the total number of requests. I did this with a static int, which is incremented everytime a request comes in. But what should I do so that I can show number of request over past time intervals? Since the present time is always changing, the past n seconds is constantly changing also. Thanks in advance, Tom __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.727 / Virus Database: 482 - Release Date: 28/07/2004 -- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.733 / Virus Database: 487 - Release Date: 02/08/2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Returned Mail: Error During Delivery
-- Here is your List of Failed Recipients -- [EMAIL PROTECTED] Requested action not taken: mailbox unavailable. [SMTP Error Code 550] Here Is Your Returned Mail Received: FROM unincor.br BY srv_zeus.unincor.br ; Wed Aug 04 07:55:25 2004 -0300 From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: Encrypted Mail Date: Wed, 4 Aug 2004 07:47:27 -0400 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary==_NextPart_000_0016=_NextPart_000_0016 X-Priority: 3 X-MSMail-Priority: Normal This is a multi-part message in MIME format. --=_NextPart_000_0016=_NextPart_000_0016 Content-Type: text/plain; charset=Windows-1252 Content-Transfer-Encoding: 7bit First part of the secure mail is available. --=_NextPart_000_0016=_NextPart_000_0016 Content-Type: application/octet-stream; name=message.zip Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename=message.zip --=_NextPart_000_0016=_NextPart_000_0016-- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
nativeDispatch severe: nativeDispatch error -3
I installed on Fedora Core 1 the following configuration: - Apache 2.0.49 - Tomcat 5.0.25 - mod_jk2 2.0.4 In my catalina.out file the following info/errors occur: (info) jk_jni_aprImpl.c (431) jkInvoke() invoke 4e549670 (this occurs constantly) (error) org.apache.jk.common.jniHandler nativeDispatch SEVERE: nativeDispatch error -3 java.lang.Throwable at org.apache.common.JniHandler.nativeDispatch (JniHandler.java 292) ... (error) org.apache.jk.common.ChannelUn receive SEVERE: receive error 12 There are more errors, but these only come up from time to time. This error and info are the main problem, i think. Does anyone know what could be the problem. Or what this means? Many thanks! Best regards, Jonas Roels - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomact 5 - Out of Memory
I would set JAVA_OPTS in the startup script you're using to start Tomcat. There are loads of emails on the list regarding this. This issue is common enough you should be able to google the archives for details and get loads of responses. Also as others have suggested, check your code for memory leaks -- especially if it's not under load when it dies. --David [EMAIL PROTECTED] wrote: Sorry, where and how should I set the JDK heap size - Original Message - From: Pradeep Chauhan [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, August 04, 2004 1:28 PM Subject: RE: Tomact 5 - Out of Memory Increase the JDK heap size either by JAVA_OPTS option or by registery IF Tomcat install as NT service then Use registry method else use JAVA_OPTS Pradeep -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 04.08.2004 09:08 To: Tomcat Users List Subject: Tomact 5 - Out of Memory Our enviroment is as following: Redhat 9 Tomact 5.0.19 JAVA 1.4.2_04 MYSQL 4.0.18 However, our website stop response after running for 1 day, I checked the log and there is following description StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception java.lang.OutOfMemoryError So I need to restart the server everyday. I would like to ask if there is any solution or setting to slove that. - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat error
Hey there all I get the following line when running my servlet on Tomcat version 5.0.25: java.lang.UnsupportedClassVersionError: org/volume4/searchEngine/lawSearch (Unsupported major.minor version 49.0) What exactly does this mean and how do I go about fixing this? Thanks! -- Kind Regards Schalk Neethling Web Developer.Designer.Programmer.President Volume4.Development.Multimedia.Branding emotionalize.conceptualize.visualize.realize Tel: +27125468436 Fax: +27125468436 email:[EMAIL PROTECTED] web: www.volume4.co.za This message contains information that is considered to be sensitive or confidential and may not be forwarded or disclosed to any other party without the permission of the sender. If you received this message in error, please notify me immediately so that I can correct and delete the original email. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Intermittent exception during startup (5.0.25)
Other than to restart the server and cross my fingers, no I haven't found a solution. Perhaps it should be submitted as a bug. -- RH - Original Message - Sent: Wednesday, August 04, 2004 2:40 AM Subject: Intermittent exception during startup (5.0.25) Hello Robert I got the same error as you with tomcat 5.0.27. Sometimes the error occures, and sometimes it doesn't!!! Did you found a solution? Here is my catalina.out: Aug 4, 2004 8:18:49 AM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on http-a6ak-www-ccis-r.bedag.ch%2F162.23.4.136-8081 Aug 4, 2004 8:18:49 AM org.apache.coyote.tomcat5.MapperListener init WARNING: Error registering contexts java.util.ConcurrentModificationException at java.util.HashMap$HashIterator.nextEntry(HashMap.java:930) at java.util.HashMap$EntryIterator.next(HashMap.java:972) at java.util.HashMap.putAllForCreate(HashMap.java:505) at java.util.HashMap.clone(HashMap.java:799) at mx4j.server.DefaultMBeanRepository.clone(DefaultMBeanRepository.java:56) at mx4j.server.MBeanServerImpl.findMBeansByPattern(MBeanServerImpl.java:1603) at mx4j.server.MBeanServerImpl.queryObjectNames(MBeanServerImpl.java:1568) at mx4j.server.MBeanServerImpl.queryMBeans(MBeanServerImpl.java:1512) at org.apache.coyote.tomcat5.MapperListener.init(MapperListener.java:115) at org.apache.coyote.tomcat5.CoyoteConnector.start(CoyoteConnector.java:1537) at org.apache.catalina.core.StandardService.start(StandardService.java:489) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313) at org.apache.catalina.startup.Catalina.start(Catalina.java:556) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85 ) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:60) at java.lang.reflect.Method.invoke(Method.java:391) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:284) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:422) Aug 4, 2004 8:18:49 AM org.apache.jk.common.ChannelSocket init INFO: JK2: ajp13 listening on /127.0.0.1:8010 Aug 4, 2004 8:18:49 AM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=3/163 config=/a6a/a6ak/tomcat/conf/jk2.properties Aug 4, 2004 8:18:50 AM org.apache.catalina.startup.Catalina start INFO: Server startup in 40958 ms Regards, Dieter Ludwig Bedag Informatik AG RZ Bern, EPS/NSM Engehaldenstrasse 12 3012 Bern Telefon: +41 31 633 21 21 (direkt 22 59) Telefax: +41 31 633 23 69 E-Mail:[EMAIL PROTECTED] www.bedag.ch - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 4.1.30 ThreadPool.adjustLimits
Hi, That was an excellent message. Your approach is flawless. You can keep using your hack, which isn't that crude at all. You can keep using the 5.x Connector code by and large with 4.1.30 (though not earlier versions of Tomcat 4.1), it should be just fine. And I tend to agree than 10 as MAX_THREADS_MIN is too high: something like 2 or 3 seems reasonable to me. Please open a Bugzilla item asking for this to be modified, and I will address it. Thanks, Yoav Shapira Millennium Research Informatics -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 03, 2004 5:30 PM To: [EMAIL PROTECTED] Subject: Tomcat 4.1.30 ThreadPool.adjustLimits I have several questions that apparently center around the org.apache.tomcat.util.threads.ThreadPool class contained in the tomcat-util.jar file included in the Tomcat V4.1.30 distribution. Background: Using V4.1.30 in a standalone, relatively minimal configuration with the Coyote HTTP/1.1 Connector. Deployed on several hundred (ultimately several thousand) UNIX servers of various flavors. Least common denominator server types supporting only JVM 1.2.2 limit us to 4.x Tomcat. Tomcat used solely for foreign system access to server data via specialized servlets in a confined/controlled environment (not internet exposed). Resource considerations require limiting Tomcat to a tiny fraction of it's concurrent connection capacity (primary function of servers is to host a vast load of multi-user business management applications). What I'm after is limiting to a max of 4 concurrent connections on the stock configuration. Initially though I could simply set maxProcessors=5 and minProcessors=1 (earlier experimentation suggested actual concurrent connections was one less than maxProcessors value). I unfortunately misinterpreted the warning message generated during startup, WARNING: maxThreads setting (5) too low, set to 10, to be a suggestion. I now understand this is a statement that Tomcat (ThreadPool.adjustLimits() method logic, in particular) actually reset the maxProcessors value to 10. Went looking for ThreadPool in V4.1.30 source (based on warning message origin tags) without success, then remembered something about TC V4.1.30 using TC V5.x Coyote connector. Then located what I believe to be the operative logic in jakarta-tomcat-connectors portion of Tomcat V5.0.19 source (version I happened to have handy). Sure enough, method adjustLimits() forces maxThreads value (apparently set by digester logic based on TC4.x.x maxProcessors) to MAX_THREADS_MIN (hardwired to 10 in source) if value supplied in server.xml is less than that. I knocked off a copy of org.apache.tomcat.util.threads.ThreadPool, changed MAX_THREADS_MIN to 2, compiled, and surgically deployed resulting classes under server/classes (effectively overriding the ThreadPool class in server/lib/tomcat-util.jar) on a test box. Appears to be behaving reasonably, now limiting concurrent connections to that specified in server.xml file. I know - crude hack - but I didn't have much recourse without fielding something to front-end Tomcat. My questions: (1) Is there some other reason for this essentially arbitrary (upward) adjustment of the maxProcessors/maxThreads value - beyond the rational provided in the source commentary ... fix provides reasonable settings for a single CPU with medium load.? (2) Is the ThreadPool source from Tomcat V5.0.19 the appropriate version to use as I have outlined above? (It appeared to be the closest date match to the Tomcat V4.1.30 release, but I couldn't find any specific references to where the tomcat-util.jar file in V4.1.30 originated.) While my little hack appears to be working - I'm still testing the crap out of it - would be nice to know if there is something I may have missed, so any input from those intimate with V4.1.30 V5.x logic would be most appreciated. Regards, Jim Layer - 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: Help!! -uncaught CharConversionException ?
Hi, Hmm, a bit strange. What Tomcat version are you on? I recall seeing that once on an alpha but I haven't seen it for a long time. You should definitely be able to catch it, though. And you should try the latest stable version of Tomcat to see if it's been fixed. Yoav Shapira Millennium Research Informatics -Original Message- From: Yoav Niderman [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 04, 2004 4:10 AM To: [EMAIL PROTECTED] Subject: FW: Help!! -uncaught CharConversionException ? Hiya All, We have some standard JSP page that gets some parameters URLEncoded the usual way, (using GET) Once you take the URL and add the percent % character at the end of the URL (just after a parameter) - the entire page crashes throwing java.io.CharConversionException We tried catching the exception and handling the matter, but from some reason it never reaches the catch block and throws the exception up. Has anyone seen this ? java.io.CharConversionException: EOF at org.apache.tomcat.util.buf.UDecoder.convert(UDecoder.java:177) at org.apache.tomcat.util.buf.UDecoder.convert(UDecoder.java:144) at org.apache.tomcat.util.http.Parameters.processParameters(Parameters.jav a:51 4 ) at org.apache.tomcat.util.http.Parameters.processParameters(Parameters.jav a:54 1 ) at org.apache.tomcat.util.http.Parameters.handleQueryParameters(Parameters .jav a :318) at org.apache.coyote.tomcat4.CoyoteRequest.parseRequestParameters(CoyoteRe ques t .java:1927) at org.apache.coyote.tomcat4.CoyoteRequest.getParameter(CoyoteRequest.java :905 ) at org.apache.coyote.tomcat4.CoyoteRequestFacade.getParameter(CoyoteReques tFac a de.java:174) Thanks, 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: How do I manage the thread pool in 5.0.27?
Hi, You would lower maxSpareThreads on your Connector configuration in server.xml. See the various *Threads parameters for the Connector for more tuning options. Yoav Shapira Millennium Research Informatics -Original Message- From: Joseph Shraibman [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 04, 2004 12:15 AM To: Tomcat Users List Subject: How do I manage the thread pool in 5.0.27? After handling a lot of requests in 5.0.27 I'm left with a lot of threads with names like TP-Processor245. How do I make these go away? - 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: Can't compile jk 1.2.6
On 03 August 2004, Joseph Shraibman said: Then configure ends with: creating libtool checking for test... /usr/bin/test checking for rm... /bin/rm checking for grep... /bin/grep checking for echo... /bin/echo checking for sed... /bin/sed checking for cp... /bin/cp checking for mkdir... /bin/mkdir checking for snprintf... yes checking for vsnprintf... yes no apxs given checking for target platform... unix no apache given configure: error: Cannot find the WebServer But the apxs does exist. This is apache 2.0.50 I believe you need to run ./configure --with-apxs=${apache_prefix}/bin/apxs where $apache_prefix is wherever you installed Apache (eg. /usr/local/apache2). Greg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat error
Hi, Make sure you compile the class with JDK 1.4 or earlier, not JDK 1.5. Yoav Shapira Millennium Research Informatics -Original Message- From: Schalk Neethling [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 04, 2004 8:16 AM To: Tomcat Users List Subject: RE: Tomcat error Hey there all I get the following line when running my servlet on Tomcat version 5.0.25: java.lang.UnsupportedClassVersionError: org/volume4/searchEngine/lawSearch (Unsupported major.minor version 49.0) What exactly does this mean and how do I go about fixing this? Thanks! -- Kind Regards Schalk Neethling Web Developer.Designer.Programmer.President Volume4.Development.Multimedia.Branding emotionalize.conceptualize.visualize.realize Tel: +27125468436 Fax: +27125468436 email:[EMAIL PROTECTED] web: www.volume4.co.za This message contains information that is considered to be sensitive or confidential and may not be forwarded or disclosed to any other party without the permission of the sender. If you received this message in error, please notify me immediately so that I can correct and delete the original email. Thank you. - 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 error
Off handed guess -- it means your classes were compiled with a version of a JDK not compatible with the JDK running your Tomcat install. Recompile with the same JDK you're using with Tomcat and the whole issue should be solved. --David Schalk Neethling wrote: Hey there all I get the following line when running my servlet on Tomcat version 5.0.25: java.lang.UnsupportedClassVersionError: org/volume4/searchEngine/lawSearch (Unsupported major.minor version 49.0) What exactly does this mean and how do I go about fixing this? Thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: response.sendredirect failig from an included .jsp
Tim, Thanks for the info. The redirect that I'm trying to achieve is actually internal to my site. So I started looking at requestdispatcher.forward( ), but it appears to me that you have to simply pass the same 'request' and 'response' variables into it. I need to be able to clear the variables in the query string. Any ideas? Thanks, Jon On Tue, 03 Aug 2004 19:50:11 -0400, Tim Funk [EMAIL PROTECTED] wrote: Yes it should be failing. You cannot set headers or issue redirects from an include. (Its a rule in the spec) -Tim Jon Beyer wrote: The code 'response.sendRedirect( http://www.yahoo.com; )' fails when the containing jsp is included from another jsp. Should this be failing? What am I doing wrong? By 'failing', I mean that there is no exception thrown, and no error message, but simply no redirect. e.g. (the redirect works properly when foo.jsp is called directly, but fails when foo2.jsp is called): foo2.jsp %@ page language=java import=java.lang.*,java.util.* % %@ include file=foo.jsp % foo.jsp %@ page language=java import=java.lang.*,java.util.* % % response.sendRedirect( http://www.yahoo.com; ); % - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- We don't stop playing because we grow old, we grow old because we stop playing Try not. Do. Or do not. There is no try. -Yoda Jon Beyer 412 Brown Hall Princeton University Princeton, NJ 08544 609 986 7453 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat error
On Wed, Aug 04, 2004 at 02:16:20PM +0200, Schalk Neethling wrote: : I get the following line when running my servlet on Tomcat version 5.0.25: : : java.lang.UnsupportedClassVersionError: org/volume4/searchEngine/lawSearch : (Unsupported major.minor version 49.0) : : What exactly does this mean and how do I go about fixing this? Thanks! Likely, there's a version mismatch between the compiler used to build the servlet and the runtime environment in which it's executing. Did you forget to rebuild your servlet when you moved to Tomcat 5? Did you perhaps build Tomcat from source with an older compiler? -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 error
Hi, You can have as many versions of the JDK installed on your system as you want. Tomcat will use the one pointed out by the JAVA_HOME variable. Whatever JDK Tomcat uses should be the same or a later version than the JDK you use to compile your class. Class version 49.0 is JDK 1.5 I believe, so if you compile your classes with JDK 1.5 you have to set Tomcat to use JDK 1.5 as well (which is officially not supported yet but actually works fine). Yoav Shapira Millennium Research Informatics -Original Message- From: Schalk Neethling [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 04, 2004 9:40 AM To: Shapira, Yoav Subject: Re: Tomcat error Yoav Thanks, I assume I can have more then one version of the jdk installed on my system correct? Is this error caused by Tomcat or that there is an older version of the jdk on the server? Shapira, Yoav wrote: Hi, Make sure you compile the class with JDK 1.4 or earlier, not JDK 1.5. Yoav Shapira Millennium Research Informatics -Original Message- From: Schalk Neethling [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 04, 2004 8:16 AM To: Tomcat Users List Subject: RE: Tomcat error Hey there all I get the following line when running my servlet on Tomcat version 5.0.25: java.lang.UnsupportedClassVersionError: org/volume4/searchEngine/lawSearch (Unsupported major.minor version 49.0) What exactly does this mean and how do I go about fixing this? Thanks! -- Kind Regards Schalk Neethling Web Developer.Designer.Programmer.President Volume4.Development.Multimedia.Branding emotionalize.conceptualize.visualize.realize Tel: +27125468436 Fax: +27125468436 email:[EMAIL PROTECTED] web: www.volume4.co.za This message contains information that is considered to be sensitive or confidential and may not be forwarded or disclosed to any other party without the permission of the sender. If you received this message in error, please notify me immediately so that I can correct and delete the original email. Thank you. - 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. -- Kind Regards Schalk Neethling Web Developer.Designer.Programmer.President Volume4.Development.Multimedia.Branding emotionalize.conceptualize.visualize.realize Tel: +27125468436 Fax: +27125468436 email:[EMAIL PROTECTED] web: www.volume4.co.za This message contains information that is considered to be sensitive or confidential and may not be forwarded or disclosed to any other party without the permission of the sender. If you received this message in error, please notify me immediately so that I can correct and delete the original email. Thank you. 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 error
From: Schalk Neethling [mailto:[EMAIL PROTECTED] Subject: RE: Tomcat error java.lang.UnsupportedClassVersionError: org/volume4/searchEngine/lawSearch (Unsupported major.minor version 49.0) What exactly does this mean and how do I go about fixing this? Thanks! Looks like someone has compiled a class using JDK 1.5 (and targetting 1.5) and are now trying to run it under an older JVM. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Intermittent exception during startup (5.0.25)
Hola, Can you reproduce the error reliably? What are the consequences of this error? Are any webapps not started or not functioning because of it? We could probably make that method in MapperListener synchronized, but the error doesn't seem to be our fault. It looks like an MX4J issue possibly. Yoav Shapira Millennium Research Informatics -Original Message- From: Robert Hunt [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 04, 2004 8:36 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: Intermittent exception during startup (5.0.25) Other than to restart the server and cross my fingers, no I haven't found a solution. Perhaps it should be submitted as a bug. -- RH - Original Message - Sent: Wednesday, August 04, 2004 2:40 AM Subject: Intermittent exception during startup (5.0.25) Hello Robert I got the same error as you with tomcat 5.0.27. Sometimes the error occures, and sometimes it doesn't!!! Did you found a solution? Here is my catalina.out: Aug 4, 2004 8:18:49 AM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on http-a6ak-www-ccis-r.bedag.ch%2F162.23.4.136-8081 Aug 4, 2004 8:18:49 AM org.apache.coyote.tomcat5.MapperListener init WARNING: Error registering contexts java.util.ConcurrentModificationException at java.util.HashMap$HashIterator.nextEntry(HashMap.java:930) at java.util.HashMap$EntryIterator.next(HashMap.java:972) at java.util.HashMap.putAllForCreate(HashMap.java:505) at java.util.HashMap.clone(HashMap.java:799) at mx4j.server.DefaultMBeanRepository.clone(DefaultMBeanRepository.java:56 ) at mx4j.server.MBeanServerImpl.findMBeansByPattern(MBeanServerImpl.java:16 03) at mx4j.server.MBeanServerImpl.queryObjectNames(MBeanServerImpl.java:1568) at mx4j.server.MBeanServerImpl.queryMBeans(MBeanServerImpl.java:1512) at org.apache.coyote.tomcat5.MapperListener.init(MapperListener.java:115) at org.apache.coyote.tomcat5.CoyoteConnector.start(CoyoteConnector.java:15 37) at org.apache.catalina.core.StandardService.start(StandardService.java:489 ) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313) at org.apache.catalina.startup.Catalina.start(Catalina.java:556) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja va:8 5 ) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja va:5 8 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso rImp l .java:60) at java.lang.reflect.Method.invoke(Method.java:391) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:284) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:422) Aug 4, 2004 8:18:49 AM org.apache.jk.common.ChannelSocket init INFO: JK2: ajp13 listening on /127.0.0.1:8010 Aug 4, 2004 8:18:49 AM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=3/163 config=/a6a/a6ak/tomcat/conf/jk2.properties Aug 4, 2004 8:18:50 AM org.apache.catalina.startup.Catalina start INFO: Server startup in 40958 ms Regards, Dieter Ludwig Bedag Informatik AG RZ Bern, EPS/NSM Engehaldenstrasse 12 3012 Bern Telefon: +41 31 633 21 21 (direkt 22 59) Telefax: +41 31 633 23 69 E-Mail:[EMAIL PROTECTED] www.bedag.ch - 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]
Undelpoying Web App - help please
Once you undeploy a web app from Tomcat 5.0.19 admin screen where does the folder goes. I accidentally hit the undelpoy button Is there any way to retrieve the folder?
FW: Understanding tomcat web administration tool.
Hi, I'm just forwarding your reply to the mailing list so it's in the archives. That way I can refer to it in the future when updating Tomcat docs, and I don't have to keep it in my personal inbox. Thanks ;) Yoav Shapira Millennium Research Informatics -Original Message- From: Michael Tiernan [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 04, 2004 10:50 AM To: Shapira, Yoav Subject: RE: Understanding tomcat web administration tool. I understand that problem! :) If anyone ever does add it to the docs, may I suggest (as my partial payment for your kindness) answering the question from this point of view: (This is of course assuming I understand the relationship correctly.) The Admin rules and has Managers under it. The Admin controls the server and provides the container platform. The Manager(s) control the individual containers. My reasoning being, I can give manager access to developers and they won't/can't kill other containers that they're not working on. But I'll retain control of the admin access. I as a system administrator can provide a central service (from my point of view) which is the Tomcat server running on my machine (in a place I decide) and then I can provide an area (separate from the tomcat server files) for developers/users to run individual instances of servers and let them play all they want without affecting the overall server. Again, thank you very very much for your time. -- MCT Michael C Tiernan [EMAIL PROTECTED] Core Informatics (617) 679-3845 Shapira, Yoav [EMAIL PROTECTED] 08/04/2004 10:39 AM To Michael Tiernan [EMAIL PROTECTED] cc Subject RE: Understanding tomcat web administration tool. Hi, No problem, it's something we should add to the docs anyways, but no one has the bandwidth for it ;) Yoav Shapira Millennium Research Informatics -Original Message- From: Michael Tiernan [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 04, 2004 10:38 AM To: Shapira, Yoav Subject: RE: Understanding tomcat web administration tool. Thank you thank you thank you! Again, my apologies for having gone to you directly. -- MCT Michael C Tiernan [EMAIL PROTECTED] Core Informatics (617) 679-3845 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. 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: Host Aliases, Wildcards
On Mon, 2004-08-02 at 09:43, J.Lindberg wrote: Tomcat docs on host aliases say nothing about wildcards, so I'm assuming it's not implemented. Would be nice to see a change in this policy. :) It is most definitely not implemented. I even browsed down through the source to review how it did the mappings. It didn't seem like a trivial rewrite (at least, not being familiar with the rest of the code and the potential ramifications). I could really use the functionality, but the only servlet engine I've found that has excellent virtual host support is Caucho's Resin. You can do a trick with Apache rewrite rules to match wildcard domains and forward them to a particular /context-path/. This works fine, provided you don't want to use ROOT web apps to avoid having a pointless context path in the URL, which I did. :) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat error
The 49.0 is a magic number within the class bytecode. This type of error typically means the class was compiled using a newer version of the jdk than the runtime that is interpreting the bytecode. So, did you, say, compile the lawSearch class using jdk 1.5 but are running Tomcat against jdk 1.4? Resolution: recompile lawSearch against jdk 1.4 http://java.sun.com/docs/books/vmspec/2nd-edition/html/ClassFile.doc.html#75883 HTH, Jon Schalk Neethling wrote: Hey there all I get the following line when running my servlet on Tomcat version 5.0.25: java.lang.UnsupportedClassVersionError: org/volume4/searchEngine/lawSearch (Unsupported major.minor version 49.0) What exactly does this mean and how do I go about fixing this? Thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Datasource Definition
I am trying to figure out how datasources defitions works. In Tomcat docs it suggest to change server.xml and web.xml, adding a global resource and referencing it on webapp. Tomcat's admin changes a appname.xml on conf\Catalina\localhost file (what indeded work to me). Netbeans kb suggest to change context.xml at META-INF dir. My question are: Which should I use and why? What is the purpose of conf\Catalina\localhost dir? Thanks Valter
Tomcat 5 and IIS
I've requested that my administrator determine a way to integrate Tomcat 5 with IIS, and he's having trouble finding documentation on the subject. As I subscribe to this list, and don't have the time to search, can anyone tell me if Tomcat 5 can still be integrated with IIS? We're making a move to Java from ASP, then eventually to UNIX with a full Java Application Server, so this is our first step to begin developing new class libraries and rewriting old code to work in this fashion. Any help would be appreciated. -- Robert Charbonneau -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomact 5 - Out of Memory
From: David Smith [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: Tomact 5 - Out of Memory Date: Wed, 04 Aug 2004 07:38:57 -0400 I would set JAVA_OPTS in the startup script you're using to start Tomcat. There are loads of emails on the list regarding this. This issue is common enough you should be able to google the archives for details and get loads of responses. Fair point -- if you haven't enough memory overhead, then until the garbage collector kicks in to free objects up you will have a problem. Also as others have suggested, check your code for memory leaks -- especially if it's not under load when it dies. But hey, I thought one of the big selling points is that Java DOES NOT LEAK! Am I mistaken? Isn't it's absence of pointers its big plus? If it does leak then changing the heap size is going to be irrelevant. No matter how large you set it it will bite you in the bum eventually! --David _ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can't compile jk 1.2.6
The problem was that my notes said to use -with-apxs2= instead of -with-apxs= David Rees wrote: Joseph Shraibman wrote, On 8/3/2004 7:29 PM: no apxs given checking for target platform... unix no apache given configure: error: Cannot find the WebServer But the apxs does exist. This is apache 2.0.50 I can't compile 1.2.5 either Look above, closely. Ask again if you can't figure it out. -Dave - 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 do I manage the thread pool in 5.0.27?
But the jk connector doesn't have those paramaters, does it? Shapira, Yoav wrote: Hi, You would lower maxSpareThreads on your Connector configuration in server.xml. See the various *Threads parameters for the Connector for more tuning options. Yoav Shapira Millennium Research Informatics -Original Message- From: Joseph Shraibman [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 04, 2004 12:15 AM To: Tomcat Users List Subject: How do I manage the thread pool in 5.0.27? After handling a lot of requests in 5.0.27 I'm left with a lot of threads with names like TP-Processor245. How do I make these go away? - 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: ajp over ssl
That's the best idea I can think of, too. With SSH tunnels using public key authentication, you can set it up so that the tunnel is setup from a system script, without user intervention. David Smith wrote: I'm not sure this can be done. Admittedly I didn't look all that hard -- maybe someone who did development work on the connectors can anwer. I can suggest what I did which is setup a tunnel (SSH tunnel in my case) between the two machines. Then they (the servers) can talk all they want and it covers all services routed through the tunnel -- not just apache and tomcat. Ipsec would work just as well I suspect. Probably not what you wanted, but it's a suggestion still --David Michael Jürgens wrote: Ruth, Brice wrote: Michael Jürgens wrote: Oh sorry I was a little bit tired in the morning. I want to connect the Apache securesd over an unsecure medium (Internet) An my question ist how to connect AJP 1.3 over SSL (not ssh) with jk or jk2. regards, Michael Michael, I believe you'll want to configure your Apache VirtualHost to serve your SSL requests, then use the mod_jk (or jk2) module to communicate with Tomcat. Is there any reason that your web-application (on Tomcat) needs to be aware of the SSL security? You can find documentation on securing Apache via SSL on the main Apache site (httpd.apache.org). And communicating betw. Apache and Tomcat via JK has abundant documentation as well. Good luck! No I want to connect an apache webserver over internet to a tomcat server. So far I have no problem. My problem is, how to secure the connection between apache and tomcat. regards, Michael - 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] -- Brice Ruth, Sr. IT Analyst Fiskars Brands Inc http://www.fiskarsbrands.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ajp over ssl
On 03 August 2004, Michael J?rgens said: No I want to connect an apache webserver over internet to a tomcat server. So far I have no problem. My problem is, how to secure the connection between apache and tomcat. One idea: you could use mod_proxy as the Apache/Tomcat connection rather than mod_jk, and then configure Tomcat to do SSL. Then Apache and Tomcat are just talking HTTP over SSL; a bit less efficient than mod_jk, perhaps, but probably easier to configure. No idea if mod_proxy can proxy HTTP connections to HTTPS; you might have to force clients to use HTTPS to make it happen. Just a wild idea. Greg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomact 5 - Out of Memory
I'd sggest you to do two things: - put the following line in your jk2.properties request.registerRequests=false - In $CATALINA_HOME/conf/web.xml init-param param-namedevelopment/param-name param-valuefalse/param-value /init-param init-param param-namereloading/param-name param-valuefalse/param-value /init-param You get a lot of free memory when setting to not check for changes in your webapp. In a production environment I think you can live without this. Hope this help. Emerson [EMAIL PROTECTED] wrote: Sorry, where and how should I set the JDK heap size - Original Message - From: Pradeep Chauhan [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, August 04, 2004 1:28 PM Subject: RE: Tomact 5 - Out of Memory Increase the JDK heap size either by JAVA_OPTS option or by registery IF Tomcat install as NT service then Use registry method else use JAVA_OPTS Pradeep -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 04.08.2004 09:08 To: Tomcat Users List Subject: Tomact 5 - Out of Memory Our enviroment is as following: Redhat 9 Tomact 5.0.19 JAVA 1.4.2_04 MYSQL 4.0.18 However, our website stop response after running for 1 day, I checked the log and there is following description StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception java.lang.OutOfMemoryError So I need to restart the server everyday. I would like to ask if there is any solution or setting to slove that. - 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] -- Emerson Cargnin Analista de Sistemas - Gerente Regional Auxiliar - Tubaro Setor de Desenvolvimento de Sistemas - TRE-SC tel : (048) - 251-3700 - Ramal 3181 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat error
Yoav: For Run time, can JDK 1.5 work with tomcat 5.0.25 or 5.0.19? thanks, -sunitha Shapira, Yoav wrote: Hi, Make sure you compile the class with JDK 1.4 or earlier, not JDK 1.5. Yoav Shapira Millennium Research Informatics -Original Message- From: Schalk Neethling [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 04, 2004 8:16 AM To: Tomcat Users List Subject: RE: Tomcat error Hey there all I get the following line when running my servlet on Tomcat version 5.0.25: java.lang.UnsupportedClassVersionError: org/volume4/searchEngine/lawSearch (Unsupported major.minor version 49.0) What exactly does this mean and how do I go about fixing this? Thanks! -- Kind Regards Schalk Neethling Web Developer.Designer.Programmer.President Volume4.Development.Multimedia.Branding emotionalize.conceptualize.visualize.realize Tel: +27125468436 Fax: +27125468436 email:[EMAIL PROTECTED] web: www.volume4.co.za This message contains information that is considered to be sensitive or confidential and may not be forwarded or disclosed to any other party without the permission of the sender. If you received this message in error, please notify me immediately so that I can correct and delete the original email. Thank you. - 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 error
Thanks for your reply, I understand. This is definitely the cause. Shapira, Yoav wrote: Hi, You can have as many versions of the JDK installed on your system as you want. Tomcat will use the one pointed out by the JAVA_HOME variable. Whatever JDK Tomcat uses should be the same or a later version than the JDK you use to compile your class. Class version 49.0 is JDK 1.5 I believe, so if you compile your classes with JDK 1.5 you have to set Tomcat to use JDK 1.5 as well (which is officially not supported yet but actually works fine). Yoav Shapira Millennium Research Informatics -Original Message- From: Schalk Neethling [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 04, 2004 9:40 AM To: Shapira, Yoav Subject: Re: Tomcat error Yoav Thanks, I assume I can have more then one version of the jdk installed on my system correct? Is this error caused by Tomcat or that there is an older version of the jdk on the server? Shapira, Yoav wrote: Hi, Make sure you compile the class with JDK 1.4 or earlier, not JDK 1.5. Yoav Shapira Millennium Research Informatics -Original Message- From: Schalk Neethling [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 04, 2004 8:16 AM To: Tomcat Users List Subject: RE: Tomcat error Hey there all I get the following line when running my servlet on Tomcat version 5.0.25: java.lang.UnsupportedClassVersionError: org/volume4/searchEngine/lawSearch (Unsupported major.minor version 49.0) What exactly does this mean and how do I go about fixing this? Thanks! -- Kind Regards Schalk Neethling Web Developer.Designer.Programmer.President Volume4.Development.Multimedia.Branding emotionalize.conceptualize.visualize.realize Tel: +27125468436 Fax: +27125468436 email:[EMAIL PROTECTED] web: www.volume4.co.za This message contains information that is considered to be sensitive or confidential and may not be forwarded or disclosed to any other party without the permission of the sender. If you received this message in error, please notify me immediately so that I can correct and delete the original email. Thank you. - 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. -- Kind Regards Schalk Neethling Web Developer.Designer.Programmer.President Volume4.Development.Multimedia.Branding emotionalize.conceptualize.visualize.realize Tel: +27125468436 Fax: +27125468436 email:[EMAIL PROTECTED] web: www.volume4.co.za This message contains information that is considered to be sensitive or confidential and may not be forwarded or disclosed to any other party without the permission of the sender. If you received this message in error, please notify me immediately so that I can correct and delete the original email. Thank you. 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] -- Kind Regards Schalk Neethling Web Developer.Designer.Programmer.President Volume4.Development.Multimedia.Branding emotionalize.conceptualize.visualize.realize Tel: +27125468436 Fax: +27125468436 email:[EMAIL PROTECTED] web: www.volume4.co.za This message contains information that is considered to be sensitive or confidential and may not be forwarded or disclosed to any other party without the permission of the sender. If you received this message in error, please notify me immediately so that I can correct and delete the original email. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Undelpoying Web App - help please
I think it gets deleted completely. -Original Message- From: Bussie, Andre D [mailto:[EMAIL PROTECTED] Sent: 04 August 2004 15:30 To: [EMAIL PROTECTED] Subject: Undelpoying Web App - help please Once you undeploy a web app from Tomcat 5.0.19 admin screen where does the folder goes. I accidentally hit the undelpoy button Is there any way to retrieve the folder? 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: Host Aliases, Wildcards
Hi, You can use Apache's mod_rewrite. You can use Tomcat's balancer webapp. You can use other tools to do tricks in this area. There's no Tomcat support for wildcard virtual hosts, and with the current code base it's not trivial to write, as you've noted. However, as always patches and enhancements are welcome ;) Yoav Shapira Millennium Research Informatics -Original Message- From: Cott Lang [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 04, 2004 11:51 AM To: Tomcat Users List Subject: Re: Host Aliases, Wildcards On Mon, 2004-08-02 at 09:43, J.Lindberg wrote: Tomcat docs on host aliases say nothing about wildcards, so I'm assuming it's not implemented. Would be nice to see a change in this policy. :) It is most definitely not implemented. I even browsed down through the source to review how it did the mappings. It didn't seem like a trivial rewrite (at least, not being familiar with the rest of the code and the potential ramifications). I could really use the functionality, but the only servlet engine I've found that has excellent virtual host support is Caucho's Resin. You can do a trick with Apache rewrite rules to match wildcard domains and forward them to a particular /context-path/. This works fine, provided you don't want to use ROOT web apps to avoid having a pointless context path in the URL, which I did. :) - 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: Datasource Definition
Hi, Read the section on Automatic Application Deployment in the Tomcat docs, and you will see that these are simply multiple options to do the same thing. Which one is best depends on your needs and preferences, but they're not that different from each other. Yoav Shapira Millennium Research Informatics -Original Message- From: Valter G. Nogueira Jr. [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 04, 2004 11:25 AM To: _Tomcat Users List Subject: Datasource Definition I am trying to figure out how datasources defitions works. In Tomcat docs it suggest to change server.xml and web.xml, adding a global resource and referencing it on webapp. Tomcat's admin changes a appname.xml on conf\Catalina\localhost file (what indeded work to me). Netbeans kb suggest to change context.xml at META-INF dir. My question are: Which should I use and why? What is the purpose of conf\Catalina\localhost dir? Thanks Valter 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: Tomact 5 - Out of Memory
Java doesnt leak in the same vein as other languages but you can still get memory leaks by retaining references to objects after they are not required any more. -Original Message- From: Jon Doe [mailto:[EMAIL PROTECTED] Sent: 04 August 2004 17:18 To: [EMAIL PROTECTED] Subject: Re: Tomact 5 - Out of Memory From: David Smith [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: Tomact 5 - Out of Memory Date: Wed, 04 Aug 2004 07:38:57 -0400 I would set JAVA_OPTS in the startup script you're using to start Tomcat. There are loads of emails on the list regarding this. This issue is common enough you should be able to google the archives for details and get loads of responses. Fair point -- if you haven't enough memory overhead, then until the garbage collector kicks in to free objects up you will have a problem. Also as others have suggested, check your code for memory leaks -- especially if it's not under load when it dies. But hey, I thought one of the big selling points is that Java DOES NOT LEAK! Am I mistaken? Isn't it's absence of pointers its big plus? If it does leak then changing the heap size is going to be irrelevant. No matter how large you set it it will bite you in the bum eventually! --David _ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail - 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: Tomact 5 - Out of Memory
Hi, But hey, I thought one of the big selling points is that Java DOES NOT LEAK! Am I mistaken? Isn't it's absence of pointers its big plus? If it does leak then changing the heap size is going to be irrelevant. No matter how large you set it it will bite you in the bum eventually! ;( You're mistaken unfortunately, and what's worse is that you're not alone by far. Java by itself doesn't leak, but it's not hard to write code that unintentionally keeps references to objects. Here are some references, but the topic is easy to find on Google or various Java forums: http://www-106.ibm.com/developerworks/java/library/j-leaks/ http://www.adtmag.com/java/articleold.asp?id=165 http://sys-con.com/story/?storyid=44716DE=1 http://www.theserverside.com/articles/content/J2EEPerformance/Eliminatin g_memory_leaks.html http://www.hp.com/products1/unix/java/infolibrary/prog_guide/diag_memory _leaks.html It goes on and on... I've given examples on this list in the past of some common servlet-related leaks too. 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: Tomact 5 - Out of Memory
From: Jon Doe [mailto:[EMAIL PROTECTED] Subject: Re: Tomact 5 - Out of Memory But hey, I thought one of the big selling points is that Java DOES NOT LEAK! It's not a memory leak in the C-sense. In a Java environment, the term refers to hanging onto references to objects when they have outlived their usefulness. Not clearing references makes the objects pointed to appeat to be live to the garbage collector, so the space won't be reclaimed. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How do I manage the thread pool in 5.0.27?
Hi, I don't know, I don't use it. Yoav Shapira Millennium Research Informatics -Original Message- From: Joseph Shraibman [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 04, 2004 12:37 PM To: Tomcat Users List Subject: Re: How do I manage the thread pool in 5.0.27? But the jk connector doesn't have those paramaters, does it? Shapira, Yoav wrote: Hi, You would lower maxSpareThreads on your Connector configuration in server.xml. See the various *Threads parameters for the Connector for more tuning options. Yoav Shapira Millennium Research Informatics -Original Message- From: Joseph Shraibman [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 04, 2004 12:15 AM To: Tomcat Users List Subject: How do I manage the thread pool in 5.0.27? After handling a lot of requests in 5.0.27 I'm left with a lot of threads with names like TP-Processor245. How do I make these go away? - 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]
RE: Tomcat error
Not officially but it should work. Why not use 5.0.27 too as this is the latest stable release. Ta Matt -Original Message- From: Sunitha Kumar [mailto:[EMAIL PROTECTED] Sent: 04 August 2004 18:23 To: Tomcat Users List Cc: [EMAIL PROTECTED] Subject: Re: Tomcat error Yoav: For Run time, can JDK 1.5 work with tomcat 5.0.25 or 5.0.19? thanks, -sunitha Shapira, Yoav wrote: Hi, Make sure you compile the class with JDK 1.4 or earlier, not JDK 1.5. Yoav Shapira Millennium Research Informatics -Original Message- From: Schalk Neethling [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 04, 2004 8:16 AM To: Tomcat Users List Subject: RE: Tomcat error Hey there all I get the following line when running my servlet on Tomcat version 5.0.25: java.lang.UnsupportedClassVersionError: org/volume4/searchEngine/lawSearch (Unsupported major.minor version 49.0) What exactly does this mean and how do I go about fixing this? Thanks! -- Kind Regards Schalk Neethling Web Developer.Designer.Programmer.President Volume4.Development.Multimedia.Branding emotionalize.conceptualize.visualize.realize Tel: +27125468436 Fax: +27125468436 email:[EMAIL PROTECTED] web: www.volume4.co.za This message contains information that is considered to be sensitive or confidential and may not be forwarded or disclosed to any other party without the permission of the sender. If you received this message in error, please notify me immediately so that I can correct and delete the original email. Thank you. - 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] 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: Tomact 5 - Out of Memory
The JVM and Tomcat don't (that I know about), but there are ways for a servlet to continue to eat up memory with out freeing it. Here's just one: Servlet A instantiates some collection like a Hashtable in it's constructor. Servlet A then procedes to add stuff to that Hashtable without removing anything at the end of the request. Next request comes in and because the servlet is pooled between requests, the Hashtable is the same one from the first request and still has all the old stuff from before in it. Servlet A adds even more stuff while servicing this request, but still hasn't removed any of the old stuff by the end of processing. Keep recycling this servlet until the JVM is full and there is no room for anything else. Better yet, multiply this servlet by however threads tomcat had to create to keep up with the request load. Lesson to learn: free any objects explicitly you don't intend to keep around from request to request. --David Jon Doe wrote: From: David Smith [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: Tomact 5 - Out of Memory Date: Wed, 04 Aug 2004 07:38:57 -0400 I would set JAVA_OPTS in the startup script you're using to start Tomcat. There are loads of emails on the list regarding this. This issue is common enough you should be able to google the archives for details and get loads of responses. Fair point -- if you haven't enough memory overhead, then until the garbage collector kicks in to free objects up you will have a problem. Also as others have suggested, check your code for memory leaks -- especially if it's not under load when it dies. But hey, I thought one of the big selling points is that Java DOES NOT LEAK! Am I mistaken? Isn't it's absence of pointers its big plus? If it does leak then changing the heap size is going to be irrelevant. No matter how large you set it it will bite you in the bum eventually! --David _ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail - 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 error
Hi, Give it a shot ;) It should work fine. It won't be officially supported until JDK 1.5 final is out of course. Yoav Shapira Millennium Research Informatics -Original Message- From: Sunitha Kumar [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 04, 2004 1:23 PM To: Tomcat Users List Cc: [EMAIL PROTECTED] Subject: Re: Tomcat error Yoav: For Run time, can JDK 1.5 work with tomcat 5.0.25 or 5.0.19? thanks, -sunitha Shapira, Yoav wrote: Hi, Make sure you compile the class with JDK 1.4 or earlier, not JDK 1.5. Yoav Shapira Millennium Research Informatics -Original Message- From: Schalk Neethling [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 04, 2004 8:16 AM To: Tomcat Users List Subject: RE: Tomcat error Hey there all I get the following line when running my servlet on Tomcat version 5.0.25: java.lang.UnsupportedClassVersionError: org/volume4/searchEngine/lawSearch (Unsupported major.minor version 49.0) What exactly does this mean and how do I go about fixing this? Thanks! -- Kind Regards Schalk Neethling Web Developer.Designer.Programmer.President Volume4.Development.Multimedia.Branding emotionalize.conceptualize.visualize.realize Tel: +27125468436 Fax: +27125468436 email:[EMAIL PROTECTED] web: www.volume4.co.za This message contains information that is considered to be sensitive or confidential and may not be forwarded or disclosed to any other party without the permission of the sender. If you received this message in error, please notify me immediately so that I can correct and delete the original email. Thank you. - 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]
RE: Intermittent exception during startup (5.0.25)
Salut, Long time lurker, rare contributor. I've experienced the same problem for a while but no, I cannot reproduce the error consistently. In my experience, webapps startup okay but any/all SSL access is blown with an error similar to: java.lang.NullPointerException at org.apache.catalina.realm.RealmBase.findSecurityConstraints(RealmBase.java:428) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:455) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) at java.lang.Thread.run(Thread.java:534) In my case, the error has happened with every Tomcat release from 5.0.19 (probably before as well but definitely in the 5.0 series) through 5.0.27 on both a Windows XP and an OS/400 (5.2) platform using their most current flavours of jdk 1.4.2. HTH with a potential bug Brent Sims Systems Analyst 2 KC Human Services - Road rage, air rage. Why should I be forced to divide my rage into separate categories? To me, it's just one big, all-round, everyday rage. I don't have time for fine distinctions. I'm too busy screaming at people. - George Carlin [EMAIL PROTECTED] 8/4/2004 7:05:58 AM Hola, Can you reproduce the error reliably? What are the consequences of this error? Are any webapps not started or not functioning because of it? We could probably make that method in MapperListener synchronized, but the error doesn't seem to be our fault. It looks like an MX4J issue possibly. Yoav Shapira Millennium Research Informatics -Original Message- From: Robert Hunt [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 04, 2004 8:36 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: Intermittent exception during startup (5.0.25) Other than to restart the server and cross my fingers, no I haven't found a solution. Perhaps it should be submitted as a bug. -- RH - Original Message - Sent: Wednesday, August 04, 2004 2:40 AM Subject: Intermittent exception during startup (5.0.25) Hello Robert I got the same error as you with tomcat 5.0.27. Sometimes the error occures, and sometimes it doesn't!!! Did you found a solution? Here is my catalina.out: Aug 4, 2004 8:18:49 AM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on http-a6ak-www-ccis-r.bedag.ch%2F162.23.4.136-8081 Aug 4, 2004 8:18:49 AM org.apache.coyote.tomcat5.MapperListener init WARNING: Error registering contexts java.util.ConcurrentModificationException at java.util.HashMap$HashIterator.nextEntry(HashMap.java:930) at java.util.HashMap$EntryIterator.next(HashMap.java:972) at java.util.HashMap.putAllForCreate(HashMap.java:505) at java.util.HashMap.clone(HashMap.java:799) at mx4j.server.DefaultMBeanRepository.clone(DefaultMBeanRepository.java:56 ) at mx4j.server.MBeanServerImpl.findMBeansByPattern(MBeanServerImpl.java:16 03) at mx4j.server.MBeanServerImpl.queryObjectNames(MBeanServerImpl.java:1568) at mx4j.server.MBeanServerImpl.queryMBeans(MBeanServerImpl.java:1512) at org.apache.coyote.tomcat5.MapperListener.init(MapperListener.java:115) at org.apache.coyote.tomcat5.CoyoteConnector.start(CoyoteConnector.java:15 37) at org.apache.catalina.core.StandardService.start(StandardService.java:489 ) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313) at org.apache.catalina.startup.Catalina.start(Catalina.java:556) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja va:8 5
RE: response.sendredirect failig from an included .jsp
Howdy, Use an HttpServletRequestWrapper and override getQueryString and/or related getParameter methods. Yoav Shapira Millennium Research Informatics -Original Message- From: Jon Beyer [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 04, 2004 9:43 AM To: [EMAIL PROTECTED]; Tomcat Users List Subject: Re: response.sendredirect failig from an included .jsp Tim, Thanks for the info. The redirect that I'm trying to achieve is actually internal to my site. So I started looking at requestdispatcher.forward( ), but it appears to me that you have to simply pass the same 'request' and 'response' variables into it. I need to be able to clear the variables in the query string. Any ideas? Thanks, Jon On Tue, 03 Aug 2004 19:50:11 -0400, Tim Funk [EMAIL PROTECTED] wrote: Yes it should be failing. You cannot set headers or issue redirects from an include. (Its a rule in the spec) -Tim Jon Beyer wrote: The code 'response.sendRedirect( http://www.yahoo.com; )' fails when the containing jsp is included from another jsp. Should this be failing? What am I doing wrong? By 'failing', I mean that there is no exception thrown, and no error message, but simply no redirect. e.g. (the redirect works properly when foo.jsp is called directly, but fails when foo2.jsp is called): foo2.jsp %@ page language=java import=java.lang.*,java.util.* % %@ include file=foo.jsp % foo.jsp %@ page language=java import=java.lang.*,java.util.* % % response.sendRedirect( http://www.yahoo.com; ); % - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- We don't stop playing because we grow old, we grow old because we stop playing Try not. Do. Or do not. There is no try. -Yoda Jon Beyer 412 Brown Hall Princeton University Princeton, NJ 08544 609 986 7453 - 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: Intermittent exception during startup (5.0.25)
Hi, Hmm... Well, RealmBase.java:428 can no longer throw an NPE, and the resultsToArray method that replaced the previous line there seems to handle the null case correctly. However, even if this weren't the case, I'm not convinced that this error you're seeing is related to the other exception reported in this thread. The only common thing about them is that they're hard to reproduce. Your error happens during request processing, the original one reported in this thread is during server startup. Yoav Shapira Millennium Research Informatics -Original Message- From: Brent Sims [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 04, 2004 2:29 PM To: [EMAIL PROTECTED] Subject: RE: Intermittent exception during startup (5.0.25) Salut, Long time lurker, rare contributor. I've experienced the same problem for a while but no, I cannot reproduce the error consistently. In my experience, webapps startup okay but any/all SSL access is blown with an error similar to: java.lang.NullPointerException at org.apache.catalina.realm.RealmBase.findSecurityConstraints(RealmBase.j ava: 428) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticato rBas e.java:455) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveC onte xt.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 520) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.jav a:13 7) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveC onte xt.java:104) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jav a:11 7) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveC onte xt.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 520) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve .jav a:109) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveC onte xt.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 520) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:7 99) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process Conn ection(Http11Protocol.java:705) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:5 77) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPoo l.ja va:683) at java.lang.Thread.run(Thread.java:534) In my case, the error has happened with every Tomcat release from 5.0.19 (probably before as well but definitely in the 5.0 series) through 5.0.27 on both a Windows XP and an OS/400 (5.2) platform using their most current flavours of jdk 1.4.2. HTH with a potential bug Brent Sims Systems Analyst 2 KC Human Services - Road rage, air rage. Why should I be forced to divide my rage into separate categories? To me, it's just one big, all-round, everyday rage. I don't have time for fine distinctions. I'm too busy screaming at people. - George Carlin [EMAIL PROTECTED] 8/4/2004 7:05:58 AM Hola, Can you reproduce the error reliably? What are the consequences of this error? Are any webapps not started or not functioning because of it? We could probably make that method in MapperListener synchronized, but the error doesn't seem to be our fault. It looks like an MX4J issue possibly. Yoav Shapira Millennium Research Informatics -Original Message- From: Robert Hunt [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 04, 2004 8:36 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: Intermittent exception during startup (5.0.25) Other than to restart the server and cross my fingers, no I haven't found a solution. Perhaps it should be submitted as a bug. -- RH - Original Message - Sent: Wednesday, August 04, 2004 2:40 AM Subject: Intermittent exception during startup (5.0.25) Hello Robert I got the same error as you with tomcat 5.0.27. Sometimes the error occures, and sometimes it doesn't!!! Did you found a solution? Here is my catalina.out: Aug 4, 2004 8:18:49 AM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on http-a6ak-www-ccis-r.bedag.ch%2F162.23.4.136-8081 Aug 4, 2004 8:18:49 AM org.apache.coyote.tomcat5.MapperListener init WARNING: Error registering contexts java.util.ConcurrentModificationException at java.util.HashMap$HashIterator.nextEntry(HashMap.java:930) at java.util.HashMap$EntryIterator.next(HashMap.java:972) at java.util.HashMap.putAllForCreate(HashMap.java:505) at java.util.HashMap.clone(HashMap.java:799) at mx4j.server.DefaultMBeanRepository.clone(DefaultMBeanRepository.java:5 6 ) at
JSTL and preloading pool
Hi all I am using JSTL with precompilation (JSPC). I am wondering why the first time I go on a page with JSTL inside, it took longer to display. But when I go on it a second time, it displays as quick as with scriptlet. So I had a look to the code generated by JSPC and I noticed that there is a pool system with reused objects : org.apache.jasper.runtime.TagHandlerPool So my question is : is there a way to preload all that things ? I tried to do : Class cl = Class.forName(dang.www.websnmp.admin.hostgen_jsp); Object obj = cl.newInstance(); Method m = cl.getMethod(_jspInit, null); m.invoke(obj, null); But no amelioration... Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JSTL and preloading pool
Hi, Please don't cross-post to tomcat-dev and tomcat-user at the same time. You will most likely piss off a few of the people who can help you ;) To answer question, I think no. Yoav Shapira Millennium Research Informatics -Original Message- From: Thai DANG [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 04, 2004 3:26 PM To: [EMAIL PROTECTED] Subject: JSTL and preloading pool Hi all I am using JSTL with precompilation (JSPC). I am wondering why the first time I go on a page with JSTL inside, it took longer to display. But when I go on it a second time, it displays as quick as with scriptlet. So I had a look to the code generated by JSPC and I noticed that there is a pool system with reused objects : org.apache.jasper.runtime.TagHandlerPool So my question is : is there a way to preload all that things ? I tried to do : Class cl = Class.forName(dang.www.websnmp.admin.hostgen_jsp); Object obj = cl.newInstance(); Method m = cl.getMethod(_jspInit, null); m.invoke(obj, null); But no amelioration... 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]
Re: Tomcat 5 and IIS
On Wed, Aug 04, 2004 at 12:13:43PM -0400, Robert Charbonneau wrote: : I've requested that my administrator determine a way to integrate Tomcat 5 : with IIS, and he's having trouble finding documentation on the subject. As I : subscribe to this list, and don't have the time to search, can anyone tell me : if Tomcat 5 can still be integrated with IIS? How long have you been subscribed to the list? Some mention of Tomcat/webserver integration is discussed almost daily. ;) Google jk and IIS. Throw in isapi for good measure. -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: JSTL and preloading pool
ok thanks and sorry ! On Wed, 4 Aug 2004 15:28:26 -0400 Shapira, Yoav [EMAIL PROTECTED] wrote: Hi, Please don't cross-post to tomcat-dev and tomcat-user at the same time. You will most likely piss off a few of the people who can help you ;) To answer question, I think no. Yoav Shapira Millennium Research Informatics -Original Message- From: Thai DANG [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 04, 2004 3:26 PM To: [EMAIL PROTECTED] Subject: JSTL and preloading pool Hi all I am using JSTL with precompilation (JSPC). I am wondering why the first time I go on a page with JSTL inside, it took longer to display. But when I go on it a second time, it displays as quick as with scriptlet. So I had a look to the code generated by JSPC and I noticed that there is a pool system with reused objects : org.apache.jasper.runtime.TagHandlerPool So my question is : is there a way to preload all that things ? I tried to do : Class cl = Class.forName(dang.www.websnmp.admin.hostgen_jsp); Object obj = cl.newInstance(); Method m = cl.getMethod(_jspInit, null); m.invoke(obj, null); But no amelioration... 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat Webserver
Howdy TomcatERs, I would like to know if Tomcat has an webserver inside it or do I have to work with Apache (for example) together. If yes, where is the DocumentRoot directory? Regards, Marcelo Muzilli GELT Tecnologia www.gelt.com.br [EMAIL PROTECTED] Tel: +55 (43) 3375 3187 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat Webserver
Hi, Tomcat is a webserver and can function as such by itself. You don't have to have Apache or IIS or anything in front of it. The DocumentRoot directory is $CATALINA_HOME/webapps/ROOT/, but you should read the Tomcat configuration reference as it's vastly different from Apache. There are multiple document roots, one per web application. Yoav Shapira Millennium Research Informatics -Original Message- From: Marcelo Muzilli (Gelt) [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 04, 2004 3:42 PM To: [EMAIL PROTECTED] Subject: Tomcat Webserver Importance: High Howdy TomcatERs, I would like to know if Tomcat has an webserver inside it or do I have to work with Apache (for example) together. If yes, where is the DocumentRoot directory? Regards, Marcelo Muzilli GELT Tecnologia www.gelt.com.br [EMAIL PROTECTED] Tel: +55 (43) 3375 3187 - 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 Webserver
Tomcat is capable of server static and dynamic content with out Apache. One of the main benefits to using Apache is to let Apache server the static content and thereby reduce the load on Tomcat. By default, the document roots for your various webapps are in $CATALINA_HOME/webapps/$WEBAPP_NAME . At least that's true of Tomcat 4.1.x. I haven't begun using 5.0.x yet. All of this is covered in the docs: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/index.html -Original Message- From: Marcelo Muzilli (Gelt) [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 04, 2004 3:42 PM To: [EMAIL PROTECTED] Subject: Tomcat Webserver Importance: High Howdy TomcatERs, I would like to know if Tomcat has an webserver inside it or do I have to work with Apache (for example) together. If yes, where is the DocumentRoot directory? Regards, Marcelo Muzilli GELT Tecnologia www.gelt.com.br [EMAIL PROTECTED] Tel: +55 (43) 3375 3187 - 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 Webserver
Yes tomcat can also serve static pages. You just need to create a web app and place your files in there. Ta Matt -Original Message- From: Marcelo Muzilli (Gelt) [mailto:[EMAIL PROTECTED] Sent: 04 August 2004 20:42 To: [EMAIL PROTECTED] Subject: Tomcat Webserver Importance: High Howdy TomcatERs, I would like to know if Tomcat has an webserver inside it or do I have to work with Apache (for example) together. If yes, where is the DocumentRoot directory? Regards, Marcelo Muzilli GELT Tecnologia www.gelt.com.br [EMAIL PROTECTED] Tel: +55 (43) 3375 3187 - 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: Tomcat Webserver
Yes it has a webserver in it.. Root = directory_to_tomcat/webapps/root -Original Message- From: Marcelo Muzilli (Gelt) [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 04, 2004 2:42 PM To: [EMAIL PROTECTED] Subject: Tomcat Webserver Importance: High Howdy TomcatERs, I would like to know if Tomcat has an webserver inside it or do I have to work with Apache (for example) together. If yes, where is the DocumentRoot directory? Regards, Marcelo Muzilli GELT Tecnologia www.gelt.com.br [EMAIL PROTECTED] Tel: +55 (43) 3375 3187 - 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: Datasource Definition
Yoav Shapira, thanks. After reading Tomcat docs and some books I realized the context issue. Valter - Original Message - From: Shapira, Yoav [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, August 04, 2004 2:57 PM Subject: RE: Datasource Definition Hi, Read the section on Automatic Application Deployment in the Tomcat docs, and you will see that these are simply multiple options to do the same thing. Which one is best depends on your needs and preferences, but they're not that different from each other. Yoav Shapira Millennium Research Informatics -Original Message- From: Valter G. Nogueira Jr. [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 04, 2004 11:25 AM To: _Tomcat Users List Subject: Datasource Definition I am trying to figure out how datasources defitions works. In Tomcat docs it suggest to change server.xml and web.xml, adding a global resource and referencing it on webapp. Tomcat's admin changes a appname.xml on conf\Catalina\localhost file (what indeded work to me). Netbeans kb suggest to change context.xml at META-INF dir. My question are: Which should I use and why? What is the purpose of conf\Catalina\localhost dir? Thanks Valter 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]
IllegalStateException thrown in core code...
I have a commercial servlet that throws an exception. I have an error-page directive setup to send that page to my ErrorLogServlet. However, my error servlet never gets called as Tomcat throws the IllegalStateException below. Any ideas on what the cause might be? I'm running Tomcat-5.0.24 with the hotfix that was released shortly thereafter. Note that I removed (org.apache.) from the traceback to make it more readable in e-mail. [EMAIL PROTECTED]: Exception Processing ErrorPage[exceptionType=javax.servlet.ServletException, location=/exception.err] java.lang.IllegalStateException at coyote.Response.reset(Response.java:296) at coyote.tomcat5.CoyoteResponse.reset(CoyoteResponse.java:631) at coyote.tomcat5.CoyoteResponse.reset(CoyoteResponse.java:887) at catalina.core.StandardHostValve.custom(StandardHostValve.java:389) at catalina.core.StandardHostValve.throwable(StandardHostValve.java:225) at catalina.core.StandardHostValve.invoke(StandardHostValve.java:145) at catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at catalina.core.ContainerBase.invoke(ContainerBase.java:929) at coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) at jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:296) at jk.common.HandlerRequest.invoke(HandlerRequest.java:372) at jk.common.ChannelSocket.invoke(ChannelSocket.java:694) at jk.common.ChannelSocket.processConnection(ChannelSocket.java:626) at jk.common.SocketConnection.runIt(ChannelSocket.java:807) at tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:644) at java.lang.Thread.run(Thread.java:534) Thanks for the pointers. --Kaleb - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
hot fixes for 4.1.27
I am using tomcat 4.1.27 and wondering if I need to apply any hot fixes to take of any known issues. thanks, vyke - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ajp over ssl
Ruth, Brice wrote: That's the best idea I can think of, too. With SSH tunnels using public key authentication, you can set it up so that the tunnel is setup from a system script, without user intervention. But what if the tunnel breaks? How can I determine that automaticly? regards, Michael David Smith wrote: I'm not sure this can be done. Admittedly I didn't look all that hard -- maybe someone who did development work on the connectors can anwer. I can suggest what I did which is setup a tunnel (SSH tunnel in my case) between the two machines. Then they (the servers) can talk all they want and it covers all services routed through the tunnel -- not just apache and tomcat. Ipsec would work just as well I suspect. Probably not what you wanted, but it's a suggestion still --David Michael Jürgens wrote: Ruth, Brice wrote: Michael Jürgens wrote: Oh sorry I was a little bit tired in the morning. I want to connect the Apache securesd over an unsecure medium (Internet) An my question ist how to connect AJP 1.3 over SSL (not ssh) with jk or jk2. regards, Michael Michael, I believe you'll want to configure your Apache VirtualHost to serve your SSL requests, then use the mod_jk (or jk2) module to communicate with Tomcat. Is there any reason that your web-application (on Tomcat) needs to be aware of the SSL security? You can find documentation on securing Apache via SSL on the main Apache site (httpd.apache.org). And communicating betw. Apache and Tomcat via JK has abundant documentation as well. Good luck! No I want to connect an apache webserver over internet to a tomcat server. So far I have no problem. My problem is, how to secure the connection between apache and tomcat. regards, Michael - 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: hot fixes for 4.1.27
Hi, Well, you could just upgrade to 4.1.30 or 5.0.27 ;) But if you have to stick with 4.1.27, you can get the hotfix for Bugzilla 22096 (query Bugzilla for bug details if you want) at http://archive.apache.org/dist/jakarta/tomcat-4/binaries/. Yoav Shapira Millennium Research Informatics -Original Message- From: Vykuntam (vyke) Adepu [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 04, 2004 4:34 PM To: Tomcat Users List Subject: hot fixes for 4.1.27 I am using tomcat 4.1.27 and wondering if I need to apply any hot fixes to take of any known issues. thanks, vyke - 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]
realms and user initialization
Hi, Is there a simple way to initialize a bean and store it in the session context when a user is logged in via realms? I'd like to have a bean which is filled with data from a database at login and then sticks in the session so it is available everywhere. Is there a login hook or anything I can use, or do I need to manually check on each page to see if the object has been created yet? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: realms and user initialization
You could create a SessionListener and create your bean and bind it to the session in the sessionCreated method. -Original Message- From: Chad Cunningham [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 04, 2004 4:42 PM To: [EMAIL PROTECTED] Subject: realms and user initialization Hi, Is there a simple way to initialize a bean and store it in the session context when a user is logged in via realms? I'd like to have a bean which is filled with data from a database at login and then sticks in the session so it is available everywhere. Is there a login hook or anything I can use, or do I need to manually check on each page to see if the object has been created yet? 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]
RE: hot fixes for 4.1.27
I down loaded the class file. Do I simply copy this class ( standardContext.class) to \server\classes Or do I need to do anything else to apply this fix? thanks, vyke -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 04, 2004 4:36 PM To: Tomcat Users List Subject: RE: hot fixes for 4.1.27 Hi, Well, you could just upgrade to 4.1.30 or 5.0.27 ;) But if you have to stick with 4.1.27, you can get the hotfix for Bugzilla 22096 (query Bugzilla for bug details if you want) at http://archive.apache.org/dist/jakarta/tomcat-4/binaries/. Yoav Shapira Millennium Research Informatics -Original Message- From: Vykuntam (vyke) Adepu [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 04, 2004 4:34 PM To: Tomcat Users List Subject: hot fixes for 4.1.27 I am using tomcat 4.1.27 and wondering if I need to apply any hot fixes to take of any known issues. thanks, vyke - 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: hot fixes for 4.1.27
place the class in: server\classes\org\apache\catalina\core\ and then restart Tomcat. That's it. -Original Message- From: Vykuntam (vyke) Adepu [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 04, 2004 3:58 PM To: Tomcat Users List Subject: RE: hot fixes for 4.1.27 I down loaded the class file. Do I simply copy this class ( standardContext.class) to \server\classes Or do I need to do anything else to apply this fix? thanks, vyke - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Recursion in JSP
Does anyone know if I am able to use recursion to traverse a tree but then to use a tag inside the recursive method? If that was unclear, I want to know if I can do this: %! void dfs(Node root){ % tag:tree %! Vector children = root.getChildren(); for(int i=0; ichildren.size(); i++){ dfs((Node)(children.elementAt(i))); } % /tag:tree %! } % Thanks, Andrew Janian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat as Win2k service
Hi, I am using Tomcat5 on win2k Professional. I want to use it as a windows service. Please help. Thanks. Yogesh __ Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! http://promotions.yahoo.com/new_mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat as Win2k service
I use the same way, just chosse this option when installing through the .exe installer. Java Techie wrote: Hi, I am using Tomcat5 on win2k Professional. I want to use it as a windows service. Please help. Thanks. Yogesh __ Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! http://promotions.yahoo.com/new_mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Emerson Cargnin Analista de Sistemas - Gerente Regional Auxiliar - Tubarão Setor de Desenvolvimento de Sistemas - TRE-SC tel : (048) - 251-3700 - Ramal 3181 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [tomcat] Tomcat as Win2k service
Go to the bin directory in the tomcat home directory. There is a bat file named service that will install Tomcat as a service in your machine. José Ernesto Echeverría -Original Message- From: Java Techie [mailto:[EMAIL PROTECTED] Sent: Miércoles, 04 de Agosto de 2004 03:55 p.m. To: Tomcat Users List Subject: [tomcat] Tomcat as Win2k service Hi, I am using Tomcat5 on win2k Professional. I want to use it as a windows service. Please help. Thanks. Yogesh __ Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! http://promotions.yahoo.com/new_mail - 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 as Win2k service
Uhm, did you read the docs at all? http://jakarta.apache.org/tomcat/tomcat-5.0-doc/setup.html Installation as a service: Tomcat will be installed as a Windows NT/2k/XP service no matter what setting is selected. Using the checkbox on the component page sets the service as auto startup, so that Tomcat is automatically startup when Windows starts. For optimal security, the service should be affected a separate user, with reduced permissions (see the Windows Services administration tool and its documentation). -Original Message- From: Java Techie [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 04, 2004 5:55 PM To: Tomcat Users List Subject: Tomcat as Win2k service Hi, I am using Tomcat5 on win2k Professional. I want to use it as a windows service. Please help. Thanks. Yogesh __ Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! http://promotions.yahoo.com/new_mail - 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 as Win2k service
Thanks for replies. Now I can see it as a service, but when i try to start it it says Windows cant start the service... If its a non microsoft service... and refer the service specific error code 0 Thanks. --- Java Techie [EMAIL PROTECTED] wrote: Hi, I am using Tomcat5 on win2k Professional. I want to use it as a windows service. Please help. Thanks. Yogesh __ Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! http://promotions.yahoo.com/new_mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: isapi_redirector2.dll - IIS redirecting to multiple Tomcat instances
I'd be interested to hear if anyone has successfully configured a single instance of IIS directing requests to multiple Tomcat instances at all -Original Message- From: Matt Krevs [mailto:[EMAIL PROTECTED] Sent: Tuesday, 3 August 2004 3:33 PM To: '[EMAIL PROTECTED]' Subject: isapi_redirector2.dll - IIS redirecting to multiple Tomcat instances Hi all, I'm using isapi_redirector2.dll to redirect webapp requests on my IIS server to tomcat. Is it possible to make this single redirector redirect requests to different instances of tomcat (depending on uri)? For example, a request to IIS for /app1/ should go to localhost:8080 and a request for /app2/ should go to localhost:8081. I'm using Windows, so if this is possible, what would my registry entries look like (ie: serverRoot key), and what would my workers2.properties look like? Thanks Matt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Absolute path to webapp???
How do you specify an absolute path to a webapplication. I don't want to run my webapp from within $CATALINA_HOME/webapps. When I set it up to point to an absolute path outside of the webapps directory, it still looks for it there: Server port=8005 shutdown=SHUTDOWN Service name=DVRSERVICE Connector port=8080 / Engine name=DVRENGINE defaultHost=localhost Logger className=org.apache.catalina.logger.FileLogger / Host name=localhost appBase=/dvr Context path= docBase=/dvr debug=1 reloadable=false/ /Host /Engine /Service /Server THis is the error I am getting: java.lang.IllegalArgumentException: Document base /usr/tomcat/jakarta-tomcat-5.0.27/webapps/dvr does not exist or is not a readable directory - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ajp over ssl
On 8/4/2004 1:37 PM, Michael Jürgens wrote: Ruth, Brice wrote: That's the best idea I can think of, too. With SSH tunnels using public key authentication, you can set it up so that the tunnel is setup from a system script, without user intervention. But what if the tunnel breaks? How can I determine that automaticly? You can try out stunnel (http://www.stunnel.org/). It doesn't require an established connection like ssh tunnel does. -- Dennis Dai [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Absolute path to webapp???
On Wed, Aug 04, 2004 at 04:29:38PM -0700, Joe Krause wrote: : How do you specify an absolute path to a webapplication. I don't want to : run my webapp from within $CATALINA_HOME/webapps. : [snip] : java.lang.IllegalArgumentException: Document base : /usr/tomcat/jakarta-tomcat-5.0.27/webapps/dvr does not exist or is not a : readable directory Assuming the context config is properly setup to find the webapp where you want it: 1/ remove any old context.xml from conf/{engine}/{host}/ 2/ clean out the temporary work/ 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]
Expression tag not evaluated inside custom tag body
I'm using the old JDBC tags from the Advanced JSP book, under Tomcat 4.1.29/Apache 2.0.48 on Linux 9. The expression tags are not being evaluated inside my query tag, although the same stuff works under Tomcat 3.2.3. For example, the following JSP snippet will work: database:query update='false' id='test' SELECT ID,Name From User WHERE Zip=96332 /database:query But the following won't: database:query update='false' id='test' SELECT ID,Name From User WHERE Zip=%= strZip % /database:query The %= strZip % shows up in the body text that my custom tag ends up passing to the database. How can I tell Tomcat that the expressions in this text must be evaluated? My TLD for the query tag is as follows: tag namequery/name tag-classtags.jdbc.QueryTag/tag-class body-contentJSP/body-content attribute nameid/name requiredtrue/required rtexprvaluetrue/rtexprvalue /attribute attribute namescope/name requiredfalse/required rtexprvaluetrue/rtexprvalue /attribute attribute nameupdate/name requiredfalse/required rtexprvaluetrue/rtexprvalue /attribute /tag Thanks for any help you can lend! Todd - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Host Aliases, Wildcards
It's on my list of things to do when I have free time. I'm estimating that I'll get to it in 2018. :) On Wed, 2004-08-04 at 10:56, Shapira, Yoav wrote: Hi, You can use Apache's mod_rewrite. You can use Tomcat's balancer webapp. You can use other tools to do tricks in this area. There's no Tomcat support for wildcard virtual hosts, and with the current code base it's not trivial to write, as you've noted. However, as always patches and enhancements are welcome ;) Yoav Shapira Millennium Research Informatics -Original Message- From: Cott Lang [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 04, 2004 11:51 AM To: Tomcat Users List Subject: Re: Host Aliases, Wildcards On Mon, 2004-08-02 at 09:43, J.Lindberg wrote: Tomcat docs on host aliases say nothing about wildcards, so I'm assuming it's not implemented. Would be nice to see a change in this policy. :) It is most definitely not implemented. I even browsed down through the source to review how it did the mappings. It didn't seem like a trivial rewrite (at least, not being familiar with the rest of the code and the potential ramifications). I could really use the functionality, but the only servlet engine I've found that has excellent virtual host support is Caucho's Resin. You can do a trick with Apache rewrite rules to match wildcard domains and forward them to a particular /context-path/. This works fine, provided you don't want to use ROOT web apps to avoid having a pointless context path in the URL, which I did. :) - 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]
Tomcat Standard output problem
Tomcat User Group, We are observing frequent crash of Tomcat 4.0.3(Win 2K) while running our web-application. Our web-application uses a JNI(Java native interface) library, we suspect this is causing a access violation exception somewhere. In order to chase it we have put a printf statement in all JNI layer functions. Now the problem is if I run Tomcat from console, I see all the printf and java System.out.println. If I run tomcat as Windows NT service, I don't see printf statement in log files. Although I can see Servlet's System.out.println output in stdout file. Does tomcat container blocks the printf of JNI layer. Many thanks, Rohit. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5 and IIS
The following link outlines a step by step guide that even a guy who knows nothing about IIS (me) was able to follow. http://www.dynamichostings.com/TomCat5IIS5.do -Original Message- From: QM [mailto:[EMAIL PROTECTED] Sent: Thursday, 5 August 2004 5:35 AM To: Tomcat Users List Subject: Re: Tomcat 5 and IIS On Wed, Aug 04, 2004 at 12:13:43PM -0400, Robert Charbonneau wrote: : I've requested that my administrator determine a way to integrate Tomcat 5 : with IIS, and he's having trouble finding documentation on the subject. As I : subscribe to this list, and don't have the time to search, can anyone tell me : if Tomcat 5 can still be integrated with IIS? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomact 5 - Out of Memory
There is one more way which efftively help you to control memory leak . On Close event of you application Call session.invalidate(). otherwise it will get invalidate after timeout period. Regards, Pradeep -Original Message- From: Jon Doe [mailto:[EMAIL PROTECTED] Sent: 04.08.2004 21:48 To: [EMAIL PROTECTED] Subject: Re: Tomact 5 - Out of Memory From: David Smith [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: Tomact 5 - Out of Memory Date: Wed, 04 Aug 2004 07:38:57 -0400 I would set JAVA_OPTS in the startup script you're using to start Tomcat. There are loads of emails on the list regarding this. This issue is common enough you should be able to google the archives for details and get loads of responses. Fair point -- if you haven't enough memory overhead, then until the garbage collector kicks in to free objects up you will have a problem. Also as others have suggested, check your code for memory leaks -- especially if it's not under load when it dies. But hey, I thought one of the big selling points is that Java DOES NOT LEAK! Am I mistaken? Isn't it's absence of pointers its big plus? If it does leak then changing the heap size is going to be irrelevant. No matter how large you set it it will bite you in the bum eventually! --David _ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail - 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]
Fw: Migration to TOMCAT 5
- Original Message - From: Bhaskar Jyoti Phukan To: [EMAIL PROTECTED] Sent: Wednesday, August 04, 2004 7:00 PM Subject: Migration to TOMCAT 5 Hi! We have an application which was installed in TOMCAT 3. The database is IBM DB2. We want to migrate to TOMCAT 5. We have installed TOMCAT 5 but not able to establish database connectivity. Can you help? Sincerely yours, Bhaskar Jyoti Phukan