AW: Tomcat - Apache: IP replacement
=animalworker.worker1.type=ajp13=== Test JSP =[EMAIL PROTECTED] contentType=text/html%[EMAIL PROTECTED] pageEncoding=UTF-8%html headmeta http-equiv=Content-Type content=text/html; charset=UTF-8titleTEST getRemoteAddr/title/headbody h1TEST getRemoteAddr/h1%String callerIP = request.getRemoteAddr();% pRemote IP is %=callerIP%/p/body/htmlI couldnt simulate what you getting can only suggest you download thestuff again... the above definitely works, and I'm guessing you got a bumfile, or a mismatch between Apache and JK module..Good Luck- Original Message -From: Nino Ulsamer [EMAIL PROTECTED]To: Tomcat U sers List users@tomcat.apache.orgSent: Monday, July 02, 2007 5:43 PMSubject: AW: Tomcat - Apache: IP replacementHey,thanks for your support so far.I just played around with the settings some more and could find out moreinteresting stuff...First of all, about our configuration: we have an Apache and Tomcat runningon the same machine, with JK 1.2 in between. If I log requests in Apache,the IP address is correct. If I go directly to Tomcat (via port 8080), theIP is correct. But if I go through JK, the address gets changed to 0.0.0.0.I checked the JK log file, and it logs the following before forwarding toTomcat:[Mon Jul 02 17:28:36 2007] [0848:1240] [debug] mod_jk.c (604): Serviceprotocol=HTTP/1.1 method=GET host=(null) addr=0.0.0.0 name=xxx.xxx.xxx.xxxport=80 auth=(null) user=(null) laddr=xxx.xxx.xxx.xxx raddr=0.0.0.0So even here, this strange 0.0.0.0 is coming up.One more intersting to notice. From the logfiles I saw that this wholeproblem started when we switched from J K 2 to JK 1.2 (which is supposed tobe the newer version).But we are using very basic settings of JK, according to the howto of thewebsite. A single loadbalancer-worker, so nothing special.Any hints???Nino-To start a new topic, e-mail: [EMAIL PROTECTED] unsubscribe, e-mail: [EMAIL PROTECTED] additional commands, e-mail: [EMAIL PROTECTED] start a new topic, e-mail: [EMAIL PROTECTED] unsubscribe, e-mail: [EMAIL PROTECTED] additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] 吴熊敏 [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Get an English name
Hi,all I'd like to get an english name(a young and sunshine name). I'm male. Can anyone help me? Any advice will be appreciated! 吴熊敏 [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Get an English name
I like the name of one of my friends.His english name is 'KEN' I think it's very good. On Fri, 29 Jun 2007 14:19:58 +0800 吴熊敏 [EMAIL PROTECTED] wrote: Hi,all I'd like to get an english name(a young and sunshine name). I'm male. Can anyone help me? Any advice will be appreciated! 吴熊敏 [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] 吴熊敏 [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: OT: Sessions
the same browser (in FireFox) and Ctrl-N from IE?? That means that you are using the same session So you can't avoid overwriting the last session,i think. You can open a new browser window to avoid overwriting session. On Wed, 27 Jun 2007 5:31:19 -0700 [EMAIL PROTECTED] wrote: Hi: We have an Enterprise application that uses sessions to keep track of User Information (name, role, dept). This information is used against the user when logging out, checking credentials and displaying user information. Since we are using Session Attributes to keep track of User Information - this gets mangled when we try to login to application from the same browser (in FireFox) and Ctrl-N from IE (in other words the person who gets logged in will overwrite the current user's attribute thus losing first user information). So, I am wondering whether you all have any recommendations/inputs to avoid this scenario. Thanks in advance. I did check the google and other search tools, but could not locate anything useful. regards, Vasu - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] 吴熊敏 [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re[2]: Exchange Language
Do you have MSN? My MSN is :[EMAIL PROTECTED] On Fri, 22 Jun 2007 12:39:47 +0800 Tony Winslow [EMAIL PROTECTED] wrote: I'm also willing to. 2007/6/21, Johnny Kewl [EMAIL PROTECTED]: Take my email, and ask me anytime. If you ask me a question, also write it in pinyin, then I can learn also. Your english is very good already. 我不喜欢VWP - Original Message - From: 吴熊敏 [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Thursday, June 21, 2007 7:15 AM Subject: Exchange Language Dear All, I'm learning English,is there anyone want to lean Chinese. I wish to find one who can exchange language with me. 吴熊敏 [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] 吴熊敏 [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SOS thanks
Dear All: I don't know the pronounciation of this word newbie. [nju:bai] or [nju:bie] or ..? who can tell me! Thanks in advance!! 吴熊敏 [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re[2]: SOS thanks
Hi, The closest manderin sound would be nv2 bi4 , ie sounds a bit like characters 女毕. Thanks very much. I have another question,what does ie here means? Is it the same as it? I have seen this word ie in many mails,but i don't understand its meaning. Best Regards, Jacob 吴熊敏 wrote: I don't know the pronounciation of this word newbie. [nju:bai] or [nju:bie] or ..? who can tell me! Thanks in advance!! -- _ Jacobs Blog -- http://www.jacobrhoden.com/ - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] 吴熊敏 [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re[2]: SOS thanks
eg stands for example given but what does ie stands for? On Thu, 21 Jun 2007 13:44:06 +1000 Jacob Rhoden [EMAIL PROTECTED] wrote: 吴熊敏 wrote: Thanks very much. I have another question,what does ie here means? Is it the same as it? I have seen this word ie in many mails,but i don't understand its meaning. ie means For example. It is similar in usage to 比喻说. (I think they are the characters, not sure). Best Regards, Jacob _ Jacobs Blog -- http://www.jacobrhoden.com/ - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] 吴熊敏 [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re[2]: SOS thanks
I have find the answer by goole i.e. (from Latin id est) means: that is (to say). e.g. (again from Latin exempli gratia) means: for example; for the sake of example. Thank you very much! On Thu, 21 Jun 2007 13:44:06 +1000 Jacob Rhoden [EMAIL PROTECTED] wrote: 吴熊敏 wrote: Thanks very much. I have another question,what does ie here means? Is it the same as it? I have seen this word ie in many mails,but i don't understand its meaning. ie means For example. It is similar in usage to 比喻说. (I think they are the characters, not sure). Best Regards, Jacob _ Jacobs Blog -- http://www.jacobrhoden.com/ - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] 吴熊敏 [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re[4]: SOS thanks
thank you On Thu, 21 Jun 2007 12:05:17 +0800 Peter [EMAIL PROTECTED] wrote: hi i.e. The term i.e. means id est in Latin or that is in English. A trick that I use: If you can replace i.e. with in other words then you are using it correctly. I.e. is used to specify what your are trying to convey. see the following actical about the i.e vs e.g http://ancienthistory.about.com/od/abbreviations/f/ievseg.htm hope it helps On 6/21/07, 吴熊敏 [EMAIL PROTECTED] wrote: eg stands for example given but what does ie stands for? On Thu, 21 Jun 2007 13:44:06 +1000 Jacob Rhoden [EMAIL PROTECTED] wrote: 吴熊敏 wrote: Thanks very much. I have another question,what does ie here means? Is it the same as it? I have seen this word ie in many mails,but i don't understand its meaning. ie means For example. It is similar in usage to 比喻说. (I think they are the characters, not sure). Best Regards, Jacob _ Jacobs Blog -- http://www.jacobrhoden.com/ - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] 吴熊敏 [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] 吴熊敏 [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re[2]: SOS thanks
thanks very much On Thu, 21 Jun 2007 12:19:36 +0800 Greg Gamble [EMAIL PROTECTED] wrote: On Thu, Jun 21, 2007 at 11:58:41AM +0800, 吴熊敏 wrote: eg stands for example given e.g. abbreviates the Latin: exempli gratia ... which in English is: for example i.e. abbreviates the Latin: id est ... which in English is: that is Contexts of usage for both is similar ... here's an excerpt from Encarta to explain the difference: Word Usage e.g. or i.e.? Do not confuse these two abbreviations, which mean different things and have different origins. The abbreviation e.g., meaning for or as an example, comes from the Latin expression exempli gratia (for example). Use it when you want to list a few typical examples of the thing mentioned: I have the laboratory equipment, e.g., [not i.e.] beakers, thermometers, and test tubes, that we need. Do not end a list that starts with e.g. with etc. The abbreviation i.e., meaning that is, that is to say, comes from the Latin expression id est (that is). Use it when you want to give a more precise description of the thing mentioned: The hearing, i.e., [not e.g.] the preliminary hearing, is set for noon Friday. Two periods punctuate e.g. and i.e. in U.S. English, whereas they may be unpunctuated in British English. Surround these abbreviations with commas. Encarta? World English Dictionary [North American Edition] ? (P)2007 Microsoft Corporation. All rights reserved. Developed for Microsoft by Bloomsbury Publishing Plc. but what does ie stands for? On Thu, 21 Jun 2007 13:44:06 +1000 Jacob Rhoden [EMAIL PROTECTED] wrote: 吴熊敏 wrote: Thanks very much. I have another question,what does ie here means? Is it the same as it? I have seen this word ie in many mails,but i don't understand its meaning. ie means For example. It is similar in usage to 比喻说. (I think they are the characters, not sure). Best Regards, Jacob _ Jacobs Blog -- http://www.jacobrhoden.com/ - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] 吴熊敏 [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Regards, Greg Gamble [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] 吴熊敏 [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Exchange Language
Dear All, I'm learning English,is there anyone want to lean Chinese. I wish to find one who can exchange language with me. 吴熊敏 [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat / WAR File; Classpath not recognised for properties file
The program's default classpath is app/WEB-INF/classes so,you need to put the property files under this folder. That means that when you developping,you should put property files under the src folder. On Mon, 18 Jun 2007 07:46:19 -0700 (PDT) nformosa [EMAIL PROTECTED] wrote: Hi All, I'm having trouble when deploying my WAR application. The War file contains mainly the WEB.xml, and index.html file and a number of required libraries, incudling the compiled src code i've written, All libraries are stored within the WEB-INF/libs which is correct. Along the libraries i have a folder called resources, which have a number of files used as properties files. The problem is that when i'm trying to access these files (property files) i'm givin a 'Not found' error, and mainly this is due to the fact that its looking in the bin folder of tomcat as its classpath! I'm accesing these files using relative paths ie: /resources/config.xml How can i fix this problem? any ideas would really be appreciated! thanks in advance Nick -- View this message in context: http://www.nabble.com/Tomcat---WAR-File--Classpath-not-recognised-for-properties-file-tf3940737.html#a11177124 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] 吴熊敏 [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re[2]: Is there a config for JSP compiler to ignore [\s] chars in JSP directive line?
If you really need space sometimes,you can use nbsp; On Mon, 18 Jun 2007 09:47:39 -0700 (PDT) LiuYan_刘研 [EMAIL PROTECTED] wrote: Thank you Leon, the 'trimSpaces' servlet parameter works fine except some little issues: 1. The span it trimmed is a little wider, it even trimmed the continuous empty lines and the leading white spaces of the first line after directives.. [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] will output nothing to client, but I want to keep the empty line 3,4,5 which are not in the same lines to directives. 2. the evaluated body in c:forEach/forEach is trimmed as the same indent as the tag directive if there are differnce between them. see the following example JSP code: %@ page session=true contentType=text/html; charset=UTF-8 import=java.util.* % %-- JSTL 1.1 tag library --% %@ taglib prefix=c uri=http://java.sun.com/jsp/jstl/core; % %-- JSTL 1.0 tag library --% %--@ taglib prefix=c uri=http://java.sun.com/jstl/core; --% %-- 中文 used for save this file as UTF-8 encoding --% html head style type=text/css pre,code { border:1px solid} /style /head body % ArrayListString arrayTest = new ArrayListString(); pageContext.setAttribute (test, arrayTest); for(int i=1; i=5; i++) { arrayTest.add (String.valueOf(i)); } % pre Case 1: c:forEach has 0 indent, non-whitespace characters occurs BEFORE c:out c:forEach var=t items=${test} Line c:out value=${t}/ /c:forEach /pre pre Case 2: c:forEach has 2 tabs indent, non-whitespace characters occurs BEFORE c:out c:forEach var=t items=${test} Line c:out value=${t}/ /c:forEach /pre pre Case 3: c:forEach has 0 indent, non-whitespace characters occurs AFTER c:out c:forEach var=t items=${test} c:out value=${t}/ Line /c:forEach /pre pre Case 4: c:forEach has 2 tabs indent, non-whitespace characters occurs AFTER c:out c:forEach var=t items=${test} c:out value=${t}/ Line /c:forEach /pre pre Case 5: c:forEach has 2 tabs indent, there are no non-whitespace characters around c:out c:forEach var=t items=${test} c:out value=${t}/ /c:forEach /pre table border=1 tr c:forEach var=t items=${test} td c:out value=${t}/ /td /c:forEach /tr /table /body /html Unfortunately, non of these 5 cases meet my demand. The behaviour of 'trimSpaces' in my mind will be: 1. Trim only whitespace characters if there are no non-whitespace characters in the directive line 2. An exception to 1: Do not trim whitespace characters which the directive will generate outputs (such as c:out of JSTL or bean:write, bean:message of struts ), maybe this is a trouble to JSP compiler, because it needs knows behaviour of tags: which tags are logical tags and which tags are html tags, but it is really good if 'trimSpaces' can achieve this. 3. Do not trim any other lines which does not contain directives. Wish the JSP compiler can enhance 'trimSpaces' in details... (I'm thinking: Am I a boring man... -_-!) But anyways, the 'trimSpaces' parameter is a good stuff for me now than having not it. Leon Rosenberg-3 wrote: trimSpaces was once a setting in the declaration of the jsp servlet in the web.xml servlet servlet-namejsp/servlet-name servlet-classorg.apache.jasper.servlet.JspServlet/servlet-class init-param param-nametrimSpaces/param-name param-valuetrue/param-value /init-param ... regards Leon -- View this message in context: http://www.nabble.com/Is-there-a-config-for-JSP-compiler-to-ignore--%5Cs--chars-in-JSP-directive-line--tf3939116.html#a11179552 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] 吴熊敏 [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: image caching using Apache
I'm interested with it,but i don't know how to do. On Mon, 18 Jun 2007 18:49:03 -0300 Paulo Alvim [EMAIL PROTECTED] wrote: Hi! We're using TC Cluster with Apache connector as dispatcher. We'd like to improve performance by caching images served by servlets(DBMS), in the dispatcher level (apache connector)... is it as simple as configure a 'filter'? Any advice about that? Thanks in advance! Paulo Alvim Brazil ( +55 (31) 3213-1019 * [EMAIL PROTECTED] Powerlogic S.A. 吴熊敏 [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to flush cache of authenticated users
What kind of authentication do you use?? Session or Cookies or others? On Tue, 19 Jun 2007 14:18:16 -0700 Ken Moore [EMAIL PROTECTED] wrote: The Realm Configuration HOW-TO doc ( http://tomcat.apache.org/tomcat-5.5-doc/realm-howto.html http://tomcat.apache.org/tomcat-5.5-doc/realm-howto.html ) says that: Once a user has been authenticated, the user (and his or her associated roles) are cached within Tomcat for the duration of the user's login. and for BASIC authentication, that means until the user closes their browser We use basic authentication for web services. I'd like to flush the cache when the password is changed. I've been looking through the doc and code and I've not yet found the cache or a way to flush it. Anyone know where it is? 吴熊敏 [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re[2]: Save sessions across restarts
Hahaha!!agree with you !! On Wed, 20 Jun 2007 12:51:08 +1200 Stephen Souness [EMAIL PROTECTED] wrote: Martin Gainty wrote: playing around with sessions or cookies has no impact on ability to preserve one's capability or ability to establish role verification if you dont know anything about jetspeed you need to stay quiet In any event lets take this offline as you dont have a clue what SSO means Bye Ignorance is bliss. If you don't know, don't send people on wild goose chases. -- Stephen - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] 吴熊敏 [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5.5.23 on Microsoft Vista
Hi,David: Your issue seems to be very strange. Are you sure that you have started the Tomcat Service?? On Tue, 19 Jun 2007 18:57:14 -0700 (PDT) David Kider [EMAIL PROTECTED] wrote: Hi. I have a machine running the Microsoft Vista OS. I've tried installing Tomcat 5.5.23 using the Microsoft Service Installer. This seems to run successfully. But when I open my browser and go to http://localhost:8080 I get the general The webpage cannot be displayed page. I then checked through the list of open ports and allowed programs in the Windows firewall. I added port 8080 to the list of allowed ports. This didn't fix the problem. So I uninstalled Tomcat and tried unzipping the zipped version of Tomcat from the tomcat download page. This gave me the same result. I've googled all over the place and looked through the Tomcat help and FAQ, to no avail. Can anyone help me out? Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, photos more. http://mobile.yahoo.com/go?refer=1GNXIC 吴熊敏 [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: log4j error! log4j:ERROR Attempted to append to closed appender named.
I think the configuration of LOG4J has some problems param name=File value=../logs/others.log/ System can't find the log file. On Wed, 20 Jun 2007 12:42:45 +0800 Peter [EMAIL PROTECTED] wrote: hi,all we are using log4j under tomcat. and it appeals so many following erros ; log4j:ERROR Attempted to append to closed appender named [DEFAULT_LOGFILE]. does anyone has an idea why and how to sovle it. thanks ! here is our log4j.xml ?xml version=1.0 encoding=UTF-8? !DOCTYPE log4j:configuration SYSTEM log4j.dtd log4j:configuration xmlns:log4j=http://jakarta.apache.org/log4j/; debug=false appender name=OTHERS_LOGFILE class=org.apache.log4j.RollingFileAppender param name=Threshold value=DEBUG/ param name=File value=../logs/others.log/ param name=Append value=false/ param name=MaxFileSize value=2000KB/ param name=MaxBackupIndex value=10/ layout class= org.apache.log4j.PatternLayout param name=ConversionPattern value=%d %-5p [%c] %m%n/ /layout /appender appender name=DEFAULT_LOGFILE class= org.apache.log4j.RollingFileAppender param name=Threshold value=DEBUG/ param name=File value=../logs/shucoms.log/ param name=Append value=false/ param name=MaxFileSize value=2000KB/ param name=MaxBackupIndex value=10/ layout class= org.apache.log4j.PatternLayout param name=ConversionPattern value=%d %-5p [%c] %m%n/ /layout /appender appender name=ASYNC class=org.apache.log4j.AsyncAppender appender-ref ref=OTHERS_LOGFILE/ appender-ref ref=DEFAULT_LOGFILE/ /appender category name=gxlu.eoms additivity=false priority value=DEBUG/ appender-ref ref=DEFAULT_LOGFILE/ /category category name=org additivity=false priority value=INFO/ appender-ref ref=OTHERS_LOGFILE/ /category !-- Setup the Root category -- root priority value=DEBUG/ appender-ref ref=ASYNC/ /root /log4j:configuration 吴熊敏 [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re[2]: log4j error! log4j:ERROR Attempted to append to closed appender named.
param name=Append value=false/ change Append's value 'true' and try again On Wed, 20 Jun 2007 13:18:01 +0800 Peter [EMAIL PROTECTED] wrote: thanks but it also generate log file as well. log file can be write. i donot know if the error: *log4j:ERROR Attempted to append to closed appender named [DEFAULT_LOGFILE].* will slow down our system or this error can be ignored? how to solve it thanks On 6/20/07, 吴熊敏 [EMAIL PROTECTED] wrote: I think the configuration of LOG4J has some problems param name=File value=../logs/others.log/ System can't find the log file. On Wed, 20 Jun 2007 12:42:45 +0800 Peter [EMAIL PROTECTED] wrote: hi,all we are using log4j under tomcat. and it appeals so many following erros ; log4j:ERROR Attempted to append to closed appender named [DEFAULT_LOGFILE]. does anyone has an idea why and how to sovle it. thanks ! here is our log4j.xml ?xml version=1.0 encoding=UTF-8? !DOCTYPE log4j:configuration SYSTEM log4j.dtd log4j:configuration xmlns:log4j=http://jakarta.apache.org/log4j/; debug=false appender name=OTHERS_LOGFILE class= org.apache.log4j.RollingFileAppender param name=Threshold value=DEBUG/ param name=File value=../logs/others.log/ param name=Append value=false/ param name=MaxFileSize value=2000KB/ param name=MaxBackupIndex value=10/ layout class= org.apache.log4j.PatternLayout param name=ConversionPattern value=%d %-5p [%c] %m%n/ /layout /appender appender name=DEFAULT_LOGFILE class= org.apache.log4j.RollingFileAppender param name=Threshold value=DEBUG/ param name=File value=../logs/shucoms.log/ param name=Append value=false/ param name=MaxFileSize value=2000KB/ param name=MaxBackupIndex value=10/ layout class= org.apache.log4j.PatternLayout param name=ConversionPattern value=%d %-5p [%c] %m%n/ /layout /appender appender name=ASYNC class=org.apache.log4j.AsyncAppender appender-ref ref=OTHERS_LOGFILE/ appender-ref ref=DEFAULT_LOGFILE/ /appender category name=gxlu.eoms additivity=false priority value=DEBUG/ appender-ref ref=DEFAULT_LOGFILE/ /category category name=org additivity=false priority value=INFO/ appender-ref ref=OTHERS_LOGFILE/ /category !-- Setup the Root category -- root priority value=DEBUG/ appender-ref ref=ASYNC/ /root /log4j:configuration 吴熊敏 [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] 吴熊敏 [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Windows or Linux as Tomcat server?
You'd better use linux. Windows is too bad to run Tomcat!!! On Mon, 18 Jun 2007 10:08:15 +0200 Roger [EMAIL PROTECTED] wrote: - What are your experiences? - We see that Tomcat uses more and more memory over time on our Windows servers. Is that the same on Linux? - Do you have (links to) objective tests or reviews that I can look at? 吴熊敏 [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is there a config for JSP compiler to ignore [\s] chars in JSP directive line?
YES,IT'S a good idea,is there anyone who knows how to solve this issue? Thank you for the first!! On Mon, 18 Jun 2007 02:17:24 -0700 (PDT) LiuYan_刘研 [EMAIL PROTECTED] wrote: Is there a config for JSP compiler to ignore all white space characters which out of %...% in JSP and/or tag directive lines? Suppose the following code in JSP file: %@ page contentType=text/html; charset=utf-8 language=java import=java.sql.*% %@ taglib uri=http://java.sun.com/jsp/jstl/core; prefix=c% %@ taglib uri=http://jakarta.apache.org/struts/tags-logic; prefix=logic% %@ taglib uri=http://jakarta.apache.org/struts/tags-bean; prefix=bean% %@ include file=include_checkLogin.jsp % !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; html xmlns=http://www.w3.org/1999/xhtml; .. c:forEach var=project items=${MY_PROJECTS} option value=c:out value=${project.id} default=/c:if test=${project.id == param['projectID']} selected=selected/c:ifc:out value=${project.name} default=//option /c:forEach .. .. After it is compiled, it will be the following in .java file: public void _jspService(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException { .. out.write(\r\n); *** redundant empty lines in HTML; %@ % lines in JSP out.write(\r\n); out.write(\r\n); out.write(\r\n); out.write(\r\n); out.write(!DOCTYPE html PUBLIC \-//W3C//DTD XHTML 1.0 Transitional//EN\ \http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\;\r\n); .. private boolean _jspx_meth_c_005fforEach_005f2(PageContext _jspx_page_context) throws Throwable { .. do { out.write(\r\n); *** redundant \r\n in HTML.;c:forEach line in JSP; If there are hundreds or even more options, then (-_-!) .. out.write(\t\toption value=\); .. out.write(/option\r\n); out.write(\t); *** redundant \t in HTML; /c:forEach line in JSP .. .. As you see, some redundant empty lines and leading spaces(tab char) will be generated, although I can put all JSP and/or tag directives in one line to avoid these redundant empty lines be generated, but it will make the JSP code hard to read. So in a general thinking, is there a way to be satisfied with both developer whom want a well formatted JSP source and the end user whom want a clean HTML result? :computer-user: -- View this message in context: http://www.nabble.com/Is-there-a-config-for-JSP-compiler-to-ignore--%5Cs--chars-in-JSP-directive-line--tf3939116.html#a11172259 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] 吴熊敏 [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re[2]: Is there a config for JSP compiler to ignore [\s] chars in JSP directive line?
Thanks very much in advance!!! But i think it's not a good way to do this in web.xml. Is there any way to trim spaces when compile the jsp/servlet files but not use the filter? On Mon, 18 Jun 2007 11:56:01 +0200 Leon Rosenberg [EMAIL PROTECTED] wrote: trimSpaces was once a setting in the declaration of the jsp servlet in the web.xml servlet servlet-namejsp/servlet-name servlet-classorg.apache.jasper.servlet.JspServlet/servlet-class init-param param-nametrimSpaces/param-name param-valuetrue/param-value /init-param ... regards Leon On 6/18/07, 吴熊敏 [EMAIL PROTECTED] wrote: YES,IT'S a good idea,is there anyone who knows how to solve this issue? Thank you for the first!! On Mon, 18 Jun 2007 02:17:24 -0700 (PDT) LiuYan_刘研 [EMAIL PROTECTED] wrote: Is there a config for JSP compiler to ignore all white space characters which out of %...% in JSP and/or tag directive lines? Suppose the following code in JSP file: %@ page contentType=text/html; charset=utf-8 language=java import=java.sql.*% %@ taglib uri=http://java.sun.com/jsp/jstl/core; prefix=c% %@ taglib uri=http://jakarta.apache.org/struts/tags-logic; prefix=logic% %@ taglib uri=http://jakarta.apache.org/struts/tags-bean; prefix=bean% %@ include file=include_checkLogin.jsp % !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; html xmlns=http://www.w3.org/1999/xhtml; .. c:forEach var=project items=${MY_PROJECTS} option value=c:out value=${project.id} default=/c:if test=${project.id == param['projectID']} selected=selected/c:ifc:out value=${project.name} default=//option /c:forEach .. .. After it is compiled, it will be the following in .java file: public void _jspService(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException { .. out.write(\r\n); *** redundant empty lines in HTML; %@ % lines in JSP out.write(\r\n); out.write(\r\n); out.write(\r\n); out.write(\r\n); out.write(!DOCTYPE html PUBLIC \-//W3C//DTD XHTML 1.0 Transitional//EN\ \http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\;\r\n); .. private boolean _jspx_meth_c_005fforEach_005f2(PageContext _jspx_page_context) throws Throwable { .. do { out.write(\r\n); *** redundant \r\n in HTML.;c:forEach line in JSP; If there are hundreds or even more options, then (-_-!) .. out.write(\t\toption value=\); .. out.write(/option\r\n); out.write(\t); *** redundant \t in HTML; /c:forEach line in JSP .. .. As you see, some redundant empty lines and leading spaces(tab char) will be generated, although I can put all JSP and/or tag directives in one line to avoid these redundant empty lines be generated, but it will make the JSP code hard to read. So in a general thinking, is there a way to be satisfied with both developer whom want a well formatted JSP source and the end user whom want a clean HTML result? :computer-user: -- View this message in context: http://www.nabble.com/Is-there-a-config-for-JSP-compiler-to-ignore--%5Cs--chars-in-JSP-directive-line--tf3939116.html#a11172259 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] 吴熊敏 [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] 吴熊敏 [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re[2]: Share one singleton across webapps
You don't need to copy the jar-file to your webapps/lib in Eclipse. Instead,you can add a external jar-file(which has been copied to tomcat/lib) for the project in Eclipse. On Mon, 18 Jun 2007 15:58:55 +0200 Kevin Wilhelm [EMAIL PROTECTED] wrote: It works! Thanks! The problem has been that each webapp had its own shared-lib jar-file, because I am developing in Eclipse. So Eclipse needs to know which classes I am accessing :/ At the end there were 3 times the same jar-file: 1st webapp, 2nd webapp, tomcat/lib. Removing the jars from the webapps and leaving the one in tomcat/lib solved the problem. However this is very disgusting. Every time I am deploying the 2 webapps to Tomcat, the jars are copied as well. I have to delete them manually, so that only the jar in Tomcat/lib is used. Is there some workaround for this? Should I use Ant for deploying then? But I won't be able to debug the webapps from within my IDE anymore since I am avoiding Eclipse's deployment mechanisms. Original-Nachricht Datum: Mon, 18 Jun 2007 15:40:36 +0200 Von: Johnny Kewl [EMAIL PROTECTED] An: Tomcat Users List users@tomcat.apache.org Betreff: Re: Share one singleton across webapps The typical form is like this public class SingletonObject { private SingletonObject(){} public static SingletonObject getSingletonObject() { if (ref == null) // it's ok, we can call this constructor ref = new SingletonObject(); return ref; } private static SingletonObject ref; } If thats in Tomcat/lib it should share Notice the use of static ie there is only one, no matter how many times its started. ...and the check for null which is how it determines it needs to make one instance if there is non... Thats the trick a normal class which is what I imagine you trying, will load once. but instance many times. Hope that helps... try not use them unless you really have to. - Original Message - From: Kevin Wilhelm [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Monday, June 18, 2007 3:12 PM Subject: Share one singleton across webapps I managed to get a jar file shared across two webapps in my Tomcat 6. Inside there is a class that represents a Singleton. The problem: the singleton class is instantiated by the first webapp and then again instantiated in the second webapp. So there are 2 representations of the class and it is not really shared. There has to be a way to let the first webapp instantiate the singleton and set some property so that the second webapp can use the singleton and read the property. How do I achieve this? -- Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten Browser-Versionen downloaden: http://www.gmx.net/de/go/browser - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS. Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] 吴熊敏 [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 4.1 - problem with classpath definition in Manifest.mf
you cant put jar files in webapp folder,it's useless at all.. you can only put war or ear files in webapp folder. On Sun, 17 Jun 2007 17:32:26 -0400 Subbu [EMAIL PROTECTED] wrote: Hi, I am newbie to Tomcat. I have a jar file(test.jar) which has Classpath attribute defined in its manifest.mf file. I place this file in the lib folder of the webapp. It looks like tomcat is ignoring the classpath definition in the manifest file of test.jar file. Does any body know if there is any issue with this in tomcat 4.1 My searches on the mailing list showed that some other folks had similar problems, but I didn't get a clear solution/answer to this issue. your help is appreciated. Thanks, Subbu. 吴熊敏 [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat continues to display default home page even after I've replaced it
I met the same matter with you ever.The reason is that Tomcat itself have the cache too. You can delete files under [TOMCAT]/work,and restart your server and try again. Wish you lucky!! On Sun, 17 Jun 2007 14:55:47 -0700 Rob Tanner [EMAIL PROTECTED] wrote: Hi, I installed Tomcat 5.5.23 stand-alone and then replaced the default index.jsp home page (webapps/ROOT/index.jsp) with a different a different jsp. But, no matter what I do, I still get the default Tomcat home page and not the pager I replaced it with. At first I thought it was my browser caching simply caching the original page. I cleared cache and that made no difference, so I tried wget, a command line utility that knows nothing about caching. I still got the default Tomcat home page. I tried using wget from a different machine -- same results. I could see from doing a ps -ef | grep java that I wasn't running a second Tomcat process and just to make sure that I was actually talking to the server I thought I was talking to, I killed the Tomcat process and tried again. This time I got a Connection refused, meaning that no other server was answering the GET requests. I restarted Tomcat and once again got the original default home page instead of the actual index.jsp that replaced it. Can anyone tell me where this content is coming from? Thanks, Rob 吴熊敏 [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re[2]: Tomcat Server CPU utilization goes upto 400%
400%? what do you mean?? On Thu, 14 Jun 2007 21:14:45 +0200 Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote: man, I need to get a CPU like that, that can actually work 4 times its max capacity :) Filip 吴熊敏 [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re[2]: Tomcat Server CPU utilization goes upto 400%
“AFAIK” What it mean? AFAIK 400% of zero is still zero :D 吴熊敏 [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]