Re: Is it Tomcat problem or my problem?
On 4/24/2004 12:02 AM, [EMAIL PROTECTED] wrote: What if the client has disabled cookies? You'll need to use response.encodeURL(someURL) to rewrite the URL, so that JSESSIONID is appended with each link. Dennis - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is it Tomcat problem or my problem?
Uma, How did you manage the session? Are you using container managed security? From your description, it seems that you manage sessions yourself. If that's the case, make sure you create a new session at login and invalidate session at logout ... Dennis On 4/22/2004 7:16 AM, [EMAIL PROTECTED] wrote: Also try one more thing, on the first access do not use the URL of the login, instead use the URL of the homepage and let it redirect you to the login. The Login page is itself the Homepage of the site. I tried to print the session ID and to find out if the session is new by these statements System.out.println("session ID "+session.getId()); System.out.println("session isNew "+session.isNew()); For the first time when I entered betform.jsp it gave me session ID BC45E3915B4AC4E188E7E84D1AEC4E15 session isNew false When I clicked on other links in the same betform.jsp, then it gave me this info session ID 9D0D8E423E875D6ED1D79770B2CB48CC session isNew false and I was logged out. I logged in again and seen the output. Its session ID 9D0D8E423E875D6ED1D79770B2CB48CC session isNew false and when I clicked on other links in the same page it gave me the same session ID. session ID 9D0D8E423E875D6ED1D79770B2CB48CC session isNew false I am really getting frustated with this Tomcat. Any help would be great. Thank you, Uma - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Getting a request in a non English character
Hi Mark, Thanks again for you help. In order to help you help me (-' , I will give more details on my goal and my problem: I want to build a servlet which let application clients ( not HUMAN.a client application, thus HTML forms will do no use here) Send HTTP requests to the servlet, which queries a DB (Oracle), and then the servlet sends back a response to the client application The requests must support windows-1255 charset encoding (Windows Hebrew) At first I decided to receive the request parameters , using GET request , and I attached previously the code, which works fine , and I could even for debug purpose send the request in the url of IE browser (though the client application wouldn't use a browser ,but call GET request with the parameters desired, using windows-1255 charset encoding) After reading your response and other forums response, which agreed that sending a non English characters in GET request is a bad idea, I decided to implement it with POST. So now I have two problems 1. writing the servlet. 2. writing a client that will send requests using POST. Here is a sample servlet and client. It should have worked but it don't (-: , I figure it is a small thing, but did not found it till far. THIS IS THE SERVER'S CODE: import javax.servlet.*; import javax.servlet.http.*; import java.io.IOException; import java.io.PrintWriter; public class Hebrew3test extends HttpServlet { public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { request.setCharacterEncoding("cp1255"); response.setCharacterEncoding("cp1255"); response.setContentType("Text/html; cp1255"); PrintWriter out = response.getWriter(); String name = request.getParameter("name"); out.println(name); } public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { doPost(request, response); } } THIS IS THE CLIENT'S CODE: import java.io.*; import java.net.*; public class HttpClient_cp1255_2 { try { String host = "127.0.0.1"; //tomcat5 host - local machine port = "8083" //tomcat5 port String data = "name=" + URLEncoder.encode("\u05d9\u05d0\u05d9\u05e8", "cp1255"); // the unicode for "Yair" in hebrew. URL test = new URL("http://"+host+":"+port+"/userprofile/hebrew3test";); URLConnection req = test.openConnection(); req.setDoOutput(true); req.setRequestProperty("Content-Type", "application/x-www-form-urlencoded; charset=windows-1255"); req.setRequestProperty("Content-Length", Integer.toString(data.length())); OutputStream out = req.getOutputStream(); out.write(data.getBytes("Cp1255")); // writing the request in Cp1255 encoding. out.close(); InputStream in = req.getInputStream(); BufferedReader br = new BufferedReader(new InputStreamReader(in,"cp1255")); // reading the response in Cp1255 encoding. String line; File f = new File("in.txt");// instead of getting my name in hebrew . I get "" four times 0xF9 in the text file in.txt FileWriter fw = new FileWriter(f); while ((line = br.readLine()) != null) { System.out.println(line); fw.write(line); } fw.close(); } catch (Exception e) { e.printStackTrace(); } } } BTW, One more thing , I modified /conf/server.xml and added attribute URIEncoding="cp1255" useBodyEncodingForURI="true" It still don't work Yair -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: ג 20 אפריל 2004 23:29 To: 'Tomcat Users List' Subject: RE: Getting a request in a non English character http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/http.html Tomcat 4 ships with the same connector but the docs aren't quite up to date on the web site. Mark > -Original Message- > From: Yair Fine [mailto:[EMAIL PROTECTED] > Sent: Monday, April 19, 2004 10:48 PM > To: 'Tomcat Users List' > Subject: RE: Getting a request in a non English character > > Hi Mark, > Thanks for your reply , > You wrote : > "The Coyote HTTP/1.1 connector has a useBodyEncodingForURI attribute > which if set to true will use the request body encoding to decode" > > Where can I configure the useBodyEncodingForURI attribute, is it in an > XML file ? Which one ? Thanks > Yair > > > > > > -Original Message- > From: Mark Thomas [mailto:[EMAIL PROTECTED] > Sent: ג 20 אפריל 2004 21:19 > To: 'Tomcat Users List' > Subject: RE: Getting a request in a non English character > > > You m
Apache2 mod_ssl cert error to Tomcat
Hi. I am trying to get Apache to reverse proxy (thru SSL) to Tomcat5 on a different box. I have a thawte cert, and both Apache / Tomcat work fine with SSL, but when trying to pass an SSL session from Apache to Tomcat, Apache reports: [Sat Apr 24 21:50:09 2004] [error] Certificate Verification: Error (20): unable to get local issuer certificate [Sat Apr 24 21:50:09 2004] [error] (20014)Error string not specified yet: proxy: request failed to 10.2.0.62:443 (10.2.0.62) On the Tomcat side, I am using the Thawte certificate (in a keystore), and have also tried the Apache server cert/key that I've generated from my own CA in it's place, but I get a similar error. If any one can help, it's appreciated. Conversely, if any1 knows how to encrypt packets between two Linux PC's (apart from IPsec because that seems bust in RedHat ES3), that'd do me. Thanks, Pete. *** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. *** For any information on the Quinn Group of Companies please visit :- http://www.quinn-group.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
jsp-examples problem.....
Hello All: JDK USED : 1.4.2 TOMCAT USED : 5.0.19 OS used : WINDOWS XP. Machine rebooted, made the change to jsp file. I have one quick problem that I have no idea why it is happening. I went to the cal folder under jsp-examples. I modified the cal1.jsp page. I changed . . Time . ... to . . Times Test ... I started Tomcat, and pointed to http://localhost:8080/jsp-examples/cal/login.html and then entered data and continued. The next page I got was http://localhost:8080/jsp-examples/cal/cal1.jsp?name=test&[EMAIL PROTECTED]&action=Submit. However I did not get the Times Test displayed at all. I do not know why. Is there some disconnect somewhere that I am missing. Sorry if this question has been asked before. One more thing, it is not just cal1.jsp, any example under jsp-examples, if I modify does not show the modified data on the screen. Thanks -Narahari __ Do you Yahoo!? Yahoo! Photos: High-quality 4x6 digital prints for 25¢ http://photos.yahoo.com/ph/print_splash - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Deploying the manager on another port?
Hey all -- I would like to use the manager web application to be able to push updates to my live web application. However, my web application is mounted off the root and any URL is considered valid for the web application, so mounting the manager at /manager or any other URL isn't doable. I would like to make the manager available on another port, so it will not interfere with the URL space of the main web application, and so I can hide the port behind the firewall. I've tried setting it up in a second element with a connector listening to port 8081, but the manager can't "see" the main web application in the other element. I can also try two connectors in a single service, one for each port, but I'm not sure what happens when the contexts overlap. If I have one set as path="" and the other as path="/manager", will a request to "/manager" on 8080 go to the former and not the latter? Any suggestions would be appreciated! cheers, -steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: deploying webapps from ant
Are you sure you deploying your app to the webapps directory? Did you do an "install" or a "deploy"? In Tomcat5, "install" has been deprecated and "deploy" should be used with the "localWar" attribute if you mean to deploy it to a local directory. In both cases, "deploy" without "localWar" will upload the war to the server and stick it either in "webapps" (Tomcat5) or in the work directory (Tomcat4.1). In both these cases, an "undeploy" should be used, not "remove". "install" and "remove" were meant to deploy an app to a local directory that Tomcat would not delete upon the "remove". Make sure to match up usage of deploy/undeploy and install/remove. Mixing these will give you unexpected results. Jake At 02:24 PM 4/24/2004 +0530, you wrote: I am trying to deploy my webapps from ant, however my undeploy task does not always work. It quietly informs me that everything is ok, however the webapps subdirectory still exists, with at least some of the files still there. Tomcat appears to be holding onto locks on the files and they cannot be deleted. This is with both Tomcat 4 and Tomcat 5, running on Windows XP. Here is my ant code showing my undeploy task: message="tomcat.url is not specified in local.properties file."/> message="tomcat.manager.url is not specified in local.properties file."/> message="tomcat.manager.username is not specified in local.properties file."/> message="tomcat.manager.password is not specified in local.properties file."/> - 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]
Information
Norton AntiVirus gelöscht1.txt Description: plain/text - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
hey you
Norton AntiVirus gelöscht1.txt Description: plain/text - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: connection Poll
Yes, I did it with version 4.1.18. What's your question? masood - Do you Yahoo!? Yahoo! Photos: High-quality 4x6 digital prints for 25¢
Re: Tomcat 5.0.19 Bug
I have posted my problems with this Heading "Is it Tomcat problem or my problem?" I tested the same application on my machine using 4.0.6 and its working good. I installed Tomcat 5.0.19 on other machine to thest the same application and it is having problems with the session. Ofcourse as I mentioned in my previous post that it started suddenly. I am using Tomcat on development mode. Thank you, Best Regards, Uma - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5.0.19 Bug
[EMAIL PROTECTED] wrote: Hi, I was thinking that Tomcat 5.0.19 has improved over its previous versions. But I lately came to know that this release has bug with it. It has lot of problems in maintaining the session objects. I tested my application on Tomcat 5.0.19 and it gave me lot of session problems. e.g expiring the session object as soon as I login or cannot maintain the session between JSP and Servlets. This seems to work well for everyone (me included). I think you have a problem somewhere else which causes your problems. You're not giving any details so it's difficult to give any advice. The same application was tested on Tomcat 4.0.6 and it works great. Has Tomcat Vesion 5 really improved in its performance? Compared to 4.0.x, yes, a lot. (but as usual, it depends on your application/environment/etc, blablabla) -- 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]
Tomcat 5.0.19 Bug
Hi, I was thinking that Tomcat 5.0.19 has improved over its previous versions. But I lately came to know that this release has bug with it. It has lot of problems in maintaining the session objects. I tested my application on Tomcat 5.0.19 and it gave me lot of session problems. e.g expiring the session object as soon as I login or cannot maintain the session between JSP and Servlets. The same application was tested on Tomcat 4.0.6 and it works great. Has Tomcat Vesion 5 really improved in its performance? Thank you, Best Regards, Uma - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Hi, it's me
Norton AntiVirus eliminato1.txt Description: plain/text - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat 5 and cgi-bin
You can't do this within the same web application. You should be able to do this if you have a separate web application for each CGI executable. You will have to configure the cgi servlet differently in each web application. Mark > -Original Message- > From: zhicheng wang [mailto:[EMAIL PROTECTED] > Sent: Saturday, April 24, 2004 10:09 AM > To: [EMAIL PROTECTED] > Subject: RE: tomcat 5 and cgi-bin > > thanks Mark > > suppose that i can use more than one app? such as > > > executable > XXXapp > > > > executable > YYYapp > > > ? > > cheng > > > > > --- Mark Thomas <[EMAIL PROTECTED]> wrote: > Prior to > 5.0.17, the cgi executable was hardcoded to > > perl. From 5.0.17 onwards > > this is configurable. For example, if you wanted to > > use XXXapp as the perl > > executable, edit conf/web.xml to look something > > this: > > > > > > cgi > > > > > org.apache.catalina.servlets.CGIServlet > > > > > > clientInputTimeout > > 100 > > > > > > debug > > 6 > > > > > > cgiPathPrefix > > WEB-INF/cgi > > > > > > executable > > XXXapp > > > > 5 > > > > > > > > cgi > > /cgi-bin/* > > > > > > Alternatively you can put this in the web.xml for > > you web app. Note that XXXapp > > must be on your path. > > > > Mark > > > > > From: zhicheng wang [mailto:[EMAIL PROTECTED] > > > > > i am trying to upgrade our server to t5, but the > > > cgi-bin now only allows perl programs to be > > executed > > > (by default). for compiled c or c++ etc, how do i > > > modify the web.xml? > > > > > > = > Best wishes > Z C Wang > > > > > > > Yahoo! Messenger - Communicate instantly..."Ping" > your friends today! Download Messenger Now > http://uk.messenger.yahoo.com/download/index.html > > - > 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 5 and cgi-bin
thanks Mark suppose that i can use more than one app? such as executable XXXapp executable YYYapp ? cheng --- Mark Thomas <[EMAIL PROTECTED]> wrote: > Prior to 5.0.17, the cgi executable was hardcoded to > perl. From 5.0.17 onwards > this is configurable. For example, if you wanted to > use XXXapp as the perl > executable, edit conf/web.xml to look something > this: > > > cgi > > org.apache.catalina.servlets.CGIServlet > > > clientInputTimeout > 100 > > > debug > 6 > > > cgiPathPrefix > WEB-INF/cgi > > > executable > XXXapp > > 5 > > > > cgi > /cgi-bin/* > > > Alternatively you can put this in the web.xml for > you web app. Note that XXXapp > must be on your path. > > Mark > > > From: zhicheng wang [mailto:[EMAIL PROTECTED] > > > i am trying to upgrade our server to t5, but the > > cgi-bin now only allows perl programs to be > executed > > (by default). for compiled c or c++ etc, how do i > > modify the web.xml? > > = Best wishes Z C Wang Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download Messenger Now http://uk.messenger.yahoo.com/download/index.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
deploying webapps from ant
I am trying to deploy my webapps from ant, however my undeploy task does not always work. It quietly informs me that everything is ok, however the webapps subdirectory still exists, with at least some of the files still there. Tomcat appears to be holding onto locks on the files and they cannot be deleted. This is with both Tomcat 4 and Tomcat 5, running on Windows XP. Here is my ant code showing my undeploy task: message="tomcat.url is not specified in local.properties file."/> message="tomcat.manager.url is not specified in local.properties file."/> message="tomcat.manager.username is not specified in local.properties file."/> message="tomcat.manager.password is not specified in local.properties file."/> username="${tomcat.manager.username}" password="${tomcat.manager.password}" path="/${ant.project.name}"/> - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: contextInitialized called twice during webapp deployment
Milt, Thanks for your reply. Having investigated further, I was able to eliminate the possibility that two instances of my servlet were being deployed. Instead, I am now pretty sure that I ran into http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22478 , where Ant Tasks and HTML Manager deployment cause double initialization. When I manually deploy or when the server starts-up with the webapp already deployed, my contextInitialized is only called once. Bug is now marked as fixed, so I need to upgrade ... :-) Thanks Brett Randall On Mon, 19 Apr 2004, Brett Randall wrote: Can anyone advise - what would cause a listener's contextInitialized() to be called exactly twice during the deployment of a webapp? I am using Tomcat included in the Java Web Services Developer Pack v1.3. The double call of contextInitialized() happens for both my servlets, and the example servlets that have listeners defined. The only hint I have at the moment is that when incrementing one static and one instance counter within the listener, on both calls both variables are 1 (from 0), so could two different classloaders or VMs be instantiating the ContextListener, and what would cause that? I don't have any virtual hosts defined. Sounds like you have two *instances* of your servlet being loaded (so it's two separate instances of contextInitialized() being invoked). This can happen if you have two different definitions of the servlet in your web.xml, and/or perhaps if you have your webapp/context being loaded twice, like one automatically (because of an attribute setting like autoDeploy/deployOnStartup) and once because of a Context element in your server.xml and/or a seperate context configuration file. Milt Epstein _ Protect your inbox from harmful viruses with new ninemsn Premium. Go to http://ninemsn.com.au/premium/landing.asp?banner=emailtag&referrer=hotmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
jk2 problem (newbie)
Hello, I'm trying to integrate tomcat 5 to apache 2.0.48. When I start apache after tomcat, if I try to access jsp-examples, I get this error message: * Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, [EMAIL PROTECTED] and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. My jkstatus look good, it reports the error. here are my jk2.properties handler.list=apr,request,channelUnix # UNIX Domain socket location channelUnix.file=/usr/local/apache/jakarta-tomcat-5.0.19/work/jk2.socket # Dynamic Library serverRoot=/etc/httpd apr.NativeSo=/etc/httpd/modules/libjkjni.so *** and here is my workers2.properties [shm] info=Scoreboard. Required for reconfiguration and status with multiprocess servers file=/usr/local/apache/jakarta-tomcat-5.0.19/logs/jk2.shm size=1048576 debug=0 disabled=0 # UNIX domain socket [channel.un:/usr/local/apache/jakarta-tomcat-5.0.19/work/jk2.socket] tomcatId=localhost:8009 debug=0 # define the worker [ajp13://usr/local/apache/jakarta-tomcat-5.0.19/work/jk2.socket] channel=channel.un:/usr/local/apache/jakarta-tomcat-5.0.19/work/jk2.socket # Announce a "status" worker [status:status] info=Status worker. Displays runtime information. [uri:/jkstatus/*] group=status:status # Uri mapping [uri:/jsp-examples/*] * Here is my catalina.out *** Apr 24, 2004 9:27:58 AM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on port 8080 Apr 24, 2004 9:27:58 AM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1684 ms Apr 24, 2004 9:27:59 AM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Apr 24, 2004 9:27:59 AM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.0.19 Apr 24, 2004 9:27:59 AM org.apache.catalina.core.StandardHost start INFO: XML validation disabled Apr 24, 2004 9:27:59 AM org.apache.catalina.core.StandardHost getDeployer INFO: Create Host deployer for direct deployment ( non-jmx ) Apr 24, 2004 9:27:59 AM org.apache.catalina.core.StandardHostDeployer install INFO: Processing Context configuration file URL file:/usr/local/apache/jakarta-tomcat-5.0.19/conf/Catalina/localhost/admin.xml Apr 24, 2004 9:28:00 AM org.apache.struts.util.PropertyMessageResources INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true Apr 24, 2004 9:28:00 AM org.apache.struts.util.PropertyMessageResources INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNull=true Apr 24, 2004 9:28:00 AM org.apache.struts.util.PropertyMessageResources INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources', returnNull=true Apr 24, 2004 9:28:02 AM org.apache.catalina.core.StandardHostDeployer install INFO: Processing Context configuration file URL file:/usr/local/apache/jakarta-tomcat-5.0.19/conf/Catalina/localhost/balancer.xml Apr 24, 2004 9:28:03 AM org.apache.catalina.core.StandardHostDeployer install INFO: Processing Context configuration file URL file:/usr/local/apache/jakarta-tomcat-5.0.19/conf/Catalina/localhost/manager.xml Apr 24, 2004 9:28:03 AM org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path from URL file:/usr/local/apache/jakarta-tomcat-5.0.19/webapps/ROOT Apr 24, 2004 9:28:03 AM org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path /jsp-examples from URL file:/usr/local/apache/jakarta-tomcat-5.0.19/webapps/jsp-examples Apr 24, 2004 9:28:03 AM org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path /servlets-examples from URL file:/usr/local/apache/jakarta-tomcat-5.0.19/webapps/servlets-examples Apr 24, 2004 9:28:03 AM org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path /tomcat-docs from URL file:/usr/local/apache/jakarta-tomcat-5.0.19/webapps/tomcat-docs Apr 24, 2004 9:28:03 AM org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path /webdav from URL file:/usr/local/apache/jakarta-tomcat-5.0.19/webapps/webdav Apr 24, 2004 9:28:03 AM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on port 8080 Apr 24, 2004 9:28:04 AM org.apache.jk.server.JkMain start INFO: APR not loaded, disabling jni components: java.io.IOException: java.lang.UnsatisfiedLinkError: /usr/lib/httpd/modules/libjkjni.so: /usr/lib/httpd/modules/libjkjni.so: undefined symbol: apr_md5_final Apr 24, 2004 9:28:04 AM org.apache.jk.common.ChannelSocket init INFO: JK2: ajp13 listening on 0.0.0.0/0.0.0.0:8009 Apr 24, 2004 9:28:04 AM org.apache.jk
RE: Is it Tomcat problem or my problem?
What if the client has disabled cookies? In my coding adventures, I've tracked down two "Hey my session disappeared!" bugs with this technique. I dont understand by what you meant by the above lines. Thank you, Best Regards, Uma "Mike Curwen" <[EMAIL PROTECTED] > To 04/23/2004 07:49 "'Tomcat Users List'" PM<[EMAIL PROTECTED]> cc Please respond to "Tomcat Users List" <[EMAIL PROTECTED] rta.apache.org> Subject RE: Is it Tomcat problem or my problem? When debugging a session problem, I find it very helpful to force my browser to ask me about every cookie. This way, I can see for sure the JSESSIONID cookie being set, and can inspect things like the domain and the jsessionid value. In my coding adventures, I've tracked down two "Hey my session disappeared!" bugs with this technique. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > Sent: Thursday, April 22, 2004 11:03 PM > To: Tomcat Users List > Subject: Re: Is it Tomcat problem or my problem? > > > > > > > Doug, > Its ok no problem. > > Any one else in the list can help me out? > > Thank you, > Best Regards, > Uma > > > > > "Parsons > > Technical > > Services" > To > > @earthlink.net> "Tomcat Users List" > > > <[EMAIL PROTECTED]> > 04/22/2004 08:06 > cc > PM > > > > > > Please respond to > >"Tomcat Users > >List" > Subject > <[EMAIL PROTECTED] Re: Is it Tomcat > problem or my > rta.apache.org> problem? > > > > > > > > > > > > > > > > > > Uma, > > At this point I am out of ideas. I have not worked with > sessions and thus am not strong in this area. I am sorry that > I am unable to help further at this point. Hopefully someone > else on the list will pick up on something. > > You may wish to look into the IO error that you had on > shutdown as it may be related. > > Sorry, > Doug > > - Original Message - > From: <[EMAIL PROTECTED]> > To: "Tomcat Users List" <[EMAIL PROTECTED]> > Sent: Thursday, April 22, 2004 10:16 AM > Subject: Re: Is it Tomcat problem or my problem? > > > > > > Doug, > > > > >Does it act the same from other machines? > > YES > > >Does it act the same from other browsers(Modzilla, Netscape, etc)? > > YES > > >Were any updates applied to the machine? Is auto update enabled on > > windows? > > NO > > > > >Are the connections via http or https? > > HTTP > > > > >Also try one more thing, on the first access do not use the URL of > > >the login, instead use the URL of the homepage and let it redirect > > >you to > the > > >login. > > The Login page is itself the Homepage of the site. > > > > > > I tried to print the session ID and to find out if the > session is new > > by these statements > > > > System.out.println("session ID "+session.getId()); > > System.out.println("session isNew "+session.isNew()); > > > > For the first time when I entered betform.jsp it gave me session ID > > BC45E3915B4AC4E188E7E84D1AEC4E15 session isNew false > > > > When I clicked on other links in the same betform.jsp, then > it gave me > this > > info > > session ID 9D0D8E423E875D6ED1D79770B2CB48CC > > session isNew false > > > > and I was logged out. I logged in again and seen the output. Its > > session ID 9D0D8E423E875D6ED1D79770B2CB48CC session isNew false > > > > and when I clicked on other links in the same page it gave > me the same > > session ID. > > > > session ID 9D0D8E423