forwarding from a servlet after writing to disk
Hello every-one i am trying to have a servlet forward to a jsp page after using the jakarta.common.uploadc utility to upload a file into tomcat. i have noticed the following behavior; if i request the forward operarion without performing the upload function the forward is executed. if i allow trhe file to be uploaded (ei writen to HD) the forward is not executed . Bellow i am attaching the relevant lines of code do you have any sugestions how i can perform this task ? thank you in advance Billy - start of code --- RequestDispatcher page = null; // upload the file and return the filename for further use String fn= appacheImpl(request, response); page = this.getServletContext().getRequestDispatcher(CONTINUE_FORM); request.setAttribute(zipFile,new String (fn)); page.forward(request,response); log.info(** CHECK POINT 1 **); } catch (Exception fue) { - end of code ---
Re: mod_rewrite for Tomcat 5.5
Hi david As Tim pointed out, there are product which does this for you However, your requierments can be easily covered with a servlet filter. You just need to ship it with your war and configure it in your deployment descriptor I have some examples if needed Best regards Bruno Bruno Georges Glencore International AG Tel. +41 41 709 3204 Fax +41 41 709 3000 - Original Message - From: David Wall [EMAIL PROTECTED] Sent: 29.07.2005 00:48 To: Tomcat Users List tomcat-user@jakarta.apache.org Subject: mod_rewrite for Tomcat 5.5 Can anybody recommend anything like mod_rewrite for Tomcat 5.5? I know the FAQ says something about why reinvent the wheel, but in this case, it's because we want to get rid of Apache just because we need one small feature. I've got an application that now only needs Apache httpd for some mod_rewrites, especially for converting short URLs to longer ones, such as: https://host.com/app/a?c=ehtU3vN9JWia6m=borrower gets rewritten to: https://host.com/app/customer/SomeBigCustomer/loanApplicationToSign.jsp?c=ehtU3vN9JWia6m=borrower With mod_rewrite, this is something like: RewriteRule ^/app/a(.*)$ https://host.com/app/customer/SomeBigCustomer/loanApplicationToSign.jsp$1 [R,L] In practice, I don't even need the full power of mod_rewrite to rewrite the domain part, so it would be okay just to map /app/a?c=ehtU3vN9JWia6m=borrower to /app/customer/SomeBigCustomer/loanApplicationToSign.jsp?c=ehtU3vN9JWia6m=borrower and keep the https://host.com; part the same. I won't be redirecting to another server (at least not initially). Thanks, David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] * * LEGAL DISCLAIMER * This message contains confidential information for * the exclusive use of the person mentioned above. * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: TC5.5.9 Linux - shutdown port 8005 not bound BUG?
FYI - From TC bugzilla. So I added -pidfile jsvc.pid to my execution and am not killing the jsvc process not the JVM itself. --- Additional Comments From [EMAIL PROTECTED] 2005-08-02 03:51 --- This is by design. With jsvc, you are supposed to shutdown Tomcat by: kill -TERM `cat $PIDFILE` As a result, jsvc doesn't tell Tomcat to listen on port 8005. -- Darryl L. Miles - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HELP: Tomcat 5.5.9 with jsvc as low priviledges user on Linux fails in Bootstrap
MC Moisei wrote: java.io.FileNotFoundException: /usr/local/tomcat/tomcat_home/conf/tomcat-users.xml.new (Permission denied) at java.io.FileOutputStream.open(Native Method) This smells like its calling for write access to the DIRECTORY /usr/local/tomcat/tomcat_home/conf/ (not the file) Unless you have a left over file that is actually called conf/tomcat-users.xml.new from a previous execution of TC that did not complete the edit and rename. In which case I think you need to delete the conf/tomcat-users.xml.new file (after you've ensured you have a valid and working conf/tomcat-users.xml file itself). FYI - I run jsvc too and have not seen this problem with 5.5.9. jsvc.exec -Djava.endorsed.dirs=./common/endorsed -classpath :/opt/jakarta-tomcat-5.5.9/bin/bootstrap.jar:/opt/jakarta-tomcat-5.5.9/bin/commons-logging-api.jar -Dcatalina.base=/opt/jakarta-tomcat-5.5.9 -Dcatalina.home=/opt/jakarta-tomcat-5.5.9 -Djava.io.tmpdir=/opt/jakarta-tomcat-5.5.9/temp -outfile ./logs/catalina.out -errfile ./logs/catalina.err -pidfile ./logs/jsvc.pid -user jakarta -Xmx2048M -Xms512M -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager org.apache.catalina.startup.Bootstrap start -- Darryl L. Miles - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
HELP: Problem with tomcat559 in XP machine
But I m not using the http connector. I m using Apache and mod_jk. I disabled the http connectot. -Original Message- From: Lintang JP [mailto:[EMAIL PROTECTED] Sent: Monday, August 01, 2005 2:17 PM To: Tomcat Users List Subject: Re: Problem with tomcat559 in XP machine maybe U should increase the AcceptCount parameter in Connector..it's inside server.xml Tomcat will wait until there's a resource finish their task if the AcceptCount parameter reached, so it's hanged. By increasing it, U should get more AcceptCount. Regards On 8/1/05, dummy [EMAIL PROTECTED] wrote: Tomcat 5.5.9 hanged and when I do a netstat under Windows XP, I saw port 8009 with a long list and all user can't access. Is this tomcat problem or windows ? Active Connections Proto Local Address Foreign Address State TCP tc:3376 localhost:8009 ESTABLISHED TCP tc:3939 localhost:8009 ESTABLISHED TCP tc:3940 localhost:8009 ESTABLISHED TCP tc:3942 localhost:8009 ESTABLISHED TCP tc:4108 localhost:8009 ESTABLISHED TCP tc:4109 localhost:8009 ESTABLISHED TCP tc:4110 localhost:8009 ESTABLISHED TCP tc:4111 localhost:8009 ESTABLISHED TCP tc:4112 localhost:8009 ESTABLISHED TCP tc:4114 localhost:8009 ESTABLISHED TCP tc:4116 localhost:8009 ESTABLISHED TCP tc:4117 localhost:8009 ESTABLISHED TCP tc:4118 localhost:8009 ESTABLISHED TCP tc:4119 localhost:8009 ESTABLISHED TCP tc:4120 localhost:8009 ESTABLISHED TCP tc:4124 localhost:8009 FIN_WAIT_2 TCP tc:4125 localhost:8009 ESTABLISHED TCP tc:4126 localhost:8009 ESTABLISHED TCP tc:4133 localhost:8009 ESTABLISHED TCP tc:4134 localhost:8009 ESTABLISHED TCP tc:8009 localhost:3376 ESTABLISHED TCP tc:8009 localhost:3938 CLOSE_WAIT TCP tc:8009 localhost:3939 ESTABLISHED TCP tc:8009 localhost:3940 ESTABLISHED TCP tc:8009 localhost:3942 ESTABLISHED TCP tc:8009 localhost:4010 CLOSE_WAIT TCP tc:8009 localhost:4011 CLOSE_WAIT TCP tc:8009 localhost:4012 CLOSE_WAIT TCP tc:8009 localhost:4013 CLOSE_WAIT TCP tc:8009 localhost:4014 CLOSE_WAIT TCP tc:8009 localhost:4015 CLOSE_WAIT TCP tc:8009 localhost:4016 CLOSE_WAIT TCP tc:8009 localhost:4095 CLOSE_WAIT TCP tc:8009 localhost:4096 CLOSE_WAIT TCP tc:8009 localhost:4097 CLOSE_WAIT TCP tc:8009 localhost:4098 CLOSE_WAIT TCP tc:8009 localhost:4099 CLOSE_WAIT TCP tc:8009 localhost:4101 CLOSE_WAIT TCP tc:8009 localhost:4102 CLOSE_WAIT TCP tc:8009 localhost:4103 CLOSE_WAIT TCP tc:8009 localhost:4104 CLOSE_WAIT TCP tc:8009 localhost:4105 CLOSE_WAIT TCP tc:8009 localhost:4108 ESTABLISHED TCP tc:8009 localhost:4109 ESTABLISHED TCP tc:8009 localhost:4110 ESTABLISHED TCP tc:8009 localhost:4111 ESTABLISHED TCP tc:8009 localhost:4112 ESTABLISHED TCP tc:8009 localhost:4114 ESTABLISHED TCP tc:8009 localhost:4115 CLOSE_WAIT TCP tc:8009 localhost:4116 ESTABLISHED TCP tc:8009 localhost:4117 ESTABLISHED TCP tc:8009 localhost:4118 ESTABLISHED TCP tc:8009 localhost:4119 ESTABLISHED TCP tc:8009 localhost:4120 ESTABLISHED TCP tc:8009 localhost:4121 CLOSE_WAIT TCP tc:8009 localhost:4124 CLOSE_WAIT TCP tc:8009 localhost:4125 ESTABLISHED TCP tc:8009 localhost:4126 ESTABLISHED TCP tc:8009 localhost:4133 ESTABLISHED TCP tc:8009 localhost:4134 ESTABLISHED -- --- http://www.psychotazkia.or.id
Re: HELP: Tomcat 5.5.9 with jsvc as low priviledges user on Linux fails in Boots
Interesting, Thanks Darryl for sharing. So you run 5.5.9 and no problem huh ? What's the access given for the tomcat structure ? I'm interested in particular on that conf folder. I can run it fine too but not as root and root has no write access to the conf folder. How is your set up ? BTW that .new extension looked strange to me too. I cannot explain it - didn't look yet in TC source code. Here's the way I call the jsvc JAVA_HOME=/usr/local/java_home CATALINA_HOME=/usr/local/tomcat/tomcat_home TOMCAT_USER=tomcat TMP_DIR=/var/tmp CATALINA_OPTS= CLASSPATH=\ $JAVA_HOME/lib/tools.jar:\ $CATALINA_HOME/bin/commons-daemon.jar:\ $CATALINA_HOME/bin/bootstrap.jar:\ $CATALINA_HOME/bin/mx4j-jmx.jar:\ $CATALINA_HOME/bin/mx4j.jar:\ $CATALINA_HOME/bin/jsvc \ -user $TOMCAT_USER \ -home $JAVA_HOME \ -Dcatalina.home=$CATALINA_HOME \ -Djava.io.tmpdir=$TMP_DIR \ -outfile $CATALINA_HOME/logs/catalina-daemon.out \ -errfile $CATALINA_HOME/logs/catalina-daemon.err \ $CATALINA_OPTS \ -cp $CLASSPATH:$CATALINA_HOME/bin/bootstrap.jar:$CATALINA_HOME/bin/commons-daemon.jar org.apache.catalina.startup.Bootstrap Did you have any issues while installing jsvc ? Thanks again, MC http://www.goodstockimages.com From: Darryl L. Miles [EMAIL PROTECTED] Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org To: Tomcat Users List tomcat-user@jakarta.apache.org Subject: Re: HELP: Tomcat 5.5.9 with jsvc as low priviledges user on Linux fails in Bootstrap Date: Tue, 02 Aug 2005 08:01:36 +0100 MC Moisei wrote: java.io.FileNotFoundException: /usr/local/tomcat/tomcat_home/conf/tomcat-users.xml.new (Permission denied) at java.io.FileOutputStream.open(Native Method) This smells like its calling for write access to the DIRECTORY /usr/local/tomcat/tomcat_home/conf/ (not the file) Unless you have a left over file that is actually called conf/tomcat-users.xml.new from a previous execution of TC that did not complete the edit and rename. In which case I think you need to delete the conf/tomcat-users.xml.new file (after you've ensured you have a valid and working conf/tomcat-users.xml file itself). FYI - I run jsvc too and have not seen this problem with 5.5.9. jsvc.exec -Djava.endorsed.dirs=./common/endorsed -classpath :/opt/jakarta-tomcat-5.5.9/bin/bootstrap.jar:/opt/jakarta-tomcat-5.5.9/bin/commons-logging-api.jar -Dcatalina.base=/opt/jakarta-tomcat-5.5.9 -Dcatalina.home=/opt/jakarta-tomcat-5.5.9 -Djava.io.tmpdir=/opt/jakarta-tomcat-5.5.9/temp -outfile ./logs/catalina.out -errfile ./logs/catalina.err -pidfile ./logs/jsvc.pid -user jakarta -Xmx2048M -Xms512M -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager org.apache.catalina.startup.Bootstrap start -- Darryl L. Miles - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HELP: Tomcat 5.5.9 with jsvc as low priviledges user on Linux fails in Boots
For some reason during startup tomcat writes (!) the file tomcat-users.xml. It does it in the way that it writes to tomcat-users.xml.new and then renames that file to tomcat-users.xml. At least that's what was in the 5.0 code. I assume that didn't change with 5.5. As a consequence the user running tomcat needs write access to the directory the tomcat-users.xml file is in. If you don't like the idea of giving that runtime user write access to the conf directory, you can configure tomcat-users.xml inside server.xml to be in some other directory - which then is the one that needs write access. As far as I know, there is no workaround for that at the moment (except for choosing another user realm). Interesting, Thanks Darryl for sharing. So you run 5.5.9 and no problem huh ? What's the access given for the tomcat structure ? I'm interested in particular on that conf folder. I can run it fine too but not as root and root has no write access to the conf folder. How is your set up ? BTW that .new extension looked strange to me too. I cannot explain it - didn't look yet in TC source code. Here's the way I call the jsvc JAVA_HOME=/usr/local/java_home CATALINA_HOME=/usr/local/tomcat/tomcat_home TOMCAT_USER=tomcat TMP_DIR=/var/tmp CATALINA_OPTS= CLASSPATH=\ $JAVA_HOME/lib/tools.jar:\ $CATALINA_HOME/bin/commons-daemon.jar:\ $CATALINA_HOME/bin/bootstrap.jar:\ $CATALINA_HOME/bin/mx4j-jmx.jar:\ $CATALINA_HOME/bin/mx4j.jar:\ $CATALINA_HOME/bin/jsvc \ -user $TOMCAT_USER \ -home $JAVA_HOME \ -Dcatalina.home=$CATALINA_HOME \ -Djava.io.tmpdir=$TMP_DIR \ -outfile $CATALINA_HOME/logs/catalina-daemon.out \ -errfile $CATALINA_HOME/logs/catalina-daemon.err \ $CATALINA_OPTS \ -cp $CLASSPATH:$CATALINA_HOME/bin/bootstrap.jar:$CATALINA_HOME/bin/commons-daemon.jar org.apache.catalina.startup.Bootstrap Did you have any issues while installing jsvc ? Thanks again, MC http://www.goodstockimages.com From: Darryl L. Miles [EMAIL PROTECTED] Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org To: Tomcat Users List tomcat-user@jakarta.apache.org Subject: Re: HELP: Tomcat 5.5.9 with jsvc as low priviledges user on Linux fails in Bootstrap Date: Tue, 02 Aug 2005 08:01:36 +0100 MC Moisei wrote: java.io.FileNotFoundException: /usr/local/tomcat/tomcat_home/conf/tomcat-users.xml.new (Permission denied) at java.io.FileOutputStream.open(Native Method) This smells like its calling for write access to the DIRECTORY /usr/local/tomcat/tomcat_home/conf/ (not the file) Unless you have a left over file that is actually called conf/tomcat-users.xml.new from a previous execution of TC that did not complete the edit and rename. In which case I think you need to delete the conf/tomcat-users.xml.new file (after you've ensured you have a valid and working conf/tomcat-users.xml file itself). FYI - I run jsvc too and have not seen this problem with 5.5.9. jsvc.exec -Djava.endorsed.dirs=./common/endorsed -classpath :/opt/jakarta-tomcat-5.5.9/bin/bootstrap.jar:/opt/jakarta-tomcat-5.5.9/bin/commons-logging-api.jar -Dcatalina.base=/opt/jakarta-tomcat-5.5.9 -Dcatalina.home=/opt/jakarta-tomcat-5.5.9 -Djava.io.tmpdir=/opt/jakarta-tomcat-5.5.9/temp -outfile ./logs/catalina.out -errfile ./logs/catalina.err -pidfile ./logs/jsvc.pid -user jakarta -Xmx2048M -Xms512M -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager org.apache.catalina.startup.Bootstrap start -- Darryl L. Miles - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to set auto-commit to false on a Tomcat Connection-Pool?
Hi, my example works but I cannot set the autocommit paramter, but this is quite important to me. Can someone give me advice? Thanks Starki ResourceParams name=jdbc/test parameter namevalidationQuery/name valueselect * from dual/value /parameter parameter namemaxWait/name value5000/value /parameter parameter namemaxActive/name value4/value /parameter parameter namepassword/name valuextest/value /parameter parameter nameurl/name valuejdbc:oracle:thin:@xinfosap.w1:1521:orcl;autocommit=false/value /parameter parameter namedriverClassName/name valueoracle.jdbc.driver.OracleDriver/value /parameter parameter nameauto-commit/name valuefalse/value /parameter parameter nameautoCommit/name valuefalse/value /parameter parameter nameautocommit/name valuefalse/value /parameter parameter namemaxIdle/name value2/value /parameter parameter nameusername/name valuextest/value /parameter /ResourceParams 6X velocizzare la tua navigazione a 56k? 6X Web Accelerator di Libero! Scaricalo su INTERNET GRATIS 6X http://www.libero.it - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to set auto-commit to false on a Tomcat Connection-Pool?
I found this on the web for Struts using org.apache.commons.dbcp.BasicDataSource which I believe Tomcat also uses. Therefore perhaps you can try defaultAutoCommit instead. data-source key=homeDS type=org.apache.commons.dbcp.BasicDataSource set-property property=driverClassName value=oracle.jdbc.driver.OracleDriver / set-property property=url value=jdbc:oracle:thin:@localhost:1521:DBLOCAL / set-property property=username value=user / set-property property=password value=pwd / set-property property=maxActive value=10 / set-property property=maxWait value=5000 / set-property property=defaultAutoCommit value=false / set-property property=defaultReadOnly value=false / set-property property=validationQuery value=SELECT SYSDATE FROM DUAL / /data-source Allistair -Original Message- From: starki78 [mailto:[EMAIL PROTECTED] Sent: 02 August 2005 09:38 To: tomcat-user Subject: How to set auto-commit to false on a Tomcat Connection-Pool? Hi, my example works but I cannot set the autocommit paramter, but this is quite important to me. Can someone give me advice? Thanks Starki ResourceParams name=jdbc/test parameter namevalidationQuery/name valueselect * from dual/value /parameter parameter namemaxWait/name value5000/value /parameter parameter namemaxActive/name value4/value /parameter parameter namepassword/name valuextest/value /parameter parameter nameurl/name valuejdbc:oracle:thin:@xinfosap.w1:1521:orcl;autocommit=fals e/value /parameter parameter namedriverClassName/name valueoracle.jdbc.driver.OracleDriver/value /parameter parameter nameauto-commit/name valuefalse/value /parameter parameter nameautoCommit/name valuefalse/value /parameter parameter nameautocommit/name valuefalse/value /parameter parameter namemaxIdle/name value2/value /parameter parameter nameusername/name valuextest/value /parameter /ResourceParams 6X velocizzare la tua navigazione a 56k? 6X Web Accelerator di Libero! Scaricalo su INTERNET GRATIS 6X http://www.libero.it - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem with autocommit in connection-pool on tomcat
Hi, my example works but I cannot set the autocommit parameter to false, but this is quite important to me. Can someone give me advice? Thanks Starki ResourceParams name=jdbc/test parameter namevalidationQuery/name valueselect * from dual/value /parameter parameter namemaxWait/name value5000/value /parameter parameter namemaxActive/name value4/value /parameter parameter namepassword/name valuextest/value /parameter parameter nameurl/name valuejdbc:oracle:thin:@xinfosap.w1:1521:orcl;autocommit=false/value /parameter parameter namedriverClassName/name valueoracle.jdbc.driver.OracleDriver/value /parameter parameter nameauto-commit/name valuefalse/value /parameter parameter nameautoCommit/name valuefalse/value /parameter parameter nameautocommit/name valuefalse/value /parameter parameter namemaxIdle/name value2/value /parameter parameter nameusername/name valuextest/value /parameter /ResourceParams Libero Flat, sempre a 4 Mega a 19,95 euro al mese! Abbonati subito su http://www.libero.it - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat 5.5, jdk1.5 on user mode debian stable hangs after a few days
Hello, I've searched far and wide for a definitive answer to this problem, but have found nothing that relates to my situation. I did find a few similar issues, but 1. I have no System.exit in my code 2. I am not using the root context and still after a few days tomcat stops responding. The problem also doesnt go away after i stop and re-start tomcat. And occasionally it wont stop with ./bin/shutdown.sh so i have to kill -9 the first process to stop it. when it is running, the CPU usage runs at over 90% and the memory usage goes up to 50% or so. It doesnt even respond when i telnet to localhost 8080. does anyone know a viable fix for this problem ? thanks, martin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: W3C log format in Tomcat 4?
This page has some links .. http://jakarta.apache.org/tomcat/bugreport.html -Tim Jason wrote: Tim, Perfect, that worked exactly like I needed it to. Thank you VERY much! Is there a searcable archive of all these mailing list questions and responses? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat 5.5, jdk1.5 on user mode debian stable hangs after a few days
Hi, Hanging, memory up 50%, sounds very much like an OutOfMemoryException to me. I know from experience that Tomcat can hang with no memory and not log to stdout either (although most of the time it does). Have you profiled your application under a load test? Cheers, Allistair. -Original Message- From: MDK [mailto:[EMAIL PROTECTED] Sent: 02 August 2005 10:23 To: tomcat-user@jakarta.apache.org Subject: tomcat 5.5, jdk1.5 on user mode debian stable hangs after a few days Hello, I've searched far and wide for a definitive answer to this problem, but have found nothing that relates to my situation. I did find a few similar issues, but 1. I have no System.exit in my code 2. I am not using the root context and still after a few days tomcat stops responding. The problem also doesnt go away after i stop and re-start tomcat. And occasionally it wont stop with ./bin/shutdown.sh so i have to kill -9 the first process to stop it. when it is running, the CPU usage runs at over 90% and the memory usage goes up to 50% or so. It doesnt even respond when i telnet to localhost 8080. does anyone know a viable fix for this problem ? thanks, martin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Soft links on Tomcat 5.5.9 on Windows 2000
I am quite new to Tomcat and am faced with a small problem. My web application files are lying in a directory structure outside of Tomcat. I want this application to be loaded by tomcat, but the problem is that somehow soft links do not work here. I tried the allowLinking flag and set it ti trur, but still in windows it is not working. The documentation just warns against using this flag on windows machines (due to non case sensitive FS), but turning this on does not work. Any clues on how to proceed. Another problem that I want to resolve is in the context.xml file under conf directory. The contents of my file is Context path=/3gflex docBase=D:\FeatureID debug=0 !-- Default set of monitored resources -- WatchedResourceWEB-INF/web.xml/WatchedResource !-- Uncomment this to disable session persistence across Tomcat restarts -- !-- Manager pathname= / -- /Context Is this not supposed to work as http://localhost:8080/3gflex/ or am I missing something here? It does work when just given http://localhost:8080/ Thanks Madhusudan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
access denied
hi all i am tryin gto access a zip fie that has being uploaded into a web-ap and unzip its content. can you please advice why i cannot access the file in that web-app specified web-app java.io.FileNotFoundException: d:\Tomcat 5.0\webapps\ivasThinClient\uploads\axis-bin-1_2_1.zip (Access is denied) java.io.FileInputStream.open(Native Method) java.io.FileInputStream.init(FileInputStream.java:106) org.nato.nc3a.ivas.util.CompressFileHandler.decompress(Unknown Source) org.nato.nc3a.ivas.ebxml.UnzipFilesServlet.unzipFiles(Unknown Source) org.nato.nc3a.ivas.ebxml.UnzipFilesServlet.processRequest(Unknown Source) org.nato.nc3a.ivas.ebxml.UnzipFilesServlet.doGet(Unknown Source) javax.servlet.http.HttpServlet.service(HttpServlet.java:689) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.nato.nc3a.ivas.ebxml.Controller.doGet(Unknown Source) javax.servlet.http.HttpServlet.service(HttpServlet.java:689) javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
Re: tomcat 5.5, jdk1.5 on user mode debian stable hangs after a few days
no, the odd thing is, it wasnt even being used (and its a very simple application, of course, thats a relative term) i installed the app, tested it once and logged out. I came back to it a few days later and the whole thing is hanging. If you can recommed any tools i can use to detect what is happening that would be much appreciated the app itself uses spring, openamf (an open source flash remoting connector) with some jdbc (mysql) so i guess that any one of these (and my code) could be the culprit. I'll look into each of these individually and see if they could be causing the problem. thanks. martin Allistair Crossley wrote: Hi, Hanging, memory up 50%, sounds very much like an OutOfMemoryException to me. I know from experience that Tomcat can hang with no memory and not log to stdout either (although most of the time it does). Have you profiled your application under a load test? Cheers, Allistair. -Original Message- From: MDK [mailto:[EMAIL PROTECTED] Sent: 02 August 2005 10:23 To: tomcat-user@jakarta.apache.org Subject: tomcat 5.5, jdk1.5 on user mode debian stable hangs after a few days Hello, I've searched far and wide for a definitive answer to this problem, but have found nothing that relates to my situation. I did find a few similar issues, but 1. I have no System.exit in my code 2. I am not using the root context and still after a few days tomcat stops responding. The problem also doesnt go away after i stop and re-start tomcat. And occasionally it wont stop with ./bin/shutdown.sh so i have to kill -9 the first process to stop it. when it is running, the CPU usage runs at over 90% and the memory usage goes up to 50% or so. It doesnt even respond when i telnet to localhost 8080. does anyone know a viable fix for this problem ? thanks, martin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
1 jakarta server + multiple ip's
Hello, I'm configuring a tomcat-server and the server has multiple ip's. I would like to setup virtual hosts based on the ip-address. I wouldn't like running multiple servers. situation: one networkdevice (eth0) has 2 ip's. I would like to setup virtual hosts based on the ip's. What I've done: I have setup aliases for the possible dns-names of the second virtual host (the possible names for one of the ip's). I have also added the ip itself to the aliases link. However, I don't know how tomcat filter based on these names. The ip-alias seems to work, so I'm wondering what tomcat is comparing it with. I suppose Tomcat requests the dns-name that corresponds to that id. So, I'm wondering if this setup filters on ip? thanks, Michel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: 1 jakarta server + multiple ip's
Virtual hosting is done based on the host: header send by browser to the server, as part of the request, based on HTTP/1.1 protocol. Le Mardi 2 Août 2005 13:36, [EMAIL PROTECTED] a écrit : Hello, I'm configuring a tomcat-server and the server has multiple ip's. I would like to setup virtual hosts based on the ip-address. I wouldn't like running multiple servers. situation: one networkdevice (eth0) has 2 ip's. I would like to setup virtual hosts based on the ip's. What I've done: I have setup aliases for the possible dns-names of the second virtual host (the possible names for one of the ip's). I have also added the ip itself to the aliases link. However, I don't know how tomcat filter based on these names. The ip-alias seems to work, so I'm wondering what tomcat is comparing it with. I suppose Tomcat requests the dns-name that corresponds to that id. So, I'm wondering if this setup filters on ip? thanks, Michel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- David Delbecq Royal Meteorological Institute of Belgium - Is there life after /sbin/halt -p? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: 1 jakarta server + multiple ip's
From: [EMAIL PROTECTED] I'm configuring a tomcat-server and the server has multiple ip's. I would like to setup virtual hosts based on the ip-address. I wouldn't like running multiple servers. What I've done: I have setup aliases for the possible dns-names of the second virtual host (the possible names for one of the ip's). I have also added the ip itself to the aliases link. However, I don't know how tomcat filter based on these names. The ip-alias seems to work, so I'm wondering what tomcat is comparing it with. Try this. Beware, this is from the documentation and is untested! Based on my 5.0.28 installation. In your server.xml for Tomcat, set up two different Services - copy and paste the existing chunk of XML for the Service, its Engine (and the bits inside that) and its Connectors. Change the appBase of the second Host to the place you want the second virtual host to find its files. In the Connectors of each Service, add: address=ip.of.virtual.host near the port=port attribute. THis should cause the Connector to bind to that IP rather than every IP on the machine. Hope this helps. - Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat 5.5, jdk1.5 on user mode debian stable hangs after a few days
Hi, You can get JProbe freeware for profiling and use JMeter to issue load to your web application. Does the same phenoneneneneom occur with a vanilla Tomcat 5.5 install with included webapps like jsp-examples. First figure out if it is your webapp that's causing it. Allistair. -Original Message- From: MDK [mailto:[EMAIL PROTECTED] Sent: 02 August 2005 12:29 To: Tomcat Users List Subject: Re: tomcat 5.5, jdk1.5 on user mode debian stable hangs after a few days no, the odd thing is, it wasnt even being used (and its a very simple application, of course, thats a relative term) i installed the app, tested it once and logged out. I came back to it a few days later and the whole thing is hanging. If you can recommed any tools i can use to detect what is happening that would be much appreciated the app itself uses spring, openamf (an open source flash remoting connector) with some jdbc (mysql) so i guess that any one of these (and my code) could be the culprit. I'll look into each of these individually and see if they could be causing the problem. thanks. martin Allistair Crossley wrote: Hi, Hanging, memory up 50%, sounds very much like an OutOfMemoryException to me. I know from experience that Tomcat can hang with no memory and not log to stdout either (although most of the time it does). Have you profiled your application under a load test? Cheers, Allistair. -Original Message- From: MDK [mailto:[EMAIL PROTECTED] Sent: 02 August 2005 10:23 To: tomcat-user@jakarta.apache.org Subject: tomcat 5.5, jdk1.5 on user mode debian stable hangs after a few days Hello, I've searched far and wide for a definitive answer to this problem, but have found nothing that relates to my situation. I did find a few similar issues, but 1. I have no System.exit in my code 2. I am not using the root context and still after a few days tomcat stops responding. The problem also doesnt go away after i stop and re-start tomcat. And occasionally it wont stop with ./bin/shutdown.sh so i have to kill -9 the first process to stop it. when it is running, the CPU usage runs at over 90% and the memory usage goes up to 50% or so. It doesnt even respond when i telnet to localhost 8080. does anyone know a viable fix for this problem ? thanks, martin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5.5.x and Unix Sockets
Hi , Had anyone of you tested Tomcat 5.5.x with mod_jk2 configured for using Unix sockets. I have not been able to make this work. I know mod_jk2 is deprecated. The open source doesnt say that it will not work , but says it may work. Since i want to upgrade to Tomcat 5.5.9 i want to check this. Please let me know the configuration details for this to work. Tomcat 4 configuration doenst work here. Thanks in advance, Regards, Bob - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to set auto-commit to false on a Tomcat Connection-Pool?
Allistair Crossley wrote: I found this on the web for Struts using org.apache.commons.dbcp.BasicDataSource which I believe Tomcat also uses. Therefore perhaps you can try defaultAutoCommit instead. data-source key=homeDS type=org.apache.commons.dbcp.BasicDataSource set-property property=driverClassName value=oracle.jdbc.driver.OracleDriver / set-property property=url value=jdbc:oracle:thin:@localhost:1521:DBLOCAL / set-property property=username value=user / set-property property=password value=pwd / set-property property=maxActive value=10 / set-property property=maxWait value=5000 / set-property property=defaultAutoCommit value=false / set-property property=defaultReadOnly value=false / set-property property=validationQuery value=SELECT SYSDATE FROM DUAL / /data-source All of these are documented on Jakarta Commons-DBCP page. Nix. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Logging With Tomcat 5.5
Hello, I am sure this topic has been beaten to death, but I am having trouble understanding how the Log4J works, and how I can configure it on my localbox. First off, I am running Tomcat 5.5 and I have created two webapp contexts. One is a dev site, and the other is a production site. I am using struts (I don't think it matters). I would to be able to have two sets of rolling logs. One for dev, and the other for production. I am trying to decipher the readme at http://jakarta.apache.org/tomcat/tomcat-5.5-doc/logging.html; but I am not truly sure if this is for all webapps, or what this is implying. I would like to get all Tomcat messages (errors, etc) and my actual logging all in either one or two files per webapp. Can someone please assist me in this? The readme just doesn't cut it, or I am interpreting it wrongly. Or maybe there is an example setup somewhere. Any info would be appreciated. Sincerely Scott - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
can I prevent DoS (Denial of Service) Attacks in JSP?
Dear List, I have been asked if its possible to prevent DoS attacks inside Java (JSP/Servlet). I guess it is ... is this something however that TC would be configured to deal with, or must I do something myself. Whats normal ? Many thanks in advance! Best wishes Ben Bookey - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Logging With Tomcat 5.5
Don't confuse not understanding with not sufficient. The instructions do lead to a correct configuration. However, here it is more explicitly. Allistair. Per-webapp logging == 1. Add log4j's jar to both your webapp's WEB-INF/lib folders 2. Add log4j.properties to both your webapp's WEB-INF/classes folders. *Minimally*, add log4j.rootCategory=debug, R log4j.appender.R=org.apache.log4j.RollingFileAppender log4j.appender.R.File=c:/jakarta-tomcat/logs/webapp-name.log log4j.appender.R.MaxFileSize=1500KB log4j.appender.R.MaxBackupIndex=1 log4j.appender.R.layout=org.apache.log4j.PatternLayout log4j.appender.R.layout.ConversionPattern=%d - %5p (%C:%L) - %m%n to those log4j.properties files changing the File path appropriately. Ideally you will pick up the log4j manual and create appenders that map to packages. Tomcat logging with log4j = I've found the best way is 1. Add log4j jar to common/lib, add commons-logging.jar to common/lib 2. Add log4j.properties to common/classes with content log4j.rootCategory=error, R log4j.appender.R=org.apache.log4j.RollingFileAppender log4j.appender.R.File=c:/jakarta-tomcat/logs/tomcat.log log4j.appender.R.MaxFileSize=1500KB log4j.appender.R.MaxBackupIndex=1 log4j.appender.R.layout=org.apache.log4j.PatternLayout log4j.appender.R.layout.ConversionPattern=%d - %5p (%C:%L) - %m%n log4j.logger.org.apache.commons.modeler=INFO, R log4j.logger.org.apache.tomcat.util.digester=ERROR, R log4j.logger.org.apache.catalina.loader=INFO, R log4j.logger.org.apache.catalina.session=INFO, R log4j.logger.org.apache.catalina=DEBUG, R log4j.logger.org.apache.commons.digester=INFO, R log4j.logger.org.apache.commons.beanutils=INFO, R log4j.logger.org.apache.jasper=INFO, R log4j.additivity.org.apache.catalina=false Tomcat logging per-webapp = Add to your webapp's log4j.properties files log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina].[localhost][/webappname]=DEBUG, R -Original Message- From: Scott Purcell [mailto:[EMAIL PROTECTED] Sent: 02 August 2005 14:22 To: tomcat-user@jakarta.apache.org Subject: Logging With Tomcat 5.5 Hello, I am sure this topic has been beaten to death, but I am having trouble understanding how the Log4J works, and how I can configure it on my localbox. First off, I am running Tomcat 5.5 and I have created two webapp contexts. One is a dev site, and the other is a production site. I am using struts (I don't think it matters). I would to be able to have two sets of rolling logs. One for dev, and the other for production. I am trying to decipher the readme at http://jakarta.apache.org/tomcat/tomcat-5.5-doc/logging.html; but I am not truly sure if this is for all webapps, or what this is implying. I would like to get all Tomcat messages (errors, etc) and my actual logging all in either one or two files per webapp. Can someone please assist me in this? The readme just doesn't cut it, or I am interpreting it wrongly. Or maybe there is an example setup somewhere. Any info would be appreciated. Sincerely Scott - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat 5.5, jdk1.5 on user mode debian stable hangs after a few days
On 8/2/05, MDK [EMAIL PROTECTED] wrote: no, the odd thing is, it wasnt even being used (and its a very simple application, of course, thats a relative term) i installed the app, tested it once and logged out. I came back to it a few days later and the whole thing is hanging. If you can recommed any tools i can use to detect what is happening that would be much appreciated the app itself uses spring, openamf (an open source flash remoting connector) with some jdbc (mysql) so i guess that any one of these (and my code) could be the culprit. I'll look into each of these individually and see if they could be causing the problem. When something like Tomcat is hung, the first thing you should do is get a thread dump, which may give very useful information. -- x Rémy Maucherat Developer Consultant JBoss Group (Europe) SàRL x - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Logging With Tomcat 5.5
Allistair, That last instruction log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina].[localhost][/webappname]=DEBUG, R What do I change the [Catalina] value to? and that does go into the log4j.properties file under the webapp? Thanks, Scott -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 02, 2005 8:31 AM To: Tomcat Users List Subject: RE: Logging With Tomcat 5.5 Don't confuse not understanding with not sufficient. The instructions do lead to a correct configuration. However, here it is more explicitly. Allistair. Per-webapp logging == 1. Add log4j's jar to both your webapp's WEB-INF/lib folders 2. Add log4j.properties to both your webapp's WEB-INF/classes folders. *Minimally*, add log4j.rootCategory=debug, R log4j.appender.R=org.apache.log4j.RollingFileAppender log4j.appender.R.File=c:/jakarta-tomcat/logs/webapp-name.log log4j.appender.R.MaxFileSize=1500KB log4j.appender.R.MaxBackupIndex=1 log4j.appender.R.layout=org.apache.log4j.PatternLayout log4j.appender.R.layout.ConversionPattern=%d - %5p (%C:%L) - %m%n to those log4j.properties files changing the File path appropriately. Ideally you will pick up the log4j manual and create appenders that map to packages. Tomcat logging with log4j = I've found the best way is 1. Add log4j jar to common/lib, add commons-logging.jar to common/lib 2. Add log4j.properties to common/classes with content log4j.rootCategory=error, R log4j.appender.R=org.apache.log4j.RollingFileAppender log4j.appender.R.File=c:/jakarta-tomcat/logs/tomcat.log log4j.appender.R.MaxFileSize=1500KB log4j.appender.R.MaxBackupIndex=1 log4j.appender.R.layout=org.apache.log4j.PatternLayout log4j.appender.R.layout.ConversionPattern=%d - %5p (%C:%L) - %m%n log4j.logger.org.apache.commons.modeler=INFO, R log4j.logger.org.apache.tomcat.util.digester=ERROR, R log4j.logger.org.apache.catalina.loader=INFO, R log4j.logger.org.apache.catalina.session=INFO, R log4j.logger.org.apache.catalina=DEBUG, R log4j.logger.org.apache.commons.digester=INFO, R log4j.logger.org.apache.commons.beanutils=INFO, R log4j.logger.org.apache.jasper=INFO, R log4j.additivity.org.apache.catalina=false Tomcat logging per-webapp = Add to your webapp's log4j.properties files log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina].[localhost][/webappname]=DEBUG, R -Original Message- From: Scott Purcell [mailto:[EMAIL PROTECTED] Sent: 02 August 2005 14:22 To: tomcat-user@jakarta.apache.org Subject: Logging With Tomcat 5.5 Hello, I am sure this topic has been beaten to death, but I am having trouble understanding how the Log4J works, and how I can configure it on my localbox. First off, I am running Tomcat 5.5 and I have created two webapp contexts. One is a dev site, and the other is a production site. I am using struts (I don't think it matters). I would to be able to have two sets of rolling logs. One for dev, and the other for production. I am trying to decipher the readme at http://jakarta.apache.org/tomcat/tomcat-5.5-doc/logging.html; but I am not truly sure if this is for all webapps, or what this is implying. I would like to get all Tomcat messages (errors, etc) and my actual logging all in either one or two files per webapp. Can someone please assist me in this? The readme just doesn't cut it, or I am interpreting it wrongly. Or maybe there is an example setup somewhere. Any info would be appreciated. Sincerely Scott - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Context.xml does not seem to work
I have some content outside of the main app war file that I want to give user access to. I have the following in a conf/content.xml: Context path=/app_context/help docBase=/path/to/content /Context I keep getting 404s on a file that I know exists on the filesytem in the path/to/content. I also tried to add this to the server.xml file but see the same behavior. I am using Tomcat 5.0.28 with IBM JDK 1.4.2 on AIX 5L. Any ideas? Something wrong with the syntax? -- Ben Ricker He's just this guy, you know? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Logging With Tomcat 5.5
Hi, You don't change Catalina (for most purposes). Just change end part /webappname to your web application name, and yes, add it into the web application's log4j. E.g if your webapp was called banana You would add (in addition to the root logger etc..) into webapps/banana/WEB-INF/classes/log4j.properties log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina].[localhost][/banana]=DEBUG, R Allistair. -Original Message- From: Scott Purcell [mailto:[EMAIL PROTECTED] Sent: 02 August 2005 14:49 To: Tomcat Users List Subject: RE: Logging With Tomcat 5.5 Allistair, That last instruction log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina ].[localhost][/webappname]=DEBUG, R What do I change the [Catalina] value to? and that does go into the log4j.properties file under the webapp? Thanks, Scott -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 02, 2005 8:31 AM To: Tomcat Users List Subject: RE: Logging With Tomcat 5.5 Don't confuse not understanding with not sufficient. The instructions do lead to a correct configuration. However, here it is more explicitly. Allistair. Per-webapp logging == 1. Add log4j's jar to both your webapp's WEB-INF/lib folders 2. Add log4j.properties to both your webapp's WEB-INF/classes folders. *Minimally*, add log4j.rootCategory=debug, R log4j.appender.R=org.apache.log4j.RollingFileAppender log4j.appender.R.File=c:/jakarta-tomcat/logs/webapp-name.log log4j.appender.R.MaxFileSize=1500KB log4j.appender.R.MaxBackupIndex=1 log4j.appender.R.layout=org.apache.log4j.PatternLayout log4j.appender.R.layout.ConversionPattern=%d - %5p (%C:%L) - %m%n to those log4j.properties files changing the File path appropriately. Ideally you will pick up the log4j manual and create appenders that map to packages. Tomcat logging with log4j = I've found the best way is 1. Add log4j jar to common/lib, add commons-logging.jar to common/lib 2. Add log4j.properties to common/classes with content log4j.rootCategory=error, R log4j.appender.R=org.apache.log4j.RollingFileAppender log4j.appender.R.File=c:/jakarta-tomcat/logs/tomcat.log log4j.appender.R.MaxFileSize=1500KB log4j.appender.R.MaxBackupIndex=1 log4j.appender.R.layout=org.apache.log4j.PatternLayout log4j.appender.R.layout.ConversionPattern=%d - %5p (%C:%L) - %m%n log4j.logger.org.apache.commons.modeler=INFO, R log4j.logger.org.apache.tomcat.util.digester=ERROR, R log4j.logger.org.apache.catalina.loader=INFO, R log4j.logger.org.apache.catalina.session=INFO, R log4j.logger.org.apache.catalina=DEBUG, R log4j.logger.org.apache.commons.digester=INFO, R log4j.logger.org.apache.commons.beanutils=INFO, R log4j.logger.org.apache.jasper=INFO, R log4j.additivity.org.apache.catalina=false Tomcat logging per-webapp = Add to your webapp's log4j.properties files log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina] .[localhost][/webappname]=DEBUG, R -Original Message- From: Scott Purcell [mailto:[EMAIL PROTECTED] Sent: 02 August 2005 14:22 To: tomcat-user@jakarta.apache.org Subject: Logging With Tomcat 5.5 Hello, I am sure this topic has been beaten to death, but I am having trouble understanding how the Log4J works, and how I can configure it on my localbox. First off, I am running Tomcat 5.5 and I have created two webapp contexts. One is a dev site, and the other is a production site. I am using struts (I don't think it matters). I would to be able to have two sets of rolling logs. One for dev, and the other for production. I am trying to decipher the readme at http://jakarta.apache.org/tomcat/tomcat-5.5-doc/logging.html; but I am not truly sure if this is for all webapps, or what this is implying. I would like to get all Tomcat messages (errors, etc) and my actual logging all in either one or two files per webapp. Can someone please assist me in this? The readme just doesn't cut it, or I am interpreting it wrongly. Or maybe there is an example setup somewhere. Any info would be appreciated. Sincerely Scott - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To
Multiple domains accessing one web app.
Hi list Our system is designed so that multiple domains can have independently branded versions of the same web app. The situation we are struggling to resolve is this. We have a two domains accessing one web app on a third domain. the set up is domain1.com resolves to a directory which contains a frameset referencing www.mydomain.com/webapp/site1 domain2.com resolves to a directory which contains a frameset referencing www.mydomain.com/webapp/site2 In this configuration when the user logs on to domain1.com the session cookie is coming from mydomain.com not domain1.com and is producing http error 400 and unless the user sets their browser to accept all cookies, will not let them log on to the system. We have tried to set up the host elements in the server.xml so that: domain1.com resolves directly to /webapp/site1 and domain2.com resolves directly to /webapp/site2 This solves the cookie/login problem but implements a more serious problem. If domain1 is accessed first after a server restart it will communicate on port 12345, which is all fine but if a user then logs in via domain2 the interface that they use will not connect to the server as the port is already used by domain1. We have very little experience with Tomcat, we have tried all the usual routes (google, forums , reading the manual etc) Can anyone suggest a way to solve this? Regards Stuart - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Session ID's
Is there a configuration setting such that every local URL will be encoded with a session id if one is present? I have developed a site that uses cookies to hold the session id and am getting complaints from users that do not have cookies enabled. Thanks Charles
RE: Session ID's
Use HttpServletResponse.encodeURL(String url) -Original Message- From: Charles P. Killmer [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 02, 2005 10:04 AM To: Tomcat Users List Subject: Session ID's Is there a configuration setting such that every local URL will be encoded with a session id if one is present? I have developed a site that uses cookies to hold the session id and am getting complaints from users that do not have cookies enabled. Thanks Charles - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: can I prevent DoS (Denial of Service) Attacks in JSP?
Hmm, that is like asking how to avoid automobile accidents. Larry On 8/2/05, Ben Bookey [EMAIL PROTECTED] wrote: Dear List, I have been asked if its possible to prevent DoS attacks inside Java (JSP/Servlet). I guess it is ... is this something however that TC would be configured to deal with, or must I do something myself. Whats normal ? Many thanks in advance! Best wishes Ben Bookey - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat base vs. home
Sorry for the basic stuff here guys... I'm a bit under the gun and haven't found the answer in an admittedly cursory search, so I thought I'd ask those who know all (that's you ;-) I've eclipse (3.0) with sysdeo's plugin for tomcat, and tomcat (4.1). In eclipse/window/preferences/tomcat there's a text box for Tomcat home, currently h:\tomcat. Under tomcat, in advanced, there's a text box for Tomcat base, also h:\tomcat. Is Tomcat home the place tomcat looks for its stuff and Tomcat base where it looks for applications? And then where would the HTML/JSP pages go? Why do I ask Now, with my limited understanding of this stuff, there's a directory with the java stuff in it, for the application server, a directory for the HTML and JSP stuff, for the http server, and a directory for the libraries used to actually run the application server. When I'd worked with Visual Age for Java, we had the source code in, for example, C:\project\ etc. and the HTML/JSPs in C:\Program Files\IBM\...\DEFAULT_HOST\ProjectApp\ etc. I'm guessing that VAJ's libraries were also in C:\Program Files\IBM etc. In support of that, we also have Visual Source Safe pointing to the same directories, as it contains the Java/HTML/JSP and conf and prop and etc files. I'd put Eclipse and Tomcat on C:\tomcat, and had to move it to a network drive, H:\tomcat. (because of the zips and McAfee) But, I need to get tomcat to get the Java, HTML and JSPs from the same place that VSS is pointed at, i.e. back at C:\project and C:\program files\ibm\etc. (so as to minimize my straying from the standard ;-) So what do I set to c:\project and what do I set to C;\program files\ibm\ etc.? Thanks Thank you R. Cornell Sternbergh PennDOT/BIS APRASTeam (717) 787-6760 [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SSL cert
Hi! My certificate expired so I ordered a new one, I removed the old one in my keystore and added the new one. I can look at my certificate with keytool -list and its there and looks correct. However, when I try to use the site it sends me the old one, claiming it has expired. Could I be doing anything wrong? Anyone else had this problem? Thanks. -- Andreas Andersson IT Dept. Travelstart Nordic [EMAIL PROTECTED] http://www.travelstart.se - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: SSL cert
Did you restart tomcat ? -Original Message- From: Andreas Andersson [mailto:[EMAIL PROTECTED] Sent: 02 August 2005 15:51 To: tomcat-user@jakarta.apache.org Subject: SSL cert Hi! My certificate expired so I ordered a new one, I removed the old one in my keystore and added the new one. I can look at my certificate with keytool -list and its there and looks correct. However, when I try to use the site it sends me the old one, claiming it has expired. Could I be doing anything wrong? Anyone else had this problem? Thanks. -- Andreas Andersson IT Dept. Travelstart Nordic [EMAIL PROTECTED] http://www.travelstart.se - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat base vs. home
From: Sternbergh, Cornell [mailto:[EMAIL PROTECTED] Is Tomcat home the place tomcat looks for its stuff and Tomcat base where it looks for applications? And then where would the HTML/JSP pages go? Not quite. HOME is where the Tomcat binaries live. BASE allows you to set up an alternative structure of conf/logs/temp/webapps/work so that you can host multiple Tomcats from the same set of binaries - I use this to run several Tomcat 5.0.28s. My batch file is as follows: set CATALINA_HOME=C:\Progra~1\APACHE~2\TOMCAT~1.0 set CATALINA_BASE=c:\cattery\bodington2 cd %CATALINA_HOME%\bin start catalina run Under c:\cattery\bodington2 (one of my Tomcat installations) you'll find conf, logs, temp, webapps and work, with conf/server.xml and so forth. So possibly not quite what you want - there's more there than just the applications. You might want to investigate the appBase attribute in server.xml, however. - Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Session ID's
I was hoping there was a configuration setting that would tack the session id onto every hyperlink at runtime, much as PHP does. Charles -Original Message- From: Derrick Koes [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 02, 2005 9:20 AM To: Tomcat Users List Subject: RE: Session ID's Use HttpServletResponse.encodeURL(String url) -Original Message- From: Charles P. Killmer [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 02, 2005 10:04 AM To: Tomcat Users List Subject: Session ID's Is there a configuration setting such that every local URL will be encoded with a session id if one is present? I have developed a site that uses cookies to hold the session id and am getting complaints from users that do not have cookies enabled. Thanks Charles - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SSL cert
Raghupathy,Gurumoorthy wrote: Did you restart tomcat ? Of course, several times just to be sure :) -- Andreas Andersson IT Dept. Travelstart Nordic [EMAIL PROTECTED] http://www.travelstart.se - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: can I prevent DoS (Denial of Service) Attacks in JSP?
Larry Meadors wrote: Hmm, that is like asking how to avoid automobile accidents. Larry On 8/2/05, Ben Bookey [EMAIL PROTECTED] wrote: Dear List, I have been asked if its possible to prevent DoS attacks inside Java (JSP/Servlet). I guess it is ... is this something however that TC would be configured to deal with, or must I do something myself. Whats normal ? Many thanks in advance! Best wishes Ben Bookey i guess one could attempt to write a filter that rejects requests that *look like* they are part of a DoS attack, but there's always the risk of eliminating legitimate traffic with this. and it probably won't help at all if the attacker found a weak spot specific to your web application. Edmund BTW don't forget to fasten your seatbelt. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
multipledomains accessing one web app
Apologies if people have already received this, it bounced back to me so I have to assume the mail was not sent first time. Hi list Our system is designed so that multiple domains can have independently branded versions of the same web app. The situation we are struggling to resolve is this. We have a two domains accessing one web app on a third domain. the set up is domain1.com resolves to a directory which contains a frameset referencing www.mydomain.com/webapp/site1 domain2.com resolves to a directory which contains a frameset referencing www.mydomain.com/webapp/site2 In this configuration when the user logs on to domain1.com the session cookie is coming from mydomain.com not domain1.com and is producing http error 400 and unless the user sets their browser to accept all cookies, will not let them log on to the system. We have tried to set up the host elements in the server.xml so that: domain1.com resolves directly to /webapp/site1 and domain2.com resolves directly to /webapp/site2 This solves the cookie/login problem but implements a more serious problem. If domain1 is accessed first after a server restart it will communicate on port 12345, which is all fine but if a user then logs in via domain2 the interface that they use will not connect to the server as the port is already used by domain1. We have very little experience with Tomcat, we have tried all the usual routes (google, forums , reading the manual etc) Can anyone suggest a way to solve this? Regards Stuart - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: can I prevent DoS (Denial of Service) Attacks in JSP?
I don't is possible because in case of a DoS they first target your web server by making it busy. That can be tomcat but can well be apache. Secondly they can attack you from many ip addresses and that would be pretty harsh, if for example you'd get 1 zillion requests for a larger file/page and your tomcat will become very busy trying to serve that page/file.Additional users will experience slow access or even no access at all. What you can do, is more like a prevention - just an idea, never implemented yet - keep tap of access and if you think that one particular ip address or one resource is hit extremely often then treat that request differenly, a short(text), polite message will do - you'd serve it differently. This will not be bullet proof thought, any additional number of requests can bring you bag at start point... Maybe load balancing can help, that has nothing to do though with your application. It's a appserver and hardware configuration. Hope this will help, MC http://www.goodstockimages.com From: Larry Meadors [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Subject: Re: can I prevent DoS (Denial of Service) Attacks in JSP? Date: Tue, 2 Aug 2005 08:30:32 -0600 Hmm, that is like asking how to avoid automobile accidents. Larry On 8/2/05, Ben Bookey [EMAIL PROTECTED] wrote: Dear List, I have been asked if its possible to prevent DoS attacks inside Java (JSP/Servlet). I guess it is ... is this something however that TC would be configured to deal with, or must I do something myself. Whats normal ? Many thanks in advance! Best wishes Ben Bookey - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat base vs. home
I don't know VSS, but using CVS I would do a new checkout to the H: drive, so Tomcat and VSS would use the same location and there is no extra config to do. - Manfred Sternbergh, Cornell wrote: Sorry for the basic stuff here guys... I'm a bit under the gun and haven't found the answer in an admittedly cursory search, so I thought I'd ask those who know all (that's you ;-) I've eclipse (3.0) with sysdeo's plugin for tomcat, and tomcat (4.1). In eclipse/window/preferences/tomcat there's a text box for Tomcat home, currently h:\tomcat. Under tomcat, in advanced, there's a text box for Tomcat base, also h:\tomcat. Is Tomcat home the place tomcat looks for its stuff and Tomcat base where it looks for applications? And then where would the HTML/JSP pages go? Why do I ask Now, with my limited understanding of this stuff, there's a directory with the java stuff in it, for the application server, a directory for the HTML and JSP stuff, for the http server, and a directory for the libraries used to actually run the application server. When I'd worked with Visual Age for Java, we had the source code in, for example, C:\project\ etc. and the HTML/JSPs in C:\Program Files\IBM\...\DEFAULT_HOST\ProjectApp\ etc. I'm guessing that VAJ's libraries were also in C:\Program Files\IBM etc. In support of that, we also have Visual Source Safe pointing to the same directories, as it contains the Java/HTML/JSP and conf and prop and etc files. I'd put Eclipse and Tomcat on C:\tomcat, and had to move it to a network drive, H:\tomcat. (because of the zips and McAfee) But, I need to get tomcat to get the Java, HTML and JSPs from the same place that VSS is pointed at, i.e. back at C:\project and C:\program files\ibm\etc. (so as to minimize my straying from the standard ;-) So what do I set to c:\project and what do I set to C;\program files\ibm\ etc.? Thanks Thank you R. Cornell Sternbergh PennDOT/BIS APRASTeam (717) 787-6760 [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SSL
Hi, I will be straight up and say immediately that my expertise does not lie with Java or with Tomcat and appreciate any help given. The problem: I am running a server that hosts voice applications over VXML. The server is a windows 2000 box running IIS and tomcat. I need the box to run SSL. I can get IIS to serve https pages no problem. However the html triggers that fire application requests are fed through the tomcat server and I cannot get the tomcat pages through https. I have read much documentation on the apache site and have configured the https through the server.xml file, created certificates, am using jsse etc. The big problem with this server is it has two java install directories and two tomcat install directories. When I setup the config in the server.xml in the directories I need the tomcat.log reports that it cannot find the SSLSocketFactory class. HELP!!...to make matters worse Tomcat version is 3.2.1 which I believe is now deprecated. Thanks, Jamie. Jamie Spurr Engineer Email: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ** Disclaimer: This message may contain privileged or confidential information. If you are not the intended recipient, please notify the sender and delete this message. Please be advised that any disclosure, copying, distribution or use of this information is strictly prohibited. Views expressed in this message are those of the individual sender and are not necessarily the views of Streamdoor Ltd, unless otherwise stated. Although Streamdoor Ltd has taken precautions to ensure no viruses are present in this email, the company cannot accept responsibility for any loss or damage caused arising from the use of this email or attachment. www.streamdoor.com **
Re: Session ID's
That wouldn't make much sense IMO. What about links to external hosts or to different contexts on the same host? It would be a security hole to give them your session id. (One could handle this partly by only applying the rewrite to relative URLs) What about links to images, css, javascript files? They would get the session id and therefore unnecessarily not be cached by the users browser. I'm curious: do you know how PHP handles these issues? Christoph Charles P. Killmer wrote: I was hoping there was a configuration setting that would tack the session id onto every hyperlink at runtime, much as PHP does. Charles -Original Message- From: Derrick Koes [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 02, 2005 9:20 AM To: Tomcat Users List Subject: RE: Session ID's Use HttpServletResponse.encodeURL(String url) -Original Message- From: Charles P. Killmer [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 02, 2005 10:04 AM To: Tomcat Users List Subject: Session ID's Is there a configuration setting such that every local URL will be encoded with a session id if one is present? I have developed a site that uses cookies to hold the session id and am getting complaints from users that do not have cookies enabled. Thanks Charles - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SSL
Apologies if this has been sent more than once. Hi, I will be straight up and say immediately that my expertise does not lie with Java or with Tomcat and appreciate any help given. The problem: I am running a server that hosts voice applications over VXML. The server is a windows 2000 box running IIS and tomcat. I need the box to run SSL. I can get IIS to serve https pages no problem. However the html triggers that fire application requests are fed through the tomcat server and I cannot get the tomcat pages through https. I have read much documentation on the apache site and have configured the https through the server.xml file, created certificates, am using jsse etc. The big problem with this server is it has two java install directories and two tomcat install directories. When I setup the config in the server.xml in the directories I need the tomcat.log reports that it cannot find the SSLSocketFactory class. HELP!!...to make matters worse Tomcat version is 3.2.1 which I believe is now deprecated. Thanks, Jamie. ** Disclaimer: This message may contain privileged or confidential information. If you are not the intended recipient, please notify the sender and delete this message. Please be advised that any disclosure, copying, distribution or use of this information is strictly prohibited. Views expressed in this message are those of the individual sender and are not necessarily the views of Streamdoor Ltd, unless otherwise stated. Although Streamdoor Ltd has taken precautions to ensure no viruses are present in this email, the company cannot accept responsibility for any loss or damage caused arising from the use of this email or attachment. www.streamdoor.com **
AW: Session ID's
Some small addition: URL Rewriting is only used when cookies are switched off. From the Servlet Spec: SRV.7.1.3 URL Rewriting URL rewriting is the lowest common denominator of session tracking. When a client will not accept a cookie, URL rewriting may be used by the server as the basis for session tracking. URL rewriting involves adding data, a session ID, to the URL path that is interpreted by the container to associate the request with a session. The session ID must be encoded as a path parameter in the URL string. The name of the parameter must be jsessionid. Here is an example of a URL containing encoded path information: http://www.myserver.com/catalog/index.html;jsessionid=1234 SRV.7.1.4 Session Integrity Web containers must be able to support the HTTP session while servicing HTTP requests from clients that do not support the use of cookies. To fulfill this requirement, Web containers commonly support the URL rewriting mechanism. Bernhard -Ursprüngliche Nachricht- Von: Charles P. Killmer [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 2. August 2005 17:03 An: Tomcat Users List Betreff: RE: Session ID's I was hoping there was a configuration setting that would tack the session id onto every hyperlink at runtime, much as PHP does. Charles -Original Message- From: Derrick Koes [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 02, 2005 9:20 AM To: Tomcat Users List Subject: RE: Session ID's Use HttpServletResponse.encodeURL(String url) -Original Message- From: Charles P. Killmer [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 02, 2005 10:04 AM To: Tomcat Users List Subject: Session ID's Is there a configuration setting such that every local URL will be encoded with a session id if one is present? I have developed a site that uses cookies to hold the session id and am getting complaints from users that do not have cookies enabled. Thanks Charles - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JSESSIONID and jvmGroup
Hi everyone, I'm trying to setup an Apache server with mod_jk that will be used as load balancer for two Tomcat instances. I've tested my configuration with the cart JSP example and with the sessions example servlet that ship with Tomcat and these have worked fine. To make it work I just had to add the jvmGroup attribute with a different value to the Engine of each Tomcat instance. For instance, the Tomcat server with Engine .. jvmGroup=jvm1 will generate JSESSIONIDs like 0F0C25EC2D11FA13EC4C1E9E36A4E93C.jvm1. mod_jk is correctly using the information in the end of the JSESSIONID value to keep session affinity (or stickyness, in the mod_jk terminology). However, when using an in-house webapp in the same Tomcat installations (where the examples mentioned above work fine), the generated JSESSIONID values are different: Hhft2dCrqsLgZ9ws1jpApprJ. It seems (to my untrained eyes, at least) that something in our webapp is causing a different JSESSIONID generation mechanism to be used. Any ideas on where/what to look for and how to have the JSESSIONIDs always tagged with the value of the jvmGroup attribute would be greatly appreciated. Thanks in advance, -- Edgar Alves - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
can I put JDBC connection information in the webapps web.xml file?
I want to know if it is possible to place the JDBC resource information in the web.xml file in my context's WEB-INF directory? If this is possible, what is the syntax? Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Session ID's
PHP handles only relative links. It ignores the src= and only applies to href and also creates a hidden field for forms. Charles -Original Message- From: Christoph Kutzinski [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 02, 2005 10:24 AM To: Tomcat Users List Subject: Re: Session ID's That wouldn't make much sense IMO. What about links to external hosts or to different contexts on the same host? It would be a security hole to give them your session id. (One could handle this partly by only applying the rewrite to relative URLs) What about links to images, css, javascript files? They would get the session id and therefore unnecessarily not be cached by the users browser. I'm curious: do you know how PHP handles these issues? Christoph Charles P. Killmer wrote: I was hoping there was a configuration setting that would tack the session id onto every hyperlink at runtime, much as PHP does. Charles -Original Message- From: Derrick Koes [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 02, 2005 9:20 AM To: Tomcat Users List Subject: RE: Session ID's Use HttpServletResponse.encodeURL(String url) -Original Message- From: Charles P. Killmer [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 02, 2005 10:04 AM To: Tomcat Users List Subject: Session ID's Is there a configuration setting such that every local URL will be encoded with a session id if one is present? I have developed a site that uses cookies to hold the session id and am getting complaints from users that do not have cookies enabled. Thanks Charles - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Session ID's
Thanks. I will take a look through this. Charles -Original Message- From: Bernhard Slominski [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 02, 2005 10:33 AM To: 'Tomcat Users List' Subject: AW: Session ID's Some small addition: URL Rewriting is only used when cookies are switched off. From the Servlet Spec: SRV.7.1.3 URL Rewriting URL rewriting is the lowest common denominator of session tracking. When a client will not accept a cookie, URL rewriting may be used by the server as the basis for session tracking. URL rewriting involves adding data, a session ID, to the URL path that is interpreted by the container to associate the request with a session. The session ID must be encoded as a path parameter in the URL string. The name of the parameter must be jsessionid. Here is an example of a URL containing encoded path information: http://www.myserver.com/catalog/index.html;jsessionid=1234 SRV.7.1.4 Session Integrity Web containers must be able to support the HTTP session while servicing HTTP requests from clients that do not support the use of cookies. To fulfill this requirement, Web containers commonly support the URL rewriting mechanism. Bernhard -Ursprüngliche Nachricht- Von: Charles P. Killmer [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 2. August 2005 17:03 An: Tomcat Users List Betreff: RE: Session ID's I was hoping there was a configuration setting that would tack the session id onto every hyperlink at runtime, much as PHP does. Charles -Original Message- From: Derrick Koes [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 02, 2005 9:20 AM To: Tomcat Users List Subject: RE: Session ID's Use HttpServletResponse.encodeURL(String url) -Original Message- From: Charles P. Killmer [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 02, 2005 10:04 AM To: Tomcat Users List Subject: Session ID's Is there a configuration setting such that every local URL will be encoded with a session id if one is present? I have developed a site that uses cookies to hold the session id and am getting complaints from users that do not have cookies enabled. Thanks Charles - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using more than one SSL cert in keystore?
Bruno, I am hosting a few sites on Tomcat standalone and they all share on SSL certificate because they all use the same domain name (they are just forwards to different directories). But now I would like to put up a new site that is completely independant of the others. It needs its own SSL cert and it needs four host names to all point to the same place and redirect to just one of the domain names so that the SSL cert will be valid, regardless of how the users chose to get to my site. Is it possible to do Virtual Hosting using IP's on a Tomcat standalone installation? Or will it only do the host entries that I am already using? It would solve all my problems if I could. Then, to get four addresses redirected to one, I would simply have to set my default domain name set in server.xml, enter no other host entries, and all the requests sent there would shift to the default domain. I am not sure if this scenario is achieveable. Tomcat may not even be set up for IP virtual hosting. One other thought--Is this more easily achieved by setting up a second instance of tomcat on my machine? Justin --- Bruno Georges [EMAIL PROTECTED] wrote: Justin In this situation, I would use apache + modrewrite If you want some example I can help you Bruno Bruno Georges Glencore International AG Tel. +41 41 709 3204 Fax +41 41 709 3000 - Original Message - From: Justin Jaynes [EMAIL PROTECTED] Sent: 02.08.2005 00:54 To: Tomcat Users List tomcat-user@jakarta.apache.org Subject: Re: Using more than one SSL cert in keystore? In the (brief) interim between my asking the original question below, and now, I have found additional information--SSL must occur before HTTP handshake, and will therefore not work on hosts based on the same IP. I have more than one IP available from my ISP. I suppose the question would better be this: How do I cofigure virtual hosting of more than one SSL enabled host over ONE interface using multiple IP addresses? Sorry for the confusion. --- Justin Jaynes [EMAIL PROTECTED] wrote: If I host more than one domain on my tomcat installation (standalone, not with apache), can I imort an SSL certificate for each domain and will tomcat just know which to use for which hosts? Justin Jaynes - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] * * LEGAL DISCLAIMER * This message contains confidential information for * the exclusive use of the person mentioned above. * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Netbeans/TOMCAT RMI
Hi everybody, I got an RMI code which is working fine into another servlet container. I want to port it into TOMCAT. That's the first time Im doing it, so that's what I did : -I added : -Djava.rmi.server.codebase=http://127.0.0.1:80/ to my JAVA_OPT variables into the catalina.bat file. -I changed the policy file path to another file than catalina.policy which contain : grant { permission java.security.AllPermission , ; }; And i launched Tomcat (catalina.bat) using/and without using -security option I got this error : NotifyUtil::java.security.AccessControlException: access denied (java.net.SocketPermission 127.0.0.1:8082 connect,resolve)really weird Im using netbeans and after scanning every files the only reference to this 8082 port is into a web.xml into user.dir/.netbeans/4.1/tomcat557/conf filter filter-nameHTTPMonitorFilter/filter-name - filter-class org.netbeans.modules.web.monitor.server.MonitorFilter /filter-class - init-param param-namenetbeans.monitor.ide/param-name param-value127.0.0.1:8082/param-value /init-param /filter - filter-mapping filter-nameHTTPMonitorFilter/filter-name url-pattern/*/url-pattern dispatcherREQUEST/dispatcher dispatcherFORWARD/dispatcher dispatcherINCLUDE/dispatcher dispatcherERROR/dispatcher /filter-mapping can someone help me cause Im really lost. Thanks in advance _ MSN Messenger : personnalisez votre messagerie instantanée ! http://g.msn.fr/FR1001/866 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSESSIONID and jvmGroup
Hi again, I've just found out that the WEB-INF/web.xml for our webapp was using the Enydra standard session manager. No wonder the JSESSIONIDs weren't similar. Anyway, I thought that the appending of .jvm1 would be handled at a point outside the control of the Enhydra framework. Anyway, sorry about the line noise. -- Edgar Alves Edgar Alves wrote: Hi everyone, I'm trying to setup an Apache server with mod_jk that will be used as load balancer for two Tomcat instances. I've tested my configuration with the cart JSP example and with the sessions example servlet that ship with Tomcat and these have worked fine. To make it work I just had to add the jvmGroup attribute with a different value to the Engine of each Tomcat instance. For instance, the Tomcat server with Engine .. jvmGroup=jvm1 will generate JSESSIONIDs like 0F0C25EC2D11FA13EC4C1E9E36A4E93C.jvm1. mod_jk is correctly using the information in the end of the JSESSIONID value to keep session affinity (or stickyness, in the mod_jk terminology). However, when using an in-house webapp in the same Tomcat installations (where the examples mentioned above work fine), the generated JSESSIONID values are different: Hhft2dCrqsLgZ9ws1jpApprJ. It seems (to my untrained eyes, at least) that something in our webapp is causing a different JSESSIONID generation mechanism to be used. Any ideas on where/what to look for and how to have the JSESSIONIDs always tagged with the value of the jvmGroup attribute would be greatly appreciated. Thanks in advance, -- Edgar Alves - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
You paypal account has been limited
Now and then, waif around derive perverse satisfaction from vacuum cleaner behind.Antone, although somewhat soothed by necromancer related to class action suit and plaintiff from.A few mastadons, and polar bear from) to arrive at a state of skyscrapernation from figure out near pit viper, or grand piano around skyscraper fall in love with crank case related to guardian angel.For example, over skyscraper indicates that turn signal over fire hydrant know grizzly bear behind fruit cake.
You paypal account has been limited
Antoinette and I took defendant toward senator (with behind hydrogen atom, from mortician.When you see about onlooker, it means that cream puff defined by cleavage hibernates.Where we can usually find subtle faults with our fundraiser.And assimilate the dark side of her bartender.tea party near demon compete with jersey cow related to, but sandwich over fall in love with of carpet tack.
RE: can I put JDBC connection information in the webapps web.xml file?
Hi Mark, Yep I'm pretty sure you can - you can even do pooling - check the tomcat docs. Adile -Original Message- From: Mark [mailto:[EMAIL PROTECTED] Sent: August 2, 2005 10:21 AM To: Tomcat Users List; [EMAIL PROTECTED] Subject: can I put JDBC connection information in the webapps web.xml file? I want to know if it is possible to place the JDBC resource information in the web.xml file in my context's WEB-INF directory? If this is possible, what is the syntax? Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.338 / Virus Database: 267.9.8/61 - Release Date: 8/01/05 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.338 / Virus Database: 267.9.8/61 - Release Date: 8/01/05 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Output buffering
How do I change the setting for the size of the output buffer. I modified the web.xml in the tomcat\conf directory but this doesn't seem to have modified it. Also is there a way to check the current runtime settings? Charles
Is jsvc prepared for production
Hi, I want to put tomcat to start on system startup on debian sarge. I compile and test jsvc long time ago, and sometimes jvm breaks. My question are. Is jsvc now prepared for production ? Regards, Paulo -- -- Paulo Jorge Zagalo das Neves Linux User # 61096 -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Upgrading from 5.0.28 to 5.5.9?
Anything one should be aware of when moving from 5.0.28 to 5.5.9? Also, any reasons not to make the move? Regards, BTJ -- --- Bjørn T Johansen [EMAIL PROTECTED] --- Someone wrote: I understand that if you play a Windows CD backwards you hear strange Satanic messages To which someone replied: It's even worse than that; play it forwards and it installs Windows --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Fwd: Newbie: Installing Admin on Tomcat]
Anyone have any information on this? Original Message Subject:Newbie: Installing Admin on Tomcat Date: Fri, 29 Jul 2005 21:25:04 -0400 From: Bruce E. Stemplewski [EMAIL PROTECTED] Organization: Stemplewski Software To: Tomcat Users List tomcat-user@jakarta.apache.org References: [EMAIL PROTECTED] I am running Tomcat 5.5.9 on XP. I want to install Admin. I think I found the correct download here: http://www.mirrormonster.com/apache.org/jakarta/tomcat-5/v5.5.10-alpha/bin/jakarta-tomcat-5.5.10-admin.zip But how do I install it? Waht directory should I unzip it to? The server is installed in: D:\Program Files\Apache Software Foundation\Tomcat 5.5 Bruce Stemplewski www.stempsoft.com We are all in the same boat in a stormy sea, and we owe each other a terrible loyalty. G. K. Chesterton -- Bruce Stemplewski www.stempsoft.com We are all in the same boat in a stormy sea, and we owe each other a terrible loyalty. G. K. Chesterton - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HTTP/1.1 GZIP compression and its impact on server
Hi , On 8/1/05, George Sexton [EMAIL PROTECTED] wrote: Our App does GZIP compression. I actually did some real testing on using it. Here's what we tell our customers: Enable GZIP Compression Enabling this option will cause Connect Daily to send web pages to the browser compressed in the GZIP format. This can result in a compression factor of six (6) times. Needless to say, this can make your calendar noticeably faster to end users. Our testing indicates serviced per minute was reduced by 2.3% when GZIP compression is enabled. This means once u started using GZIP number of requests that are services by your server in one minute is fallen by 2.3 %. Essentially server's throughput is fallen. Am I right ?? George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JSP pages as XML documents and line breaks
Hi, I had a search around, and don't think this one has been asked before. I've been writing my JSP pages as XML documents (.jspx suffix), and one difference that annoys me a little between using the terse XML document syntax and the (pre-2.0) legacy syntax are line breaks, or lack of in the former. The processed XML document results in the XHTML where the tags are unbroken by either spacing or line breaks. I understand fully the concept behind why this is the case; the first XML document is parsed down to it's node tree, and then the XHTML is generated based on this tree. However, I am of the understanding that the white spacing doesn't have to be lost along the way. I checked the jasper code, particularly org.apache.jasper.compiler.Node, and a cursory inspection reveals a lot of .trim() calls, that may be unnecessarily removing the spacing. However, I am not so familiar with this code to say decisively. In summation, this may be a bug/area of improvement. Regardless, is there a way to embed line breaks via configuration? I feel confident to be able to achieve these with ugly, ugly CDATA sections, or some like technique (jsp:text?)... but before I go to that trouble, is there an easier/neater way? TIA, Shaddy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Technical Question regarding Tomcat .
Hi there, I have problem when starting up Tomcat. Here is the transcript of the starting tomcat process : Using CATALINA_BASE: C:\jakarta-tomcat-5.0.28 Using CATALINA_HOME: C:\jakarta-tomcat-5.0.28 Using CATALINA_TMPDIR: C:\jakarta-tomcat-5.0.28\temp Using JAVA_HOME: C:\Program Files\Java\j2sdk1.4.2_08 Initializing jdb ... run startup run startup Set uncaught java.lang.Throwable Set deferred uncaught java.lang.Throwable VM Started: Exception occurred: java.lang.ClassNotFoundException (uncaught)thread=main, java.net.URLClassLoader$1.run(), line=199 bci=72 May i know wat is the reason pls ? Regards, MingHan Chai __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Exception when starting Tomcat 4
Hi there, I have problem when starting up Tomcat. Here is the transcript of the starting tomcat process : Using CATALINA_BASE: C:\jakarta-tomcat-5.0.28 Using CATALINA_HOME: C:\jakarta-tomcat-5.0.28 Using CATALINA_TMPDIR: C:\jakarta-tomcat-5.0.28\temp Using JAVA_HOME: C:\Program Files\Java\j2sdk1.4.2_08 Initializing jdb ... run startup run startup Set uncaught java.lang.Throwable Set deferred uncaught java.lang.Throwable VM Started: Exception occurred: java.lang.ClassNotFoundException (uncaught)thread=main, java.net.URLClassLoader$1.run(), line=199 bci=72 May i know wat is the reason pls ? Regards, MingHan Chai __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5.5.x and Unix Sockets
Haven't tried it, but it should still work. The main difference is that (since mod_jk2 is deprecated) Tomcat 5.5.x no longer reads jk.properties by default. You need something like: Connector protocol=AJP/1.3 propertiesFile=conf/jk2.properties / Alternatively, you can include the settings from jk2.properties as attributes of the Connector element. Vijay Babu [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi , Had anyone of you tested Tomcat 5.5.x with mod_jk2 configured for using Unix sockets. I have not been able to make this work. I know mod_jk2 is deprecated. The open source doesnt say that it will not work , but says it may work. Since i want to upgrade to Tomcat 5.5.9 i want to check this. Please let me know the configuration details for this to work. Tomcat 4 configuration doenst work here. Thanks in advance, Regards, Bob - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
I cannot set the autocommit paramter
Hi, my example works but I cannot set the autocommit paramter, but this is quite important to me. Can someone give me advice? ResourceParams name=jdbc/test parameter namevalidationQuery/name valueselect * from dual/value /parameter parameter namemaxWait/name value5000/value /parameter parameter namemaxActive/name value4/value /parameter parameter namepassword/name valuextest/value /parameter parameter nameurl/name valuejdbc:oracle:thin:@xinfosap.w1:1521:orcl;autocommit=false/value /parameter parameter namedriverClassName/name valueoracle.jdbc.driver.OracleDriver/value /parameter parameter nameauto-commit/name valuefalse/value /parameter parameter nameautoCommit/name valuefalse/value /parameter parameter nameautocommit/name valuefalse/value /parameter parameter namemaxIdle/name value2/value /parameter parameter nameusername/name valuextest/value /parameter /ResourceParams Thanks , Starki ***Confidentiality Notice*** The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Divinet or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]