RE: Virtual Host to Redirect
Why don't you just set the DNS so that all hosts resolve to the same machine, and then set the default virtual host to have the files you want in it? George Sexton MH Software, Inc. Home of Connect Daily Web Calendar Software http://www.mhsoftware.com/connectdaily.htm Voice: 303 438 9585 -Original Message- From: Boemio, Neil (GEI, FGI) [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 18, 2003 6:26 PM To: Tomcat Users List Subject: Virtual Host to Redirect I have a sever with 2 IPs. One of the IPs (say 1.2.3.4) is going to be used as a redirector to point all our domains to one main domain. Example: Typing in another.name.com will send the browser to my.main.com another.name.com/somepage.jsp will send the browser to my.main.com yetanother.name.com will send the browser to my.main.com This will be accomplished by having all our domains point to this one redirector IP in our DNS. I'm running Apache 2.0.47 and Tomcat 4.1.27 with JK2 as the connector. So in my Apache conf I have: VirtualHost 1.2.3.4 RewriteEngine On RewriteRule /.* http://my.main.com/ [R] /VirtualHost Now this works fine if I go to http://1.2.3.4/. It redirects to my.main.com just fine. My problem is that if I enter something like http://1.2.3.4/somepage.jsp, then it does not get redirected. Instead Tomcat serves it up. I believe this is happening because I have the following in my workers2.properties file under the Apache conf directory: # Map JSPs to the Web server uri space [uri:/*.jsp] worker=ajp13:localhost:8009 So it seems the connector is sending all JSPs to Tomcat and the Rewrite in the VirtualHost is never getting to do it's job. But of course, I need JSPs to go to Tomcat. Does anyone know how to get around this problem? Or perhaps there is a better way to accomplish what I'm trying to do? Thanks a bunch! Neil - 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]
IBM JRE 1.4.1 dumping core on login with http/1.0 browsers--Followup
at java.net.SocketInputStream.socketRead0(Native Method) 4XESTACKTRACE at java.net.SocketInputStream.read(SocketInputStream.java(Compiled Code)) 4XESTACKTRACE at org.apache.ajp.Ajp13.readN(Ajp13.java(Compiled Code)) 4XESTACKTRACE at org.apache.ajp.Ajp13.receive(Ajp13.java(Compiled Code)) 4XESTACKTRACE at org.apache.ajp.Ajp13.receiveNextRequest(Ajp13.java:274) 4XESTACKTRACE at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:396) 4XESTACKTRACE at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:585) 4XESTACKTRACE at java.lang.Thread.run(Thread.java:568) George Payne Law ITC University of Virginia School of Law - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat Settings and Performance
It's nice to see someone that I agree with on performance optimization. So many people take either a dogmatic, or a scattershot approach to optimization. The most important thing is to measure. This quote sums it up: When you can measure what you are speaking about and express it in numbers you know something about it, but when you cannot measure it, when you cannot express it in numbers, your knowledge is a meager and unsatisfactory kind. It may be the beginning of knowledge but you have scarcely in your thoughts advanced to a stage of science. - from the Popular Lectures and Addresses of Lord William Thomson Kelvin in 1891 - 1894. -Original Message- From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent: Friday, November 14, 2003 9:31 AM To: Tomcat Users List Subject: Re: Tomcat Settings and Performance Steve, Maybe this is common knowledge, but you know never to do this right? String x = a + b; You have to do something like this: StringBuffer b = new StringBuffer(); b.append(a); b.append(b); Using StringBuffer vastly improves performance. Ugh! This is like saying never use goto. In this example, you are completely wrong: String x = a + b; compiles to: load x, ab which is a lot better than: getclass StringBuffer dup dup new load a invoke append load b invoke append store x The Java compiler will take constant string expressions that are concatenated and perform the concatenation for you. The code is smaller. However, if you are doing a lot of string (dynamic) processing, than using StringBuffer is to your advantage, because lots of string operations are converted (again, by the compiler) into uses of the StringBuffer class. There's also nothing wrong with doing this: String path = SOME_STOCK_PATH + argv[0]; Because if you want a String object that looks like some/stock/path/mypath, and not a StringBuffer containing those characters, then why would you write this: StringBuffer sb = new StringBuffer(); sb.append(SOME_STOCK_PATH); sb.append(argv[0]); String whatIreallyWanted = sb.toString(); This is exactly what the compiler will do with the code. You can't improve the speed, because you are just doing compiler work. What have you gained? Loss of readability, which I think is a poor tradeoff for no benefit. There is one was to make it better. Do this: StringBuffer sb = new StringBuffer(SOME_STOCK_PATH).append(argv[0]); or even StringBuffer sb = new StringBuffer(SOME_STOCK_PATH.length() + argv[0].length()).append(SOME_STOCK_PATH).append(argv[0]); At least then you'll have a somewhat appropriately sized array, and you'll avoid the re-allocation of arrays required to handle the string sizes. Over the versions of the JVM, StringBuffer and String performance have been improved; the implementors know that String objects get created all the time and are used heavily in the standard library and pretty much everywhere else. Bottom line: don't resort to performance improvements at the expense of readability of your code. I consider this to be a classic case of premature optimization. -chris - 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: RequestDispatcher.include() on 5.0.14
I Emailed Remy off list. Essentially, the problem appears intermittent and may be hardware or JVM related (but I don't think so...). Here is the text of the last message I sent to him: You are right. I wrote a test case, and it worked. I then went back and re-tested my original application. This time it worked. Today, I ran into another problem where I was getting a ClassCastException retrieving an attribute from a session. When I run it under 4.1.29, it works perfectly. FWIW, Tomcat 5.0.14 was not doing this last night. There are many other places throughout the application where this attribute is retrieved from the session, but this is the only one failing. Just for grins, I made a small code change and re-compiled. Unsurpisingly the issue went away I just tried both issues on a different machine running 5.0.14 w/ JDK 1.4.1_01 under Windows and all aspects are working correctly. The machine where I have been having issues is running SUSE 9.0 professional with JDK 1.4.2-b28. I tried upgrading the JVM on the SUSE machine to 1.4.2_02-b03 and still had the same issues. This machine has been running Win2K reliably for several years. To be safe, I ran MemTest86 on it, and it reported no issues. At this point I have conflicting data. On the one hand, the app works on one machine with 5.0.14. On another machine, it doesn't work with 5.0.14, but works well with 4.1.29. At this point I have to say I believe there is something (or many things) wrong with 5.0.14. The problem appears intermittently, and is difficult to trigger with many different symptoms. -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2003 9:10 AM To: Tomcat Users List Subject: RE: RequestDispatcher.include() on 5.0.14 At 07:32 PM 11/9/2003 -0700, you wrote: I hate bugzilla. No, this appears to be a new item. Unsurprising really, considering that it only fails in a root context. Then I assume you reported the bug? A link to the bug report would be helpful. Jake -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED] Sent: Sunday, November 09, 2003 7:23 PM To: Tomcat Users List Subject: Re: RequestDispatcher.include() on 5.0.14 You should check bugzilla to see if there are already any reports like this for Tomcat-5. If not, report it. It might get lost if you just report it here. http://issues.apache.org/bugzilla/ Jake At 03:55 PM 11/9/2003 -0700, you wrote: I have a servlet that does a pretty simple include: RequestDispatcher rd=req.getRequestDispatcher(OutputCurrentWeek.html); if (rd==null) { WebApp.log(Error getting RequestDispatcher for Include in ViewCal!,new Exception()); } else { rd.include(req,res); } This works on 5.0.14 if the application is not running in a ROOT context. If the app is in a ROOT context, it doesn't work. No exception is logged, so a non-null RequestDispatcher is returned, it just doesn't seem to work. I just verified that the application works correctly on 4.1.29 for both ROOT and non-ROOT contexts. Is this an area where the spec changed, or is 5.0.14 broken? George Sexton MH Software, Inc. Voice: 303 438 9585 http://www.mhsoftware.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: RequestDispatcher.include() on 5.0.14
Maybe I will try some more testing. The one thing I haven't replicated is that the problem machine is running 3 virtual hosts. -Original Message- From: George Sexton [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2003 10:23 AM To: 'Tomcat Users List' Subject: RE: RequestDispatcher.include() on 5.0.14 I Emailed Remy off list. Essentially, the problem appears intermittent and may be hardware or JVM related (but I don't think so...). Here is the text of the last message I sent to him: You are right. I wrote a test case, and it worked. I then went back and re-tested my original application. This time it worked. Today, I ran into another problem where I was getting a ClassCastException retrieving an attribute from a session. When I run it under 4.1.29, it works perfectly. FWIW, Tomcat 5.0.14 was not doing this last night. There are many other places throughout the application where this attribute is retrieved from the session, but this is the only one failing. Just for grins, I made a small code change and re-compiled. Unsurpisingly the issue went away I just tried both issues on a different machine running 5.0.14 w/ JDK 1.4.1_01 under Windows and all aspects are working correctly. The machine where I have been having issues is running SUSE 9.0 professional with JDK 1.4.2-b28. I tried upgrading the JVM on the SUSE machine to 1.4.2_02-b03 and still had the same issues. This machine has been running Win2K reliably for several years. To be safe, I ran MemTest86 on it, and it reported no issues. At this point I have conflicting data. On the one hand, the app works on one machine with 5.0.14. On another machine, it doesn't work with 5.0.14, but works well with 4.1.29. At this point I have to say I believe there is something (or many things) wrong with 5.0.14. The problem appears intermittently, and is difficult to trigger with many different symptoms. -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2003 9:10 AM To: Tomcat Users List Subject: RE: RequestDispatcher.include() on 5.0.14 At 07:32 PM 11/9/2003 -0700, you wrote: I hate bugzilla. No, this appears to be a new item. Unsurprising really, considering that it only fails in a root context. Then I assume you reported the bug? A link to the bug report would be helpful. Jake -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED] Sent: Sunday, November 09, 2003 7:23 PM To: Tomcat Users List Subject: Re: RequestDispatcher.include() on 5.0.14 You should check bugzilla to see if there are already any reports like this for Tomcat-5. If not, report it. It might get lost if you just report it here. http://issues.apache.org/bugzilla/ Jake At 03:55 PM 11/9/2003 -0700, you wrote: I have a servlet that does a pretty simple include: RequestDispatcher rd=req.getRequestDispatcher(OutputCurrentWeek.html); if (rd==null) { WebApp.log(Error getting RequestDispatcher for Include in ViewCal!,new Exception()); } else { rd.include(req,res); } This works on 5.0.14 if the application is not running in a ROOT context. If the app is in a ROOT context, it doesn't work. No exception is logged, so a non-null RequestDispatcher is returned, it just doesn't seem to work. I just verified that the application works correctly on 4.1.29 for both ROOT and non-ROOT contexts. Is this an area where the spec changed, or is 5.0.14 broken? George Sexton MH Software, Inc. Voice: 303 438 9585 http://www.mhsoftware.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: RequestDispatcher.include() on 5.0.14
OK, I have figured this out. The issue is that I was deploying the contexts using the Admin application. When I deployed the Root contexts, I specified the path as /. I was able to replicate the error on another machine by doing this. Specifically, I could replicate the ClassCastException. After replicating the error on the second machine, if I changed the context XML file path to , then the application worked correctly. I guess what confused me was that the context basically worked. If it hadn't worked at all, I would have figured out the path was a problem. Remy, What is the correct thing to do here? George Sexton MH Software, Inc. Home of Connect Daily Web Calendar Software http://www.mhsoftware.com/connectdaily.htm Voice: 303 438 9585 -Original Message- From: George Sexton [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2003 10:41 AM To: 'Tomcat Users List' Subject: RE: RequestDispatcher.include() on 5.0.14 Maybe I will try some more testing. The one thing I haven't replicated is that the problem machine is running 3 virtual hosts. -Original Message- From: George Sexton [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2003 10:23 AM To: 'Tomcat Users List' Subject: RE: RequestDispatcher.include() on 5.0.14 I Emailed Remy off list. Essentially, the problem appears intermittent and may be hardware or JVM related (but I don't think so...). Here is the text of the last message I sent to him: You are right. I wrote a test case, and it worked. I then went back and re-tested my original application. This time it worked. Today, I ran into another problem where I was getting a ClassCastException retrieving an attribute from a session. When I run it under 4.1.29, it works perfectly. FWIW, Tomcat 5.0.14 was not doing this last night. There are many other places throughout the application where this attribute is retrieved from the session, but this is the only one failing. Just for grins, I made a small code change and re-compiled. Unsurpisingly the issue went away I just tried both issues on a different machine running 5.0.14 w/ JDK 1.4.1_01 under Windows and all aspects are working correctly. The machine where I have been having issues is running SUSE 9.0 professional with JDK 1.4.2-b28. I tried upgrading the JVM on the SUSE machine to 1.4.2_02-b03 and still had the same issues. This machine has been running Win2K reliably for several years. To be safe, I ran MemTest86 on it, and it reported no issues. At this point I have conflicting data. On the one hand, the app works on one machine with 5.0.14. On another machine, it doesn't work with 5.0.14, but works well with 4.1.29. At this point I have to say I believe there is something (or many things) wrong with 5.0.14. The problem appears intermittently, and is difficult to trigger with many different symptoms. -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2003 9:10 AM To: Tomcat Users List Subject: RE: RequestDispatcher.include() on 5.0.14 At 07:32 PM 11/9/2003 -0700, you wrote: I hate bugzilla. No, this appears to be a new item. Unsurprising really, considering that it only fails in a root context. Then I assume you reported the bug? A link to the bug report would be helpful. Jake -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED] Sent: Sunday, November 09, 2003 7:23 PM To: Tomcat Users List Subject: Re: RequestDispatcher.include() on 5.0.14 You should check bugzilla to see if there are already any reports like this for Tomcat-5. If not, report it. It might get lost if you just report it here. http://issues.apache.org/bugzilla/ Jake At 03:55 PM 11/9/2003 -0700, you wrote: I have a servlet that does a pretty simple include: RequestDispatcher rd=req.getRequestDispatcher(OutputCurrentWeek.html); if (rd==null) { WebApp.log(Error getting RequestDispatcher for Include in ViewCal!,new Exception()); } else { rd.include(req,res); } This works on 5.0.14 if the application is not running in a ROOT context. If the app is in a ROOT context, it doesn't work. No exception is logged, so a non-null RequestDispatcher is returned, it just doesn't seem to work. I just verified that the application works correctly on 4.1.29 for both ROOT and non-ROOT contexts. Is this an area where the spec changed, or is 5.0.14 broken? George Sexton MH Software, Inc. Voice: 303 438 9585 http://www.mhsoftware.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RequestDispatcher.include() on 5.0.14
I have a servlet that does a pretty simple include: RequestDispatcher rd=req.getRequestDispatcher(OutputCurrentWeek.html); if (rd==null) { WebApp.log(Error getting RequestDispatcher for Include in ViewCal!,new Exception()); } else { rd.include(req,res); } This works on 5.0.14 if the application is not running in a ROOT context. If the app is in a ROOT context, it doesn't work. No exception is logged, so a non-null RequestDispatcher is returned, it just doesn't seem to work. I just verified that the application works correctly on 4.1.29 for both ROOT and non-ROOT contexts. Is this an area where the spec changed, or is 5.0.14 broken? George Sexton MH Software, Inc. Voice: 303 438 9585 http://www.mhsoftware.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: RequestDispatcher.include() on 5.0.14
I hate bugzilla. No, this appears to be a new item. Unsurprising really, considering that it only fails in a root context. -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED] Sent: Sunday, November 09, 2003 7:23 PM To: Tomcat Users List Subject: Re: RequestDispatcher.include() on 5.0.14 You should check bugzilla to see if there are already any reports like this for Tomcat-5. If not, report it. It might get lost if you just report it here. http://issues.apache.org/bugzilla/ Jake At 03:55 PM 11/9/2003 -0700, you wrote: I have a servlet that does a pretty simple include: RequestDispatcher rd=req.getRequestDispatcher(OutputCurrentWeek.html); if (rd==null) { WebApp.log(Error getting RequestDispatcher for Include in ViewCal!,new Exception()); } else { rd.include(req,res); } This works on 5.0.14 if the application is not running in a ROOT context. If the app is in a ROOT context, it doesn't work. No exception is logged, so a non-null RequestDispatcher is returned, it just doesn't seem to work. I just verified that the application works correctly on 4.1.29 for both ROOT and non-ROOT contexts. Is this an area where the spec changed, or is 5.0.14 broken? George Sexton MH Software, Inc. Voice: 303 438 9585 http://www.mhsoftware.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Microsoft Certificate Services
Try selecting Base64 encoded certificate instead of DER encoded. Also from what I understand keytool will only import certificates with a key size under 4096 bits. If your certificate's public key is 4096 bits or bigger you won't be able to import into your keystore with keytool. George -Original Message- From: Hart, Justin [mailto:[EMAIL PROTECTED] Sent: Thursday, November 06, 2003 10:27 AM To: Tomcat Users List (E-mail) Subject: Microsoft Certificate Services Hey, I'm trying to import certificates from Microsoft Certificate Services into my keystore for use with SSL in tomcat (what a mouthful). Having problems, keytool says that the certs are not in x.509 format, but I selected DER (x.509) from Microsoft Certificate Services. Is there a known problem with doing this? Justin - 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]
Admin Application
I created a new virtual host using the Admin Application, and attempted to deploy the Manager application using the interface. Initial attempts gave this message: java.lang.ClassNotFoundException: org.apache.catalina.manager.HTMLManagerServlet org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLo ader.java:891) org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLo ader.java:756) org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticator Base.java:594) After some fooling around, I found that the issue was that the context need the privileged attribute set to true. I looked, but I don't understand how to use the Admin application to set this attribute for a context. More to the point, is it possible for the manager application to work across multiple virtual hosts? It seems like quite a waste to have to configure the manager application for each virtual host? I guess another, perhaps better question is why does the Admin application not have controls to stop, start, and re-load contexts? George Sexton MH Software, Inc. Voice: 303 438 9585 http://www.mhsoftware.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
More Admin Application: Service Reloading Question
I am evaluating Tomcat 5.0.14 for use in a ASP Hosting environment. As part of this environment I would need to routinely create (or destroy) virtual hosts. One major showstopper seems to be that if I create a virtual host and click on the Commit Changes, then the service reloads, including all of the virtual hosts, and their associated contexts. Is there some setting I don't see that can affect this restarting behavior? Without the capability to create virtual hosts on the fly, I will have to schedule routine re-starts of the servlet engine. This is really less than optimal. Any ideas would be appreciated. George Sexton MH Software, Inc. Voice: 303 438 9585 http://www.mhsoftware.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
IBM JRE 1.4.1 dumping core on login with http/1.0 browsers
I'm having problems with the IBM 1.4.1 jvm dumping core every few days under fairly light use with tomcat 4.1.27. I'm looking for general advice (though specific advice would be even better). Should I be looking for a new JVM? Or my programming bug or misconfig? This problem appears to be directly or indirectly related to the use of old browsers. Each time it has happened (twice now), the logs (below) show that it was being accessed via http/1.0, which is fairly rare in the log files. It occurs right after or right before authentication. More info: RH 8, 2.4.20-20.8smp apache 2.0/mod_ssl mod_jk 15/03 ssl_access_log snippet: 128.104.50.121 - - [15/Oct/2003:23:16:14 -0400] GET / HTTP/1.0 200 268 128.104.50.121 - - [15/Oct/2003:23:16:18 -0400] GET /apptrack/s/myappinfo.jsp HTTP/1.0 302 0 128.104.50.121 - - [15/Oct/2003:23:16:20 -0400] GET /apptrack/login.jsp;jsessionid=D82BFF7D0F918CDB106C1A072EC2AB3D HTTP/1.0 200 4 085 128.104.50.121 - - [15/Oct/2003:23:16:22 -0400] GET /apptrack/images/applicanttracking_r2_c1.gif HTTP/1.0 200 9669 128.104.50.121 - - [15/Oct/2003:23:16:22 -0400] GET /apptrack/images/applicanttracking_leftimg.jpg HTTP/1.0 200 13065 (***CRASH***) 128.104.50.121 - - [15/Oct/2003:23:16:42 -0400] POST /apptrack/j_security_check HTTP/1.0 500 1085 128.104.50.121 - - [15/Oct/2003:23:16:55 -0400] GET /apptrack/login.jsp;jsessionid=D82BFF7D0F918CDB106C1A072EC2AB3D HTTP/1.0 500 1 085 22/03 ssl_access_log snippet: 149.199.60.202 - - [22/Oct/2003:18:28:27 -0400] GET / HTTP/1.0 200 268 149.199.60.202 - - [22/Oct/2003:18:28:28 -0400] GET /apptrack/s/myappinfo.jsp HTTP/1.0 302 0 149.199.60.202 - - [22/Oct/2003:18:28:28 -0400] GET /apptrack/login.jsp;jsessionid=E7F6276FD5958C2D224B0C182A47EB1F HTTP/1.0 200 4 085 149.199.60.203 - - [22/Oct/2003:18:28:29 -0400] GET /apptrack/images/applicanttracking_leftimg.jpg HTTP/1.0 304 0 149.199.60.202 - - [22/Oct/2003:18:28:30 -0400] GET /apptrack/images/applicanttracking_r2_c1.gif HTTP/1.0 304 0 149.199.60.203 - - [22/Oct/2003:18:28:45 -0400] POST /apptrack/j_security_check HTTP/1.0 302 0 (***CRASH***) 149.199.60.203 - - [22/Oct/2003:18:28:45 -0400] GET /apptrack/s/myappinfo.jsp HTTP/1.0 500 1085 149.199.60.203 - - [22/Oct/2003:18:28:50 -0400] GET /apptrack/login.jsp;jsessionid=E7F6276FD5958C2D224B0C182A47EB1F HTTP/1.0 500 1 085 Sections of core dump file* NULL 0SECTION TITLE subcomponent dump routine NULL === 1TISIGINFO signal 11 received 1TIDATETIMEDate: 2003/10/22 at 18:28:45 1TIFILENAMEJavacore filename:/home/tomcat/javacore.20031022.182845.3741.txt NULL 0SECTION XHPI subcomponent dump routine NULL == 1HPTIMEWed Oct 22 18:28:45 2003 1HPSIGRECV SIGSEGV received in ?? at 0x41c55e85 in /opt/IBMJava2-141/jre/bin/libjitc.so. Processing terminated. 1HPFULLVERSION J2RE 1.4.1 IBM build cxia32141-20030522 NULL 1HPOPENV Operating Environment NULL - 2HPHOSTNAMEHost : law5.(none) 2HPOSLEVEL OS Level : 2.4.20-20.8smp.#1 SMP Mon Aug 18 14:39:22 EDT 2003 2HPLIBCVER glibc Version: 2.3.2 2HPCPUSProcessors - 3HPARCH Architecture : (not implemented) 3HPNUMCPUS How Many : (not implemented) 3HPCPUSENABLED Enabled : 4 **snip ** 1XMEXCPINFOException Info NULL -- 2XMEXCPINFOJVM Exception 0x2 (subcode 0x0) occurred in thread Ajp13Processor[8009][7] (TID:0x10068790) NULL 2XMNATIVESTACK Native stack at exception generation: 3XMSTACKINFO Program Name Entry Name Statement ID 3XMSTACKINFO NULL NULL NULL 1XMTHDINFO Thread Info NULL --- NULL 2XMFULLTHDDUMP Full thread dump Classic VM (J2RE 1.4.1 IBM build cxia32141-20030522, native threads): 3XMTHREADINFO Ajp13Processor[8009][13] (TID:0x10068490, sys_thread_t:0x891A140, state:R, native ID:0x7801F) prio=5 4XESTACKTRACE at java.net.SocketInputStream.socketRead0(Native Method) 4XESTACKTRACE at java.net.SocketInputStream.read(SocketInputStream.java(Compiled Code)) 4XESTACKTRACE at org.apache.ajp.Ajp13.readN(Ajp13.java(Compiled Code)) 4XESTACKTRACE at org.apache.ajp.Ajp13.receive(Ajp13.java(Compiled Code)) 4XESTACKTRACE at org.apache.ajp.Ajp13.receiveNextRequest(Ajp13.java:274) 4XESTACKTRACE at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:396) 4XESTACKTRACE at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:585) 4XESTACKTRACE at java.lang.Thread.run(Thread.java:568) George Payne Law ITC University of Virginia School of Law
Re: IBM JRE 1.4.1 dumping core on login with http/1.0 browsers
Daniel, et al, thanks for the info. I have put this in my tomcat script, but I thought it was a kitchen-sink approach, since I only thought this only applied to RH 9.0 with the NPTL thread library. But now the water is muddier since I found this http://speakeasy.rpmfind.net/linux/RPM/redhat/updates/8.0/i586/kernel-smp-2.4.20-20.8.i586.html which mentions NPTL in reference to the (8.0) kernel I have. Anyone know if this applies to RH 8.0 with the latest smp kernel? I noticed you also mentioned putting it in the apache startup script. Is this important, since apache does not (I thought) share threads with the jvm? At 03:56 PM 10/23/2003, you wrote: Search for Java IBM LD_ASSUME_KERNEL in google. That may be your problem. Then set an environment variable in your apache and tomcat startup scripts: export LD_ASSUME_KERNEL=2.2.5 I hope that helps. It seems to have solved my crashes. Daniel Gibby George Payne wrote: I'm having problems with the IBM 1.4.1 jvm dumping core every few days under fairly light use with tomcat 4.1.27. I'm looking for general advice (though specific advice would be even better). Should I be looking for a new JVM? Or my programming bug or misconfig? This problem appears to be directly or indirectly related to the use of old browsers. Each time it has happened (twice now), the logs (below) show that it was being accessed via http/1.0, which is fairly rare in the log files. It occurs right after or right before authentication. More info: RH 8, 2.4.20-20.8smp apache 2.0/mod_ssl mod_jk 15/03 ssl_access_log snippet: 128.104.50.121 - - [15/Oct/2003:23:16:14 -0400] GET / HTTP/1.0 200 268 128.104.50.121 - - [15/Oct/2003:23:16:18 -0400] GET /apptrack/s/myappinfo.jsp HTTP/1.0 302 0 128.104.50.121 - - [15/Oct/2003:23:16:20 -0400] GET /apptrack/login.jsp;jsessionid=D82BFF7D0F918CDB106C1A072EC2AB3D HTTP/1.0 200 4 085 128.104.50.121 - - [15/Oct/2003:23:16:22 -0400] GET /apptrack/images/applicanttracking_r2_c1.gif HTTP/1.0 200 9669 128.104.50.121 - - [15/Oct/2003:23:16:22 -0400] GET /apptrack/images/applicanttracking_leftimg.jpg HTTP/1.0 200 13065 (***CRASH***) 128.104.50.121 - - [15/Oct/2003:23:16:42 -0400] POST /apptrack/j_security_check HTTP/1.0 500 1085 128.104.50.121 - - [15/Oct/2003:23:16:55 -0400] GET /apptrack/login.jsp;jsessionid=D82BFF7D0F918CDB106C1A072EC2AB3D HTTP/1.0 500 1 085 22/03 ssl_access_log snippet: 149.199.60.202 - - [22/Oct/2003:18:28:27 -0400] GET / HTTP/1.0 200 268 149.199.60.202 - - [22/Oct/2003:18:28:28 -0400] GET /apptrack/s/myappinfo.jsp HTTP/1.0 302 0 149.199.60.202 - - [22/Oct/2003:18:28:28 -0400] GET /apptrack/login.jsp;jsessionid=E7F6276FD5958C2D224B0C182A47EB1F HTTP/1.0 200 4 085 149.199.60.203 - - [22/Oct/2003:18:28:29 -0400] GET /apptrack/images/applicanttracking_leftimg.jpg HTTP/1.0 304 0 149.199.60.202 - - [22/Oct/2003:18:28:30 -0400] GET /apptrack/images/applicanttracking_r2_c1.gif HTTP/1.0 304 0 149.199.60.203 - - [22/Oct/2003:18:28:45 -0400] POST /apptrack/j_security_check HTTP/1.0 302 0 (***CRASH***) 149.199.60.203 - - [22/Oct/2003:18:28:45 -0400] GET /apptrack/s/myappinfo.jsp HTTP/1.0 500 1085 149.199.60.203 - - [22/Oct/2003:18:28:50 -0400] GET /apptrack/login.jsp;jsessionid=E7F6276FD5958C2D224B0C182A47EB1F HTTP/1.0 500 1 085 Sections of core dump file* NULL 0SECTION TITLE subcomponent dump routine NULL === 1TISIGINFO signal 11 received 1TIDATETIMEDate: 2003/10/22 at 18:28:45 1TIFILENAMEJavacore filename: /home/tomcat/javacore.20031022.182845.3741.txt NULL 0SECTION XHPI subcomponent dump routine NULL == 1HPTIMEWed Oct 22 18:28:45 2003 1HPSIGRECV SIGSEGV received in ?? at 0x41c55e85 in /opt/IBMJava2-141/jre/bin/libjitc.so. Processing terminated. 1HPFULLVERSION J2RE 1.4.1 IBM build cxia32141-20030522 NULL 1HPOPENV Operating Environment NULL - 2HPHOSTNAMEHost : law5.(none) 2HPOSLEVEL OS Level : 2.4.20-20.8smp.#1 SMP Mon Aug 18 14:39:22 EDT 2003 2HPLIBCVER glibc Version: 2.3.2 2HPCPUSProcessors - 3HPARCH Architecture : (not implemented) 3HPNUMCPUS How Many : (not implemented) 3HPCPUSENABLED Enabled : 4 **snip ** 1XMEXCPINFOException Info NULL -- 2XMEXCPINFOJVM Exception 0x2 (subcode 0x0) occurred in thread Ajp13Processor[8009][7] (TID:0x10068790) NULL 2XMNATIVESTACK Native stack at exception generation: 3XMSTACKINFO Program Name Entry Name Statement ID 3XMSTACKINFO NULL NULL NULL 1XMTHDINFO Thread Info NULL --- NULL 2XMFULLTHDDUMP Full thread dump Classic VM (J2RE 1.4.1 IBM build cxia32141
Problem with Tomcat SSL Port
I am having a problem with embedded Tomcat 4.1.18. The problem is that after some unspecified period of time Tomcat is continually opening http processor threads that are then stuck in the CLOSE_WAIT state. I am seeing this intermittently in Windows, HP-UX and Linux. I am using the coyoteconnector to create both an http connector and ssl connector. The http connector continues to work, but the SSL connector stops working. This bug is supposed to be fixed in 4.1.24, but I question that based on the following bugs described in these links: http://www.mail-archive.com/[EMAIL PROTECTED]/msg103402.htm l http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23311 Here are links to the related bug that was fixed: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14994 From looking at the stack trace it appears that the problem may be in the code org.apache.tomcat.util.threads.threadpool. When I looked at the source for that code, there are two methods that use notify instead of notifyall(), which is a very dangerous practice and can easily cause the behavior I am seeing. It appears as though changing these two lines to use notifyall() instead of notify() could fix the problem, however I have not tested this out. I wanted to verify that this code was changed in the latest version of threadpool in the tomcat-util.jar file, but in the latest releases of Tomcat I can't find the tomcat-util.jar file or the source for ThreadPool. However, you need that file to build http11processor.java, so it must be somewhere. Does anyone know where to find the latest versions of tomcat-util.jar for tomcat 4.1.27? Also if anyone knows if this code has definitely been fixed that would be helpful as well. Thank you, George
RE: Receiving Transfer-coding: chunked
To make things easier use something like the Jakarta commons projects FileUpload API in your servlet to parse the request: http://jakarta.apache.org/commons/fileupload/ Hope that helps, George -Original Message- From: William Bondy [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 14, 2003 9:16 AM To: '[EMAIL PROTECTED]' Subject: Receiving Transfer-coding: chunked If a client sends content (via a POST) using chunked transfer-coding, how is the content retreived via a servlet? Does the user need to be concerned with getting the inputstream and handling the content directly in chunked format since the length may not be known at processing time? I.e. the content-legnth may be set to -1... Bill. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Receiving Transfer-coding: chunked
I am not sure how it is handled, I have successfully used the fileupload project to upload files in a tomcat servlet, but I have not looked at the source to see what it is doing. You could probably look at the source to figure out the answer to your questions. Here is an example of the usage of the fileupload Api if you are interested in how to use it: http://jakarta.apache.org/commons/fileupload/using.html It is fairly easy and straightforward to use. -Original Message- From: William Bondy [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 14, 2003 10:09 AM To: 'Tomcat Users List' Subject: RE: Receiving Transfer-coding: chunked Does your answer imply that the servlet getReader() method returns the content in chunked format? Ie. the servlet engine does not interpret or aggregate the chunks ? The servlet API is very unclear in this area, I just want to make sure that my thread reading the socket can read the exact number of content bytes and not block unnecesarily AND that this is standard across all servlet compliant engines. Thanks for your help! Bill. -Original Message- From: Manty, George [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 14, 2003 09:30 AM To: Tomcat Users List Subject: RE: Receiving Transfer-coding: chunked To make things easier use something like the Jakarta commons projects FileUpload API in your servlet to parse the request: http://jakarta.apache.org/commons/fileupload/ Hope that helps, George -Original Message- From: William Bondy [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 14, 2003 9:16 AM To: '[EMAIL PROTECTED]' Subject: Receiving Transfer-coding: chunked If a client sends content (via a POST) using chunked transfer-coding, how is the content retreived via a servlet? Does the user need to be concerned with getting the inputstream and handling the content directly in chunked format since the length may not be known at processing time? I.e. the content-legnth may be set to -1... Bill. - 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: Problem with Tomcat SSL Port
I found the source code for v4.1.27 and the same problem exists in the threadpool code. Thanks, George -Original Message- From: Manty, George [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 14, 2003 9:03 AM To: [EMAIL PROTECTED] Subject: Problem with Tomcat SSL Port I am having a problem with embedded Tomcat 4.1.18. The problem is that after some unspecified period of time Tomcat is continually opening http processor threads that are then stuck in the CLOSE_WAIT state. I am seeing this intermittently in Windows, HP-UX and Linux. I am using the coyoteconnector to create both an http connector and ssl connector. The http connector continues to work, but the SSL connector stops working. This bug is supposed to be fixed in 4.1.24, but I question that based on the following bugs described in these links: http://www.mail-archive.com/[EMAIL PROTECTED]/msg103402.htm l http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23311 Here are links to the related bug that was fixed: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14994 From looking at the stack trace it appears that the problem may be in the code org.apache.tomcat.util.threads.threadpool. When I looked at the source for that code, there are two methods that use notify instead of notifyall(), which is a very dangerous practice and can easily cause the behavior I am seeing. It appears as though changing these two lines to use notifyall() instead of notify() could fix the problem, however I have not tested this out. I wanted to verify that this code was changed in the latest version of threadpool in the tomcat-util.jar file, but in the latest releases of Tomcat I can't find the tomcat-util.jar file or the source for ThreadPool. However, you need that file to build http11processor.java, so it must be somewhere. Does anyone know where to find the latest versions of tomcat-util.jar for tomcat 4.1.27? Also if anyone knows if this code has definitely been fixed that would be helpful as well. Thank you, George - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: HTML quoting
Here is code that we use. It depends on our own variant of String Buffer, but you get the idea: public String htmlEncode(String cVal) { if (cVal==null || cVal.length()==0) { return ; } MHBuffer buf=new MHBuffer(cVal.length()2); final String[] aOld={,, , \}; final String[] aReplace={amp;,lt;,gt;,quot;}; buf.append(cVal); for (int i=0; i aOld.length; i++) { buf.replace(aOld[i],aReplace[i]); } return buf.toString(); } -Original Message- From: Greg Ward [mailto:[EMAIL PROTECTED] Sent: Thursday, October 02, 2003 3:18 PM To: [EMAIL PROTECTED] Subject: HTML quoting What's the standard way of quoting text for inclusion in a web page in Java? Ie. I need a method to convert the string Jeb said, Hell damnation! Is 5 4? to Jeb said, quot;Hell amp; damnation! Is 5 gt; 4?quot; (I think: I've never been entirely sure what the right way to handle quotes is.) That is, I want the standard Java equivalent of Python's cgi.escape(), or Perl's CGI::escapeHTML(). To my utter amazement, I cannot find any indication that such a method even exists in the standard Java library! (I tried Google'ing and poking through the JDK 1.4 docs.) So I went looking in the source for Tomcat 4.1.27 -- surely the HTML version of the manager app must quote at least the webapp's display name, since it comes from a user-supplied file and therefore might contain funny characters. Surprisingly, the manager just lets funny characters through without touching them. Eg. if you put display-namefoo amp; bar webapp/display-name then amp; is translated back to by some part of the XML-parsing chain, and is emitted as in the manager HTML page. Most browsers can deal with minor violations like this, but it's still technically incorrect. Just for fun I tried this: display-namemy lt;scriptgt;alert(foo);lt;/scriptgt;/display-name ...and it works! The manager emits this HTML: td class=row-leftsmallmy scriptalert(foo);/script webapp/small/td and my browser pops up a JavaScript window while rendering the manager page. Cool! I doubt this is a security hole -- not many people can edit web.xml! -- but surely it at least counts as a rendering bug. ;-) So: can someone tell me what the standard way of quoting text for inclusion in a web page generated by a Java web application is? Thanks! Greg - 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: invalid direct reference..--problem with solution..
I would like to implement a fix to this. I think having users bookmark the login page is a very likely frequent problem. But.. What happens if you implement this solution and the user has disallowed cookies? Don't you get an ugly loop? If the referer header was set, you could use that, but it does not appear to be. Anyone have a bright idea? At 08:13 PM 6/28/2003, Stefan Radzom wrote: Your problem has just recently been discussed on this list. Ben Jessel proposed a workaround which I attached below. Hopefully, this might work for you. Stefan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, June 27, 2003 1:42 PM To: [EMAIL PROTECTED] Subject: Possible workaround for invalid direct reference to login page Java Authentication with tomcat relies on realms. If you access a page protected by that realm you get directed to the login page. However, it is possible to go directly to the login page ( this can happen when users bookmark the login page inadvertantly ). This happens in two scenarios: 1) The user is already logged in. 2) The user is not logged in. If you authenticate yourself once you have gone directly to the login page, you get a invalid direct reference error. Fair enough, the login page is trying to redirect to itself. Now, I tried to workaround this by checking if the session is null, and if it is, redirecting to some protected page, eg. protected/index.jsp. No luck. It seems that a session is implicitly created, and a new session id gets created. So I've tried a cookie strategy: % if ( request.getCookies()==null ) { response.sendRedirect(//jsp/protected/index.jsp); } if ( request.getRemoteUser()!=null ) { response.sendRedirect(/x/jsp/protected/index.jsp); } % i.e, we wont have a cookie if we've gone directly to the login page. But we will have if we've tried to access a protected page and then we've been forwarded to a login page, tomcat will give us a cookie. Now if we're already logged in ( which we check with getRemoteUser() , then we just forward to user to an index page. This seems o.k. However my index page actually includes my login page! I'm planning to get around this with some logic that only includes the login page excerpt if we are not logged in.. Ben -Original Message- From: Brian Kuhn [mailto:[EMAIL PROTECTED] Sent: Sunday, June 29, 2003 1:16 AM To: [EMAIL PROTECTED] Subject: invalid direct reference to form login page... Hi all, I've set up Tomcat (4.1.24) to do form based authentication. Everything works great, except I've had to deal with a lot of users that type in the url I've given them, get redirected to the login page, and bookmark the login page before logging in. Later, when they use the bookmark, they get sent to the login page, but get a Invalid direct reference to form login page... message once they log in. I understand why this happens, but don't know what to do about it. Is there a way to specify a default page to go to when the login page is requested directly? Thanks, Brian Kuhn Telscape Communications Brian Kuhn [EMAIL PROTECTED] _ The new MSN 8: smart spam protection and 2 months FREE* 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Can JSP track users in a basic authentication protected realm ?
Can you explain how Tomcat will be able to tell whether the user has navigated away and returned, versus just taken some period of time before getting the next page? -Original Message- From: David [mailto:[EMAIL PROTECTED] Sent: Saturday, September 20, 2003 9:56 AM To: Tomcat User Subject: Can JSP track users in a basic authentication protected realm ? Hi guys, Does anyone know how I can implement the above mentioned? Once they exit the protected realm (i.e. the protected folder in my htdocs), when they re-enter the site again they will be asked for a password. I have a simple basic authentication system but it doesn't track the user when it leaves the protected realm. What I wanted to do was to get the server to re-authenticate the user everytime he leaves my realm and tries to re-enter again. Some people suggested CGI, some suggest PHP.. I would like to know if JSP can do the job. If yes, what level of competence do I know JSP ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: HeadlessException: The chickens come home to roost!
I use -Djava.awt.headless=true to create graphs on the fly and never get this exception. -Original Message- From: Simon Brooke [mailto:[EMAIL PROTECTED] Sent: Monday, September 08, 2003 1:48 PM To: Tomcat Users List Subject: HeadlessException: The chickens come home to roost! -BEGIN PGP SIGNED MESSAGE- Long, long ago I spent a lot of time writing a Servlet which allowed drill-through graphs and charts to be built on the fly, server side. I was very proud of it, but getting it working on an X11 platform was such a bloody swine that I actually documented how to do it here: URL:http://www.weft.co.uk/library/jacquard/documentation/uk/co/weft/htf orm/Graphic.html Now I need to use this functionality in a new project, and can I get it to work? No, I **%$ can't. And the problem is a new one: java.awt.HeadlessException I get this whether or not I have CATALINA_OPTS=-Djava.awt.headless=true defined in /etc/default/tomcat4, and whether or not I have Xvfb running, with the DISPLAY environment variable pointing in the right place, and all X security off. Specifically I get: java.awt.HeadlessException at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:121) at java.awt.Window.(Window.java:266) at java.awt.Frame.(Frame.java:398) at java.awt.Frame.(Frame.java:363) at uk.co.weft.htform.MappedImage.(MappedImage.java:156) at uk.co.weft.htform.ExampleMappedImage.(ExampleMappedImageServlet.java:28) which is to say when I first try to create a java.awt.Frame I'm using tomcat 4.0.4 as packaged in Debian package tomcat4_4.0.4-4 on Debian 3.0 with Sun Java 1.4.0 and Sun Java 1.4.1; I also have, and could try if people think it would help, IBM Java 1.3.0 The last time this issue was discussed on this list was on 20th March this year; I've tried all the proposed solutions which were discussed at that time, including the eTeks PJA toolkit, which sounds a very clever solution but which unfortunately failed with a NullPointerException java.lang.NullPointerException at com.eteks.awt.servlet.PJARedirectServlet.servicePJA(PJARedirectServlet.j ava:195) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.eteks.awt.servlet.PJAServlet.HttpMethodInvoke(PJAServlet.java:793) at com.eteks.awt.servlet.PJAServlet.service(PJAServlet.java:775) Any further suggestions gratefully received. Simon - -- [EMAIL PROTECTED] (Simon Brooke) http://www.jasmine.org.uk/~simon/ ;; MS Windows: A thirty-two bit extension ... to a sixteen bit ;; patch to an eight bit operating system originally coded for a ;; four bit microprocessor and sold by a two-bit company that ;; can't stand one bit of competition -- anonymous -BEGIN PGP SIGNATURE- Version: 2.6.3ia Charset: noconv iQCVAwUBP1zdAHr1UrYJMbiJAQHSUAP/RoR0DwfzilZ3EySyin3kXFzPkLQopTM9 l1yHrFdLnFFW6MV9rIuoKxNS2U1vPJ9zlqfeJt8hJszKKYO3b5WII6IJ0sz3fOIL YaItN0wTGmgpDtOMSFHsv4hXrzHBVdzNXYuQaJ6Fo/alKcRMGdfKliYzNAR3PaeH zlgRCXecWio= =z/Pq -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
how to autogenerate mod_jk.conf w/ Tomcat 5?
Can anyone help with configuring Tomcat 5.x (as comes with Java WSDP) to integrate with Apache 2? As a longtime user of Tomcat 3.x, I've come to appreciate the auto-generation of mod_jk.conf, a feature that seems to be missing in Tomcat 5. Or is there a better way to have my webapps automatically integrated with Apache? I found a few guides on the web that discuss how to add Listeners to server.xml, but the class (org.apache.ajp.tomcat4.config.ApacheConfig) does not seem to exist in Tomcat 5. I plowed through the .jar files hoping to find its modern analog, but to no avail. Other particulars of my environment: - apache 2.0.40 - JDSK 1.4.2-beta - RedHat 9 Thanks in advance. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Urgent : Can we restrict access to a directory in tomcat
Hi Dean, Apologies if I'm missing the point, but why can't you store/retrieve your image from a blob field in your database ? Cheers, George - Original Message - From: Dean Fantham [EMAIL PROTECTED] To: Syed Nayyer Kamran [EMAIL PROTECTED] Cc: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, June 10, 2003 3:29 AM Subject: Re: Urgent : Can we restrict access to a directory in tomcat There is no guaranteed way to stop someone directly access a gif image via a browser url, because this is how an image is accessed by the browser itself anyways. The browser just makes a HTTP get request to the web-server (in this case tomcat) requesting the URL of the image to be included in the web page. i.e. in a standard jsp/servlet response to a web request the image request is embedded in a img src=.../somedir/some-img.gif. This is going to cause a browser request directory to the directory containing the image, which can also be duplicated in the browser. The only potential method that can catch most (but not all) of these would be to create a separate image handling jsp/servlet, say imageHandler. When imageHanlder servlet recieves an image request it can check the http-referrer header and ensure that the referrer is the url of the page to which the images are supposed to load, i.e. is the page containing the images in /servlet/somepage then the http-referrer that imageHandler see should be able to checked that it is /servlet/somepage. Someone can circumvent this control by the Internet, but just manually setting this header themselves (via a program or the like) and then having access directly to the images You would then have to update all image referrences on the somepage servelt/jsp however to something like img src=/servlet/imagehandler?gif=somerefernce. On Mon, 2003-06-09 at 18:32, Syed Nayyer Kamran wrote: hi there, I want to restrict the user to access the images directly through the web. They should be able to access these images through web pages developed as jsp/servlet but should not be able to access these images displayed on page by copying the image url to the address bar. Is tomcat directly support this functionality. or any other solution. Thanks in advance for any solution of the problem. Nayyer Kamran - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat STILL freezing - time to look at another app server?
when I am pretty much the only one on the network. Does that sound possible to any one with more experience than I? Although we moved it to the live server we had some install problems there and so I am still running off my dev machine. It is just a regular P4 with about 1600mhz and 256 ram. Do you think the freezing will cease when running off the server? And on the other subject: have any of you tried other app servers out there? Do you have any opinions? Tomcat seems to be the industry standard but if I can't resolve this freezing issue I might get some pressure to try some different technology. -Original Message- From: Hunter, Sandra [mailto:[EMAIL PROTECTED] Sent: Friday, May 16, 2003 2:52 PM To: 'Tomcat Users List' Subject: RE: Tomcat Freezing? The lock may be an issue: I'll run that past our DBA but that's the only thing I haven't looked at. We have actually moved the app to another machine to see if that makes any difference. If anyone gets a bright idea I would love to hear it! Puzzled Sandra -Original Message- From: Jason Bainbridge [mailto:[EMAIL PROTECTED] Sent: Friday, May 16, 2003 12:11 PM To: Tomcat Users List Subject: Re: Tomcat Freezing? I'm running out of ideas myself... I gather this is quite a beefy machine you're running it on? Are you using the right version of the Oracle Thin Driver for the version of Oracle you are running? Have you got a DBA on site or are you able to look at the appropriate v$ view to see what query it died on and possibly why? It's not something like not releasing a lock on a record or commits not being on or something silly like that in the Oracle config? Jason On Sat, 17 May 2003 02:29 am, Hunter, Sandra wrote: I spoke too soon. I am really stumped now. Code that ran yesterday, won't run today. I have gone through it line by line, commenting it all out, and then gradually adding in each line, and then it runs again. Same code. No changes. If I restart Tomcat the code will run. Sometimes. Other times not. I have looked at the Tomcat logs and I don't see anything that tells me anything. There must be some common event that is causing this but I can't seem to place it or find it. It almost seems like the code needs a warm up run before it can really get going. How weird is that? Any idea what I should be looking for? Besides a psychiatrist? Sandra -Original Message- From: Hunter, Sandra [mailto:[EMAIL PROTECTED] Sent: Thursday, May 15, 2003 3:29 PM To: 'Tomcat Users List' Subject: RE: Tomcat Freezing? Well it has stopped. I think I did have a code error: I was calling the wrong statement for a resultset, so calling it twice. I have made such an error before without causing such a crisis but I guess Tomcat had just had enough of my foolishness. It is so frustrating to not know why something is happening and I thought I had done everything right but after doing it twice it got sorted out. Thanks all! Sandra -Original Message- From: Jason Bainbridge [mailto:[EMAIL PROTECTED] Sent: Thursday, May 15, 2003 2:41 PM To: Tomcat Users List Subject: Re: Tomcat Freezing? I assume you are using the Oracle JDBC Thin drivers then? Just want to make sure you aren't doing anything like using the JDBC-ODBC bridge but I doubt it just clutching at straws... Do the log files shine any info on the problem? (not your log messages but the Tomcat logs)? J. On Fri, 16 May 2003 05:28 am, Hunter, Sandra wrote: The queries all run in Oracle. Other pages with SQL queries all run fine. The privileges all allow for the SQL stuff I am doing which is very basic. I am going through the commenting process again and lines that ran fine half an hour ago with no changes made now seem to be stalling. Even when I close the app, Tomcat is still hung and I can't close it from the command line. I close all my resultsets and statements and connections. I could include all my code but there are thousands of lines and there seems to be no consistent line or lines that are causing the problem. -Original Message- From: George Sexton [mailto:[EMAIL PROTECTED] Sent: Thursday, May 15, 2003 2:10 PM To: Tomcat Users List Subject: RE: Tomcat Freezing? Have you looked at your database and made sure that you don't have blocking issues keeping your queries from running? -Original Message- From: Hunter, Sandra [mailto:[EMAIL PROTECTED] Sent: Thursday, May 15, 2003 3:06 PM To: 'Tomcat Users List' Subject: RE: Tomcat Freezing? This freezing problem seems to be really intermittent. I am really stumped. I have put in printlines every other line and commented out just about everything and then gradually added stuff and it will freeze at pretty (apparently) random places. It stopped doing
RE: System cannot find the path specified !
Assuming CATALINA_HOME has already been set, then 4 should be: 4) C:\ %CATALINA_HOME%\bin\startup.bin -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 27, 2003 9:57 AM To: [EMAIL PROTECTED] Subject: System cannot find the path specified ! Hello Tomcat People, Trying to get started using Tomcat. I did: 1) C:\ set PATH = j2sdk1.4.0_03 2) C:\ set PATH = %JAVA_HOME%\bin;%PATH% 3) C:\ set JDBC_HOME = C:\oracle\jdbc\lib 4) C:\ CATALINA_HOME\bin\startup.bin The error message says: system cannot find the path specified Your suggestions are appreciated Stan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Seperate tomcats - one apache
I routinely run via the CATALINA_BASE method for multiple instances and have no problems. Using mod_jk, all you have to do is define the connectors to be on different ports, and then configure each servlet engine to run mod_jk on a different port. -Original Message- From: Steve Harris [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 01, 2003 9:46 AM To: [EMAIL PROTECTED] Subject: Seperate tomcats - one apache Hi all, I'm having some fun with some applications supplied to us that may be casuing a problem wiht each other, i.e. one application may be causing the whole tocat environment to fail - thus affecting the others. I'm toying with the idea of trying to run a signle apache but with multiple tomcats - one per application. Does anyone have any views on this ? Cheers - Steve - 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: connection pooling saga
And who needs views? They only obscure the true source of the data. And who needs sub-queries? You can always re-write your queries. They may not be as intuitive, but hey, it's blindingly fast eh? -Original Message- From: Filip Hanik [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 5:43 PM To: Tomcat Users List; [EMAIL PROTECTED] Subject: RE: connection pooling saga who needs foreign keys, they only slow your DB down anyway :) DBCP can support any DB, you will need an ODBC bridge for Access, then you just give DBCP the odbc bridge driver info, and it should work Filip -Original Message- From: JS [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 4:06 PM To: [EMAIL PROTECTED] Subject: connection pooling saga Hello. Has anyone ever done connection pooling with MS Access and tomcat 4.1.12? I havent had much luck in trying to find this done anywhere, and much of the advice is to go with mySQL. Though I am reluctant to due to the lack of Foreign Key support in mySQL and the fact that I have done alot with Access. I have read the DBCP tomcat support docs, but this is only geared towards mySQL, does such a thing exist for MS Access? Advance thanks JS - 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: status 404 when migrating from 4.0.4 to 4.1.24
My experience is that few other servlet engines enable an invoker by default. Many just don't have one. I re-wrote my application to use a web.xml mapping file for all servlets so that I would have better cross-engine compatibility. -Original Message- From: news [mailto:[EMAIL PROTECTED] Behalf Of Sven Kohler Sent: Wednesday, March 26, 2003 12:12 AM To: [EMAIL PROTECTED] Subject: Re: status 404 when migrating from 4.0.4 to 4.1.24 servlet-mapping servlet-nameinvoker/servlet-name url-pattern/servlet/*/url-pattern /servlet-mapping one stupid question, what does the invoker-servlet do? i always write my own servlets without using it, and my mapping them directly using web.xml. i wonder, if i'm missing a great feature. is the invoker servlet supported by all servlet containers? - 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: SMTP Logger
Here is a shell script to examine the logs for exceptions. I run mine every five minutes. #!/bin/sh ### # Tomcat Exception Log script. # # This script checks your tomcat log files for any lines containing # the word exception. If it finds some it mails a specified person # # A history mechanism is used so that you only receive messages when # new exceptions are found. # ### LOGDIR=/var/www/tomcat/logs [EMAIL PROTECTED] DT=`date +%Y-%m-%d` logcheck () { MARKER=$1 LOGFILE=$2 TMPFILE=exCheck$$.tmp if [ ! -f $LOGFILE ]; then return fi if [ ! -e $MARKER ]; then touch $MARKER fi grep -ie exception $LOGFILE $TMPFILE if [ -s $TMPFILE ]; then # # file exists and is not empty # OLDSIZE=`wc -c $MARKER` OLDSIZE=`echo $OLDSIZE | cut -f1 --delimiter= ` NEWSIZE=`wc -c $TMPFILE` NEWSIZE=`echo $NEWSIZE | cut -f1 --delimiter= ` if [ $OLDSIZE != $NEWSIZE ]; then mail -s Tomcat Exception $LOGFILE $MAILDEST $TMPFILE mv -f $TMPFILE $MARKER else rm -f $TMPFILE fi else # # file doesnt exist or is empty # mv -f $TMPFILE $MARKER fi } cd $LOGDIR logcheck .catalina.out catalina.out OTHERFILES=`ls *$DT.txt 2 /dev/null` for FILE in $OTHERFILES; do MARKERFILE=`echo $FILE | cut -f1 --delimiter=.` logcheck .$MARKERFILE $FILE done -Original Message- From: Chris Gokey [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 25, 2003 7:48 PM To: Tomcat Users List Subject: Re: SMTP Logger Hi everyone, Back to this again.. Any help would be very appreciated. I'd created a custom logger that will email errors rather than log them to a file system. Unfortunately, if I add another Logger className=... declaration to server.xml, it will not use the existing Logger (FileLogger). How can I make it use both? Optionally, I thought of extends the FileLogger, but it is declared final, so this won't work. How should I approach this? Or maybe there is some class already part of Tomcat that can do what I'm looking for? I'm using Tomcat 4.03 under Redhat 8. Thanks in advance. Chris On Sat, 2003-03-08 at 21:17, Chris Gokey wrote: Is there alternatives to the FileLogger class? !-- Global logger unless overridden at lower levels -- Logger className=org.apache.catalina.logger.FileLogger prefix=catalina_log. suffix=.txt timestamp=true/ I'd like intercept any errors in Tomcat and mail these errors to a particular person. If not, can I add another Logger by specifying an entry like the above in the server.xml and creating my custom Logger class? Is that all that is necessary? Thanks, Chris -- Christopher D. Gokey, SSAI, NASA/GCMD 18 Martin Road, Shelburne Falls, MA 01370 Phone: Voice (413) 625-8129 / FAX 208-248-9055 [EMAIL PROTECTED] AOL: chrisgokey - 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: Realm with MS SQL Server
If you run SQL profiler what do you observe? -Original Message- From: Matthieu DELAHAIS [mailto:[EMAIL PROTECTED] Sent: Thursday, March 13, 2003 12:58 AM To: [EMAIL PROTECTED] Subject: Realm with MS SQL Server Hi all, I'm trying to use Realm with MS SQL Server. So I follow the Realm-HowTo. I configure my server.xml file in adding the following lines at the end of the file : Realm className=org.apache.catalina.realm.JDBCRealm debug=99 driverName=com.microsoft.jdbc.sqlserver.SQLServerDriver connectionURL=jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=Jetspe edUnis;SelectMethod=cursor connectionName=basename connectionPassword=password userTable=users userNameCol=user_name userCredCol=user_pass userRoleTable=user_roles roleNameCol=role_name/ I created the tables into SQL Server and I inserted some users and roles. But, when I try to connect whit this users on tomcat (http://localhost/examples/jsp/security/protected/login.jsp), i have the message : Invalid username and/or password, please try again. Did I forget something? Any help will be welcome! Thanks in advance Matthieu ___ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en franƧais ! Yahoo! Mail : http://fr.mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: I need a good driver for SQL Server
Download the JDBC driver from Microsoft's web site. -Original Message- From: Victor Gonzalez [mailto:[EMAIL PROTECTED] Sent: Thursday, March 13, 2003 2:55 PM To: 'Tomcat Users List'; [EMAIL PROTECTED] Subject: I need a good driver for SQL Server Importance: High Hi all, I need a good driver and how to realize the connection to SQL Server 2000 from Tomcat 4.1.18, Tnks all, Regards, Victor Gonzalez *** - 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: Connection to Remote SQL Server and IIS
Download the Microsoft JDBC driver from: http://www.microsoft.com/downloads/details.aspx?FamilyID=4f8f2f01-1ed7-4c4d- 8f7b-3d47969e66aeDisplayLang=en Read the Tomcat docs on IIS integration. Even though the docs are for tomcat 3.3, they apply equally to tomcat 4.1 http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-iis-howto.html George Sexton MH Software, Inc. Home of Connect Daily Web Calendar Software http://www.mhsoftware.com/connectdaily.htm Voice: 303 438 9585 -Original Message- From: Victor Gonzalez [mailto:[EMAIL PROTECTED] Sent: Thursday, March 13, 2003 12:32 PM To: 'Tomcat Users List' Subject: Connection to Remote SQL Server and IIS Importance: High Hi everybody, I need to know how to do to implementing Tomcat 4.1.18 with both a remote SQL Server and IIS 5.0, Please, Tnks all, Regards, Victor Gonzalez *** - 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: [OT] Caching problems with IE after download
Look for redirects that don't have a return immediately after them. -Original Message- From: Prashanth Pushpagiri [mailto:[EMAIL PROTECTED] Sent: Friday, March 07, 2003 10:31 AM To: Tomcat Users List Subject: [OT] Caching problems with IE after download Hi everyone: This is more related to Java than tomcat i guess! But any input would be greatly appreciated. This is a question that has been around for a while now...I tried looking up the forums on Sun's website...but could not really find a solution to solve my problem...so here goes... I have implemented a file download bean which sends out binary data to the browser. The bean is instantiated by a JSP page. To make sure browsers don't cache response I do: response.setHeader(Cache-Control, no-cache); response.setHeader(Pragma, no-cache); response.setDateHeader(max-age, 0); response.setDateHeader(Expires, 0); while sending out the file and on every other JSP page on the site. However, for some reason the JSP page accessed immediately after downloading a file contains portions of a binary stream on the top of the page followed by HTML. I am confident the server is not resending the data again...(confirmed it with ethereal and nescape works too)...so I dont know what I am doing wrong...or what I should do to get it right...Any suggestions ot opinions on this? Note that the headers work perfectly fine while navigating through JSP pages. Thanks Prashanth __ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JDBC Realm MS SQL 2000
Here is a working example: Realm name=IISRealm className=org.apache.catalina.realm.JDBCRealm debug=99 driverName=com.microsoft.jdbc.sqlserver.SQLServerDriver connectionURL=jdbc:microsoft:sqlserver://xxx.mhsoftware.com:1433;DatabaseNa me=MyData;ProgramName=My Web Application;SelectMethod=cursor connectionName=MyUser connectionPassword=MyUser userTable=vWebUsers userNameCol=j_username userCredCol=Password userRoleTable=WebRoles roleNameCol=role_name / The application select method on the connection URL is required. -Original Message- From: SĆøren Blidorf [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 5:36 AM To: [EMAIL PROTECTED] Subject: JDBC Realm MS SQL 2000 Hi. I am trying to create a realm login. When I use a mysql, MS Access or Oracle DB it works just fine. But when I try with MS SQL 2000 server it just does not work. Can anybody tell me why? SĆøren Blidorf Nolas Consulting Gustav Wiedsvej 9 DK-2860 SĆøborg Telefon: +45 39676513 Direkte: +45 61676513 Web: www.nolas.dk - 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]
Have a jakarta-tomcat version question
I have downloaded the jakarta tomcat version 4.1.18 I was reading the documentation from the link provided on this page http://wwfcanon.panda.org/index.jsp Now when I did that I read the introduction and now on the install and running part. I clicked on that link: http://wwfcanon.panda.org/tomcat-docs/RUNNING.txt Now I saw installing and running the version 4.0 I just want to know before I read the installation file and setup tomcat that wondering if this is the correct version. Because doesn't version 4.1.18 mean version 4.1? Thanks just want to make sure i'm doing the right thing. Thanks George __ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Can't get Servlet Inputstream
As far as the exception it depends on whether I try to do a getInputSteam or getReader call on the request. If I use getReader, I get an exception that says getInputSteam has already been called. If I change the call to getInputStream I always get nothing back. Thank you, George -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 19, 2003 2:12 PM To: Tomcat Users List Subject: RE: Can't get Servlet Inputstream Howdy, Very interesting. Interesting enough that I want to try to reproduce it myself, but my local tomcat instance is running a 12-hour long performance/stress profile. So in the meantime, let me ask this: - Which version of tomcat? - Which JDK? - Does getReader() work? - Are any exceptions thrown by the getInputStream request? - Are there any relevant exceptions in the tomcat logs? - Have you verified your tomcat installation is good by running the examples? Yoav Shapira Millennium ChemInformatics -Original Message- From: Manty, George [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 19, 2003 2:48 PM To: Tomcat Users List Subject: Can't get Servlet Inputstream I am converting a servlet from using Jigsaw's Servlet methods to Tomcat's and I am curious why calling getInputstream on the request in Tomcat returns null. This calls works fine in Jigsaw receiving the same XML data, but returns null in Tomcat. Any help would be appreciated. Below is a simple example of the code that is failing: public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { ... System.out.println(Content lenght = +request.getContentLength()); // this line works ServletInputStream in = request.getInputStream(); // this returns null, why? ... } BTW - I can read the request header and content length fine from the request, just can't get the inputstream. Thank you, George - 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: Can't get Servlet Inputstream
The Servlet is listening for requests. When a request is made it sends a response. The request is one of the parameters to the servlet, and you can tell that it has content in it, but you can not get the content from the request with getInputStream and I don't know why that is. Maybe I am missing something, but it should work. Thank you, George -Original Message- From: Edson Alves Pereira [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 20, 2003 11:41 AM To: 'Tomcat Users List' Subject: RE: Can't get Servlet Inputstream IĀ“m donĀ“t understand why you need the InputStream from a Servlet once servlets just write text to clientĀ“s browser. And besides, what are you expecting to get from InputStream? To get FORM parameters and cookies and related things from client side you must call resquest methods. -- De: Manty, George[SMTP:[EMAIL PROTECTED]] Responder:Tomcat Users List Enviada: quinta-feira, 20 de fevereiro de 2003 13:34 Para: Tomcat Users List Assunto: RE: Can't get Servlet Inputstream As far as the exception it depends on whether I try to do a getInputSteam or getReader call on the request. If I use getReader, I get an exception that says getInputSteam has already been called. If I change the call to getInputStream I always get nothing back. Thank you, George -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 19, 2003 2:12 PM To: Tomcat Users List Subject: RE: Can't get Servlet Inputstream Howdy, Very interesting. Interesting enough that I want to try to reproduce it myself, but my local tomcat instance is running a 12-hour long performance/stress profile. So in the meantime, let me ask this: - Which version of tomcat? - Which JDK? - Does getReader() work? - Are any exceptions thrown by the getInputStream request? - Are there any relevant exceptions in the tomcat logs? - Have you verified your tomcat installation is good by running the examples? Yoav Shapira Millennium ChemInformatics -Original Message- From: Manty, George [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 19, 2003 2:48 PM To: Tomcat Users List Subject: Can't get Servlet Inputstream I am converting a servlet from using Jigsaw's Servlet methods to Tomcat's and I am curious why calling getInputstream on the request in Tomcat returns null. This calls works fine in Jigsaw receiving the same XML data, but returns null in Tomcat. Any help would be appreciated. Below is a simple example of the code that is failing: public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { ... System.out.println(Content lenght = +request.getContentLength()); // this line works ServletInputStream in = request.getInputStream(); // this returns null, why? ... } BTW - I can read the request header and content length fine from the request, just can't get the inputstream. Thank you, George - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Can't get Servlet Inputstream
I am converting a servlet from using Jigsaw's Servlet methods to Tomcat's and I am curious why calling getInputstream on the request in Tomcat returns null. This calls works fine in Jigsaw receiving the same XML data, but returns null in Tomcat. Any help would be appreciated. Below is a simple example of the code that is failing: public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { ... System.out.println(Content lenght = +request.getContentLength()); // this line works ServletInputStream in = request.getInputStream(); // this returns null, why? ... } BTW - I can read the request header and content length fine from the request, just can't get the inputstream. Thank you, George - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Can't get Servlet Inputstream
From the exception thrown it appears as though getinputstream has already been called. I am using the embedded tomcat class to start Tomcat 4.1.18. I have to go now, but I can provide the exact exception thrown later. Thank you, George -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 19, 2003 2:12 PM To: Tomcat Users List Subject: RE: Can't get Servlet Inputstream Howdy, Very interesting. Interesting enough that I want to try to reproduce it myself, but my local tomcat instance is running a 12-hour long performance/stress profile. So in the meantime, let me ask this: - Which version of tomcat? - Which JDK? - Does getReader() work? - Are any exceptions thrown by the getInputStream request? - Are there any relevant exceptions in the tomcat logs? - Have you verified your tomcat installation is good by running the examples? Yoav Shapira Millennium ChemInformatics -Original Message- From: Manty, George [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 19, 2003 2:48 PM To: Tomcat Users List Subject: Can't get Servlet Inputstream I am converting a servlet from using Jigsaw's Servlet methods to Tomcat's and I am curious why calling getInputstream on the request in Tomcat returns null. This calls works fine in Jigsaw receiving the same XML data, but returns null in Tomcat. Any help would be appreciated. Below is a simple example of the code that is failing: public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { ... System.out.println(Content lenght = +request.getContentLength()); // this line works ServletInputStream in = request.getInputStream(); // this returns null, why? ... } BTW - I can read the request header and content length fine from the request, just can't get the inputstream. Thank you, George - 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: [OFFTOPIC] MySQL Exception - Need Suggestions
Probably something in the JDBC driver, or in the chain of code is setting AutoCommit and this is causing it error out. -Original Message- From: Geoff Peters [mailto:[EMAIL PROTECTED]] Sent: 03 February, 2003 8:58 AM To: [EMAIL PROTECTED] Subject: [OFFTOPIC] MySQL Exception - Need Suggestions Somewhat offtopic, I apologize if it is completely, I know there are some SMART people on this list (ass kissing always helps :) Tomcat 4.1.18 MySQL 3.22.32 MySQL Connector J 2.0.14 Trying to establish a connection from client to server, getting a MySQL Versions Older than 3.23.15 do not support transactions exception. Fine - I really don't care as I just need to build a 2 table form input application, really simple, I don't really care about transactions, so why am I getting this error through Tomcat when I try to start? Is there something I need to configure somewhere before I try to download and update MySQL? Thanks, Geoff Geoff Peters, BScFE, AIT Phone : (441) 296-9640 Applications DeveloperFax: (441) 292-1509 Logic Communications E-mail : [EMAIL PROTECTED] 12 Par-La-Ville Road WWW: http://www.logic.bm Hamilton, Bermuda HM JX - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How do you get auto-deploy to work right using embedded Tomcat
I have used a variation of the embedded tomcat example code from the onjava site (http://www.onjava.com/pub/a/onjava/2002/04/03/tomcat.html?page=1). The problem I am having is that I can not get the WAR file auto-deploy mechanism to work the way that it does in stand-alone Tomcat. The functionality that I am trying to get is to have Tomcat 4.1.12 unpack the WAR files in the webapps directory so that the URL to access the WAR file contents is the name of the WAR file. For example, say that I have a WAR file named CoolStuff.WAR. This WAR file contains tag libraries that are in JAR files, jsp pages and html pages. It contains a file called index.html that is in the root directory of the WAR file. In standalone Tomcat when you place this WAR file in the webapps directory, to access the index.html file you would load the following URL: http://localhost:8080/CoolStuff/ , but using the embedded Tomcat you run into problems. If you use it as is, the WAR file in the webapps directory does not expanded, so you have to do one of three things (as far as I can tell so far): 1. Change the example so that these lines: // Create the ROOT context Context context = embedded.createContext(, getPath() + /webapps/ROOT); host.addChild(context); read: // Create the ROOT context - not really anymore Context context = embedded.createContext(, getPath() + /webapps); host.addChild(context); 2. Add a HostConfig LifeCycleListener: HostConfig hConfig= new HostConfig(); ... host.addLifecycleListener(hConfig); 3. Upgrade to Tomcat 4.1.18 and use the StandardHost APIs to deployWebApps: // Create a default virtual host host = (StandardHost) embedded.createHost(localhost, tempPath.toString()); host.setUnpackWARs(true); host.setAutoDeploy(true); None of these solutions provide the same functionality that stand-alone Tomcat does, so I am still searching for a solution that does. The problem with the first solution is that the ROOT context can not be added with , which means that you have type out ROOT in the URL. Which is different than stand-alone Tomcat. The problem with the second solution is that you get errors when the WAR file unpacks, because the JAR files won't unpack properly. It seems to be related to this issue: http://www.mail-archive.com/tomcat-dev@jakarta.apache.org/msg37181.html that does not appear to be fixed yet. The problem with the second solution is that although the WAR files get deployed, the WAR file name is not used in the URL, so in the example stated above instead of loading the index.html file from http://localhost:8080/CoolStuff/ it would load from http://localhost:8080/ which is not the way stand-alone tomcat works. It seems to me like there should be a simple solution to this, but I have not found one yet (besides not using embedded Tomcat). Any help would be appreciated. Thank you, George - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Apache-Tomcat combination, Best Practices
Hi, First of all I assume I am posting to the correct mailing list, ignore this otherwise. I am trying to configure Apache Server Tomcat for running my JSPs static pages. Can anybody give me the best way of doing this. Where should I place my static HTML files where should I place my JSP pages. Also how do I redirect all the JSP requests to the Tomcat. I basically want all my static pages to be processed by Apache server the JSP pages by tomcat. I am Using Apache2,tomcat-4.1.18 mod_jk2 connector. George __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: new user: servlets dont run in new apps
yes ! thank you Sumit. the servlet-mapping element fixed it. i need to go back and read the docs more. George Shrotriya, Sumit wrote: Do you have a servlet-mapping in your web.xml Something like this might do for you(Change the MyClass value accordingly) ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN http://java.sun.com/j2ee/dtds/web-app_2.2.dtd; web-app display-nameMyClass/display-name servlet servlet-nameMyClass/servlet-name servlet-classMyClass/servlet-class /servlet servlet-mapping servlet-nameMyClass/servlet-name url-pattern/servlet/MyClass/url-pattern /servlet-mapping /web-app ~Sumit -Original Message- From: George Metz [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 07, 2003 4:35 PM To: [EMAIL PROTECTED] Subject: new user: servlets dont run in new apps what simple thing am i missing ? (probably something in the documentation, but i havent found it so far) PROBLEM: cannot get servlets to run in a NEW webapp. the ones that come with tomcat work ok, except for the sample servlet in the Developer's Guide. this built-in one doesnt run either: http://127.0.0.1:8080/tomcat-docs/appdev/sample/web/hello (gives: HTTP Status 404 The requested resource (/tomcat-docs/appdev/sample/web/hello) is not available As for my new apps: - a simple html page in webapps\george runs ok - a tomcat example jsp i modified and dropped into webapps/george/Jsp runs fine. called thusly: http://127.0.0.1:8080/george/Jsp/geo_hello.jsp?yakittyyak - i successfully copied/renamed/modified/compiled and ran a servlet under examples\WEB-INF\classes, even referenced it successfully in examples\WEB-INF\web.xml like so : servlet servlet-namegeorghe/servlet-name servlet-classGeorgeHello/servlet-class /servlet works like a champ when called thusly: http://127.0.0.1:8080/examples/servlet/GeorgeHello?username=CletusT or http://127.0.0.1:8080/examples/servlet/georghe?username=CletusT BUT same GeorgeHello class servlet placed under webapps\george\WEB-INF\classes wont run. gives the dreaded 404 HTTP Status 404 The requested resource (/george/servlet/GeorgeHello) is not available Have same problem with David Flanagan's (OReilly) javaexamples2 app (installed it from a .war file, tomcat extracted it). JSPs run fine, servlets dont. (george app directories were set up manually, but carefully. have checked permissions/properties on the directories several times. look the same as the examples app to me. ) thanks! George -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
new user: servlets dont run in new apps
what simple thing am i missing ? (probably something in the documentation, but i havent found it so far) PROBLEM: cannot get servlets to run in a NEW webapp. the ones that come with tomcat work ok, except for the sample servlet in the Developer's Guide. this built-in one doesnt run either: http://127.0.0.1:8080/tomcat-docs/appdev/sample/web/hello (gives: HTTP Status 404 The requested resource (/tomcat-docs/appdev/sample/web/hello) is not available As for my new apps: - a simple html page in webapps\george runs ok - a tomcat example jsp i modified and dropped into webapps/george/Jsp runs fine. called thusly: http://127.0.0.1:8080/george/Jsp/geo_hello.jsp?yakittyyak - i successfully copied/renamed/modified/compiled and ran a servlet under examples\WEB-INF\classes, even referenced it successfully in examples\WEB-INF\web.xml like so : servlet servlet-namegeorghe/servlet-name servlet-classGeorgeHello/servlet-class /servlet works like a champ when called thusly: http://127.0.0.1:8080/examples/servlet/GeorgeHello?username=CletusT or http://127.0.0.1:8080/examples/servlet/georghe?username=CletusT BUT same GeorgeHello class servlet placed under webapps\george\WEB-INF\classes wont run. gives the dreaded 404 HTTP Status 404 The requested resource (/george/servlet/GeorgeHello) is not available Have same problem with David Flanagan's (OReilly) javaexamples2 app (installed it from a .war file, tomcat extracted it). JSPs run fine, servlets dont. (george app directories were set up manually, but carefully. have checked permissions/properties on the directories several times. look the same as the examples app to me. ) thanks! George
RE: performance
Download something like Jakarta JMeter, write a test case that mimic normal usage of your application, and run it against each server. -Original Message- From: Lindomar [mailto:[EMAIL PROTECTED]] Sent: 16 December, 2002 10:01 AM To: Tomcat Users List Subject: performance First, i would like to say thanks for all the people that help in this user list. Thanks Michael for your help on e-mail: session timeout. Well, i have more one question... :-) How can i compare the performance of tomcat with another containers jsp? For example tomcat and resin, tomcat and Blazix, etc.. Who has a good comments about this? What think...so a critical analisys. Thanks again. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Simultaneous request from same IP
Let us apply Occam's Razor here. You probably haven't heard of it so I will repeat it here and show the application to your situation. Quite simply, it says that when you have two competing theories to explain something, the simplest theory is usually the correct one. So, let's apply this: Theory 1 proposed by you: Tomcat is horribly broken, and unthread safe. It has major problems processing more than one simultaneous request to a servlet and no one but you has noticed this. Hundreds or thousands of developers and applications have not heretofore brought this to light, but you have. Theory 2 (proposed by several people on the list): Your application is not thread safe, and is broken. Occam's Razor says that your program is broken, and you need to fix it. George Sexton MH Software, Inc. Voice: 303 438 9585 http://www.mhsoftware.com -Original Message- From: Chris Bick [mailto:[EMAIL PROTECTED]] Sent: 16 December, 2002 11:26 AM To: Tomcat Users List Subject: RE: Simultaneous request from same IP TrafficCop is thread safe because add() is synchronized. Regardless if trafficcop is thread safe or not the values that I get from HttpServletRequest should not be the same. If I were to take TrafficCop out of the servlet, I would get the same results in my servlet. I guess what I am saying is that TrafficCop should have nothing to do with the behavior that I am seeing inside the servlet. Right? -cb -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED]] Sent: Monday, December 16, 2002 1:05 PM To: Tomcat Users List Subject: Re: Simultaneous request from same IP But the same trafficCop instance is being used at the same time for 2 differnt requests. The trafficCop object has a method called add() which (seems to) acts on instance variables inside of the trafficCop object. This makes the trafficCop object not thread safe. -Tim Chris Bick wrote: Why does that effect the HttpServletRequest object? If you look at the code it evaluates the header and query string values before I access the trafficcop object. I will give it a try. -cb -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED]] Sent: Monday, December 16, 2002 12:40 PM To: Tomcat Users List Subject: Re: Simultaneous request from same IP Is TrafficCop.java thread safe? If not - that is your problem. Both requests are using the same trafficCop instance. -Tim Chris Bick wrote: No offense taken. I still can't believe that this problem may exist. If you can find a problem with my code, that would be much easy then getting a fix into tomcat. Thanks, -cb import javax.servlet.*; import javax.servlet.http.*; import java.io.*; import java.util.*; import java.net.*; /** * pTitle: /p * pDescription: /p * pCopyright: Copyright (c) 2002/p * pCompany: /p * @author not attributable * @version 1.0 */ public class TrafficCopServlet extends HttpServlet { private static final String CONTENT_TYPE_XML = text/xml; private static final String CONTENT_TYPE_HTML = text/html; /**@todo set DTD*/ private static final String DOC_TYPE = null; //Initialize global variables private TrafficCop trafficCop; public void init() throws ServletException { trafficCop = new TrafficCop(false); } //Process the HTTP Get request public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { PrintWriter out = response.getWriter(); try { if (request.getRequestURI().endsWith(/insert)) { response.setContentType(CONTENT_TYPE_XML); out.println(?xml version=\1.0\?); String pcpVersion = request.getHeader(PCP-Client-Version); String clientId = request.getHeader(PCP-Client-ID); String listenIP = request.getHeader(Listen-IP); String behindFirewall = request.getHeader(Behind-Firewall); String urn = request.getQueryString(); synchronized(System.out) { System.out.println(URN: + request.getQueryString()); System.out.println(request.getHeader(Listen-IP)); } //System.out.println(Listen-IP: + listenIP); if (pcpVersion == null || clientId == null || listenIP == null || behindFirewall == null || urn == null) { String error = errorBad Headers/error; out.println(error); return; } String xml = trafficCop.add(urn,new URL(null,pcp://+listenIP,new Handler()), new Boolean(behindFirewall).booleanValue(), 0); System.out.println(xml); out.println(xml); } else if (request.getRequestURI().endsWith(/delete)) { response.setContentType(CONTENT_TYPE_XML); out.println(?xml version=\1.0\?); String clientId = request.getHeader(PCP-Client-ID); String sessionId = request.getHeader(My-Session-ID); String deleteSessionId = request.getHeader(Delete-Session-ID); String listenIP
RE: Request/Connection Timeout
As others have said, you need to re-design your app. Personally, I would initiate the computation in a background thread and mail the results to the user as a PDF document. Further, I would use a queue design so that only one computation is running at a time. What will your app do if the user hits back, and keeps re-submitting? What will your app do if Monday morning, 40 managers come in and request a big report? George Sexton MH Software, Inc. Home of Connect Daily Web Calendar Software http://www.mhsoftware.com/connectdaily.htm Voice: 303 438 9585 -Original Message- From: GUNTURU, SRINIVAS [AG-Contractor/1000] [mailto:[EMAIL PROTECTED]] Sent: 11 December, 2002 8:28 AM To: '[EMAIL PROTECTED]' Subject: Request/Connection Timeout Hi, We are using Tomcat 4.0.4 on Apache. Right now when we have a request that takes longer than 300 seconds(5 minutes), connections are timing out and we are getting various errors. How do we go about increasing this timeout so that the request does not timeout. Unfortunately, The analysis that runs on the server is very computational intensive and we have done a lot of tuning and most of the times it does run under 5 minutes however depending on server load and database load we do run over 5 minutes frequently and error out. Ideally, we would like to not have this restriction. I have searched in the archives and Tomcat documentation and have not found anything. Thanks for your help. Srinivas -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Y or N Q re: WEB-INF/lib
I don't think you answer is quite right. Classes will not be automatically served under 4.0.6 unless the default invoker is configured in server.xml. Classes must be explicitly named in the application deployment descriptor to be served otherwise. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED]] Sent: 09 December, 2002 10:51 AM To: Tomcat Users List Subject: RE: Y or N Q re: WEB-INF/lib Hi, You have to restart the webapp. And for WEB-INF/classes, they'll only be automatically picked up if your context has reloadable=true in its configuration. Yoav Shapira Millennium ChemInformatics -Original Message- From: Price, Erik [mailto:[EMAIL PROTECTED]] Sent: Monday, December 09, 2002 12:24 PM To: [EMAIL PROTECTED] Subject: Y or N Q re: WEB-INF/lib Sorry to trouble you with this simple yes or no question (Tomcat 4.0.6): Classes placed in $CATALINA_HOME/myWebApp/WEB-INF/classes will be automatically picked up by Tomcat and served. Is the same true for JAR'd classes placed in $CATALINA_HOME/myWebApp/WEB-INF/lib ? or do I have to restart the webapp Thank you, Erik -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Y or N Q re: WEB-INF/lib
You need to re-read the original message. You are reading more into the message than the person wrote. Classes placed in $CATALINA_HOME/myWebApp/WEB-INF/classes will be automatically picked up by Tomcat and served. Is the same true for -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED]] Sent: 09 December, 2002 11:23 AM To: Tomcat Users List Subject: RE: Y or N Q re: WEB-INF/lib Howdy, He wasn't talking about serving anything to the user ;) Not about servlets specifically, which is where the invoker comes in. Just the class loader reloading modified classes. Yoav Shapira Millennium ChemInformatics -Original Message- From: Sexton, George [mailto:[EMAIL PROTECTED]] Sent: Monday, December 09, 2002 1:17 PM To: Tomcat Users List Subject: RE: Y or N Q re: WEB-INF/lib I don't think you answer is quite right. Classes will not be automatically served under 4.0.6 unless the default invoker is configured in server.xml. Classes must be explicitly named in the application deployment descriptor to be served otherwise. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED]] Sent: 09 December, 2002 10:51 AM To: Tomcat Users List Subject: RE: Y or N Q re: WEB-INF/lib Hi, You have to restart the webapp. And for WEB-INF/classes, they'll only be automatically picked up if your context has reloadable=true in its configuration. Yoav Shapira Millennium ChemInformatics -Original Message- From: Price, Erik [mailto:[EMAIL PROTECTED]] Sent: Monday, December 09, 2002 12:24 PM To: [EMAIL PROTECTED] Subject: Y or N Q re: WEB-INF/lib Sorry to trouble you with this simple yes or no question (Tomcat 4.0.6): Classes placed in $CATALINA_HOME/myWebApp/WEB-INF/classes will be automatically picked up by Tomcat and served. Is the same true for JAR'd classes placed in $CATALINA_HOME/myWebApp/WEB-INF/lib ? or do I have to restart the webapp Thank you, Erik -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
load balancing with in-process workers in 3.3.1
Under Tomcat 3.3.1 on linux, is it possible/reasonable to have multiple in-process workers and use a loadbalancing worker with them? I'd like to set up workers inprocess1 and inprocess2 have them load balanced by worker loadbalancer If I'm deciphering the docs correctly, the mod_jk.conf file would include something similar to: JkMount /servlet/* loadbalancer and I would setup workers.properties with (in addition to the inprocess specific properties): worker.list=loadbalancer ... worker.loadbalancer.balanced_workers=inprocess1, inprocess2 Thanks, George McKinney [EMAIL PROTECTED] = An experienced developer knows that it is seldom wise to prefix a demonstration with anything more predictive than Watch this - unless there is a good test suite in place. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: load balancing with in-process workers in 3.3.1
Hmmm, after digging through some more of the docs, it looks like the inprocess workers aren't available for Apache. Is this correct? But I'm still curious. would the setup I outlined work on a server on which the inprocess workers are supported? George. - Original Message - From: George McKinney [EMAIL PROTECTED] To: Tomcat User [EMAIL PROTECTED] Sent: Monday, December 09, 2002 7:46 PM Subject: load balancing with in-process workers in 3.3.1 Under Tomcat 3.3.1 on linux, is it possible/reasonable to have multiple in-process workers and use a loadbalancing worker with them? I'd like to set up workers inprocess1 and inprocess2 have them load balanced by worker loadbalancer If I'm deciphering the docs correctly, the mod_jk.conf file would include something similar to: JkMount /servlet/* loadbalancer and I would setup workers.properties with (in addition to the inprocess specific properties): worker.list=loadbalancer ... worker.loadbalancer.balanced_workers=inprocess1, inprocess2 Thanks, George McKinney [EMAIL PROTECTED] = An experienced developer knows that it is seldom wise to prefix a demonstration with anything more predictive than Watch this - unless there is a good test suite in place. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: New install, can't get manager or admin to work..
OK I got this to work with your configuration. Except I am using: Windows 2000 Professional SP3, Tomacat 4.1.16 (Beta), j2sdk1.4.0_01. In %Catalina_Home%\conf\tomcat-users.xml leave what is already there alone. Here is mine (notice the order; that is very important) ?xml version='1.0' encoding='utf-8'? tomcat-users role rolename=admin/ role rolename=manager/ role rolename=role1/ role rolename=tomcat/ user username=admin password= roles=admin/ user username=manager password= roles=manager/ user username=role1 password=tomcat roles=role1/ user username=tomcat password=tomcat roles=tomcat/ user username=both password= roles=admin,manager/ /tomcat-users Save this. Do this with Tomcat not running. Then startup Tomcat. You should be able to access the Manager and Admin through the Tomcat Startup page. If you cannot stop Tomacat and restart it. It took me twice. HTH -- George Hester __ Mike Warne [EMAIL PROTECTED] wrote in message 38DBEF1546BBDD4CB9B1F6F724E345026244A2@hnl1-exchange3">news:38DBEF1546BBDD4CB9B1F6F724E345026244A2@hnl1-exchange3... Hi, I've tried looking through the docs, and the Manager web app howto, but nothing seems to work. I have a user set up with a role of admin, and a user set up with role of manager in /conf/tomcat-users.xml. admin app says incorrect user or password, manager says 403 error Access to the requested resource has been denied There are no logs in the logs directory, so I have no clue what could be wrong. My personal workstation setup is: Win2K, j2sdk1.4.0_02, Tomcat4.1.12. JSP/Servlet Examples work.. Any hints? Thanks, Mike Warne -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: DNS NAMES
Let me really cut right down to the chase here: Valid characters in a domain name are: a-z 0-9 (digits) - (Hyphen) . (Period) Look at the RFC, and read the BNF definition for an identifier. -Original Message- From: micael [mailto:[EMAIL PROTECTED]] Sent: 04 December, 2002 4:22 PM To: Tomcat Users List Subject: RE: DNS NAMES But don't be misled. Noel is giving you direct answer to the way you put the question, and I suspect, as others before me have, that you don't mean the question the way you are expressing it. You would be better served saying why you want to do this, because you are really going to a lot of this and that over something that seems to be really unimportant. What you want to do probably can be done, if you state what the real objective is. Of course, making whatever into a DNS name is not your goal, we can surmise. Micael At 06:03 PM 12/4/2002 -0500, you wrote: I want to create a DNS name itself like thatis it possible. As I said, the DNS name is www.test.com. The /final is not part of the DNS. If you want the short answer, it is: NO, by definition. If you want to know WHY: DNS is DOMAIN Naming System. The /final is a local resource, not the domain. --- Noel -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Micael --- This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Martin GEORGE/VIENNA/UNO is out of the office.
I will be out of the office starting 15/11/2002 and will not return until 24/11/2002. I will respond to your message when I return. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Changing Keystore location when embedding Tomcat
I am taking advantage of the Embedded tomcat class in Tomcat 4.12 to embed tomcat in an application. I am trying to determine how to change the location of the default keystore. This is normally done by modifying the server.xml file, but since the embedded code does not use the server.xml file I need to find a programmatic way to change the location. The following is an example of the code to create the connector: Connector connector = embedded.createConnector(null, 443, true); Since the embedded code ignores the server.xml file and since the API for creating the connector does not allow you to change the keystore location, I looked at the connector class. It appears that the connector class does not allow you to change the location for the keystore file either, but I could be missing something. Is it possible to change the keystore location, without modifying the core Tomcat classes? Thank you, George -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Install Tomcat 4.1.12 on WinXP
You hit the nail on the head. By default, the hosts file in Windows doesn't exist, so localhost isn't resolvable. I had to take this into account when I wrote the installer for my software. -Original Message- From: Turner, John [mailto:JTurner;AAS.com] Sent: 14 November, 2002 9:59 AM To: 'Tomcat Users List' Subject: RE: Install Tomcat 4.1.12 on WinXP Can your computer resolve localhost to 127.0.0.1? John -Original Message- From: T S [mailto:ts52722;yahoo.com] Sent: Thursday, November 14, 2002 11:16 AM To: Tomcat User Subject: Install Tomcat 4.1.12 on WinXP I have installed Tomcat 4.1.12 on WinXP following the directions in JavaServer Pages by Hans Bergsten - pages 31-37. The startup appears to be correct but when I attempt to use IE I get errors. Here are the Command Prompt Window output messages from the startup command: C:\Program Files\Jakarta\jakarta-tomcat-4.1.12\binstartup Using CATALINA_BASE: C:\Program Files\Jakarta\jakarta-tomcat-4.1.12 Using CATALINA_HOME: C:\Program Files\Jakarta\jakarta-tomcat-4.1.12 Using CATALINA_TMPDIR: C:\Program Files\Jakarta\jakarta-tomcat-4.1.12\temp Using JAVA_HOME: C:\Program Files\j2sdk1.4.1 C:\Program Files\Jakarta\jakarta-tomcat-4.1.12\bin Here are the Tomcat Window output messages from the startup command: Nov 14, 2002 6:09:20 AM org.apache.commons.modeler.Registry loadRegistry INFO: Loading registry information Nov 14, 2002 6:09:20 AM org.apache.commons.modeler.Registry getRegistry INFO: Creating new Registry instance Nov 14, 2002 6:09:21 AM org.apache.commons.modeler.Registry getServer INFO: Creating MBeanServer Nov 14, 2002 6:09:21 AM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on port 8080 Starting service Tomcat-Standalone Apache Tomcat/4.1.12 Nov 14, 2002 6:09:26 AM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on port 8080 Nov 14, 2002 6:09:26 AM org.apache.jk.common.ChannelSocket init INFO: JK2: ajp13 listening on tcp port 8009 Nov 14, 2002 6:09:26 AM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/78 config=C:\Program Files\Jakarta\jakarta-tomcat- 4.1.12\conf\jk2.properties When I go to Internet Explorer version: 6.00.2600..xpclient.010817-1148 and enter the following: Address: http://localhost:8080/ I get an IE page stating This computer does not have an Internet connection My computer is not connected to the internet when I perform this test, so the message is correct, but it appears that it is not looking at port 8080. What do I need to change to get this to work? Thanks for your answers. Tim - Do you Yahoo!? Yahoo! Web Hosting - Let the expert host your site -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Tomcat 4 JNI Help
Pretty obvious isn't it? The JVM can't find the library. Since you didn't tell anyone what OS you are using, research how native libraries are loaded for your OS, put your native code there, and try again. -Original Message- From: St. Louis, Thomas (Research) [mailto:stlouis;crd.ge.com] Sent: 13 November, 2002 3:09 PM To: '[EMAIL PROTECTED]' Subject: Tomcat 4 JNI Help I don't understand why I'm getting the following UnsatisfiedLinkError. The static initializer is finding and loading my library but when I then try to my method which calls native Method throws exception. Any thoughts please! Apache Tomcat/4.0.4 Starting service Tomcat-Apache Apache Tomcat/4.0.4 JMatBean constructor JMatLink library loaded! JMatLink constructor JMatBean: jmat instance: Thread[Thread-2,5,main] Number of Java-Threads: 24 Name of active Java-Threads: Thread-3 active Java-Thread is Daemon: true JMatLink run method switch status: 0null Number of Java-Threads: 24 Name of active Java-Threads: Thread-3 active Java-Thread is Daemon: true JMatLink run method switch status: 13 /automation java.lang.UnsatisfiedLinkError: engOpenSingleUseNATIVE at com.gefa.JMatLink.engOpenSingleUseNATIVE(Compiled Code) at com.gefa.JMatLink.run(Compiled Code) at java.lang.Thread.run(Compiled Code) g GE Global Research Center _ __ Tom St.Louis Computer Scientist Advanced Computing Technologies One Research Circle, K1-5B32 Niskayuna, NY 12309 8*833-4900 [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Java returns bunk date!?
If you don't need the time portion, I once wrote a replacement for the calendar that handles just dates. Unlike all of the bizarre manipulations required by a calendar, with mine you can just call object.add(7) to add 7 days to a date. It uses an internal Julian date field. Checking for elapsed number of days is a straight integer subtraction. It pretty closely mimics the date capabilities of xBase variants. Personally, I never use calendars. They are just too obtuse and error prone. If you are interested you can view the Javadocs at: http://www.mhsoftware.com/resources/jar/doc/ The class name is SaneDate. Right now, it's GPLd but I plan on changing the license to LGPL. George Sexton MH Software, Inc. Home of Connect Daily Web Calendar Software http://www.mhsoftware.com/connectdaily.htm Voice: 303 438 9585 -Original Message- From: Andreas Probst [mailto:andpro77;gmx.net] Sent: 11 November, 2002 12:43 AM To: Tomcat Users List Subject: Re: Java returns bunk date!? Hi Josh, yes it is, but in my opinion it's a bit hidden. As starting January with 0 isn't what one would expect, it should be stressed more in the docs. in java.util.Calendar: public static final int MONTH Field number for get and set indicating the month. This is a calendar-specific value. The first month of the year is JANUARY which is 0; the last depends on the number of months in a year. in java.util.GregorianCalendar public GregorianCalendar(int year, int month, int date) Constructs a GregorianCalendar with the given date set in the default time zone with the default locale. Parameters: year - the value used to set the YEAR time field in the calendar. month - the value used to set the MONTH time field in the calendar. Month value is 0-based. e.g., 0 for January. date - the value used to set the DATE time field in the calendar. Andreas On 11 Nov 2002 at 10:15, Josh G wrote: Ah thanks. Is this covered in the docs and I just missed it? -Josh -- And can you tell me doctor why I still can't get to sleep? And why the channel 7 chopper chills me to my feet? And what's this rash that comes and goes, can you tell me what it means? God help me, I was only 19 - Original Message - From: Chakradhar Tallam [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Monday, November 11, 2002 9:44 AM Subject: RE: Java returns bunk date!? because java's month index starts from 0 ends at 11. 0 - JAN 1 - FEB ... 11 - DEC -Original Message- From: Josh G [mailto:josh;gfunk007.com] Sent: Monday, 11 November 2002 10:41 AM To: Tomcat Users List Subject: Java returns bunk date!? I'm having a weird problem with tomcat, java is giving me last month's date! It's 11 nov on this machine, but java is returning 11 oct :( I don't see how this could happen? -Josh -- And can you tell me doctor why I still can't get to sleep? And why the channel 7 chopper chills me to my feet? And what's this rash that comes and goes, can you tell me what it means? God help me, I was only 19 -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: JDBC Error, cannot establish socket - Tomcat 4.0.6/SQL Server 2000
Change jdbc:inetdae7:10.10.0.84:1433?database=TibcoClearHouse to jdbc:microsoft:sqlserver://10.10.0.84:1433;DatabaseName=TibcoClearHouse George Sexton MH Software, Inc. Home of Connect Daily Web Calendar Software http://www.mhsoftware.com/connectdaily.htm Voice: 303 438 9585 -Original Message- From: John Mattos [mailto:mattosj;yahoo.com] Sent: 12 November, 2002 12:55 PM To: Tomcat Users List Subject: RE: JDBC Error, cannot establish socket - Tomcat 4.0.6/SQL Server 2000 Hmm. I have the app specified in my server.xml as follows. dows anything jump out at you? I even used the IP instead of the DNS entry for the DB machine !-- iN DEMAND Clearinghouse Context -- Context docBase=indemand path=/indemand reloadable=true source=indemand Resource name=jdbc/indemand auth=SERVLET type=javax.sql.DataSource/ ResourceParams name=jdbc/indemand parameter nameuser/name valuetibco_user/value /parameter parameter namepassword/name valuetibco_user/value /parameter parameter namedriverClassName/name valuecom.microsoft.jdbc.sqlserver.SQLServerDriver/value /parameter parameter namedriverName/name valuejdbc:inetdae7:10.10.0.84:1433?database=TibcoClearHouse/value /parameter /ResourceParams /Context Turner, John [EMAIL PROTECTED] wrote: Yup. It's network related. Probably the name of the database server can't be resolved into an IP address, or a connection request is being made on the wrong port. SQL Server's default port is 1433, I believe. John -Original Message- From: John Mattos [mailto:mattosj;yahoo.com] Sent: Tuesday, November 12, 2002 2:48 PM To: [EMAIL PROTECTED] Subject: JDBC Error, cannot establish socket - Tomcat 4.0.6/SQL Server 2000 I'm getting the following error trying to connect to my SQL Server Database java.sql.SQLException: [Microsoft][SQLServer JDBC Driver]Error establishing socket. I'm using the driver com.microsoft.jdbc.sqlserver.SQLServerDriver, and the 3 necessary jar files are in C:\Tomcat4.0.6\lib (msbase.jar, msutil.jar and mssqlserver.jar) Any thoughts on this? Has anyone seen this before? John - Do you Yahoo!? U2 on LAUNCH - Exclusive medley videos from Greatest Hits CD -- To unsubscribe, e-mail: For additional commands, e-mail: - Do you Yahoo!? U2 on LAUNCH - Exclusive medley videos from Greatest Hits CD -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: windows iis machine + linux tomcat machine
Get the ISAPI redirector module and install it on IIS, configure it to point to the linux server. -Original Message- From: Jose Antonio Martinez [mailto:lfbbes;yahoo.es] Sent: 12 November, 2002 4:22 AM To: [EMAIL PROTECTED] Subject: windows iis machine + linux tomcat machine what do you think is the best way to make work together this configuration: windows iis machine + linux tomcat machine NFS? ___ Yahoo! Messenger Nueva versiĆ³n: Webcam, voz, y mucho mĆ”s Ā”Gratis! DescĆ”rgalo ya desde http://messenger.yahoo.es -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Rare request delay of 100 seconds
At this point, my only recommendation would be to upgrade the kernel to the current RedHat 7.2 patch release of 2.4.18-7.x There have been a ton of things fixed in 9 kernel releases and this could be related to one of them. -Original Message- From: Randy Watler [mailto:rwatler;finali.com] Sent: 11 November, 2002 10:34 AM To: Tomcat Users List Subject: Re: Rare request delay of 100 seconds Jeff, Thanks for the response. I did want to clarify... we are seeing very rare requests that are delayed by 100 seconds, (not 100ms). Anything measured in seconds seems to be very slow for protocol issues like these, no? Randy Watler Finali Corporation Jeff Tulley wrote: Could it simply be the Nagle problem? There are two algorithms commonly used with TCP/IP, trying to make things more efficient, delayed ack, and Nagle's algorithm. Unfortunately they don't work well together. You can turn off Nagle's algorithm, but that could cause a lot of tinygrams on the wire. Same thing with delayed acks (there the tinygram is the extra acks). I don't know if RedHat has implemented a fix for the problem, but there are a few proposed fixes, one of them called the Doupnik algorithm. I'm not sure if this would be your problem, but it sure sounds like it. Anytime that I've seen somebodies requests coming in at such a regular interval (200 ms is typical, but 100 ms is common also), it has almost always turned out to be this problem. Here are some links from a colleague on the problem and a potential solution: Look here for sample source code. http://netlab1.usu.edu/pub/misc/newpolicy.sources/ Look here for the explanation of the problem and the solution http://netlab1.usu.edu/pub/misc/draft-doupnik-tcpimpl-nagle-mode-00.txt Jeff Tulley ([EMAIL PROTECTED]) (801)861-5322 Novell, Inc., the leading provider of Net business solutions http://www.novell.com [EMAIL PROTECTED] 11/9/02 9:25:53 AM George, Oops! I was off by one on the RedHat version. Here is the whole story: RedHat 7.2 Linux version: 2.4.9-31smp gcc version: 2.96 Sorry I forgot to include this information up front! Randy Watler Finali Corporation Sexton, George wrote: What kernel version are you running? -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: windows iis machine + linux tomcat machine
You could use SMB to mount the files from the Windows machine to the Linux machine. If you need high performance, this will have a hit. Alternatively, you could write a shell script that will sync the files on Windows over to the Linux machine using ftp. ncftpget is pretty nice for an ftp program that could keep them in synch. If you have to have immediate updates, then SMB is the way to go. If you can live with a delay of a few minutes, then an FTP program is the way to go. -Original Message- From: Jose Antonio Martinez [mailto:lfbbes;yahoo.es] Sent: 12 November, 2002 1:55 PM To: Tomcat Users List Subject: Re: windows iis machine + linux tomcat machine i know. The question here is that it is needed that jsp files be on the tomcat machine (linux). People have an ftp account in the windows machine but some files must go to the linux machine (jsp ones) - Original Message - From: Sexton, George [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, November 12, 2002 9:31 PM Subject: RE: windows iis machine + linux tomcat machine Get the ISAPI redirector module and install it on IIS, configure it to point to the linux server. -Original Message- From: Jose Antonio Martinez [mailto:lfbbes;yahoo.es] Sent: 12 November, 2002 4:22 AM To: [EMAIL PROTECTED] Subject: windows iis machine + linux tomcat machine what do you think is the best way to make work together this configuration: windows iis machine + linux tomcat machine NFS? ___ Yahoo! Messenger Nueva versiĆ³n: Webcam, voz, y mucho mĆ”s Ā”Gratis! DescĆ”rgalo ya desde http://messenger.yahoo.es -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org ___ Copa del Mundo de la FIFA 2002 El Ćŗnico lugar de Internet con vĆdeos de los 64 partidos. Ā”ApĆŗntante ya! en http://fifaworldcup.yahoo.com/fc/es/ -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Rare request delay of 100 seconds
What kernel version are you running? -Original Message- From: Randy Watler [mailto:rwatler;finali.com] Sent: 08 November, 2002 5:08 PM To: Tomcat Users List Subject: Re: Rare request delay of 100 seconds George, This is a non-SSL secure connector that is fronted by an SSL hardware. This means that Tomcat is seeing the traffic as plain HTTP. The packet data we traced was to the Tomcat server itself, so the SSL hardware seems to have been eliminated from the equation. The connector is set to https and secure so that Tomcat servlets know they are served in a secure context. Randy Watler Finali Corporation Sexton, George wrote: If you don't use SSL do you have the same problem? -Original Message- From: Randy Watler [mailto:rwatler;finali.com] Sent: 08 November, 2002 4:41 PM To: Tomcat Users List Subject: Re: Rare request delay of 100 seconds George, Thanks for the query. Here is the connector configuration: Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8543 minProcessors=8 maxProcessors=128 enableLookups=false acceptCount=64 debug=0 connectionTimeout=30 scheme=https secure=true useURIValidationHack=false/ So, I think we have it setup right, no? Randy Watler Finali Corporation Sexton, George wrote: Do you have the connector doing reverse DNS resolution of hosts? -Original Message- From: Randy Watler [mailto:rwatler;finali.com] Sent: 08 November, 2002 4:22 PM To: [EMAIL PROTECTED] Subject: Rare request delay of 100 seconds We are using 4.1.12 standalone on RedHat Linux 7.3 servers and having rare HTTP requests delayed on their way into the Coyote HTTP/1.1 connectors. We have packet traces that indicate the request is delayed by exactly 100 seconds, but otherwise is received and responded to as one would expect. Other requests immediately before and after the problematic ones are handled without any significant delay. We are wondering if others have noticed this problem or similar ones that sound like it? In the coyote connector code, it appears that the request sockets are set by default to have 100 second SO_LINGER timeouts for socket close() calls. Of course, this looks suspicious given our problem, but we have not been able to identify any way the blocked close() operation could affect incoming accept() requests. It is clear that running out of processor threads in the thread pool could cause such a delay, but we are not running under loads where this would happen, especially for 100 seconds. Any ideas out there? Randy Watler Finali Corporation -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: sending SMS messages
Usually, you just send an Email to a magic address. For example, with Verizon you send a message to: [EMAIL PROTECTED] where 8885551212 is the phone number of the hand set. The message will be truncated to 160 characters for my service. You can do SMS/TAP using a modem, but it's a lot more work. George Sexton MH Software, Inc. Home of Connect Daily Web Calendar Software http://www.mhsoftware.com/connectdaily.htm Voice: 303 438 9585 -Original Message- From: neal [mailto:nealcabage;yahoo.com] Sent: 08 November, 2002 1:03 AM To: Tomcat Users List Subject: sending SMS messages Does anyone know how to send an SMS message from a java website? I want my site to send a txt msg to my cell phone whenever a major error occurs. The only cods I've found thus far discuss sending an SMS using a class in the J2ME. Is there a class in std JDK or J2EE that can do this? Or, is it possible to install J2ME on a webserver, as a compliment to JDK? Thanks. Neal -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: sending SMS messages
You'll have to go to Sprint's web site and poke around. It took me a while to figure out verizon, and then they change it around every now and again. -Original Message- From: micael [mailto:caraunltd;harbornet.com] Sent: 08 November, 2002 2:40 PM To: Tomcat Users List Subject: RE: sending SMS messages Does this work the same with Sprint, etc.? At 12:29 AM 11/8/2002 -0800, you wrote: Really? That simple huh? Cool! Thanks. Neal -Original Message- From: Turner, John [mailto:JTurner;AAS.com] Sent: Friday, November 08, 2002 12:12 PM To: 'Tomcat Users List' Subject: RE: sending SMS messages That's exactly how it works for me, as well. Alternatives might be something like the SimpleWire Java SDK, but I think you have to pay for the service: http://www.simplewire.com/developers/sdk/java/ John -Original Message- From: Sexton, George [mailto:gsexton;mhsoftware.com] Sent: Friday, November 08, 2002 3:09 PM To: Tomcat Users List Subject: RE: sending SMS messages Usually, you just send an Email to a magic address. For example, with Verizon you send a message to: [EMAIL PROTECTED] where 8885551212 is the phone number of the hand set. The message will be truncated to 160 characters for my service. You can do SMS/TAP using a modem, but it's a lot more work. George Sexton MH Software, Inc. Home of Connect Daily Web Calendar Software http://www.mhsoftware.com/connectdaily.htm Voice: 303 438 9585 -Original Message- From: neal [mailto:nealcabage;yahoo.com] Sent: 08 November, 2002 1:03 AM To: Tomcat Users List Subject: sending SMS messages Does anyone know how to send an SMS message from a java website? I want my site to send a txt msg to my cell phone whenever a major error occurs. The only cods I've found thus far discuss sending an SMS using a class in the J2ME. Is there a class in std JDK or J2EE that can do this? Or, is it possible to install J2ME on a webserver, as a compliment to JDK? Thanks. Neal -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org Micael --- This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Rare request delay of 100 seconds
Do you have the connector doing reverse DNS resolution of hosts? -Original Message- From: Randy Watler [mailto:rwatler;finali.com] Sent: 08 November, 2002 4:22 PM To: [EMAIL PROTECTED] Subject: Rare request delay of 100 seconds We are using 4.1.12 standalone on RedHat Linux 7.3 servers and having rare HTTP requests delayed on their way into the Coyote HTTP/1.1 connectors. We have packet traces that indicate the request is delayed by exactly 100 seconds, but otherwise is received and responded to as one would expect. Other requests immediately before and after the problematic ones are handled without any significant delay. We are wondering if others have noticed this problem or similar ones that sound like it? In the coyote connector code, it appears that the request sockets are set by default to have 100 second SO_LINGER timeouts for socket close() calls. Of course, this looks suspicious given our problem, but we have not been able to identify any way the blocked close() operation could affect incoming accept() requests. It is clear that running out of processor threads in the thread pool could cause such a delay, but we are not running under loads where this would happen, especially for 100 seconds. Any ideas out there? Randy Watler Finali Corporation -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Rare request delay of 100 seconds
If you don't use SSL do you have the same problem? -Original Message- From: Randy Watler [mailto:rwatler;finali.com] Sent: 08 November, 2002 4:41 PM To: Tomcat Users List Subject: Re: Rare request delay of 100 seconds George, Thanks for the query. Here is the connector configuration: Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8543 minProcessors=8 maxProcessors=128 enableLookups=false acceptCount=64 debug=0 connectionTimeout=30 scheme=https secure=true useURIValidationHack=false/ So, I think we have it setup right, no? Randy Watler Finali Corporation Sexton, George wrote: Do you have the connector doing reverse DNS resolution of hosts? -Original Message- From: Randy Watler [mailto:rwatler;finali.com] Sent: 08 November, 2002 4:22 PM To: [EMAIL PROTECTED] Subject: Rare request delay of 100 seconds We are using 4.1.12 standalone on RedHat Linux 7.3 servers and having rare HTTP requests delayed on their way into the Coyote HTTP/1.1 connectors. We have packet traces that indicate the request is delayed by exactly 100 seconds, but otherwise is received and responded to as one would expect. Other requests immediately before and after the problematic ones are handled without any significant delay. We are wondering if others have noticed this problem or similar ones that sound like it? In the coyote connector code, it appears that the request sockets are set by default to have 100 second SO_LINGER timeouts for socket close() calls. Of course, this looks suspicious given our problem, but we have not been able to identify any way the blocked close() operation could affect incoming accept() requests. It is clear that running out of processor threads in the thread pool could cause such a delay, but we are not running under loads where this would happen, especially for 100 seconds. Any ideas out there? Randy Watler Finali Corporation -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Only one user at a time can connect thru Tomcat?
You might want to read this FAQ and re-post your question. There is absolutely no way anyone can help you given the insufficient amount of information provided. http://www.tuxedo.org/~esr/faqs/smart-questions.html George Sexton MH Software, Inc. Home of Connect Daily Web Calendar Software http://www.mhsoftware.com/connectdaily.htm Voice: 303 438 9585 -Original Message- From: [EMAIL PROTECTED] [mailto:arthur;westnet.com]On Behalf Of [EMAIL PROTECTED] Sent: 04 November, 2002 10:59 PM To: [EMAIL PROTECTED] Subject: Only one user at a time can connect thru Tomcat? Hi. I am trying to find out why only one user at a time can connect thru Tomcat. Other connection attempts fail ??? -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
SSL with Tomcat standalone on WIN98
I'm trying to setup Tomcat 3.3.1 to use SSL when running stand-alone. (I'm doing major maint. on a project that uses that version) It's not clear whether I need to build Tomcat from source to bring in SSL support or whether (as I've been trying) I can manipulate a binary version's config. I created a keystore and uncommented the server.xml entry for the secure Http10 connector (adding the attributes I think were necessary). When I start up Tomcat, I get a stacktrace that scrolls off the screen (I WANT WIN2K at home!!) before I can see the cause of the problem and can't find a way to capture it. Any suggestions? Thanks, George McKinney [EMAIL PROTECTED] = An experienced developer knows that it is seldom wise to prefix a demonstration with anything more predictive than Watch this - unless there is a good test suite in place. -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
More Re: SSL with Tomcat standalone on WIN98
I've caught the exception output it begins: EmbededTomcat: exception initializing ContextManager java.lang.NoClassDefFoundError: javax/net/ServerSocketFactory at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:486) . Where might that be - one of the container .jars? I thought Tomcat picked them up as necessary? - Original Message - From: George McKinney [EMAIL PROTECTED] To: Tomcat User [EMAIL PROTECTED] Sent: Friday, November 01, 2002 8:28 PM Subject: SSL with Tomcat standalone on WIN98 I'm trying to setup Tomcat 3.3.1 to use SSL when running stand-alone. (I'm doing major maint. on a project that uses that version) It's not clear whether I need to build Tomcat from source to bring in SSL support or whether (as I've been trying) I can manipulate a binary version's config. I created a keystore and uncommented the server.xml entry for the secure Http10 connector (adding the attributes I think were necessary). When I start up Tomcat, I get a stacktrace that scrolls off the screen (I WANT WIN2K at home!!) before I can see the cause of the problem and can't find a way to capture it. Any suggestions? Thanks, George McKinney [EMAIL PROTECTED] = An experienced developer knows that it is seldom wise to prefix a demonstration with anything more predictive than Watch this - unless there is a good test suite in place. -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Tomcat on Thru64 Unix (OSF1)
What JDK are you using? The LE version requires 1.4 or 1.3+xerces.jar. -Original Message- From: [EMAIL PROTECTED] [mailto:sene;cptec.inpe.br] Sent: 30 October, 2002 10:51 AM To: [EMAIL PROTECTED] Subject: Tomcat on Thru64 Unix (OSF1) Hi, I'm having some troubles while running Tomcat 4.1.12-LE under Digital Unix (OSF1). The server are running ok, but the /examples dir with the servlets are returning the error : HTTP Status 404 - /examples/servlets/ type Status report message /examples/servlets/ description The requested resource (/examples/servlets/) is not available. I'm working with the default config files. Under linux, I have no problems. Thank you. -- _ \_ \ Denys Sene dos Santos - [EMAIL PROTECTED] o/\_ http://www1.cptec.inpe.br/~sene/ - ICQ #31845401 \__,\ Meteorological Products Group - Phone: +55 12 560-8458 . | Center for Weather Forecasts and Climate Studies - CPTEC ` .-| National Institute for Space Research - MCT/INPE . \ A happy Linux User #71117 . \ .-| -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: tomcat 4.1.12 not starting- exception
The LE distribution requires JDK 1.4 -Original Message- From: Nalini [mailto:nalinisp;yahoo.com] Sent: 28 October, 2002 11:54 AM To: Tomcat Users List Subject: tomcat 4.1.12 not starting- exception Hi, I have installed jdk1.3.1_04 and made JAVA_HOME point to the jdk home = directory. Then I have down loaded the release version of tomcat 4.1.12 and unzipped = it. When I tried to start tomcat from the tomcathome\bin directory using = the startup command , I get the following error. Using CATALINA_BASE: C:\jakarta-tomcat-4.1.12-LE-jdk14 Using CATALINA_HOME: C:\jakarta-tomcat-4.1.12-LE-jdk14 Using CATALINA_TMPDIR: C:\jakarta-tomcat-4.1.12-LE-jdk14\temp Using JAVA_HOME: C:\jdk1.3.1_04 Exception in thread main java.lang.NoClassDefFoundError: org/xml/sax/Inpu= tSour ce at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Class.java:232) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:179) Could someone help me fix this error. --- Robert L Sowders [EMAIL PROTECTED] wrote: Here is a nice article that might help with clustering. http://www2.theserverside.com/resources/article.jsp?l=Tomcat rls Bernd Koecke [EMAIL PROTECTED] 10/28/2002 01:45 AM Please respond to Tomcat Users List To: Tomcat Users List [EMAIL PROTECTED] cc: Subject:Re: load balancing with routing with mod_jk in cluster Hi, it seems that you want to use mod_jk on the nodes as balancer. We don't use it in that way. We have a load balancer in front of our nodes, which has a standby balancer, if the first one goes down. If we want to get your requested behavior, we had to configure this on our load balancer, not on the nodes. This balancer knows nothing about apache, tomcat and mod_jk. So I don't know how to manage it with mod_jk. I don't know how your config should work. Because if N1 routes to all other nodes and N1 goes down, how should your client know, that he had to connect to N2? You need some logic in front of your cluster, that the clients see your cluster as one big server. If you want something like standby or hot standby you must implement this in the front logic, not on the nodes. And I don't know if this is possible with jk1. Why do you limit the balancing to N1? Most of the work is done in your servlets. The balancing is not so hard, that it will bring your node down. If all nodes do balancing its no problem, if one node goes down. But may be I don't understand your scenario. Bernd Alexander Piavka wrote: Bernd thanks for your reply. There is one more question i have. I have 3 nodes N1,N2,N3 each runs apache and tomcat. On node N1 i want to run lb_worker1 which will route all requests between all nodes. All apache servers will send requests to this lb_worker1. On node N2 i want to run lb_worker2 which will start routing all requests between all nodes ONLY then lb_worker1 goes down. I don't know if it is possible to make this configuration in workers.properties file. As i see i on each node workers.proprerties file should have bl_worker which will route requests between bl_worker1 bl_worker2. And bl_worker1 should have very high lbfactor and bl_worker2 very low: worker.bl_worker.type=lb worker.bl_worker.balanced_workers=bl_worker1,bl_worker2 but this is probably illegal as load balancers don't have lbfactor, and balancers can't have other balancers in their balanced_workers property. Please tell me if i can make the above scenario work. [...] -- Dipl.-Inform. Bernd Koecke UNIX-Entwicklung Schlund+Partner AG Fon: +49-721-91374-0 E-Mail: [EMAIL PROTECTED] ATTACHMENT part 2 application/octet-stream name=attbf0fo.dat -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org __ Do you Yahoo!? Y! Web Hosting - Let the expert host your web site http://webhosting.yahoo.com/ -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Question regarding long running web applications
You need to take an off-line approach where the servlet places a job request into a job queue, and another application (or perhaps a servicing thread inside tomcat) services the request and mails it to the user. There's no way users are going to leave their browser running for an hour to get a report. George Sexton MH Software, Inc. Home of Connect Daily Web Calendar Software http://www.mhsoftware.com/connectdaily.htm Voice: 303 438 9585 -Original Message- From: Dick, Andrea [mailto:Andrea.Dick;ca.com] Sent: 28 October, 2002 1:20 PM To: [EMAIL PROTECTED] Subject: Question regarding long running web applications Hi, I am in the process of designing a web application (servlet based) that will get data from a mainframe application. At times one or more end-user's request may take several minutes possibly up to an hour to complete.I am attempting to plan for a worst case scenario that has all end-users making requests that take up to an hour to complete. From my understanding of Tomcat it is possible to configure how many requests can be processed at one time and how many can be on a queue waiting. In my scenario, it is possible that all requests processing could be waiting on data from the mainframe, yet Tomcat and the Web server itself would have cycles to process requests queued waiting. I'm wondering whether there is a way with Tomcat/Servlets that I might set up my own worker queue and thread pool to process requests; keep the connection with the end user (client) active and free up tomcat requests for additional processing? (Apparently it is possible with Microsoft IIS and its Isapi interface.) I've been searching for an answer to my question and haven't been able to find it. I'm hoping someone might have the answer or a recommendation for me. Thanks, Andrea Dick -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Apache 1.3/2 mod_jk connect Tomcat 4.1.12 on redhat7.3 - poor perf
As a guess, is Apache resolving host names for the logs? -Original Message- From: David Tildesley [mailto:datil;paradise.net.nz] Sent: 25 October, 2002 8:06 PM To: [EMAIL PROTECTED] Subject: Apache 1.3/2 mod_jk connect Tomcat 4.1.12 on redhat7.3 - poor perf Has anybody any tips for performance tuning Apache 1.3 or 2 connected to Tomcat 4.1.x via mod_jk (couldn't get mod_jk2 working)? We had a throughput for our servlet/jsp app of 500 rps (requests per second) on tomcat http connector. As soon as we connected Apache to Tomcat, the rate dropped to 150 rps for no apparent reason. Any advice on how to improve this performance? Thanks, DT. -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Help to me !! !! !! !! - DON'T ATTACH FILES!!
I have to disagree. Sometimes it is the only way to troubleshoot issues, particularly with server.xml and web.xml. -Original Message- From: Burt Johnson [mailto:burt;mindstorm-inc.com] Sent: 25 October, 2002 12:40 PM To: Tomcat Users List Cc: [EMAIL PROTECTED] Subject: Re: Help to me !! !! !! !! - DON'T ATTACH FILES!! PLEASE DON'T attach files to this list!! -- - Burt Johnson MindStorm, Inc. [EMAIL PROTECTED] http://www.mindstorm-inc.com -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Tomcat Scalability - Long
If your kernel is not in the 2.4.18-2.4.19 range, you should update the kernel. 7.1 is pretty old. It shipped with a very early 2.4 series kernel. -Original Message- From: Brandon Cruz [mailto:bcruz;norvax.com] Sent: 24 October, 2002 1:36 PM To: Tomcat Users List Subject: Tomcat Scalability - Long Does anyone have any solid information about the scalability of Tomcat? It seems very limiting to me, but that is hopefully due to improper configuration. Here is our situation and what seems to be happening under a small amount of stress. ---About our Environment--- PIII 1.0Ghz 512 Meg Ram Linux RedHat 7.1 MySQL Database Apache 1.3.x mod_jk - logging turned all the way down Tomcat 3.2.4 - contexts *are* reloadable right now SUN JDK 1.3.1_01 -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Java Logger problem with Tomcat4 web apps on Unix platforms...
Sounds like a permissions problem to me. -Original Message- From: Vijay KN [mailto:KNVIJAY;novell.com] Sent: Thursday, October 24, 2002 00:46 To: [EMAIL PROTECTED] Subject: Java Logger problem with Tomcat4 web apps on Unix platforms... Hi, We are using JVM1.4 Logger APIs in our servlet application deployed in Tomcat4.0 container to log messages into a file. On Unix platforms, the log file doesn't get created, though the application using Logger objects does not throw any exceptions. However, the same code works on other platforms like WinXP. Appreciate an early response. thanks vijay -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Tomcat Scalability - Long
The consensus in the Linux community is the 2.4 series didn't start to really stabilize until 2.4.18. I won't even mention the dozen plus security issues that have been found in the kernel since that version. -Original Message- From: [EMAIL PROTECTED] [mailto:arthur;westnet.com]On Behalf Of [EMAIL PROTECTED] Sent: 24 October, 2002 2:06 AM To: Tomcat Users List Subject: Re: Tomcat Scalability - Long Hi. I am still on kernel 2.4.2 and it seems okay. May I ask why we need to upgrade to 2.4.19 ? Sexton, George wrote: If your kernel is not in the 2.4.18-2.4.19 range, you should update the kernel. 7.1 is pretty old. It shipped with a very early 2.4 series kernel. -Original Message- From: Brandon Cruz [mailto:bcruz;norvax.com] Sent: 24 October, 2002 1:36 PM To: Tomcat Users List Subject: Tomcat Scalability - Long Does anyone have any solid information about the scalability of Tomcat? It seems very limiting to me, but that is hopefully due to improper configuration. Here is our situation and what seems to be happening under a small amount of stress. ---About our Environment--- PIII 1.0Ghz 512 Meg Ram Linux RedHat 7.1 MySQL Database Apache 1.3.x mod_jk - logging turned all the way down Tomcat 3.2.4 - contexts *are* reloadable right now SUN JDK 1.3.1_01 -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: how to give all users access to start and stop tomcat service in Win XP
This isn't really a Tomcat question. I suspect you will have to make all users administrators. You might ask around on the XP forums or Win2K news groups and see what you can find. I would also search groups.google.com. -Original Message- From: Administrator [mailto:Administrator;interresearch.dk] Sent: 23 October, 2002 4:55 AM To: [EMAIL PROTECTED] Subject: how to give all users access to start and stop tomcat service in Win XP Hi, I have tomcat 3.2.3 installed as a windows service (using jk_nt_service.exe) on a laptop running Windows XP. I want to give all authorized windows users of that laptop the possibility to start and stop the tomcat service. When they try the following message appears: System error 5 Access is denied It's possible for the administrator account to start and stop it - probably because the service was installed using that account. Can anybody help? Many regards from [ Ole Engele Nielsen ] E-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Database Issues
Change: database.default.url=jdbc:postgresql://localhost/jetspeed to database.default.url=jdbc:postgresql://localhost:5432/jetspeed Also, make sure that PostgreSQL is accepting TCP connections. Check the postgresql.conf (on RedHat this is /var/lib/pgsql/data). If you have connection problems, set 127.0.0.1 to be trusted in pg_hba.conf. -Original Message- From: [EMAIL PROTECTED] [mailto:brendan.richards;draftlondon.com] Sent: 22 October, 2002 9:12 AM To: [EMAIL PROTECTED] Subject: Database Issues Apologies in advance for posting a repeat of earlier messages but I've yet to come across a solution to my problem... I'm attempting to get jetspeed working with PostgreSQL. Following initial abortive attempts, I've installed the latest versions of both Tomcat (4.1.12) and Postgresql(7.2.3) to ensure I have clean builds but the issue remains. The error when starting jetspeed is: Horrible Exception: java.lang.Error: Error in BasePeer.initTableSchema(TURBINE_USER): Connection object is null! at org.apache.jetspeed.om.security.turbine.BaseTurbineUserPeer.initClass(BaseTu rbineUserPeer.java:145) at org.apache.jetspeed.om.security.turbine.BaseTurbineUserPeer.clinit(BaseTur bineUserPeer.java:124) ..etc... my torque.properties file looks like this: database.default=jetspeed database.default.driver=org.postgresql.Driver database.default.url=jdbc:postgresql://localhost/jetspeed database.default.username=jetspeed database.default.password= with a jetspeed database setup from the scripts provided and pjdbc2.jar intsalled in the lib directory from jdbc.postgresql.org I've seen people with similar errors using both postgreSQL and mySQL. I've also tried removing hsql.jar from the lib directory to make sure there is no classname clash between the hsql and postgres jdbc jars. Any Ideas?? Brendan Richards -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: expression ALWAYS evaluates to if... NEVER to else
You need to learn how java compares objects and strings. The short story is: if(!paramPassword.equals(secretCode)) { } else { } -Original Message- From: Z.BEAT [mailto:zackbeatty;yahoo.com] Sent: 17 October, 2002 11:58 AM To: Tomcat Users List Subject: expression ALWAYS evaluates to if... NEVER to else In the following code snippet, the expression ALWAYS evaluates to the if statement block: String paramPassword = request.getParameter(paramPassword); String secretCode = secret; if(paramPassword != secretCode) { } else { } However, my debugging flags that I send in an HTML comment CLEARLY show that the two variables have the same value: !-- DEBUG FLAGS paramPassword: secret secretCode: secret -- What is going on? Am I missing something obvious? Thanks! __ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos More http://faith.yahoo.com -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Ok people
It's not a guide for idiots and it's not supposed to be an insult. It is supposed to help you get your questions answered by teaching you how to ask the right questions. George Sexton MH Software, Inc. Voice: 303 438 9585 http://www.mhsoftware.com -Original Message- From: Lior Shliechkorn [mailto:liorshliech;yahoo.com] Sent: 17 October, 2002 1:22 PM To: Tomcat Subject: Ok people Listen, I admit that I may have asked questions that some may not have understood ( I did get help and I'm not overlooking that). I'm here for the same reason we all are. I need help with some things, and maybe when I gain enough experience and knowledge I will be able to return the favor. Limited knowledge, and often confusion, doesn't attribute to questions being asked in the same way that you, who have that knowledge, would like things phrased. I don't need people to gang up on me and tell me that I'm being rude and arrogant in the way I ask things (and been riding me every chance that specific person got), or refer me to idiots guide to asking questions. It's not fair and I'm not going to be discouraged by that kind of initimidation. You have my apologies, Lior - Do you Yahoo!? Faith Hill - Exclusive Performances, Videos, more faith.yahoo.com -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: How come no one's is replying
You might want to refer to this URL and try reposting your questions. http://www.tuxedo.org/~esr/faqs/smart-questions.html George Sexton MH Software, Inc. Home of Connect Daily Web Calendar Software http://www.mhsoftware.com/connectdaily.htm Voice: 303 438 9585 -Original Message- From: Eddie Liang [mailto:eliang;edge.com] Sent: 17 October, 2002 12:46 PM To: 'Tomcat Users List' Subject: RE: How come no one's is replying I have the same feeling too. Eddie Liang Database Architect Phone: 630-810-9669 x253 -Original Message- From: Lior Shliechkorn [mailto:liorshliech;yahoo.com] Sent: Thursday, October 17, 2002 1:38 PM To: Tomcat Subject: How come no one's is replying I've been posting messages and I see other people picking up other people's requests for help and no one pays any attention to mine. - Do you Yahoo!? Faith Hill - Exclusive Performances, Videos, more faith.yahoo.com -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: WHY DOES TOMCAT SUSPEND ITSELF?
Can you please repost your message with some information like: specific version of tomcat operating system, including patch levels JVM Version Whether you looked in the relevant log files for information. The URL below provides information on how to post questions to a list. You may want to take a few minutes to read it. The better the question, the faster and more accurate the help will be. http://www.tuxedo.org/~esr/faqs/smart-questions.html George Sexton MH Software, Inc. Voice: 303 438 9585 http://www.mhsoftware.com -Original Message- From: Luca Ventura [mailto:ventluca;tiscali.it] Sent: 18 October, 2002 2:01 AM To: tomcat-user Subject: WHY DOES TOMCAT SUSPEND ITSELF? Hello everybody! I have Tomcat 4.x as Servlet Container and I have seen that sometimes the following strange thing happens When Tomcat doesn't receive requests for a period of time (that can take minutes or hours) it suspends itself and I must restart the service manually because Tomcat doesn't answer to the users' requests any more. In fact when this happens and then a user tries to connect to Tomcat he waits for an answer forever without success until the connection is closed by the Web Browser because it is timed out. Is there some setting in Tomcat to avois this? Has someone already had such problem? If yes, how did he solve it? I hope someone can help me Thanks in advance. Luca -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Servlets: Differences between Linux and Windows?
There was a big change in 4.1.12. The default invoker is no longer mapped. Servlets must be explicitly declared in the application web.xml. You can override this by editing the conf/web.xml. -Original Message- From: Mauro Daniel Ardolino [mailto:[EMAIL PROTECTED]] Sent: 16 October, 2002 8:24 AM To: [EMAIL PROTECTED] Subject: Servlets: Differences between Linux and Windows? Hi! I'm having some problems running servlets in Tomcat 4.1.12 under Linux RedHat 7.3 I've done a simple servlet and I was running it in Tomcat 4.0.4 under Win98 without problems. If I copy the folder mySimpleServlet from windows tomcat webapps folder to linux tomcat webapps folder and start linux tomcat, then the application works, but the servlet does not. It says: the requested resource (.) not available Are there any differences in configuration under linux? (in the web.xml or the server.xml). Thanks in advance. -- Mauro -- Ing.Mauro Daniel Ardolino Departamento de Desarrollo y Servicios Altersoft Billinghurst 1599 - Piso 9 C1425DTE - Capital Federal Tel/Fax: 4821-3376 / 4822-8759 mailto: [EMAIL PROTECTED] website: http://www.altersoft.com.ar -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Losing session in Internet Explorer 5x
There is a bug in IE dealing with re-directs and SSL. I forget how it works but it went something like this: Login page invalidates session. User enters user ID and password. Login page re-directs to target page IE Generates spurious additional request to login page which again invalidates the session. If you have pages that invalidate the session, you might want to take a look at them. Also, if you have a network protocol analyzer like Ethereal on Linux watching the packet flow can help you sort it out. George Sexton MH Software, Inc. Home of Connect Daily Web Calendar Software http://www.mhsoftware.com/connectdaily.htm Voice: 303 438 9585 -Original Message- From: bob knob [mailto:[EMAIL PROTECTED]] Sent: 16 October, 2002 9:36 AM To: [EMAIL PROTECTED] Subject: Losing session in Internet Explorer 5x Hi, Am using Tomcat 4.1.1.2. My web application uses javascript to open new windows for certain activities, and on random occasions I seem to be losing the user session, so that I have to re-login (we're using our own authentication system that simply stores a userid in HttpSession). Has anybody else seen this, and is there anything I can do about it? It's also been happening with Tomcat 4.0. thanx __ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos More http://faith.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat 4.1X seems broken on Linux
I run 4.1.12 on Linux with no problems. You need to post the complete exception you are getting. -Original Message- From: John Byrd [mailto:[EMAIL PROTECTED]] Sent: 15 October, 2002 8:24 PM To: [EMAIL PROTECTED] Subject: Tomcat 4.1X seems broken on Linux Good evening all. Excuse me if you've seen this issue before, but my cursory search of the archives did not turn it up. I have been using Tomcat for several years. Currently on my Linux box I have versions 3.3.1, 4.0.4, 4.0.5, 4.0.6, 4.1.3, 4.1.6 and 4.1.12. They all work superbly except for the 4.1.x versions. I cannot get any of those to start. They write to catalina.out a complaint that they're experiencing a ClassNotFoundException w/r/t org.catalina.core.StandardServer I'm certain that this is one of those annoying JVM messages that leads you down the wrong path. The catalina.jar, which contains StandardServer, is most definitely on the classpath. My guess is that the error occurs in parsing some configuration file, because the exception line is preceded by this line: org.apache.commons.digester.Digester startElement SEVERE: Begin event threw exception If anyone has a clue as to the fix to this situation please let me know. I'd like to move up from the 4.0.x level. -- John Byrd [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Pre compile of jsp
Look at the jspc.sh script in the bin directory. -Original Message- From: Ashish Kulkarni [mailto:[EMAIL PROTECTED]] Sent: 14 October, 2002 8:56 AM To: Tomcat Users List Subject: Pre compile of jsp Hi, when ever i modify a jsp, it is compiled first time when it is accessed from web, and this process takes a long time, if i have to precompile this jsp to use in tomcat4.0.4 so even the first time access will be fast how can i do it, can any one provide any info on doing this Ashish __ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos More http://faith.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Possible bug with isSecure()/getScheme() methods in tomcat 4.1
Hi, I am having some problems with the servlet engine when connected to apache. When making a https request through the apache webserver the HttpRequest.isSecure() method is returning false and the HttpRequest.getScheme() method is returning 'http'. It seems like this information was lost when the connector passed the request to the servlet engine. I should note that the HttpRequest.getServerPort() does return the correct port. Having looked through the archived messages it sounds like there was a similar problem when using ajp12. However, I am fairly certain that I using the ajp13 protocol. I am able to work around this problem since I can use the getServerPort() method correctly, but I would be interested to know if this is a bug or if I have misconfigured something. Thank you, George Hart [EMAIL PROTECTED] Relevant Info: Machine: 2.4.9-34 (Redhat 7.2) Webserver: Apache 1.3.26 Tomcat version: jakarta-tomcat-4.1.10-LE-jdk14 jvm: j2sdk1.4.0_02 connector: jk-1.2.0 My workers.properties file: ps=/ # list the workers by name #worker.list=tomcat1, tomcat2, loadbalancer worker.list=tomcat1, loadbalancer # # First tomcat server # worker.tomcat1.port=8009 worker.tomcat1.host=localhost worker.tomcat1.type=ajp13 worker.loadbalancer.type=lb #worker.loadbalancer.balanced_workers=tomcat1, tomcat2 worker.loadbalancer.balanced_workers=tomcat1 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: unable to start tomcat
Listening means an application is bound to that port and is listening for connections. George Sexton MH Software, Inc. Voice: 303 438 9585 http://www.mhsoftware.com -Original Message- From: Rahul Sood [mailto:[EMAIL PROTECTED]] Sent: 12 October, 2002 3:42 PM To: [EMAIL PROTECTED] Subject: Re: unable to start tomcat Hello Ashish, Thanx a lot for this, it has really helped, when I typed netstat -an it showed me a list of ports and for 8080 it said listening, which made me think that the port was free, but anyeway i changed to a different port(1026) and tomcat started Ok this time. Could you please explain the meaning of listening for port 8080. Also I would mention here that, I have run tomcat 3.2.1 and that starts Ok on the same machine , but this version of tomcat which is a part of the WSDP didnt start. Thanx very much once again Rahul [EMAIL PROTECTED] 10/12/02 07:19pm Hi are u running any other process which is using port 8081 on your machine, to check this go to command prompt, and type command netstat -an and see which are the ports used in your machine( i assume u are on windows platform) or else find the relevant command on unix, or u can change the port in tomcat(conf/server.xml) to other port not used Ashish --- Rahul Sood [EMAIL PROTECTED] wrote: I have installed tomcat using Web services developers pack. When trying = =3D to start tomcat according to the instructions given ( which is running the startup.bat file from the command prompt or clicking on start tomcat in = =3D the start menuitems ) a blank window comes up and vanishes in seconds and = =3D tomcat is not started. Looking at the log file this is the error message recorded java.net.BindException: Address in use: JVM_Bind:8081 at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpE= =3D ndpoint.java:268) at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java= =3D :150) at org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConne= =3D ctor.java:999) at org.apache.catalina.core.StandardService.initialize(StandardServ= =3D ice.java:582) at org.apache.catalina.core.StandardServer.initialize(StandardServe= =3D r.java:2244) at org.apache.catalina.startup.Catalina.start(Catalina.java:503) at org.apache.catalina.startup.Catalina.execute(Catalina.java:399) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) at java.lang.reflect.Method.invoke(Native Method) at com.sun.launcher.Launcher.main(Launcher.java:208) [ERROR] Http11Protocol - -Error initializing endpoint java.net.BindExcepti= =3D on: Address in use: JVM_Bind:8081 Catalina.start: LifecycleException: Protocol handler initialization =3D failed: java.net.BindException: Address in use: JVM_Bind:8081 LifecycleException: Protocol handler initialization failed: java.net.BindE= =3D xception: Address in use: JVM_Bind:8081 at org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConne= =3D ctor.java:1001) at org.apache.catalina.core.StandardService.initialize(StandardServ= =3Dtar [EMAIL PROTECTED] ice.java:582) at org.apache.catalina.core.StandardServer.initialize(StandardServe= =3D r.java:2244) at org.apache.catalina.startup.Catalina.start(Catalina.java:503) at org.apache.catalina.startup.Catalina.execute(Catalina.java:399) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) at java.lang.reflect.Method.invoke(Native Method) at com.sun.launcher.Launcher.main(Launcher.java:208) Catalina.stop: LifecycleException: This server has not yet been started LifecycleException: This server has not yet been started at org.apache.catalina.core.StandardServer.stop(StandardServer.java= =3D :2211) at org.apache.catalina.startup.Catalina.start(Catalina.java:535) at org.apache.catalina.startup.Catalina.execute(Catalina.java:399) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) at java.lang.reflect.Method.invoke(Native Method) at com.sun.launcher.Launcher.main(Launcher.java:208) A prompt reply and help will be greatly apreciated. Rahul Sood -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos More http://faith.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e
RE: unable to start tomcat
Read the message: java.net.BindException: Address in use: JVM_Bind:8081 at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpE= Some other program is bound to the port. George Sexton MH Software, Inc. Voice: 303 438 9585 http://www.mhsoftware.com -Original Message- From: Rahul Sood [mailto:[EMAIL PROTECTED]] Sent: 12 October, 2002 7:34 AM To: [EMAIL PROTECTED] Subject: unable to start tomcat I have installed tomcat using Web services developers pack. When trying = =3D to start tomcat according to the instructions given ( which is running the startup.bat file from the command prompt or clicking on start tomcat in = =3D the start menuitems ) a blank window comes up and vanishes in seconds and = =3D tomcat is not started. Looking at the log file this is the error message recorded java.net.BindException: Address in use: JVM_Bind:8081 at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpE= =3D ndpoint.java:268) at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java= =3D :150) at org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConne= =3D ctor.java:999) at org.apache.catalina.core.StandardService.initialize(StandardServ= =3D ice.java:582) at org.apache.catalina.core.StandardServer.initialize(StandardServe= =3D r.java:2244) at org.apache.catalina.startup.Catalina.start(Catalina.java:503) at org.apache.catalina.startup.Catalina.execute(Catalina.java:399) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) at java.lang.reflect.Method.invoke(Native Method) at com.sun.launcher.Launcher.main(Launcher.java:208) [ERROR] Http11Protocol - -Error initializing endpoint java.net.BindExcepti= =3D on: Address in use: JVM_Bind:8081 Catalina.start: LifecycleException: Protocol handler initialization =3D failed: java.net.BindException: Address in use: JVM_Bind:8081 LifecycleException: Protocol handler initialization failed: java.net.BindE= =3D xception: Address in use: JVM_Bind:8081 at org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConne= =3D ctor.java:1001) at org.apache.catalina.core.StandardService.initialize(StandardServ= =3Dtar [EMAIL PROTECTED] ice.java:582) at org.apache.catalina.core.StandardServer.initialize(StandardServe= =3D r.java:2244) at org.apache.catalina.startup.Catalina.start(Catalina.java:503) at org.apache.catalina.startup.Catalina.execute(Catalina.java:399) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) at java.lang.reflect.Method.invoke(Native Method) at com.sun.launcher.Launcher.main(Launcher.java:208) Catalina.stop: LifecycleException: This server has not yet been started LifecycleException: This server has not yet been started at org.apache.catalina.core.StandardServer.stop(StandardServer.java= =3D :2211) at org.apache.catalina.startup.Catalina.start(Catalina.java:535) at org.apache.catalina.startup.Catalina.execute(Catalina.java:399) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) at java.lang.reflect.Method.invoke(Native Method) at com.sun.launcher.Launcher.main(Launcher.java:208) A prompt reply and help will be greatly apreciated. Rahul Sood -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Unspecified NoClassDefFoundError
Are you setting the option to run AWT headless? export CATALINA_OPTS=-Djava.awt.headless=true bin/catalina.sh start -Original Message- From: Ben Monnahan [mailto:[EMAIL PROTECTED]] Sent: 11 October, 2002 4:12 PM To: Tomcat Users List Subject: Re: Unspecified NoClassDefFoundError I'm using VisAD to do some visualizations. What I'm doing is taking a snapshot of the current display and writing it to an image. Since this is in a servlet, there isn't any real display. According to the VisAD list for the case when you don't need a real display you can use and offscreen renderer. So I think it is painting the component to some sort of virtual screen and then it is going to grab that image and save it to disk. Unfortunately there isn't an exception to go with it. I just found a post about java 1.3 on linux having problems with offscreen rendering. I'm using java 1.4 so this shouldn't be a problem right? If the VisAD code was written for java 1.3 would I still have problems even though I'm using 1.4? Thanks Ben On Fri, 11 Oct 2002, Padhu Vinirs wrote: Just curious, why is a servlet calling paintComponent ? Is there any accompanying exception ? -- padhu Ben Monnahan wrote: Hi all, I am getting NoClassDefFoundError in my servlet, but it doesn't tell me which one it couldn't find. I'm guessing its a problem with GraphicsEnvironment.getLocalGraphicsEnvironment(). I tried a search on google, but it didn't turn up anything. Does anyone know what might be wrong? Here is a stack trace: java.lang.NoClassDefFoundError at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:130) at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironmen t.java:62) at java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1053) at visad.java2d.VisADCanvasJ2D.paintComponent(Unknown Source) at visad.java2d.VisADCanvasJ2D.run(Unknown Source) at java.lang.Thread.run(Thread.java:536) System Info: Redhat 7.2 Tomcat 4.1.10 (invoker servlet disabled) (no apache) Java 1.4.0_01 Thanks for your time, Ben Monnahan -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: How to limit the number of connections per user?
Step 1: Register a session context listener. Step 2: When each session starts, store an Integer in a Hashtable. The key would be the user name. The Integer value is the number of currently active sessions. Step 3: In the session destroy, decrement the Integer count, and if it is 0, remove it from the Hashtable. George Sexton MH Software, Inc. Home of Connect Daily Web Calendar Software http://www.mhsoftware.com/connectdaily.htm Voice: 303 438 9585 -Original Message- From: Rodrigo Ruiz [mailto:[EMAIL PROTECTED]] Sent: 11 October, 2002 2:17 AM To: Tomcat Users List Subject: How to limit the number of connections per user? Hi, is there any way to do this? I would like to be able to limit the number of connections per user for production environment. -- GRIDSYSTEMSRodrigo Ruiz Aguayo Parc Bit - Son EspanyolAnalista Programador 07120 Palma de Mallorca[EMAIL PROTECTED] Baleares - EspaƱa Tel:+34-971435085 www.gridsystems.comFax:+34-971435082 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: default charset in contentType?
Too bad! Setting the charset explicity in the Jasper compiled servlet breaks IE for image/svg+xml content. It seems that Microsoft does not properly recognize the contentType header so that for example running the resulting servlet thus: http://localhost:8080/foo/servlet/test?dummy=.svg will work but running it properly thus: http://localhost:8080/foo/servlet/test will not work? Obviously trying to fool IE with a dummy appended parameter won't help with actual .jsp pages. Tomcat 4.0 and below did not explicitly set the charset unless asked to, so it works fine. Perhaps there is a work around short of modifying the Jasper compiler? Randy -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 10, 2002 1:47 PM To: Tomcat Users List Subject: Re: default charset in contentType? On Thu, 10 Oct 2002, Randy George wrote: Date: Thu, 10 Oct 2002 13:14:20 -0600 From: Randy George [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: default charset in contentType? Is there a way to turn off the default charset appended to contentType by Jasper? The JSP spec states that the default character encoding, unless you specify otherwise (on a contentType or pageEncoding attribute on the %@ page % directive) must be ISO-8859-1. Craig I have installed Tomcat 4.1.10 on a W2K server and I'm trying to display SVG content with JSP. I have added the image/svg+xml Mime types to my Tomcat 4.1\conf\web.xml file: mime-mapping extensionsvg/extension mime-typeimage/svg+xml/mime-type /mime-mapping However, when I attempt to set the response type to image/svg+xml in a jsp page directive the IE6.0 client browser (ASV 3.0 plugin) fails to recognize jsp generated svg content? Note that static svg content displays fine. This occurs in even the simplest invocation: %@ page contentType=image/svg+xml % ?xml version=1.0? svg width=100px height=20px text x=10 y=20SVG Test/text /svg When I examine the test_jsp.java that comes out of the Jasper Compiler I can see that the servlet contentType has a default charset appended to the image/svg+xml i.e. response.setContentType(image/svg+xml;charset=ISO-8859-1); Curiously if I then compile this Jasper generated servlet and run it I get the same failure until I remove the ;charset=ISO-8859-1 making the contentType as follows: response.setContentType(image/svg+xml); At that point everything works as expected? It appears that the Jasper JSP compiler adds a default charset=ISO-8859-1 to the response contentType which does not work with the image/svg+xml MIME type. I have tried explicitly setting charset in the page directive to utf-8, windows-1252 etc but it seems that any charset I have tried fails in the same manner. At this point I would just like to disable the default charset appended by Jasper. Thanks Randy -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
default charset in contentType?
Is there a way to turn off the default charset appended to contentType by Jasper? I have installed Tomcat 4.1.10 on a W2K server and I'm trying to display SVG content with JSP. I have added the image/svg+xml Mime types to my Tomcat 4.1\conf\web.xml file: mime-mapping extensionsvg/extension mime-typeimage/svg+xml/mime-type /mime-mapping However, when I attempt to set the response type to image/svg+xml in a jsp page directive the IE6.0 client browser (ASV 3.0 plugin) fails to recognize jsp generated svg content? Note that static svg content displays fine. This occurs in even the simplest invocation: %@ page contentType=image/svg+xml % ?xml version=1.0? svg width=100px height=20px text x=10 y=20SVG Test/text /svg When I examine the test_jsp.java that comes out of the Jasper Compiler I can see that the servlet contentType has a default charset appended to the image/svg+xml i.e. response.setContentType(image/svg+xml;charset=ISO-8859-1); Curiously if I then compile this Jasper generated servlet and run it I get the same failure until I remove the ;charset=ISO-8859-1 making the contentType as follows: response.setContentType(image/svg+xml); At that point everything works as expected? It appears that the Jasper JSP compiler adds a default charset=ISO-8859-1 to the response contentType which does not work with the image/svg+xml MIME type. I have tried explicitly setting charset in the page directive to utf-8, windows-1252 etc but it seems that any charset I have tried fails in the same manner. At this point I would just like to disable the default charset appended by Jasper. Thanks Randy -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: HTTP Response appears at top : Tomcat 3.2.1 IIS 5 IE 6 SP1
Does the JSP code that sends the redirect write anything prior to the re-direct, and does it have a return statement immediately following the send redirect? -Original Message- From: Michael Finney [mailto:[EMAIL PROTECTED]] Sent: 10 October, 2002 11:15 AM To: Tomcat Users List Subject: RE: HTTP Response appears at top : Tomcat 3.2.1 IIS 5 IE 6 SP1 I will add the skip intro to the list. ;) I believe that JSP code telling the page to redirect may be triggering the problem. I tried to narrow it down in the code, but I ended up with a file included with 4 blank lines and a redirect causing the problem. The problem happens in other parts too. The problem of the header showing up needs to be fixed. Has anyone seen header information showing up when it is not supposed to in the web pages when tomcat and IIS is integrated? What was the fix? --- Richard Haber [EMAIL PROTECTED] wrote: I notice that the header does not appear if you go to the welcome.jsp directly. I am using IE 6 SP1, cleared the cache and tried several times. On an [OT] other note, Macromedia best practices recommends a 'skip intro' button on the splash page to allow users returning to the site quicker access to the site's content ;- Otherwise, a nice animation! Richard -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] = Michael Finney Sun Certified Programmer for the Java 2 Platform Sun Certified Developer for the Java 2 Platform Sun Certified Web Component Developer for J2EE Platform Cofounder of PPJDG Cofounder of cosAgile - Colorado Springs XP Users Group If replying to this email address fails, try [EMAIL PROTECTED] __ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos More http://faith.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Using Non-Servlet Timers (Was - I need to run a servlet periodically)
Register a context listener and free the timer in it. -Original Message- From: gautam [mailto:[EMAIL PROTECTED]] Sent: 09 October, 2002 9:53 PM To: Tomcat Users List Subject: Using Non-Servlet Timers (Was - I need to run a servlet periodically) Hello, We are using java.util.Timer objects to periodically run through a few object caches and get rid of stale items. Everything works fine. However, I can no longer stop Tomcat using the Catalina.bat stop command. I suspect that the Timer objects are still alive and are the cause of the problem. Any ideas on how to fix this ? The objects we schedule via the timers are not Servlets. They are plain vanilla Java classes. Regards, Gautam Satpathy -Original Message- From: Rick Fincher [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 10, 2002 12:01 AM To: Tomcat Users List Subject: Re: I need to run a servlet periodically Hi Filip, Your servlet can call a class (doesn't have to be a servlet) that sets up a java.util.timer to run your code as a timerTask. The servlet can get parameters from the web.xml file (like how often to execute) and pass that to your class that controls the timer. The servlet can pass your class the connection pool info and other needed session info. Rick - Original Message - From: Cato, Christopher [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, October 09, 2002 9:04 AM Subject: SV: I need to run a servlet periodically What you really need to do is to design your periodical servlet to implement Runnable. Add another servlet that starts the periodical servlet and load that servlet during startup. The periodical then does its thing and sleeps for x amount of time. Then wakes up and so on... /Christopher -Ursprungligt meddelande- Fran: Raj Saini Till: Tomcat Users List Skickat: 2002-10-07 23:24 Amne: Re: I need to run a servlet periodically To need the servlet run periodically you need a client calling the servlet periodically. Make your client to run periodically and it will cause the servlet to run. We can suggest you a solution if you let us know what exactly you want your servlet to do. Raj Saini Filip Rachunek wrote: Hello, is it possible to have a servlet in Tomcat container which is invoked automatically each gived time period? [e.g. each 10 minutes] And I would also need this special servlet to access other resources of my web application [connection pool, ...]. Thanks. Filip Rachunek -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Setting classpath..Kindly help...???
You might want to post a more complete message that shows the JSP Compile error. If the JSP is unable to included classes in your WEB-INF/classes directory you should take a look at bug # 10036 in the Tomcat bug database. -Original Message- From: sathya [mailto:[EMAIL PROTECTED]] Sent: 09 October, 2002 11:22 PM To: Tomcat Users List Subject: Setting classpath..Kindly help...??? Hello, I am having a problem compiling my jsp files..it says Unable to Compile Class for JSP..How do I set the classpath for my application in WEB-INF.I am using Tomcat 4.1.10 and jdk 1.4.01. Kindly help Thanks in advance Sathya -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Forwarding in servlets.
Please remember that in both forward and send re-direct, execution of the current servlet will resume unless you put a return statement after the forward or re-direct statement. if (dispatcher!=null) { dispatcher.forward(request, response) ; return; } -Original Message- From: Kwok Peng Tuck [mailto:[EMAIL PROTECTED]] Sent: 08 October, 2002 12:42 AM To: [EMAIL PROTECTED] Subject: Forwarding in servlets. Is there any way besides the following : request.setAttribute(selectedScreen, request.getServletPath()) ; RequestDispatcher dispatcher = request.getRequestDispatcher(/test.jsp) ; if (dispatcher!=null) { dispatcher.forward(request, response) ; } to forward a request to a jsp page. Is it possible to use response.sendRedirect like in jsp ? Any suggestions will be great. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: DBMS access denied with Jakarta NT Service
Don't you think the name and version number of the DBMS would be of the least bit help in solving your issue? -Original Message- From: Cinzia S [mailto:[EMAIL PROTECTED]] Sent: 08 October, 2002 2:10 AM To: [EMAIL PROTECTED] Subject: DBMS access denied with Jakarta NT Service Hi all, I'm having database access denied when running Jakarta as an NT Service, while no db access problems when running as a standalone program. This is the spec: Jakarta-Tomcat 3.3.1, servicing servlets and jsp requested by IIS through isapi_redirect.dll, Windows 2000 Server. Thanks for any suggestion -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]