Re: Jre upgrade Issue with Tomcat 5.5 :java.util.zip.ZipException: error in opening zip file
Hi , Thanks for all your reply. Finally it is worked out. Since Solaris by default allows a process to open some number of files which is controlled by ulimit. Since by default it allows a process to have 256 files opened and jre 1.6 also has some additional files(guess),the number of open files might be increased beyond the limit. After increasing the ulimit value ,it seems working fine. Thanks again for your replies Konstantin Kolinko wrote: > > 2009/10/28 selvakumar.V : >> >> drwxrwxrwx 2 casuser casusers 1024 Oct 27 07:35 lib > > Do you have a reason why WEB-INF/lib folder is world-writable > (rwxrwxrwx)? Why classes folder and some other files are > world-readable? > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > > -- View this message in context: http://old.nabble.com/Jre-upgrade-Issue-with-Tomcat-5.5-%3Ajava.util.zip.ZipException%3A-error-in-opening-zip-file-tp26075575p26125623.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: ConnectionPool question
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Josh, On 10/29/2009 9:17 PM, Josh Gooding wrote: > I wrote some code on top of the Tomcat's ConnectionPool class. In regular > Java based programming if I close a ResultSet with connection.close(), this > frees up both the statement and resultset's memory associated with the > connection if it was still open. If I close a connection with Tomcat's > ConnectionPool, does it also close the statement and resultset's associated > with that particular connection or do I need to manually close them? This is a good question that was partially discussed over the past few days (see the thread "DBCP woes (running out of cursors)." for the whole sordid mess, but here's a quote from me: " Technically speaking, the JDBC specification requires that calling Connection.close() also close any Statement (and therefore ResultSet) objects that were opened as well. The lines become blurred a bit when you're talking about pooled connections, because Connection.close() doesn't really get called... it's a grey area in the spec if you ask me, but I'd prefer that a pooled connection act like a non-pooled connection in this case, but there's no "recycle" or "reset" method in the java.sql.Connection class, and calling Connection.close() on the actual connection is not appropriate (since it's pooled) so there may be no way to actually implement this mimicry. " > I know best practice is to not rely on anything to be closed automatically, > but I inherited a code base and I am looking at making some pretty > significant changes to fix some problems, and this is one of them. At the risk of being doubly-self-referential: http://blog.christopherschultz.net/?p=68 Fortunately, clean JDBC code doesn't need to be all that messy (uh... right). - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkrqcmgACgkQ9CaO5/Lv0PBc/QCdHPc6AFdcLPhxYDU6hpL+mFEP s9gAoJJznfRIoDhFPvm98R8Q9kx6n7Tr =puM5 -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: A question about log-rotation on "catalina.out"
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 10/29/2009 6:47 PM, André Warnier wrote: > 4) If it works, this has got to go on the WiKi I apologize for possibly sounding like a jerk, but my suggestion seemed somewhat self-evident given the various configuration options. > Christopher Schultz wrote: >> >> I think you can get this effect by: >> >> 1. Setting > 2. Configure a context logger in logging.properties like this: >> >>handlers = , crappyWebAppHandler >>crappyWebAppHandler.level=FINE >>crappyWebAppHandler.directory=mychoice >>crappyWebAppHandler.prefix=mychoicetoo >># not sure about suffix >> >># Next is all on one line: >> >> org.apache.catalina.code.ContainerBase.[ServiceName].[hostname].[/contextName].handlers=crappyWebAppHandler >> >># done with all-on-one-line > > Q : are the above [things] literal, or meant to be replaced by the > respective values ? Typically, you'd have: org.apache.catalina.code.ContainerBase.[Catalina].[localhost].[/yourWebApp].handlers=crappyWebAppHandler > Qbis : by the way, and I know you're probably going to object to this, > but is there something above stopping me from directing that to a pipe > on the filesystem, where I pick it up with an external rotatelog or > something ? Not at all. As far as the logging system is concerned, it simply opens an output stream (probably a "Writer", technically) and writes to it. I think a named pipe is a great idea (which would work with catalina.out, too, so the complexity of this solution might not be worth if if you're willing to use a named pipe in the first place). > No, I don't want to learn log4j. It looks too much like lifelong > dedication is needed, just like Java (*). Nah. Actually, once you write a single log4j configuration file (and figure out wtf "additivity" is), you're set (kinda like Perl!). > (*) Actually, it's not the Java language itself, which is quite simple > and elegant. But it's that in order to do anything at all in that > language, you first need to become familiar with dozens of class > hierarchies. Kinda like CPAN :) Good luck, - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkrqcQ0ACgkQ9CaO5/Lv0PDu6ACgxDe6zVVQvPo7ipMs2QuvMzy2 DwcAnR+q6u0rI5BYZaWEstf8kYD+VBUw =tKKP -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: A question about log-rotation on "catalina.out"
> From: Rainer Jung [mailto:rainer.j...@kippdata.de] > Subject: Re: A question about log-rotation on "catalina.out" > > Two times in one day: > > http://mail-archives.apache.org/mod_mbox/httpd- > docs/200910.mbox/raw/%3c20091029112545.gz5...@cr%3e/ > > contains: > > "When you've got a hammer, everything start looking like a nail." > > So either we are reading the same lists, or this is spreading like > swine flu. "The fundamental interconnectedness of all things." (And I have never read any httpd mailing list.) - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
ConnectionPool question
I wrote some code on top of the Tomcat's ConnectionPool class. In regular Java based programming if I close a ResultSet with connection.close(), this frees up both the statement and resultset's memory associated with the connection if it was still open. If I close a connection with Tomcat's ConnectionPool, does it also close the statement and resultset's associated with that particular connection or do I need to manually close them? I know best practice is to not rely on anything to be closed automatically, but I inherited a code base and I am looking at making some pretty significant changes to fix some problems, and this is one of them. Thanks in advance, - Josh
Re: A question about log-rotation on "catalina.out"
On 30.10.2009 01:35, Caldarale, Charles R wrote: >> From: peter.crowth...@googlemail.com >> [mailto:peter.crowth...@googlemail.com] On Behalf Of Peter Crowther >> Subject: Re: A question about log-rotation on "catalina.out" >> >> ... you've not played with Smalltalk, have you? :-) Arithmetic isn't >> built into the language, it's part of the class library. > > Smalltalk is a classic example of the philosophy: "I have a hammer, therefore > everything is a nail." Two times in one day: http://mail-archives.apache.org/mod_mbox/httpd-docs/200910.mbox/raw/%3c20091029112545.gz5...@cr%3e/ contains: "When you've got a hammer, everything start looking like a nail." So either we are reading the same lists, or this is spreading like swine flu. Regards, Rainer - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: A question about log-rotation on "catalina.out"
> From: peter.crowth...@googlemail.com > [mailto:peter.crowth...@googlemail.com] On Behalf Of Peter Crowther > Subject: Re: A question about log-rotation on "catalina.out" > > ... you've not played with Smalltalk, have you? :-) Arithmetic isn't > built into the language, it's part of the class library. Smalltalk is a classic example of the philosophy: "I have a hammer, therefore everything is a nail." - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: A question about log-rotation on "catalina.out"
2009/10/29 André Warnier : > (*) Actually, it's not the Java language itself, which is quite simple and > elegant. But it's that in order to do anything at all in that language, you > first need to become familiar with dozens of class hierarchies. ... you've not played with Smalltalk, have you? :-) Arithmetic isn't built into the language, it's part of the class library. - Peter - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: A question about log-rotation on "catalina.out"
Christopher, 1) :-) 2) I'll definitely try it. It looks like it's worth the effort (and as a reward for yours). 3) I have a question in the text below 4) If it works, this has got to go on the WiKi Christopher Schultz wrote: I think you can get this effect by: 1. Setting Q : are the above [things] litteral, or meant to be replaced by the respective values ? Qbis : by the way, and I know you're probably going to object to this, but is there something above stopping me from directing that to a pipe on the filesystem, where I pick it up with an external rotatelog or something ? I'm not sure if JULI/Tomcat-JULI/whatever supports rotation directly, but at least it's not using shell-redirection at this point. If you want to step-into the log4j world (totally worth it!), you can use log4j's rotation capabilities, which I highly recommend. No, I don't want to learn log4j. It looks too much like lifelong dedication is needed, just like Java (*). I am not an intensive Java programmer. I'm an intensive Perl programmer. I kind of like Java to look at. And I try to keep a veneer of knowledge about it and Tomcat, just to keep these younguns in meetings from thinking they can impress me into submission. (*) Actually, it's not the Java language itself, which is quite simple and elegant. But it's that in order to do anything at all in that language, you first need to become familiar with dozens of class hierarchies. I would even add a couple of additional optional attributes blackHole="true" crappWebAppHandler.level=SEVERE (or whatever) when="rightnow" Uh... bin/shutdown.sh && sleep 5000 && bin/startup.sh ?? :-) - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: A question about log-rotation on "catalina.out"
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 10/29/2009 2:38 PM, André Warnier wrote: > Christopher Schultz wrote: >> >> [Cue Andre's rant about logging configuration in Tomcat 5+] >> > Yes, I want a new >logpath="mychoice" prefix="mychoicetoo" suffix="mychoicealso" > rotate="mychoiceagain" /> > that will suck in all the logs that these undisciplined application > developers dream up and direct all over the place. I think you can get this effect by: 1. Setting I would even add a couple of additional optional attributes > blackHole="true" crappWebAppHandler.level=SEVERE (or whatever) > when="rightnow" Uh... bin/shutdown.sh && sleep 5000 && bin/startup.sh ?? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkrqAw8ACgkQ9CaO5/Lv0PDJ/QCfRvxDA5eZL912Mx30a5AouqxQ wPQAoIYwyUb1T0DHBEzDUj8rX0aKam/T =4cPA -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: A question about log-rotation on "catalina.out"
Christopher Schultz wrote: [Cue Andre's rant about logging configuration in Tomcat 5+] Yes, I want a new logpath="mychoice" prefix="mychoicetoo" suffix="mychoicealso" rotate="mychoiceagain" /> that will suck in all the logs that these undisciplined application developers dream up and direct all over the place. I would even add a couple of additional optional attributes blackHole="true" & when="rightnow" for when I'm really not in the mood. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: 302 Error with XMLRPC app
Worked like a champ! Thanks, I was struggling. >-Original Message- >From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] >Sent: Thursday, October 29, 2009 1:12 PM >To: Tomcat Users List >Subject: RE: 302 Error with XMLRPC app > >> From: Mike Baranski [mailto:list-subscripti...@secmgmt.com] >> Subject: RE: 302 Error with XMLRPC app >> >> Webapp is in /var/www/apache-tomcat-5.5.27/webapps/xmlrpc-status.war > >Change the servlet mapping in your WEB-INF/web.xml to: > > >XmlRpcServlet >/* > > >The URL path of the webapp must not be included in the . > > - Chuck > > >THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY >MATERIAL and is thus for use only by the intended recipient. If you >received this in error, please contact the sender and delete the e-mail >and its attachments from all computers. > > >- >To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org >For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: 302 Error with XMLRPC app
> From: Mike Baranski [mailto:list-subscripti...@secmgmt.com] > Subject: RE: 302 Error with XMLRPC app > > Webapp is in /var/www/apache-tomcat-5.5.27/webapps/xmlrpc-status.war Change the servlet mapping in your WEB-INF/web.xml to: XmlRpcServlet /* The URL path of the webapp must not be included in the . - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: A question about log-rotation on "catalina.out"
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 - -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thomas, (Looks like my first attempt got botched. Here it is, again.) On 10/29/2009 5:17 AM, thomas2004 wrote: > > I've installed Tomcat 5.5.27 on Linux. Though the "catalina.out" will be > > rotated everyday, i.g. "catalina.-mm-dd.log. But the "catalina.out"-self > > doesn't begin from the new day but still contains the old log messages. I've > > heard this is default setting. Is it true? > > > > How can I improve this log-rotation so that everyday the "catalina.out" will > > be closed and a new one created which just holds the current day log > > messages? How do you do log rotation? Tomcat does not include any catalina.out log rotation in the standard package, so you (or someone else) must have added such a technique. There have been several questions in this list in the last year or so about rotating catalina.out and the bottom line is that catalina.out log rotation is a black art and requires that you really consider all the moving parts in the system. My suggestion: change catalina.out into a named pipe on the disk (since you're on *NIX) and run a program that's meant to consume log messages from a named pipe and write them to a rotated log file (or database, or syslog, or whatever). I believe this will give you the file rotation you desire and ensure that you don't lose any log messages during the rotation. Frankly speaking, catalina.out should not be getting any messages written to it besides Tomcat startup and shutdown information. Everything else should be explicitly set to use "real" logging mechanisms. [Cue Andre's rant about logging configuration in Tomcat 5+] - - -chris - -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkrpuBcACgkQ9CaO5/Lv0PBgoQCgrF3Mx+YvS7uu7Hocw5VXE+P6 77sAnA89GALqo8P53eGR9nR2u7oNDhwG =xmwx - -END PGP SIGNATURE- -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkrpzDsACgkQ9CaO5/Lv0PDVKQCbBdhbw4d7SNIlAzeCOiEaQgXP Zd8AniBz1+bwmpqQ3qLOZtz+ZT+e5s9s =Cb/s -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: 302 Error with XMLRPC app
Tomcat 5.5.27 Webapp is in /var/www/apache-tomcat-5.5.27/webapps/xmlrpc-status.war Deployed and running as 'root' on FC 5 Server.xml is attached. Thanks for the help, Chuck. >-Original Message- >From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] >Sent: Thursday, October 29, 2009 12:42 PM >To: Tomcat Users List >Subject: RE: 302 Error with XMLRPC app > >> From: Mike Baranski [mailto:list-subscripti...@secmgmt.com] >> Subject: RE: 302 Error with XMLRPC app >> >> reply: 'HTTP/1.1 404 Not Found\r\n' > >Now we need more information about how you have Tomcat and your webapp >set up. > >Tomcat version? > >How and where is the webapp deployed? > >You may want to post your server.xml and the file containing the > element for the webapp (if any). > >If you're running on any reasonably recent version of Tomcat, your >webapp will need to be deployed as ROOT (case sensitive) under the > appBase directory, if you want the URL you're using to work. > > - Chuck > > >THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY >MATERIAL and is thus for use only by the intended recipient. If you >received this in error, please contact the sender and delete the e-mail >and its attachments from all computers. > > >- >To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org >For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: 302 Error with XMLRPC app
> From: Mike Baranski [mailto:list-subscripti...@secmgmt.com] > Subject: RE: 302 Error with XMLRPC app > > reply: 'HTTP/1.1 404 Not Found\r\n' Now we need more information about how you have Tomcat and your webapp set up. Tomcat version? How and where is the webapp deployed? You may want to post your server.xml and the file containing the element for the webapp (if any). If you're running on any reasonably recent version of Tomcat, your webapp will need to be deployed as ROOT (case sensitive) under the appBase directory, if you want the URL you're using to work. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: 302 Error with XMLRPC app
Thanks Chuck, tried that, here's my python output: Server created connect: (sirrus, 8080) send: 'POST /xmlrpc-status/ HTTP/1.0\r\nHost: sirrus:8080\r\nUser-Agent: xmlrpclib.py/1.0.1 (by www.pythonware.com)\r\nContent-Type: text/xml\r\nContent-Length: 111\r\n\r\n' send: "\n\nChangeStatus.ping\n< params>\n\n\n" reply: 'HTTP/1.1 404 Not Found\r\n' header: Server: Apache-Coyote/1.1 header: Content-Type: text/html;charset=utf-8 header: Content-Length: 997 header: Date: Thu, 29 Oct 2009 16:32:18 GMT header: Connection: close ERROR Done >-Original Message- >From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] >Sent: Thursday, October 29, 2009 11:46 AM >To: Tomcat Users List >Subject: RE: 302 Error with XMLRPC app > >> From: Mike Baranski [mailto:list-subscripti...@secmgmt.com] >> Subject: 302 Error with XMLRPC app >> >> p = xmlrpclib.ServerProxy("http://192.168.1.15:8080/xmlrpc-status";) > >> Any idea why I get the 302 error? My XML-RPC appears to be correct. > >As I recall, the 302 is required by the spec, since the target is not a >static resource. Try changing your URL to >"http://192.168.1.15:8080/xmlrpc-status/"; (note the trailing slash). > > - Chuck > > >THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY >MATERIAL and is thus for use only by the intended recipient. If you >received this in error, please contact the sender and delete the e-mail >and its attachments from all computers. > > >- >To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org >For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: [OT] Re: So many timeout values
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Peter, On 10/29/2009 4:16 AM, Peter Crowther wrote: > More seriously, I agree with you and would add a second reason: doing > a little work in a language that is reasonably "close to the metal" > gives an insight into how the machine actually works, which stands you > in good stead when thinking about algorithms and resource usage in > those higher-level languages. +1000 I've seen "programmers" hack together components simply because they work and get the job done without regard to the performance of their code or sloppiness of the implementation in terms of resource usage, etc. Sorted heaps and vectors of objects instead of simple arrays, String representations of things instead of using native data types or custom objects. I've even seen a whole set of abstract (domain-specific) data types represented by multiply-nested Vector objects with the order of the objects in the Vector enforced by nothing more than (loosely-followed) convention. Ugh. Recently, someone posted to this list asking about serving images off the disk by using an ImageIO library to read a file and then serializing the image to the response's output stream (with no image processing). Sure, that gets the job done, but bytes are bytes so there was no reason whatsoever to use the ImageIO library, other than the fact that "there was an API to work with images, and [I'm] working with images, so it makes sense, right" [not the words of the poster, but I'm thinking that was his/her reasoning]. > (And building a primitive CPU from components helps even more, but not > many of us get to do that any more!) In college ("university"), I got to build a RISC CPU using a software package called LogicWorks. Very cool when it worked properly. We had several floppy disks laying around with time-stamped backups of the "hardware" laying around because one false move could irreparably ruin the virtual CPU. My team had the second-fastest CPU in the class, and the winners had brilliantly written some of their instructions to take multiple clock ticks so that the single-tick instructions were stupidly fast. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkrpuecACgkQ9CaO5/Lv0PCLWACgtOIKaizwRYAnWizO9TOjdYSj oa4AoJIVpKm2j1PxxZjDpJKS3IkijRLO =+MHY -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: loading a CharsetProvider via WebappClassLoader
I guess this bug will be of interest since it mentions both jutf7 and webapps ;-) http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4619777 On Thu, Oct 29, 2009 at 11:42 AM, Kris Schneider wrote: > While the Javadoc for CharsetProvider claims that providers are looked > up via the current thread's context class loader, the code for Charset > seems to clearly be using ClassLoader.getSystemClassLoader()... > > On Thu, Oct 29, 2009 at 10:51 AM, Ronald Klop > wrote: >> Hi, >> >> I have this jar (jutf7.jar) which should register itself with the >> CharsetProvider of Java. If I put it in the WEB-INF/lib directory it is >> ignored by Java. I understand that this is because of order in which the >> WebappClassLoader asks all other classloaders for a class. >> How can this be solved? Withouting having to deploy a jar file outside of >> the webapp. Or is this not possible? >> >> Thanks in advance for any tips. >> >> Ronald. > > -- > Kris Schneider > -- Kris Schneider - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: 302 Error with XMLRPC app
> From: Mike Baranski [mailto:list-subscripti...@secmgmt.com] > Subject: 302 Error with XMLRPC app > > p = xmlrpclib.ServerProxy("http://192.168.1.15:8080/xmlrpc-status";) > Any idea why I get the 302 error? My XML-RPC appears to be correct. As I recall, the 302 is required by the spec, since the target is not a static resource. Try changing your URL to "http://192.168.1.15:8080/xmlrpc-status/"; (note the trailing slash). - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: A question about log-rotation on "catalina.out"
binuQvzTFsbws.bin Description: PGP/MIME version identification
Re: loading a CharsetProvider via WebappClassLoader
While the Javadoc for CharsetProvider claims that providers are looked up via the current thread's context class loader, the code for Charset seems to clearly be using ClassLoader.getSystemClassLoader()... On Thu, Oct 29, 2009 at 10:51 AM, Ronald Klop wrote: > Hi, > > I have this jar (jutf7.jar) which should register itself with the > CharsetProvider of Java. If I put it in the WEB-INF/lib directory it is > ignored by Java. I understand that this is because of order in which the > WebappClassLoader asks all other classloaders for a class. > How can this be solved? Withouting having to deploy a jar file outside of > the webapp. Or is this not possible? > > Thanks in advance for any tips. > > Ronald. -- Kris Schneider - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
302 Error with XMLRPC app
Here is my web.xml: http://java.sun.com/dtd/web-app_2_3.dtd";> Security Managment Consulting XmlRpcServlet org.apache.xmlrpc.webserver.XmlRpcServlet XmlRpcServlet /xmlrpc-status/* I have the following java class: package com.secmgmt.xmlrpc.change_status; import org.apache.log4j.Logger; public class ChangeStatus { public static final int SUCCESS = 0; public static final int INVALID_LOGIN = 1; public static final int EID_NOT_FOUND = 2; public static final int SERVER_NOT_PRIMARY = 3; public static final int NO_CHANGE_NEEDED = 4; private static Logger l = Logger.getLogger(ChangeStatus.class); public static final String ACTIVE = "ACTIVE"; public static final String INACTIVE = "INACTIVE"; public static final int PP_ACTIVE = 0; public static final int PP_INACTIVE = 1; public ChangeStatus() { l.debug("Created the status xmlrpc class"); } public boolean ping() { return true; } public int add(int one, int two) { l.debug("Adding " + one + " and " + two); return one + two; } public int changeStatus(String eid, String user, String password, String status) { return SUCCESS; } } The following in the properties file: ChangeStatus=com.secmgmt.xmlrpc.picture.four.change_status.ChangeStatus My webapp deploys properly, and I never see an error in the logs anywhere when I hit it. My python program is: #!/usr/bin/python2 import xmlrpclib from pprint import pprint p = xmlrpclib.ServerProxy("http://192.168.1.15:8080/xmlrpc-status";) print "Server created" try: #print p.system.listMethods() #print dir(p) p._ServerProxy__verbose = 1 print "Ping result: %s" % (p.ChangeStatus.ping()) except xmlrpclib.Error, v: print "ERROR", v pass print "Done" Here is the output: Server created connect: (192.168.1.15, 8080) send: 'POST /xmlrpc-status HTTP/1.0\r\nHost: 192.168.1.15:8080\r\nUser-Agent: xmlrpclib.py/1.0.1 (by www.pythonware.com)\r\nContent-Type: text/xml\r\nContent-Length: 111\r\n\r\n' send: "\n\nChangeStatus.ping\n< params>\n\n\n" reply: 'HTTP/1.1 302 Moved Temporarily\r\n' header: Server: Apache-Coyote/1.1 header: Location: http://192.168.1.15:8080/xmlrpc-status/ header: Date: Wed, 28 Oct 2009 19:47:50 GMT header: Connection: close ERROR Done Any idea why I get the 302 error? My XML-RPC appears to be correct. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: [OT] Re: So many timeout values
On Thu, Oct 29, 2009 at 10:30 AM, André Warnier wrote: > Warren Pace wrote: >> >> On Thu, Oct 29, 2009 at 9:14 AM, Caldarale, Charles R >> wrote: From: André Warnier [mailto:a...@ice-sa.com] Subject: Re: [OT] Re: So many timeout values As long as we're on the [OT] subject, how about learning about the judicious and parcimonious usage of sorted data structures, on a computer with 16 Kb of RAM and punched paper cards as its only external memory store (IBM System 4, RPG) ? 2 GB heaps, ha ! Anyone else upping the ante ? >>> >>> Univac 1004: 961 *6-bit* bytes of core memory, programmed via squids on a >>> plugboard. Handled punch cards, paper tape, and printing; tape drive >>> optional (we didn't have one). Had a tendency to throw cards all over the >>> room if not handled properly. >>> >>> - Chuck >>> >>> I'd say you win, Chuck. >> > Yep, I give up. > I was kind of baiting Chuck, I suspected he would win in the end. > But I was hoping for someone to come up in-between up with a Cromemco or > NortStar CPU board, for S-100 bus, with a telex paper tape reader as boot > device.. > The thing above kind of trumps that however. > The only 6-bit bytes machine I remember was a Control Data 6600. It had 10 > of them in a word though, so pretty big integers. > >I have to admit that I started out on a IBM System/32. Much more advanced >system than anything mentioned in this thread. I still remember some RPG, >though... > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
loading a CharsetProvider via WebappClassLoader
Hi, I have this jar (jutf7.jar) which should register itself with the CharsetProvider of Java. If I put it in the WEB-INF/lib directory it is ignored by Java. I understand that this is because of order in which the WebappClassLoader asks all other classloaders for a class. How can this be solved? Withouting having to deploy a jar file outside of the webapp. Or is this not possible? Thanks in advance for any tips. Ronald.
Re: [OT] Re: So many timeout values
Warren Pace wrote: On Thu, Oct 29, 2009 at 9:14 AM, Caldarale, Charles R wrote: From: André Warnier [mailto:a...@ice-sa.com] Subject: Re: [OT] Re: So many timeout values As long as we're on the [OT] subject, how about learning about the judicious and parcimonious usage of sorted data structures, on a computer with 16 Kb of RAM and punched paper cards as its only external memory store (IBM System 4, RPG) ? 2 GB heaps, ha ! Anyone else upping the ante ? Univac 1004: 961 *6-bit* bytes of core memory, programmed via squids on a plugboard. Handled punch cards, paper tape, and printing; tape drive optional (we didn't have one). Had a tendency to throw cards all over the room if not handled properly. - Chuck I'd say you win, Chuck. Yep, I give up. I was kind of baiting Chuck, I suspected he would win in the end. But I was hoping for someone to come up in-between up with a Cromemco or NortStar CPU board, for S-100 bus, with a telex paper tape reader as boot device.. The thing above kind of trumps that however. The only 6-bit bytes machine I remember was a Control Data 6600. It had 10 of them in a word though, so pretty big integers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Authencation in apache tomcat
2009/10/29 daulat khan : > httpd version : httpd-2.2.11 Reasonably recent. > Tomcat Version : jakarta-tomcat-4.1.18 Ancient. I'd strongly recommend upgrading. > Mod_JK version : jakarta-tomcat-connectors-1.2.15-src Ancient. I'd strongly recommend upgrading. > Stack trace : > > java.lang.NullPointerException > at java.util.Hashtable.put(Hashtable.java:396) > at com.cisco.earms.fm.Dispatcher.doPost(Dispatcher.java:559) Hmm. That's not Tomcat code; do you have any way of finding out what it's doing? - Peter - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: [OT] Re: So many timeout values
2009/10/29 Caldarale, Charles R : >> From: peter.crowth...@googlemail.com >> That's not even a "modern" stored-program computer! > > Just because it used relays as the logic elements? Hmm. I started writing a response here along the lines of "because it didn't keep the code in main memory", then thought about EPROM, paging etc. Ignore that comment :-). I have no problem at all with relay computers, other than the noise! - Peter - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Authencation in apache tomcat
> From: daulat khan [mailto:daulat@gmail.com] > Subject: Re: Authencation in apache tomcat > > And one more query peter. When i deployed the Application into > apache-tomcat, the speed of loading the servlet is very low. compated > to apache-jrun setup. May i know what is the reason behind this ? Might have something to do with using a version of Tomcat that's seven years old and not supported? Please, please, please upgrade to a reasonably recent level. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: [OT] Re: So many timeout values
> From: peter.crowth...@googlemail.com > [mailto:peter.crowth...@googlemail.com] On Behalf Of Peter Crowther > Subject: Re: [OT] Re: So many timeout values > > That's not even a "modern" stored-program computer! Just because it used relays as the logic elements? It was a stored-program computer, although we stored the various plugboards in a closet... This was 1969, and the 1004 was attached to an 1108a via a 6-bit channel. We occasionally had to reprogram the 1004 for special jobs, depending on the character set used for the paper tape or cards. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Authencation in apache tomcat
And one more query peter. When i deployed the Application into apache-tomcat, the speed of loading the servlet is very low. compated to apache-jrun setup. May i know what is the reason behind this ? Thanks, Daulatkhan On Thu, Oct 29, 2009 at 6:56 PM, daulat khan wrote: > Hi Peter, > > Please find the details as follows : >I > httpd version : httpd-2.2.11 > Tomcat Version : jakarta-tomcat-4.1.18 > Mod_JK version : jakarta-tomcat-connectors-1.2.15-src > Stack trace : > > java.lang.NullPointerException > at java.util.Hashtable.put(Hashtable.java:396) > at com.cisco.earms.fm.Dispatcher.doPost(Dispatcher.java:559) > at com.cisco.earms.fm.Dispatcher.doGet(Dispatcher.java:240) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) > at > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260) > at > org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) > at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) > at > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) > at > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) > at > org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) > at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) > at > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) > at > org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) > at > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) > at > org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) > at > org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) > at > org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) > at > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) > at > org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) > at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) > at > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) > at > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) > at > org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) > at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) > at > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) > at > org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:458) > at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551) > at java.lang.Thread.run(Thread.java:595) > > > > Thanks, > Daulatkhan > > On Thu, Oct 29, 2009 at 5:15 PM, Peter Crowther > wrote: >> httpd version? >> jk version? >> Tomcat version? >> Stack trace of NPE? >> >> - Peter >> >> 2009/10/29 daulat khan : >>> Hi, >>> >>> I have an java servlet application which is running >>> fine in Apache-Jrun setup. recently, i have migrated it from jrun to >>> tomcat. i have launced the application in apache-tomcat setup. The >>> problem i faced was i am using basic authentication in apache side and >>> passing REMOTE_USER value to tomcat using mod_jk. when i launched the >>> application it pops up the authenication window and when i supply the >>> values it accepts and launches the application with null pointer >>> exception. but when i refresh the page it is launching the application >>> without any exception. whether any setup to be changed in the server >>> settings ? Can anyone help me in this ? >>> >>> Thanks, >>> Daulatkhan >>> >>> - >>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org >>> For additional commands, e-mail: users-h...@tomcat.apache.org >>> >>> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org >> For additional commands, e-mail: users-h...@tomcat.apache.org >> >> > - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apa
Re: Authencation in apache tomcat
Hi Peter, Please find the details as follows : httpd version : httpd-2.2.11 Tomcat Version : jakarta-tomcat-4.1.18 Mod_JK version : jakarta-tomcat-connectors-1.2.15-src Stack trace : java.lang.NullPointerException at java.util.Hashtable.put(Hashtable.java:396) at com.cisco.earms.fm.Dispatcher.doPost(Dispatcher.java:559) at com.cisco.earms.fm.Dispatcher.doGet(Dispatcher.java:240) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:458) at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551) at java.lang.Thread.run(Thread.java:595) Thanks, Daulatkhan On Thu, Oct 29, 2009 at 5:15 PM, Peter Crowther wrote: > httpd version? > jk version? > Tomcat version? > Stack trace of NPE? > > - Peter > > 2009/10/29 daulat khan : >> Hi, >> >> I have an java servlet application which is running >> fine in Apache-Jrun setup. recently, i have migrated it from jrun to >> tomcat. i have launced the application in apache-tomcat setup. The >> problem i faced was i am using basic authentication in apache side and >> passing REMOTE_USER value to tomcat using mod_jk. when i launched the >> application it pops up the authenication window and when i supply the >> values it accepts and launches the application with null pointer >> exception. but when i refresh the page it is launching the application >> without any exception. whether any setup to be changed in the server >> settings ? Can anyone help me in this ? >> >> Thanks, >> Daulatkhan >> >> - >> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org >> For additional commands, e-mail: users-h...@tomcat.apache.org >> >> > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: [OT] Re: So many timeout values
2009/10/29 Caldarale, Charles R : > Univac 1004: 961 *6-bit* bytes of core memory, programmed via squids on a > plugboard. Handled punch cards, paper tape, and printing; tape drive > optional (we didn't have one). Had a tendency to throw cards all over the > room if not handled properly. > > - Chuck :-) That's not even a "modern" stored-program computer! - Peter - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: [OT] Re: So many timeout values
On Thu, Oct 29, 2009 at 9:14 AM, Caldarale, Charles R wrote: >> From: André Warnier [mailto:a...@ice-sa.com] >> Subject: Re: [OT] Re: So many timeout values >> >> As long as we're on the [OT] subject, how about learning about the >> judicious and parcimonious usage of sorted data structures, on a >> computer with 16 Kb of RAM and punched paper cards as its only external >> memory store (IBM System 4, RPG) ? >> 2 GB heaps, ha ! >> >> Anyone else upping the ante ? > > Univac 1004: 961 *6-bit* bytes of core memory, programmed via squids on a > plugboard. Handled punch cards, paper tape, and printing; tape drive > optional (we didn't have one). Had a tendency to throw cards all over the > room if not handled properly. > > - Chuck > >I'd say you win, Chuck. > THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY > MATERIAL and is thus for use only by the intended recipient. If you received > this in error, please contact the sender and delete the e-mail and its > attachments from all computers. > > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: [OT] Re: So many timeout values
> From: André Warnier [mailto:a...@ice-sa.com] > Subject: Re: [OT] Re: So many timeout values > > As long as we're on the [OT] subject, how about learning about the > judicious and parcimonious usage of sorted data structures, on a > computer with 16 Kb of RAM and punched paper cards as its only external > memory store (IBM System 4, RPG) ? > 2 GB heaps, ha ! > > Anyone else upping the ante ? Univac 1004: 961 *6-bit* bytes of core memory, programmed via squids on a plugboard. Handled punch cards, paper tape, and printing; tape drive optional (we didn't have one). Had a tendency to throw cards all over the room if not handled properly. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Authencation in apache tomcat
httpd version? jk version? Tomcat version? Stack trace of NPE? - Peter 2009/10/29 daulat khan : > Hi, > > I have an java servlet application which is running > fine in Apache-Jrun setup. recently, i have migrated it from jrun to > tomcat. i have launced the application in apache-tomcat setup. The > problem i faced was i am using basic authentication in apache side and > passing REMOTE_USER value to tomcat using mod_jk. when i launched the > application it pops up the authenication window and when i supply the > values it accepts and launches the application with null pointer > exception. but when i refresh the page it is launching the application > without any exception. whether any setup to be changed in the server > settings ? Can anyone help me in this ? > > Thanks, > Daulatkhan > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Authencation in apache tomcat
Hi, I have an java servlet application which is running fine in Apache-Jrun setup. recently, i have migrated it from jrun to tomcat. i have launced the application in apache-tomcat setup. The problem i faced was i am using basic authentication in apache side and passing REMOTE_USER value to tomcat using mod_jk. when i launched the application it pops up the authenication window and when i supply the values it accepts and launches the application with null pointer exception. but when i refresh the page it is launching the application without any exception. whether any setup to be changed in the server settings ? Can anyone help me in this ? Thanks, Daulatkhan - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Servlet 3.0...
Rex Wang wrote: > hi, Dear Tomcat Developers, > We adopt tomcat as an embeded servlet container in our system. Could you > guys share with us any plan to implement the servlet 3.0 specification, Look in the dev archives. > or can I have a preview in current trunk(7.0) snapshot? You'll need to build it yourself from svn. mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Enabling cipher siutes
Rozhkevitch Alexandr wrote: > Hi, > > I have a question about configuring a ssl connector. By default tomcat > use Cipher Suite: TLS_DHE_RSA_WITH_AES_128_CBC_SHA when I use my opera > browser. Please don't hijack threads. mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Configure ssl
Nilesh Patil wrote: > thanks for replay.. > but already did taht steps... and i think u didtn read my message... Nope - you didn't read the Google results. The first link teels you everything you need to know. Mark > Dear I am getting warnig messge after hiting the url in the browser > so i think i am missing some setting... > > Thanks again... > > > On Wed, Oct 28, 2009 at 5:51 PM, Nilesh Patil > wrote: > >> Dear forum , >>I am working on SLL Implemetaion. we are using jboss app server. I am >> using thawte's trail certificate for test purpose. >> The application is running well but when i hit the URL with https the >> browser warns me regarding Untrusted web page. when i click on certificate >> Install , in certificate window it display Issued by and Created by "my >> server name" instead of Thawte. >> >> Waht would be the Issue. Did I missed any Setting.. >> Please guide me... >> >> Thanks In Advance.. >> Nilesh. >> > - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: A question about log-rotation on "catalina.out"
What do you mean "send stdout and stderr to logger(1) instead"? How to do it? Harald Dunkel-3 wrote: > > thomas2004 wrote: >> Hi all, >> >> I have now a problem/question: >> >> I've installed Tomcat 5.5.27 on Linux. Though the "catalina.out" will be >> rotated everyday, i.g. "catalina.-mm-dd.log. But the >> "catalina.out"-self >> doesn't begin from the new day but still contains the old log messages. >> I've >> heard this is default setting. Is it true? >> > > catalina.out is written via I/O redirection in the startup script. > Maybe you would like to send stdout and stderr to logger(1) instead? > > > Hope this helps > > Regards > > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > > -- View this message in context: http://www.nabble.com/A-question-about-log-rotation-on-%22catalina.out%22-tp26109469p26109909.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: [OT] Re: So many timeout values
I was the happiest man in the world when they delivered our shiny new System/34. No more punch cards! --Original Message-- From: André Warnier To: Tomcat Users List ReplyTo: Tomcat Users List ReplyTo: Tomcat Users List Subject: Re: [OT] Re: So many timeout values Sent: Oct 29, 2009 5:08 AM Peter Crowther wrote: > 2009/10/28 Christopher Schultz : >> Everybody ought to learn a little C at some point. It will make you >> really appreciate a relatively clean language like Java. > > ICL PLAN3 asembler, anyone? :-) > > More seriously, I agree with you and would add a second reason: doing > a little work in a language that is reasonably "close to the metal" > gives an insight into how the machine actually works, which stands you > in good stead when thinking about algorithms and resource usage in > those higher-level languages. > As long as we're on the [OT] subject, how about learning about the judicious and parcimonious usage of sorted data structures, on a computer with 16 Kb of RAM and punched paper cards as its only external memory store (IBM System 4, RPG) ? 2 GB heaps, ha ! Anyone else upping the ante ? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org Sent from my Verizon Wireless BlackBerry
Re: A question about log-rotation on "catalina.out"
thomas2004 wrote: > Hi all, > > I have now a problem/question: > > I've installed Tomcat 5.5.27 on Linux. Though the "catalina.out" will be > rotated everyday, i.g. "catalina.-mm-dd.log. But the "catalina.out"-self > doesn't begin from the new day but still contains the old log messages. I've > heard this is default setting. Is it true? > catalina.out is written via I/O redirection in the startup script. Maybe you would like to send stdout and stderr to logger(1) instead? Hope this helps Regards - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
A question about log-rotation on "catalina.out"
Hi all, I have now a problem/question: I've installed Tomcat 5.5.27 on Linux. Though the "catalina.out" will be rotated everyday, i.g. "catalina.-mm-dd.log. But the "catalina.out"-self doesn't begin from the new day but still contains the old log messages. I've heard this is default setting. Is it true? How can I improve this log-rotation so that everyday the "catalina.out" will be closed and a new one created which just holds the current day log messages? -- View this message in context: http://www.nabble.com/A-question-about-log-rotation-on-%22catalina.out%22-tp26109469p26109469.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: [OT] Re: So many timeout values
Peter Crowther wrote: 2009/10/28 Christopher Schultz : Everybody ought to learn a little C at some point. It will make you really appreciate a relatively clean language like Java. ICL PLAN3 asembler, anyone? :-) More seriously, I agree with you and would add a second reason: doing a little work in a language that is reasonably "close to the metal" gives an insight into how the machine actually works, which stands you in good stead when thinking about algorithms and resource usage in those higher-level languages. As long as we're on the [OT] subject, how about learning about the judicious and parcimonious usage of sorted data structures, on a computer with 16 Kb of RAM and punched paper cards as its only external memory store (IBM System 4, RPG) ? 2 GB heaps, ha ! Anyone else upping the ante ? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: FW: Apache Close-Wait issue
Fair point Andre...will submit this to httpd forum...thanks for the reply -Original Message- From: André Warnier [mailto:a...@ice-sa.com] Sent: 29 October 2009 07:59 To: Tomcat Users List Subject: Re: FW: Apache Close-Wait issue Darren Kukulka wrote: > No one willing to touch this one? I thought I'd get at least a passing > comment...:-( > Passing comment : maybe the fact that this is the Tomcat help forum, and that your problem seems to be more linked to the Apache httpd webserver and "network appliance" side of things, is a reason ? ;-) As another passing comment : a connection in the CLOSE_WAIT state means that one side has closed the connection, but the other side has not. If it remains so for a long time, it probably indicates some issue in the code. If this was Tomcat, I would suspect an object instance containing a socket, with the object having been discarded without closing the socket first, and the discarded object sitting on the heap waiting to be garbage-collected. In my experience, these things just pile up, and when there are enough of them (a couple of hundred ?), you may reach a stage where the system's network stack becomes unresponsive, totally. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org Connaught plc is a FTSE 250 company. We are the UK's leading provider of integrated services operating in the compliance, social housing and public sector markets. Please visit our website to see a full list of Connaught's Registered Companies www.connaught.plc.uk/group/aboutconnaught/registeredcompanies Disclaimer: The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete this message. Connaught plc, Head Office 01392 444546 - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
[OT] Re: So many timeout values
2009/10/28 Christopher Schultz : > Everybody ought to learn a little C at some point. It will make you > really appreciate a relatively clean language like Java. ICL PLAN3 asembler, anyone? :-) More seriously, I agree with you and would add a second reason: doing a little work in a language that is reasonably "close to the metal" gives an insight into how the machine actually works, which stands you in good stead when thinking about algorithms and resource usage in those higher-level languages. (And building a primitive CPU from components helps even more, but not many of us get to do that any more!) - Peter - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: FW: Apache Close-Wait issue
Darren Kukulka wrote: No one willing to touch this one? I thought I'd get at least a passing comment...:-( Passing comment : maybe the fact that this is the Tomcat help forum, and that your problem seems to be more linked to the Apache httpd webserver and "network appliance" side of things, is a reason ? ;-) As another passing comment : a connection in the CLOSE_WAIT state means that one side has closed the connection, but the other side has not. If it remains so for a long time, it probably indicates some issue in the code. If this was Tomcat, I would suspect an object instance containing a socket, with the object having been discarded without closing the socket first, and the discarded object sitting on the heap waiting to be garbage-collected. In my experience, these things just pile up, and when there are enough of them (a couple of hundred ?), you may reach a stage where the system's network stack becomes unresponsive, totally. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
FW: Apache Close-Wait issue
No one willing to touch this one? I thought I'd get at least a passing comment...:-( -Original Message- From: Darren Kukulka [mailto:darren.kuku...@connaught.plc.uk] Sent: 27 October 2009 12:14 To: users@tomcat.apache.org Subject: Apache Close-Wait issue Hi All Got an interesting problem which has occurred several times now.. Painting a brief picture ; Several applications running on Tomcat 6.0.19 (64-bit) - several cluster groups Backend SQL Server 2005 clustered DBs (several) Front end Apache Web servers, load balanced via secure network appliance Basically, we have an issue with one of the DB clusters which stops servicing requests from the app servers The app servers can continue to connect to remaining DB clusters OK. The problem is that all the web servers stop responding to external requests. Looking at the ports in use on each server, there are a number of established sessions between Apache and Tomcat, which seems OK. All of the web servers also have exactly 30 close-wait sessions with the secure network appliance. We think this is what is stopping any requests from being services by the web servers. However, even trying to browse locally on each server to the root just times out. We do not enforce keepalive or timeouts for TCP/HTTP, and we use practically all the defaults for these directives. All web servers are configures identically. I can't find any reference to a directive that may limit connections to 30. Restarting the web servers allows users to get to applications using the good databases. Does anybody have any advice on this? Cheers, Darren. Connaught plc is a FTSE 250 company. We are the UK's leading provider of integrated services operating in the compliance, social housing and public sector markets. Please visit our website to see a full list of Connaught's Registered Companies www.connaught.plc.uk/group/aboutconnaught/registeredcompanies Disclaimer: The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete this message. Connaught plc, Head Office 01392 444546 - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Servlet 3.0...
hi, Dear Tomcat Developers, We adopt tomcat as an embeded servlet container in our system. Could you guys share with us any plan to implement the servlet 3.0 specification, or can I have a preview in current trunk(7.0) snapshot? Thanks for any comments! -Rex
Enabling cipher siutes
Hi, I have a question about configuring a ssl connector. By default tomcat use Cipher Suite: TLS_DHE_RSA_WITH_AES_128_CBC_SHA when I use my opera browser. I'd like to set ssl connector to use cipher suite with key size more than 128. How should I configure connector? I see "ciphers" attribute of ssl connector, but I can't find "JSSE cipher naming convention" to use as reffered in ssl-howto. Thanks in advance. Alexander. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org