RE: [urgent!] Disabling the context's content listing
You can put a welcome-file-list entry in your web.xml, which will open the specified file when you access your domain/context without the file name e.g. welcome-file-list welcome-fileYour default page name e. g. index.jsp /welcome-file /welcome-file-list Gurmeet -Original Message- From: Nancy Crisostomo Martinez [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 16, 2002 7:15 PM To: Tomcat Users List Subject: [urgent!] Disabling the context's content listing Hi! Does anybody know how to disable the content of a context listing? I mean, when you try to load a JSP file you must type the following URL: http://address:8080/contextname/file.jsp But when you type http://address:8080/contextname all the list of jsp, gif, jpg files are showed and even you can download the file thru the right button of your mouse with (Save target as...)... It would be right if instead of the listing, a Forbidden or Not Found page appears, wouldn't it? So, could you help me to disable this kind of access? I'll appreciate all your advice!!! Thank you in advance! Nancy. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: VM size increases.
Hi fillup, Does the driver for which you have provided the URL, work with sql server 7.0 as on the site it says that it is for SQL Server 2000 and the SPz? Gurmeet -Original Message- From: Phillip Morelock [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 14, 2002 1:04 PM To: Tomcat Users List Subject: Re: VM size increases. Hi Toru, I'm using jdbc-odbc driver to connect to SQL server. Regards Rajesh That's your problem This is NOT a production quality driver, it's a JDBC type 1 hack. It's got known problems and Sun specifically tells you to use it for testing only. I recommend MS's beta SQL Server driver (which I believe but don't know for sure is mostly a repackaging of a commercial product from Merant)...it's quite good, robust, and fast for most purposes, although it may have some hidden problems that I personally have not run across. Wait, I just checked -- evidently it is no longer beta! http://msdn.microsoft.com/downloads/default.asp?URL=/downloads/sample.asp?u rl=/MSDN-FILES/027/001/779/msdncompositedoc.xml good luck -- this is what I use -- now I will have to upgrade my customers to the release version. fillup On 5/13/02 10:20 PM, Rajesh Mishra [EMAIL PROTECTED] wrote: Hi Toru, I'm using jdbc-odbc driver to connect to SQL server. Regards Rajesh -Original Message- From: Toru Watanabe [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 14, 2002 10:45 AM To: Tomcat Users List Subject: Re: VM size increases. Hi Rajesh, Let me know about your JDBC. I suppose you are using JNI for Database connectivity. Regards, Watanabe In the message VM size increases. [EMAIL PROTECTED] Rajesh Mishra [EMAIL PROTECTED] wrote: Rajesh I'm using Tomcat3.2 and SQL server2000. I'm facing two Rajesh problems mentioned below.. Rajesh 1.The VM size of Tomcat's java.exe process increases gradually Rajesh and it doesn't come down. As a result machine hangs.I've Rajesh closed database connections and Resultset's everywhere I Rajesh accessed database. Rajesh 2. On running Web Application Stress testing tool for 2 days Rajesh(with 10 threads and 4 socket multiplier), Tomcat crashes. Rajesh Rajesh Rajesh -- Rajesh To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] Rajesh For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: How to force compilation of Jspz at startup
I am posting this question again as I did not get any response. How do I inform Tomcat to compile all the JSPz in a particular context on startup. We can do this in weblogic by specifying the following in its web.xml. context-param param-nameweblogic.jsp.precompile/param-name param-valuetrue/param-value /context-param I am sure there is some way we can do this in Tomcat also. Thanks in advance. Gurmeet -Original Message- From: Gurmeet [mailto:[EMAIL PROTECTED]] Sent: Friday, May 03, 2002 12:34 PM To: Tomcat Users List Subject: How to force compilation of Jspz at startup Hi all, How do I inform Tomcat to compile all the JSPz on startup. Regards, Gurmeet -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: How to force compilation of Jspz at startup
Thanks a lot Jay, As of now I am opting for your second suggestion. And lets hope this feature improves in future. Gurmeet -Original Message- From: Jay Gardner [mailto:[EMAIL PROTECTED]] Sent: Saturday, May 04, 2002 12:34 PM To: Tomcat Users List Subject: RE: How to force compilation of Jspz at startup Is this so that everything is ready to go for the first user? If so, you could pre-compile you JSPs using jspc. I have done this in an ANT build script and have gotten it down to a two step process. You still have to manually add the generated servlet definitions and mappings to your web.xml file. Hopefully this will be changed in the future. The other option is to write your own script to run through the URLs with the ?jsp_precompile=ture parameter appended to the end. Ex. http://server:8080/context/myjso.jsp?jsp_precompile=true. This compiles the page without running it. I am with Abraham though, if you find a better way let us know. --JG -Original Message- From: Abraham Fathman [mailto:[EMAIL PROTECTED]] Sent: Saturday, May 04, 2002 12:39 AM To: 'Tomcat Users List' Subject: RE: How to force compilation of Jspz at startup Don't know of a way... Sorry. If you find out let me know - it would be nice to take that hit during a maintenance window... -Original Message- From: Gurmeet [mailto:[EMAIL PROTECTED]] Sent: Saturday, May 04, 2002 2:30 AM To: Tomcat Users List Subject: RE: How to force compilation of Jspz at startup I am posting this question again as I did not get any response. How do I inform Tomcat to compile all the JSPz in a particular context on startup. We can do this in weblogic by specifying the following in its web.xml. context-param param-nameweblogic.jsp.precompile/param-name param-valuetrue/param-value /context-param I am sure there is some way we can do this in Tomcat also. Thanks in advance. Gurmeet -Original Message- From: Gurmeet [mailto:[EMAIL PROTECTED]] Sent: Friday, May 03, 2002 12:34 PM To: Tomcat Users List Subject: How to force compilation of Jspz at startup Hi all, How do I inform Tomcat to compile all the JSPz on startup. Regards, Gurmeet -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
How to force compilation of Jspz at startup
Hi all, How do I inform Tomcat to compile all the JSPz on startup. Regards, Gurmeet -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Problem with SQL
Are u using the same JDBC-ODBC bridge in case of oracle and Access also? Anyway this problem comes becuase JDBC-ODBC bridge drivers are not serialisable. Gurmeet -Original Message- From: Sudhir Kumar [mailto:[EMAIL PROTECTED]] Sent: Monday, April 08, 2002 9:07 AM To: 'Tomcat Users List' Subject: Problem with SQL Hi, I have a problem with the SQL Database. I have connected to SQL server through JDBC-ODBC bridge. In the code since i need to fetch the data inside a number of loops one inside the other , i have used 5 different resultset objects , 5 statement onjects and a single connection object. In each loop i am fetching data from different tables. The code is working fine with Oracle 8 and MS Access Database. But SQl is throwing this exception, Can any one help me out...?? The Exception is : java.sql.SQLException: [Microsoft][ODBC SQL Server Driver]Connection is busy with results for another hstmt Thanks in advance.. Sudhir -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Problem with SQL
Well u need to use Type -V drivers for SQL, one of them is Sprinta 2000 or Opta 2000 from i-net software. You can download the trial version from www.inetsoftware.de Gurmeet -Original Message- From: Sudhir Kumar [mailto:[EMAIL PROTECTED]] Sent: Monday, April 08, 2002 12:06 PM To: 'Tomcat Users List' Subject: RE: Problem with SQL Ya.. it is the same JDBC-ODBC bridge.. any solution for this ?? -Original Message- From: Gurmeet [mailto:[EMAIL PROTECTED]] Sent: Monday, April 08, 2002 11:58 AM To: Tomcat Users List; [EMAIL PROTECTED] Subject: RE: Problem with SQL Are u using the same JDBC-ODBC bridge in case of oracle and Access also? Anyway this problem comes becuase JDBC-ODBC bridge drivers are not serialisable. Gurmeet -Original Message- From: Sudhir Kumar [mailto:[EMAIL PROTECTED]] Sent: Monday, April 08, 2002 9:07 AM To: 'Tomcat Users List' Subject: Problem with SQL Hi, I have a problem with the SQL Database. I have connected to SQL server through JDBC-ODBC bridge. In the code since i need to fetch the data inside a number of loops one inside the other , i have used 5 different resultset objects , 5 statement onjects and a single connection object. In each loop i am fetching data from different tables. The code is working fine with Oracle 8 and MS Access Database. But SQl is throwing this exception, Can any one help me out...?? The Exception is : java.sql.SQLException: [Microsoft][ODBC SQL Server Driver]Connection is busy with results for another hstmt Thanks in advance.. Sudhir -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat configuration question
change the port to 80 from 8080 in server.xml; Connector className=org.apache.catalina.connector.http.HttpConnector port=8080 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=6/ Gurmeet -Original Message- From: Rohit Agarwal [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 28, 2002 1:23 PM To: Tomcat Users List Subject: Re: Tomcat configuration question I have the same question, if somebody can help, that would be great. Thanks. Rohit - Original Message - From: Ibrahim Beyazit [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 27, 2002 6:47 PM Subject: Tomcat configuration question How would I configure Tomcat so that the default URL can be www.company.com instead of localhost:8080? I got the domain part covered. (i.e I got www.company.com:8080 working. But I am having problems with getting rid of 8080. Any help will be appreciated -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Session lost when switching from https to http in Tomcat 4
Hi, I just read this and tested for my app also wherein I would have the same problem in coming days. Any better way of overcoming this problem other than persisting the session manually. Regards, Gurmeet -Original Message- From: Anders Rundgren [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 26, 2002 4:08 PM To: [EMAIL PROTECTED]; Tomcat Users List Cc: Peter Tornberg Subject: Re: Session lost when switching from https to http in Tomcat 4 You are right Manuel, Tomcat 4.0.2 using SSL unfortunately always sets a Secure flag on JSESSIONIDs, which do not (depending on browser) allow you to do this https-http switch. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6983 A Macintosh using IE 5 cannot even obtain a _standard_ SSL jsession due to this. This is why I have requested this behavior to become an option. The option would actually disable a cookie-RFC compliant feature, but so what, if you cannot get things to work? cheers, Anders - Original Message - From: Manuel Mall [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, March 26, 2002 11:17 Subject: Session lost when switching from https to http in Tomcat 4 Has the session semantic changed between Tomcat 3 and Tomcat 4? We have a servlet/JSP application in which users establish their servlet session using https but conduct the rest of their interactions using http. This works fine under Apache 1.3.22 with Tomcat 3.2.1 connecting using ajp12. After upgrading to Tomcat 4.0.3 now using ajp13 the session appears not to be preserved between https and http, ie. after switching back to http the request.getSession(false) call returns null. This seems to indicate that the session tracking mechanism has changed between Tomcat 3 and Tomcat 4. Can anyone shed light on this for me? Is this expected? Is there a workaround/configuration/setting in Tomcat 4 I might have missed? Thanks Manuel -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Session lost when switching from https to http in Tomcat 4
Thanks Anders, But as you must be knowing if I implement a HttpSessionBindingListener then it would still be a problem. Can u please elaborate on the patching u did on CookieTool class. Regards Gurmeet -Original Message- From: Anders Rundgren [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 26, 2002 6:49 PM To: Tomcat Users List Subject: Re: Session lost when switching from https to http in Tomcat 4 Gurmeet, The only known workarounds I know of are handling sessions in URLs or patching the CookieTools class which we did. Anders - Original Message - From: Gurmeet [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, March 26, 2002 13:51 Subject: RE: Session lost when switching from https to http in Tomcat 4 Hi, I just read this and tested for my app also wherein I would have the same problem in coming days. Any better way of overcoming this problem other than persisting the session manually. Regards, Gurmeet -Original Message- From: Anders Rundgren [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 26, 2002 4:08 PM To: [EMAIL PROTECTED]; Tomcat Users List Cc: Peter Tornberg Subject: Re: Session lost when switching from https to http in Tomcat 4 You are right Manuel, Tomcat 4.0.2 using SSL unfortunately always sets a Secure flag on JSESSIONIDs, which do not (depending on browser) allow you to do this https-http switch. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6983 A Macintosh using IE 5 cannot even obtain a _standard_ SSL jsession due to this. This is why I have requested this behavior to become an option. The option would actually disable a cookie-RFC compliant feature, but so what, if you cannot get things to work? cheers, Anders - Original Message - From: Manuel Mall [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, March 26, 2002 11:17 Subject: Session lost when switching from https to http in Tomcat 4 Has the session semantic changed between Tomcat 3 and Tomcat 4? We have a servlet/JSP application in which users establish their servlet session using https but conduct the rest of their interactions using http. This works fine under Apache 1.3.22 with Tomcat 3.2.1 connecting using ajp12. After upgrading to Tomcat 4.0.3 now using ajp13 the session appears not to be preserved between https and http, ie. after switching back to http the request.getSession(false) call returns null. This seems to indicate that the session tracking mechanism has changed between Tomcat 3 and Tomcat 4. Can anyone shed light on this for me? Is this expected? Is there a workaround/configuration/setting in Tomcat 4 I might have missed? Thanks Manuel -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Session lost when switching from https to http in Tomcat 4
Anders thanks a lot. -Original Message- From: Anders Rundgren [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 26, 2002 7:34 PM To: Tomcat Users List Subject: Re: Session lost when switching from https to http in Tomcat 4 Gurmeet, I (or rathe my college), removed the line that appends Secure to JSESSIONIDs. Anders - Original Message - From: Gurmeet [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, March 26, 2002 14:32 Subject: RE: Session lost when switching from https to http in Tomcat 4 Thanks Anders, But as you must be knowing if I implement a HttpSessionBindingListener then it would still be a problem. Can u please elaborate on the patching u did on CookieTool class. Regards Gurmeet -Original Message- From: Anders Rundgren [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 26, 2002 6:49 PM To: Tomcat Users List Subject: Re: Session lost when switching from https to http in Tomcat 4 Gurmeet, The only known workarounds I know of are handling sessions in URLs or patching the CookieTools class which we did. Anders - Original Message - From: Gurmeet [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, March 26, 2002 13:51 Subject: RE: Session lost when switching from https to http in Tomcat 4 Hi, I just read this and tested for my app also wherein I would have the same problem in coming days. Any better way of overcoming this problem other than persisting the session manually. Regards, Gurmeet -Original Message- From: Anders Rundgren [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 26, 2002 4:08 PM To: [EMAIL PROTECTED]; Tomcat Users List Cc: Peter Tornberg Subject: Re: Session lost when switching from https to http in Tomcat 4 You are right Manuel, Tomcat 4.0.2 using SSL unfortunately always sets a Secure flag on JSESSIONIDs, which do not (depending on browser) allow you to do this https-http switch. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6983 A Macintosh using IE 5 cannot even obtain a _standard_ SSL jsession due to this. This is why I have requested this behavior to become an option. The option would actually disable a cookie-RFC compliant feature, but so what, if you cannot get things to work? cheers, Anders - Original Message - From: Manuel Mall [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, March 26, 2002 11:17 Subject: Session lost when switching from https to http in Tomcat 4 Has the session semantic changed between Tomcat 3 and Tomcat 4? We have a servlet/JSP application in which users establish their servlet session using https but conduct the rest of their interactions using http. This works fine under Apache 1.3.22 with Tomcat 3.2.1 connecting using ajp12. After upgrading to Tomcat 4.0.3 now using ajp13 the session appears not to be preserved between https and http, ie. after switching back to http the request.getSession(false) call returns null. This seems to indicate that the session tracking mechanism has changed between Tomcat 3 and Tomcat 4. Can anyone shed light on this for me? Is this expected? Is there a workaround/configuration/setting in Tomcat 4 I might have missed? Thanks Manuel -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Session lost when switching from https to http in Tomcat 4
Hi, It might drive me crazy. But I just noticed one thing. I have a JSP with a bean in session scope ---it swtches to https does something switches back to http --- in this jsp in http I call a method on the bean which was there in session , it returns me the value as if it sustained the session, but when I refresh the page it behaves otherwise. I have not applied the patch yet. Any clue. why? Gurmeet -Original Message- From: Manuel Mall [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 27, 2002 7:09 AM To: 'Tomcat Users List' Subject: RE: Session lost when switching from https to http in Tomcat 4 Anders, thanks, I will try your patch and hope that the Tomcat developer community will take your suggestion to make this behaviour configurable on board. Manuel -Original Message- From: Anders Rundgren [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 26 March 2002 18:38 To: [EMAIL PROTECTED]; Tomcat Users List Cc: Peter Tornberg Subject: Re: Session lost when switching from https to http in Tomcat 4 You are right Manuel, Tomcat 4.0.2 using SSL unfortunately always sets a Secure flag on JSESSIONIDs, which do not (depending on browser) allow you to do this https-http switch. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6983 A Macintosh using IE 5 cannot even obtain a _standard_ SSL jsession due to this. This is why I have requested this behavior to become an option. The option would actually disable a cookie-RFC compliant feature, but so what, if you cannot get things to work? cheers, Anders - Original Message - From: Manuel Mall [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, March 26, 2002 11:17 Subject: Session lost when switching from https to http in Tomcat 4 Has the session semantic changed between Tomcat 3 and Tomcat 4? We have a servlet/JSP application in which users establish their servlet session using https but conduct the rest of their interactions using http. This works fine under Apache 1.3.22 with Tomcat 3.2.1 connecting using ajp12. After upgrading to Tomcat 4.0.3 now using ajp13 the session appears not to be preserved between https and http, ie. after switching back to http the request.getSession(false) call returns null. This seems to indicate that the session tracking mechanism has changed between Tomcat 3 and Tomcat 4. Can anyone shed light on this for me? Is this expected? Is there a workaround/configuration/setting in Tomcat 4 I might have missed? Thanks Manuel -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Session ID length
Hi All, There is something like sessionidGenerator / in the server.xml Can anybody throw a bit light on this. How can I use it to specify my own sessionID generator. I actually want to reduce the length of the session Id which is generated by Tomcat automatically. Gurmeet -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Startup Message
Andy, there does not seem to be any error with the log files. Anyway I have attached these here. Gurmeet -Original Message- From: Andy Eastham [mailto:[EMAIL PROTECTED]] Sent: Friday, March 22, 2002 2:57 PM To: Tomcat Users List Subject: RE: Startup Message Gurmeet, By default (on Tomcat 4 anyway) there are two services that start - Tomcat Standalone and Apache Tomcat. You control these from server.xml in the Tomcat/conf directory. If one of these is not coming up, it could be because you've broken it with your SSL installation. If it's not the one you're using, you won't notice much. Check out the latest log files in Tomcat/logs and see if there are any exceptions. Whilst it may not be causing you problems now, I'd want to understand what was going on - you may get problems when you deploy. Andy -Original Message- From: Gurmeet [mailto:[EMAIL PROTECTED]] Sent: 22 March 2002 05:38 To: Tomcat Users List Subject: Startup Message Hi All, I used to get a message like Starting Apache-Tomcat StandAlone service and two more lines of text on the console whenever I started Tomcat. Recently I just configured SSL on my server and that message stopped coming. As such I dont have any problem with that but any Idea why that message disappeared? Gurmeet -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] 2002-03-22 11:02:26 HttpConnector Opening server socket on all host IP addresses 2002-03-22 11:02:32 HttpConnector[80] Starting background thread 2002-03-22 11:02:32 HttpProcessor[80][0] Starting background thread 2002-03-22 11:02:32 HttpProcessor[80][1] Starting background thread 2002-03-22 11:02:32 HttpProcessor[80][2] Starting background thread 2002-03-22 11:02:32 HttpProcessor[80][3] Starting background thread 2002-03-22 11:02:32 HttpProcessor[80][4] Starting background thread 2002-03-22 11:08:41 HttpConnector Opening server socket on all host IP addresses 2002-03-22 11:08:41 HttpConnector Opening server socket on all host IP addresses 2002-03-22 11:09:26 HttpConnector[80] Starting background thread 2002-03-22 11:09:26 HttpProcessor[80][0] Starting background thread 2002-03-22 11:09:26 HttpProcessor[80][1] Starting background thread 2002-03-22 11:09:26 HttpProcessor[80][2] Starting background thread 2002-03-22 11:09:26 HttpProcessor[80][3] Starting background thread 2002-03-22 11:09:26 HttpProcessor[80][4] Starting background thread 2002-03-22 11:09:26 HttpConnector[443] Starting background thread 2002-03-22 11:09:26 HttpProcessor[443][0] Starting background thread 2002-03-22 11:09:26 HttpProcessor[443][1] Starting background thread 2002-03-22 11:09:26 HttpProcessor[443][2] Starting background thread 2002-03-22 11:09:26 HttpProcessor[443][3] Starting background thread 2002-03-22 11:09:26 HttpProcessor[443][4] Starting background thread 2002-03-22 11:13:03 HttpConnector Opening server socket on all host IP addresses 2002-03-22 11:13:03 HttpConnector Opening server socket on all host IP addresses 2002-03-22 11:13:44 HttpConnector[80] Starting background thread 2002-03-22 11:13:44 HttpProcessor[80][1] Starting background thread 2002-03-22 11:13:44 HttpProcessor[80][0] Starting background thread 2002-03-22 11:13:44 HttpProcessor[80][2] Starting background thread 2002-03-22 11:13:44 HttpProcessor[80][3] Starting background thread 2002-03-22 11:13:44 HttpProcessor[80][4] Starting background thread 2002-03-22 11:13:44 HttpConnector[443] Starting background thread 2002-03-22 11:13:44 HttpProcessor[443][0] Starting background thread 2002-03-22 11:13:44 HttpProcessor[443][1] Starting background thread 2002-03-22 11:13:44 HttpProcessor[443][2] Starting background thread 2002-03-22 11:13:44 HttpProcessor[443][3] Starting background thread 2002-03-22 11:13:44 HttpProcessor[443][4] Starting background thread 2002-03-22 11:21:39 HttpConnector Opening server socket on all host IP addresses 2002-03-22 11:21:39 HttpConnector Opening server socket on all host IP addresses 2002-03-22 11:22:23 HttpConnector[80] Starting background thread 2002-03-22 11:22:24 HttpProcessor[80][0] Starting background thread 2002-03-22 11:22:24 HttpProcessor[80][1] Starting background thread 2002-03-22 11:22:24 HttpProcessor[80][2] Starting background thread 2002-03-22 11:22:24 HttpProcessor[80][3] Starting background thread 2002-03-22 11:22:24 HttpProcessor[80][4] Starting background thread 2002-03-22 11:22:24 HttpConnector[443] Starting background thread 2002-03-22 11:22:24 HttpProcessor[443][0] Starting background thread 2002-03-22 11:22:24 HttpProcessor[443][1] Starting background thread 2002-03-22 11:22:24 HttpProcessor[443][2] Starting background thread 2002-03-22 11:22:24 HttpProcessor[443][3] Starting background thread 2002-03-22 11:22:24 HttpProcessor[443
Startup Message
Hi All, I used to get a message like Starting Apache-Tomcat StandAlone service and two more lines of text on the console whenever I started Tomcat. Recently I just configured SSL on my server and that message stopped coming. As such I dont have any problem with that but any Idea why that message disappeared? Gurmeet -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: URL Re-writting
I hope TomCat developers also go thru this list and would revert on this. My coner is that by using URL - rewritting its eating up 24 bytes of URL - 32 for the ID and rest for the string ;jsessionID= -Original Message- From: Gabriel Gajdos [mailto:[EMAIL PROTECTED]] Sent: Monday, March 18, 2002 6:19 PM To: Tomcat Users List Subject: Re: URL Re-writting | That's been really a great help.Further can I control the length of | this | sessionID as I am working on a project for mobile devices and these devices | dont support very long URLs. | | Thanks I am affraid this was not able to set according to Tomcat current state of development... If you really need to have shorter JSESSIONID, you must recompile some Tomcat classes... But I do not know which ones... May be one of Tomcat developers could give us a hint... ;-) GG -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: URL Re-writting
I m really grateful -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 19, 2002 10:23 PM To: Tomcat Users List Subject: Re: URL Re-writting On Mon, 18 Mar 2002, Gabriel Gajdos wrote: Date: Mon, 18 Mar 2002 13:48:37 +0100 From: Gabriel Gajdos [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: URL Re-writting | That's been really a great help.Further can I control the length of | this | sessionID as I am working on a project for mobile devices and these devices | dont support very long URLs. | | Thanks I am affraid this was not able to set according to Tomcat current state of development... If you really need to have shorter JSESSIONID, you must recompile some Tomcat classes... But I do not know which ones... May be one of Tomcat developers could give us a hint... ;-) For Tomcat 4, session ids are created in the generateSessionId() method of class org.apache.catalina.session.ManagerBase. GG Craig -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
URL Re-writting
Please tell me what is the default behaviour that Tomcat uses for maintaining session i.e. using cookies or URL re-writting. and how do switch to a different mode i.e. from cookies how do I switch to URL rewritting. -Original Message- From: Valera Molyakov [mailto:[EMAIL PROTECTED]] Sent: Monday, March 18, 2002 12:34 PM To: Tomcat Users List Subject: Re: URL Length Hi ! See your brouser preferences - Cookies ( must be enabled, otherwise session ID append for URL). - Original Message - From: Gurmeet [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, March 18, 2002 7:01 AM Subject: URL Length Dear ALL, When I submit a page , tomcat is appending the sessionID to the URL, which causing me a lot of problem. Please help me, how can I avoid this. Thanks Gurmeet -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: URL Re-writting
That's been really a great help.Further can I control the length of this sessionID as I am working on a project for mobile devices and these devices dont support very long URLs. Thanks -Original Message- From: Gabriel Gajdos [mailto:[EMAIL PROTECTED]] Sent: Monday, March 18, 2002 3:07 PM To: Tomcat Users List Subject: Re: URL Re-writting | Please tell me what is the default behaviour that Tomcat uses for | maintaining session i.e. using cookies or URL re-writting. and how do | switch | to a different mode i.e. from cookies how do I switch to URL rewritting. Tomcat uses non-persistent cookies (for Session ID) such as other server scripting engines do... If there is user with cookie enabled browser, everything works just fine with non-persistent cookie JSESSIONID... If there is not possible to use cookies, Tomcat automaticaly uses URL rewriting... At the server side, you should allways use method response.encodeURL(String url) which returns correct form for URL as needed! It means, all A, FORM action=... and similar links must be retrieved from this method... As far as I know, it is not possible to switch URL-rewriting and using cookie. I have not found any purpose to use this behaviour yet (except testing). You are just allways using response.encodeURL() and you do not need to care whether client is using cookies or not. You do not really need to care about that as a WebApp developper. GG -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
URL Length
PLEASE help me on how can I control the length of the session ID appended to the URL as this is very important for my requirement. for clue : with weblogic we can do that by installing SP6 and then specifying the session ID length in the properties file. -Original Message- From: Gurmeet [mailto:[EMAIL PROTECTED]] Sent: Monday, March 18, 2002 3:27 PM To: Tomcat Users List Subject: RE: URL Re-writting That's been really a great help.Further can I control the length of this sessionID as I am working on a project for mobile devices and these devices dont support very long URLs. Thanks -Original Message- From: Gabriel Gajdos [mailto:[EMAIL PROTECTED]] Sent: Monday, March 18, 2002 3:07 PM To: Tomcat Users List Subject: Re: URL Re-writting | Please tell me what is the default behaviour that Tomcat uses for | maintaining session i.e. using cookies or URL re-writting. and how do | switch | to a different mode i.e. from cookies how do I switch to URL rewritting. Tomcat uses non-persistent cookies (for Session ID) such as other server scripting engines do... If there is user with cookie enabled browser, everything works just fine with non-persistent cookie JSESSIONID... If there is not possible to use cookies, Tomcat automaticaly uses URL rewriting... At the server side, you should allways use method response.encodeURL(String url) which returns correct form for URL as needed! It means, all A, FORM action=... and similar links must be retrieved from this method... As far as I know, it is not possible to switch URL-rewriting and using cookie. I have not found any purpose to use this behaviour yet (except testing). You are just allways using response.encodeURL() and you do not need to care whether client is using cookies or not. You do not really need to care about that as a WebApp developper. GG -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
URL Length
Dear ALL, When I submit a page , tomcat is appending the sessionID to the URL, which causing me a lot of problem. Please help me, how can I avoid this. Thanks Gurmeet -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
CONNECTION BUSY
How do I resolve [Microsoft][ODBC SQL Server Driver]Connection is busy with results for another hstmt problem. This is coming only if I am executing a no. of SQLs in quick succession. Please Help. Regards Gurmeet -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: CONNECTION BUSY
Yes, you are right . I am using JDBC-ODBC bridge. Regards Gurmeet -Original Message- From: Reynir Hübner [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 12, 2002 4:17 PM To: Tomcat Users List Subject: RE: CONNECTION BUSY The errormessage implies that you are using odbc bridge to access MsSQL. If so, you might want to switch over to a native JDBC driver (for example the merant / Microsoft driver). Please post more informations on which JDBC driver you are using. - reynir -Original Message- From: Gurmeet [mailto:[EMAIL PROTECTED]] Sent: 12. mars 2002 10:45 To: Tomcat Users List Subject: CONNECTION BUSY How do I resolve [Microsoft][ODBC SQL Server Driver]Connection is busy with results for another hstmt problem. This is coming only if I am executing a no. of SQLs in quick succession. Please Help. Regards Gurmeet -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: CONNECTION BUSY
Please tell me which one and where can I get it? Regards Gurmeet -Original Message- From: Justin Rowles [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 12, 2002 4:26 PM To: Tomcat Users List Subject: RE: CONNECTION BUSY [Microsoft][ODBC SQL Server Driver]Connection is busy with results for another hstmt problem. This is coming only if I am executing a no. of SQLs in quick succession. The odbc bridge is not serialisable. That is to say, all requests are queued and answered one by one. If this is a problem, then use a proper driver. J. -- You're only jealous cos the little penguins are talking to me. ~?j ? o v -? O .?+^jm? 0 z r -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: CONNECTION BUSY
thanks a ton Reynir -Original Message- From: Reynir Hübner [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 12, 2002 4:29 PM To: Tomcat Users List Subject: RE: CONNECTION BUSY the JDBC-ODBC bridge is not suitable for production, it's only for testing. I must recomend that you look at other ways of comunicating with your database. http://www.microsoft.com/sql/downloads/2000/jdbc.asp This would be the free driver you would use for microsoft SQL, but it is only a beta version. if you have some money in your pockets you could look at datadirect technologies (www.datadirect-technologies.com), or atinav.com. The microsoft driver is a previous version of the datadirect technologies driver. hope it helps -reynir -Original Message- From: Gurmeet [mailto:[EMAIL PROTECTED]] Sent: 12. mars 2002 10:55 To: Tomcat Users List Subject: RE: CONNECTION BUSY Yes, you are right . I am using JDBC-ODBC bridge. Regards Gurmeet -Original Message- From: Reynir Hbner [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 12, 2002 4:17 PM To: Tomcat Users List Subject: RE: CONNECTION BUSY The errormessage implies that you are using odbc bridge to access MsSQL. If so, you might want to switch over to a native JDBC driver (for example the merant / Microsoft driver). Please post more informations on which JDBC driver you are using. - reynir -Original Message- From: Gurmeet [mailto:[EMAIL PROTECTED]] Sent: 12. mars 2002 10:45 To: Tomcat Users List Subject: CONNECTION BUSY How do I resolve [Microsoft][ODBC SQL Server Driver]Connection is busy with results for another hstmt problem. This is coming only if I am executing a no. of SQLs in quick succession. Please Help. Regards Gurmeet -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Help ! Connection busy
I am getting [Microsoft][ODBC SQL Server Driver]Connection is busy with results for another h stmt How do I get rid of this? Regards Gurmeet -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
How to set Entry Point
Hi all, I am new Tomcat user. pls help me how can I define a particular JSP page to be the entry point for my application. Please tell me what all I need to specify in my web.xml. Regards Gurmeet -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: How to set Entry Point
Thanks for response but this does not help me. What I want to do is that all requests to my application be routed through a particular JSP wherein I will exercise access control mechanism. Regards Gurmeet -Original Message- From: Emir Alikadic [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 12, 2002 11:40 AM To: Tomcat Users List Subject: Re: How to set Entry Point On 3/12/2002 12:53 AM, Gurmeet wrote: Hi all, I am new Tomcat user. pls help me how can I define a particular JSP page to be the entry point for my application. Please tell me what all I need to specify in my web.xml. Regards Gurmeet welcome-file-list welcome-fileindex.jsp/welcome-file welcome-fileindex.wml/welcome-file welcome-fileindex.html/welcome-file /welcome-file-list -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
NEED HELP TO DEFINE ENTRY POINT FOR MY APPLICATION
Hi, I want to define a entry point for my application. i.e. all requests to my application be recieved by a JSP, which then redirects to the requested resource. How do I do that? Thanks in advance. Gurmeet -Original Message- From: Gustavo Souza [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 06, 2002 7:10 PM To: [EMAIL PROTECTED] Subject: Just a test hello, just a test 1º message to the list thanks -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]