Re: web.xml file problem
Hi Tim, I tried the way you mentioned but it still dont work. I removed the welcome file list and tested again, but even then it dont work. Am I missing anything? Thank you, Best Regards, Uma Tim Funk [EMAIL PROTECTED] rgTo 06/01/2004 06:37 Tomcat Users List PM[EMAIL PROTECTED] cc Please respond to Tomcat Users List [EMAIL PROTECTED] rta.apache.org Subject Re: web.xml file problem The dtd (http://java.sun.com/dtd/web-app_2_3.dtd) says that welcome-file-list must appear before error-page -Tim [EMAIL PROTECTED] wrote: Hi, This is my web.xml file. I dont know whats wrong here but my first session gets expired. When I remove the error-page and welcome file list, then everything works fine. Am I wrong somewhere? ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app error-page error-code404/error-code location/CustomErrorPage.jsp/location /error-page welcome-file-list welcome-fileindex.jsp/welcome-file /welcome-file-list /web-app - 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: Remote Start / Stop of tomcat
Any one please? Thank you, Best Regards, Uma Schalk [EMAIL PROTECTED] o.za To 05/31/2004 02:40 'Tomcat Users List' PM[EMAIL PROTECTED] cc Please respond to Tomcat Users List [EMAIL PROTECTED] rta.apache.org Subject RE: Remote Start / Stop of tomcat Can you log-in to the machine via SSH? Kind Regards Schalk Neethling Web Developer.Designer.Programmer.President Volume4.Development.Multimedia.Branding emotionalize.conceptualize.visualize.realize Tel: +27125468436 Fax: +27125468436 email:[EMAIL PROTECTED] web: www.volume4.com This message contains information that is considered to be sensitive or confidential and may not be forwarded or disclosed to any other party without the permission of the sender. If you received this message in error, please notify me immediately so that I can correct and delete the original email. Thank you. :: -Original Message- :: From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] :: Sent: Monday, May 31, 2004 11:01 AM :: To: Tomcat Users List :: Subject: RE: Remote Start / Stop of tomcat :: :: :: :: :: :: Matt, :: Thanks for the reply. Yes, thats not my problem here and I am looking for :: starting / stopping my tomcat in the remote machine using some kind of :: mechanism if available. :: :: Thank you, :: Best Regards, :: Uma :: :: :: - :: 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: Remote Start / Stop of tomcat
Hi Schalk, I have downloaded putty and I am really struck on how to use it. I never used Telnet before. Can you help me with the commands that are needed to start / stop tomcat on remote machine please? Thank you, Best Regards, Uma Schalk [EMAIL PROTECTED] o.za To 06/01/2004 02:58 'Tomcat Users List' PM[EMAIL PROTECTED] cc Please respond to Tomcat Users List [EMAIL PROTECTED] rta.apache.org Subject RE: Remote Start / Stop of tomcat I second that, if you are on windows download 'Putty' and for uploading and downloading files via SSH download 'psftp', it is by the same company. They work absolutely great. Just check with whom ever administers your server that SSH is installed. Kind Regards Schalk Neethling Web Developer.Designer.Programmer.President Volume4.Development.Multimedia.Branding emotionalize.conceptualize.visualize.realize Tel: +27125468436 Fax: +27125468436 email:[EMAIL PROTECTED] web: www.volume4.com This message contains information that is considered to be sensitive or confidential and may not be forwarded or disclosed to any other party without the permission of the sender. If you received this message in error, please notify me immediately so that I can correct and delete the original email. Thank you. :: -Original Message- :: From: Adam Buglass [mailto:[EMAIL PROTECTED] :: Sent: Tuesday, June 01, 2004 10:28 AM :: To: Tomcat Users List :: Subject: RE: Remote Start / Stop of tomcat :: :: Think of it as a secure telnet! :: :: Do a google search for more info. :: :: Also do a google search for Putty which is an SSH client for Windows. :: It'll probably tell you all about SSH and it's one of (if not the) best :: windows SSH client around. :: :: (If you're using Unix try typing: ssh [remotehost.remotedomain] at the :: prompt, of course changing the stuff in [] for the name of your server). :: :: HTH. :: Adam. :: :: On Mon, 2004-05-31 at 11:16, [EMAIL PROTECTED] wrote: :: :: :: What is SSH? :: :: Thank you, :: Best Regards, :: Uma :: :: :: - :: To unsubscribe, e-mail: [EMAIL PROTECTED] :: For additional commands, e-mail: [EMAIL PROTECTED] :: -- :: Adam Buglass, :: The Golden Freeway. :: :: Unit 1, :: Wear Valley Business Centre, :: 27 Longfield Road, :: South Church Enterprise Park, :: Bishop Auckland. :: DL14 6XB :: :: (01388) 778424 :: :: http://www.thegoldenfreeway.com :: http://www.golduk.net :: :: :: - :: 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]
(SOLVED) Remote Start / Stop of tomcat
Hi, Thank you all for the reply. I got it now. It seems to be similar to PCAnywhere but more secure. I got connected to the server and everything is working fine. Thanks again Thank you, Best Regards, Uma - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
web.xml file problem
Hi, This is my web.xml file. I dont know whats wrong here but my first session gets expired. When I remove the error-page and welcome file list, then everything works fine. Am I wrong somewhere? ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app error-page error-code404/error-code location/CustomErrorPage.jsp/location /error-page welcome-file-list welcome-fileindex.jsp/welcome-file /welcome-file-list /web-app Thank you, Best Regards, Uma - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Remote Start / Stop of tomcat
Matt, Thanks for the reply. Yes, thats not my problem here and I am looking for starting / stopping my tomcat in the remote machine using some kind of mechanism if available. Thank you, Best Regards, Uma - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Remote Start / Stop of tomcat
What is SSH? Thank you, Best Regards, Uma - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Remote Start / Stop of tomcat
Hi, Once in a week I need to restart Tomcat due to OutofMemoryError. But I do not have access to the server for doing this. So, I am looking for a mechanism (if possible) to start / stop Tomcat remotely. Is this possible? If its possible please let me know how to do. Thank you, Best Regards, Uma - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Remote Start / Stop of tomcat
Ugo, Can you tell me how to use them please? Thank you, Best Regards, Uma Ugo Bellavance [EMAIL PROTECTED] com To Sent by: news [EMAIL PROTECTED] [EMAIL PROTECTED] rgcc 05/31/2004 09:54 AM Subject Please respond to Re: Remote Start / Stop of tomcat Tomcat Users List [EMAIL PROTECTED] rta.apache.org [EMAIL PROTECTED] wrote: Hi, Once in a week I need to restart Tomcat due to OutofMemoryError. But I do not have access to the server for doing this. So, I am looking for a mechanism (if possible) to start / stop Tomcat remotely. Is this possible? If its possible please let me know how to do. I used to use webmin's custom commands. Thank you, Best Regards, Uma - 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: 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 parsonstechnical @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 9D0D8E423E875D6ED1D79770B2CB48CC session isNew false I am really getting frustated with this Tomcat. Any help would be great. Thank you, Uma
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]
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]
Applet to Servlet session fails
Hello, I have a JSP page that has an applet embeded in it. The Applet talks to a Servlet. I have a session within the JSP when I try to access the session within my Servlet, I get NullPointerException as there is no session object. How do I get the session object in my Servlet that is present in the JSP? I am using Tomcat 5.0.19 Thank you, Best Regards, Uma - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Applet to Servlet session fails
Can you help me with more source please? I am using applet tag and not object tag. Thank you, Best Regards, Uma Veniamin Fichin [EMAIL PROTECTED] To 04/23/2004 01:03 Tomcat Users List PM[EMAIL PROTECTED] cc Please respond to Tomcat Users List [EMAIL PROTECTED] rta.apache.org Subject Re: Applet to Servlet session fails [EMAIL PROTECTED] wrote: I have a JSP page that has an applet embeded in it. The Applet talks to a Servlet. I have a session within the JSP when I try to access the session within my Servlet, I get NullPointerException as there is no session object. How do I get the session object in my Servlet that is present in the JSP? I am using Tomcat 5.0.19 If you use OBJECT ... HTML tag, you can pass parameter to applet with PARAM ... tag, namely JSESSIONID. Inside applet you call servlet with that session id, that way everybody will know the same session. I had this model once and it worked. - 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]
Is it Tomcat problem or my problem?
Hello, I am working on a web application using JSP and servlets. Till date my application worked great but today I am having some critical problem. When I come to a JSP, the session object is dead. I no longer can access the session in my servlet. I stopped the tomcat immediately to see if there is any error. And this is my log file The NullPointerException is caused due to the object in session being null. Any help would be great. * BEFORE SHUTTING DOWN ** In BetFormServlet :java.lang.NullPointerException java.lang.NullPointerException at BetFormServlet.doPost(BetFormServlet.java:54) at javax.servlet.http.HttpServlet.service(HttpServlet.java:763) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:284) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:750) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:510) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:445) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:359) at ControllerServlet.doPost(ControllerServlet.java:59) at javax.servlet.http.HttpServlet.service(HttpServlet.java:763) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:466) at org.apache.catalina.servlets.InvokerServlet.doPost(InvokerServlet.java:216) at javax.servlet.http.HttpServlet.service(HttpServlet.java:763) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:284) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:257) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:245) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:199) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:184) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:156) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:972) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:206) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:833) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:732) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:619) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:688) at java.lang.Thread.run(Thread.java:536) * AFTER SHUTTING DOWN ** Apr 22, 2004 4:43:05 PM org.apache.catalina.core.StandardHostDeployer remove INFO: Removing web application at context path /IBS Apr 22, 2004 4:43:05 PM org.apache.catalina.core.StandardHostDeployer remove INFO: Removing web application at context path Apr 22, 2004 4:43:05 PM org.apache.catalina.session.StandardManager doUnload SEVERE: IOException while saving persisted sessions: java.io.FileNotFoundException: E:\Tomcat 5.0 \work\Catalina\localhost\_\SESSIONS.ser (The system cannot find the path specified) java.io.FileNotFoundException: E:\Tomcat 5.0 \work\Catalina\localhost\_\SESSIONS.ser (The system cannot find the path specified) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.init(FileOutputStream.java:176) at java.io.FileOutputStream.init(FileOutputStream.java:70) at
Re: Is it Tomcat problem or my problem?
Doug, Thank you for the reply. I dont think there is a problem with the Windows Explorer as the same application worked great till yesterday. I never changed the code and today it started not to work. I found the problem. The problme is not in the Servlet, its in the JSP itself. The object in the session is getting null. I have done the following test procedure and checked it. My code for betform.jsp is posted below 1. Opened a new browser 2. Entered the Login URL and logged in (Servlet takes care of login validations and puts the login info into a session) 3. I come to home page of the site. 4. I click on betform.jsp which has an Applet within it. The applet talks to database for every 3 seconds for some information. I have several links within the betform.jsp which will again call the same jsp with different data. 5. I click on some link (any link) in betform.jsp, the session is not valid and sent to login page. 6. I dont close the browser and login with the same browser and follow the steps above, now the session works great. Where am I going wrong? Why is the session not working for the first time and is working now. I am using Tomcat 5.0.19 Any help would be great. %@ page import=java.io.*,java.util.*,java.text.*,ibs.* % jsp:useBean id=dbSearch class=ibs.DBSearch scope=application/ html % try { String stakeKey=; String stakeVal=; String racename=; String racetime=; String racedistance=; String ddt = ; Vector vddt = new Vector(); String selDa = ; Vector details=new Vector(); String disrace=; UserBeanInfo ub=(UserBeanInfo)session.getAttribute(UserDetails); if(ub == null) { response.sendRedirect(Login.jsp); return; } if(ub != null) { Vector v=new Vector(); v.addElement(ub); String curbalance =dbSearch.selectQueryOfType(BALANCE,v).trim(); double balance =0; if(!curbalance.equals(NOT FOUND) !curbalance.equals(null)) balance = Double.parseDouble(curbalance); Vector list =(Vector)session.getAttribute(List); if(list != null) session.removeAttribute(List); String dateFormat=ub.getDtFormat(); String dateSep =ub.getDtSep(); String masterDate=ub.getMasterDate(); //System.out.println(masterDate +masterDate); String predate=; java.text.SimpleDateFormat df = new java.text.SimpleDateFormat(masterDate); Date d = new Date(); predate = df.format(d).toUpperCase(); String s=request.getParameter(txtDate); String preval=request.getParameter(Location); if(s!=null) predate=s; String go=request.getParameter(GO); disrace=request.getParameter(RACE); System.out.println(raj +disrace); % HTML CODE % if((go != null) (go.equals(DISPLAY))) { if(session.getAttribute(List) != null ) { session.removeAttribute(List); } String modDate = s; String qtype=BET RACE NO; Vector temp=new Vector(); temp.addElement(modDate); temp.addElement(preval); String result=dbSearch.selectQueryOfType(qtype,temp); if(!result.equals(NOT FOUND)) { % tr td colspan=2 class=labelsRaces: font color=#9FB2DE % StringTokenizer st1=new StringTokenizer(result,%); boolean raceStatus = false; while(st1.hasMoreTokens()) { StringTokenizer race = new StringTokenizer(st1.nextToken(),ß); while(race.hasMoreTokens()) { String raceno=race.nextToken().trim(); String rs = race.nextToken().trim(); int rc = Integer.parseInt(race.nextToken().trim()); int rd = Integer.parseInt(race.nextToken().trim()); if(!rs.equals(STOPPED) rc == 0 rd==0 disrace == null) disrace=raceno; if(raceno.equals(disrace)) {% bspan class=asterisk%=raceno%/span/b nbsp;nbsp;nbsp;nbsp; % raceStatus = true; } else { % a href=BetForm.jsp?RACE=%=raceno%GO=DISPLAYtxtDate=%=s%Location=%=preval%b%=raceno%/b/a nbsp;nbsp;nbsp;nbsp; %} } } if(raceStatus) session.setAttribute(RACENO,disrace); else {% script
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 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: 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 parsonstechnical @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 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] - 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 getting null
I have the problem only within this JSP file. The other JSP pages are working fine. This JSP talks to a Servlet and the servlet talks to another JSP file. The objects from the servlet are sent throughRequestDispatcher. I dont know why, but the same JSP works good somtimes. i.e the session object doesnt become null. I have no clue where the mistake is. Thank you, Best Regards, Uma - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
session getting null
Hi, I have an application where my JSP talks to the Servlet for further processing of my form. I am maintaining the user information in a session( UserDetails) object since the user has logged in. My application works sometimes, but never works sometimes. When I try to navigate within the same page sometime the UserDetails object that is present in the session becomes null and sometime it works great. This is happening only with this jsp page of my application. The other pages are working good and there is no session problem in them. But why is that the session object becomes null sometimes and works sometimes? I am totally lost. Please help me. Thank you, Best Regards, Uma - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Session expired
Hi, I am working on a JSP / Servlet application where in the session is expired as soon as I enter a servlet from the JSP page. I do not know the reason why this is happening. From JSP to JSP it works good. I am using Tomcat 5.0.19 Any idea would be great. Thank you, Best Regards, Uma - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Why is this happening? :(
Hi, I have an application where my JSP talks to the Servlet for further processing of my form. I am maintaining the user information in a session( UserDetails) object since the user has logged in. My application works sometimes, but never works sometimes. When I try to navigate within the same page sometime the UserDetails object that is present in the session becomes null and sometime it works great. This is happening only with this jsp page of my application. The other pages are working good and there is no session problem in them. But why is that the session object becomes null sometimes and works sometimes? I am totally lost. Please help me. Thank you, Best Regards, Uma - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Container calling destroy() method
Hi, How do I control the webcontainer from calling the destroy() method of the servlets or JSP? Where do I make the appropriate settings? Thank you, Best Regards, Uma - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Session exists even after server restart
Hi, I am using Tomcat 5.0.19. I have started my tomcat and working on my applications using in the browser. I am maintaining the login information in a session and navigation through the page. Now I have shutdown my tomcat and started it immediately. And my session still works !!! I am still able to navigate through the pages with the same login information that I had in the session prior to shutdown of the server. Is this a BUG? Thank you, Best Regards, Uma - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Where to set JAVA_OPTS
Hi, Where do I need to set JAVA_OPTS (Should I edit catalina.bat file?). I am using Win 2k Pro and Tomcat 5. Thank you, Best Regards, Uma - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Configuring Tomcat on different IP's
Doug, Thanks for reply. I am not clear with this line Add this to the web.xml of the app on the https side. Do you mean to add those lines in the web.xml of IBS context(which contain HTTPS files)? or the web.xml file present in the conf directory? Add the following elements to your context as well: crossContext=false override=true privileged=false' Should I add them to the IBS context or IBS1 context? I will definitely post all of my configuration files to the mail-list. So that it could be of some help to other developers. Thank you, Best Regards, Uma Parsons Technical Services To parsonstechnical @earthlink.net Tomcat Users List [EMAIL PROTECTED] 03/31/2004 06:24 cc PM Please respond to Tomcat Users List Subject [EMAIL PROTECTED] Re: Configuring Tomcat on different rta.apache.org IP's Uma, Do a ping localhost from the command line. It will only resolve to one name. So don't get concerned that it doesn't work. As long as the IPs work you are fine. Now for the access issue. Did you set up a security constraint in your web.xml file? Add this to the web.xml of the app on the https side. security-constraint web-resource-collection web-resource-nameProtected Context/web-resource-name url-pattern/*/url-pattern /web-resource-collection !-- auth-constraint goes here if you require authentication -- user-data-constraint transport-guaranteeCONFIDENTIAL/transport-guarantee /user-data-constraint /security-constraint This is from the link I sent you earlier: http://marc.theaimsgroup.com/?l=tomcat-userm=104951559722619w=2 This will prevent access to the webapp through http and force the client to https. If I understand your problem, it is that the client can get to the webapp from the http IP. Add the following elements to your context as well: crossContext=false override=true privileged=false' As for the connector, I think Bill correct, so yes you can remove it. Let us know how it goes. Doug PS When you get it working, add the word SOLVED to the end of your subject line and post all your config files. Just one way to give back to the list. Thanks - Original Message - From: [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, March 30, 2004 10:52 PM Subject: Re: Configuring Tomcat on different IP's Doug, I am finally getting something to work after doing lot of experiments. Now the issue is 1)It does not work with http://localhost, seems to be a problem with my DNS. 2)It works with http://172.27.2.44 This address (172.27.2.44) is defined in the first service and the host tag has a context as Context path= docBase=/IBS1 debug=0 /Context Look its IBS1. This context has an index.jsp file which just fwd the request to https://172.27.2.246/IBS/Login.jsp This address (172.27.2.246) is defined in the second service and the host tag has a context as Context path= docBase=/IBS debug=0 /Context Look its IBS now. This context has all the files that needs to run under https. 3)Now when the user logs in using https://172.27.2.246/IBS/Login.jsp he goes to https://172.27.2.246/IBS/d1.jsp 4)When the user changes the port to HTTP (in the address bar of the browser) and doesnt change the IP address as http://172.27.2.246 /IBS/d1.jsp, then the user gets cannot find server. This is perfect. 5)When the user changes the port to HTTP and change the IP address (in the address bar of the browser) as http://172.27.2.44/IBS/d1.jsp, as I am internally checking for the session, the
Re: Configuring Tomcat on different IP's
Doug, Thanks for the info. I will try these settings and get back to you. Thank you, Best Regards, Uma Parsons Technical Services To parsonstechnical @earthlink.net Tomcat Users List [EMAIL PROTECTED] 03/31/2004 06:58 cc PM Please respond to Tomcat Users List Subject [EMAIL PROTECTED] Re: Configuring Tomcat on different rta.apache.org IP's Uma, Doug, Thanks for reply. I am not clear with this line Add this to the web.xml of the app on the https side. Do you mean to add those lines in the web.xml of IBS context(which contain HTTPS files)? Yes or the web.xml file present in the conf directory? No. Note that adding anything here will affect all apps on the server. Add the following elements to your context as well: crossContext=false override=true privileged=false' Should I add them to the IBS context or IBS1 context? Both will be fine. This technically should not be needed, but to help security I would do it. Note add these after you get the addition to web.xml done and working. Then when you add these to the context, do them one at a time instead of all three at once. Just in case it breaks something. I will definitely post all of my configuration files to the mail-list. So that it could be of some help to other developers. Sorry if my writing is confusing sometimes. Feel free to ask for clarification any time. Thank You Doug Parsons Technical Services To parsonstechnical @earthlink.net Tomcat Users List [EMAIL PROTECTED] 03/31/2004 06:24 cc PM Please respond to Tomcat Users List Subject [EMAIL PROTECTED] Re: Configuring Tomcat on different rta.apache.org IP's Uma, Do a ping localhost from the command line. It will only resolve to one name. So don't get concerned that it doesn't work. As long as the IPs work you are fine. Now for the access issue. Did you set up a security constraint in your web.xml file? Add this to the web.xml of the app on the https side. security-constraint web-resource-collection web-resource-nameProtected Context/web-resource-name url-pattern/*/url-pattern /web-resource-collection !-- auth-constraint goes here if you require authentication -- user-data-constraint transport-guaranteeCONFIDENTIAL/transport-guarantee /user-data-constraint /security-constraint This is from the link I sent you earlier: http://marc.theaimsgroup.com/?l=tomcat-userm=104951559722619w=2 This will prevent access to the webapp through http and force the client to https. If I understand your problem, it is that the client can get to the webapp from the http IP. Add the following elements to your context as well: crossContext=false override=true privileged=false' As for the connector, I think Bill correct, so yes you can remove it. Let us know how it goes. Doug PS When you get it working, add the word SOLVED to the end of your subject line and post all your config files. Just one way to give back to the list. Thanks - Original Message - From: [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, March 30, 2004 10:52 PM Subject: Re: Configuring Tomcat on different IP's Doug, I am finally getting something to work after doing lot of experiments. Now the issue is 1)It does not work with
Re: Configuring Tomcat on different IP's
Doug, I am finally getting something to work after doing lot of experiments. Now the issue is 1)It does not work with http://localhost, seems to be a problem with my DNS. 2)It works with http://172.27.2.44 This address (172.27.2.44) is defined in the first service and the host tag has a context as Context path= docBase=/IBS1 debug=0 /Context Look its IBS1. This context has an index.jsp file which just fwd the request to https://172.27.2.246/IBS/Login.jsp This address (172.27.2.246) is defined in the second service and the host tag has a context as Context path= docBase=/IBS debug=0 /Context Look its IBS now. This context has all the files that needs to run under https. 3)Now when the user logs in using https://172.27.2.246/IBS/Login.jsp he goes to https://172.27.2.246/IBS/d1.jsp 4)When the user changes the port to HTTP (in the address bar of the browser) and doesnt change the IP address as http://172.27.2.246 /IBS/d1.jsp, then the user gets cannot find server. This is perfect. 5)When the user changes the port to HTTP and change the IP address (in the address bar of the browser) as http://172.27.2.44/IBS/d1.jsp, as I am internally checking for the session, the programme finds the session is invalid and sends him to (HTTP Login page) http://172.27.2.44 /IBS/Login.jsp. Now the user still can access my IBS context files using http protocol and 80 port. Now see this IP configuration (172.27.2.44) on port 80 has got a context reference of IBS1 and it still supports IBS context that is on port 443. It seems to me that Tomcat 5 is still internally checking for the contexts somewhere else other than the server.xml file. If we can disable that then it should work fine. Can I know from where the Tomcat is reading the default context? So that I can disable them? or if there is any better solution to this please help me out. Thank you, Best Regards, Uma Parsons Technical Services To parsonstechnical @earthlink.net Tomcat Users List [EMAIL PROTECTED] 03/30/2004 06:58 cc PM Please respond to Tomcat Users List Subject [EMAIL PROTECTED] Re: Configuring Tomcat on different rta.apache.org IP's Uma, This has moved beyond my experiance. Other than experimenting or diving into the source what I suggest now is to reply to this post and edit the subject line to read: Two service on one Tomcat instance.[Was Re: Configuring Tomcat on different IP's] In the hope that someone with more information will respond. You may try google with a search based on tomcat and two or multiple service. Sorry I ran out of ideas. Doug - Original Message - From: [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, March 29, 2004 11:50 PM Subject: Re: Configuring Tomcat on different IP's Doug, I fogot to tell you that the first context has only one .jsp file. Here is the content of that index.jsp file % response.sendRedirect(https://172.27.2.246/IBS/Login.jsp;); % Thanks Uma - 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]
What is the use of this connector
Hi, May I know the exact use of this connector. What happens if I remove this? !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -- Connector port=8009 enableLookups=false redirectPort=443 debug=0 protocol=AJP/1.3 / Thank you, Best Regards, Uma - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Change default Context
Hi, I need to change the default context that is used by Tomcat 5 from ROOT to IBS1. i.e when I type http://localhost it should go to http://localhost/IBS1. Any ideas where to modify this? Thank you, Best Regards, Uma - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: What is the use of this connector
Bill, So, if the Tomcat doesn't talk to Apache/IIS/etc.. there is no need of this connector? Thank you, Best Regards, Uma Bill Barker [EMAIL PROTECTED] .com To Sent by: news [EMAIL PROTECTED] [EMAIL PROTECTED] rgcc 03/31/2004 12:52 PM Subject Please respond to Re: What is the use of this Tomcat Users connector List [EMAIL PROTECTED] rta.apache.org [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, May I know the exact use of this connector. What happens if I remove this? You'll no longer be able to talk to Apache/IIS/SunOne using mod_jk :). !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -- Connector port=8009 enableLookups=false redirectPort=443 debug=0 protocol=AJP/1.3 / Thank you, Best Regards, Uma - 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: Configuring Tomcat on different IP's
Doug, Here I am pasting my server.xml file, Please correct me if I am wrong anywhere or do I need to add any more changes to the file. !-- Example Server Configuration File -- !-- Note that component elements are nested corresponding to their parent-child relationships with each other -- !-- A Server is a singleton element that represents the entire JVM, which may contain one or more Service instances. The Server listens for a shutdown command on the indicated port. Note: A Server is not itself a Container, so you may not define subcomponents such as Valves or Loggers at this level. -- Server port=8005 shutdown=SHUTDOWN debug=0 !-- Comment these entries out to disable JMX MBeans support -- !-- You may also configure custom components (e.g. Valves/Realms) by including your own mbean-descriptor file(s), and setting the descriptors attribute to point to a ';' seperated list of paths (in the ClassLoader sense) of files to add to the default list. e.g. descriptors=/com/myfirm/mypackage/mbean-descriptor.xml -- Listener className=org.apache.catalina.mbeans.ServerLifecycleListener debug=0/ Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener debug=0/ !-- Global JNDI resources -- GlobalNamingResources !-- Test entry for demonstration purposes -- Environment name=simpleValue type=java.lang.Integer value=30/ !-- Editable user database that can also be used by UserDatabaseRealm to authenticate users -- Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved /Resource ResourceParams name=UserDatabase parameter namefactory/name valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value /parameter parameter namepathname/name valueconf/tomcat-users.xml/value /parameter /ResourceParams /GlobalNamingResources !-- A Service is a collection of one or more Connectors that share a single Container (and therefore the web applications visible within that Container). Normally, that Container is an Engine, but this is not required. Note: A Service is not itself a Container, so you may not define subcomponents such as Valves or Loggers at this level. -- !-- Define the Tomcat Stand-Alone Service -- Service name=Catalina !-- Define a non-SSL Coyote HTTP/1.1 Connector on the port specified during installation -- Connector port=8080 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false redirectPort=443 acceptCount=100 debug=0 connectionTimeout=2 disableUploadTimeout=true address=192.68.xxx.xx2 / !-- Note : To disable connection timeouts, set connectionTimeout value to 0 -- !-- Note : To use gzip compression you could set the following properties : compression=on compressionMinSize=2048 noCompressionUserAgents=gozilla, traviata compressableMimeType=text/html,text/xml -- !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -- Connector port=8009 enableLookups=false redirectPort=8443 debug=0 protocol=AJP/1.3 / !-- Define a Proxied HTTP/1.1 Connector on port 8082 -- !-- See proxy documentation for more information about using this. -- !-- Connector port=8082 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false acceptCount=100 debug=0 connectionTimeout=2 proxyPort=80 disableUploadTimeout=true / -- !-- An Engine represents the entry point (within Catalina) that processes every request. The Engine implementation for Tomcat stand alone analyzes the HTTP headers included with the request, and passes them on to the appropriate Host (virtual host). -- !-- You should set jvmRoute to support load-balancing via JK/JK2 ie : Engine name=Standalone defaultHost=localhost debug=0 jvmRoute=jvm1 -- !-- Define the top level container in our container hierarchy -- Engine name=Catalina defaultHost=localhost debug=0 !-- The request dumper valve dumps useful debugging information about the request headers and cookies that were received, and the response headers and cookies that were sent, for all requests received by this instance of Tomcat. If you care only about requests to a particular virtual host, or a particular application, nest this element inside the corresponding Host or Context entry instead. For a similar mechanism that is portable to all Servlet 2.4 containers, check
Re: Configuring Tomcat on different IP's
Doug, I am now testing it on my local machine. My network admin has provided me with this IP configuration Connection-specific DNS Suffix . : IP Address. . . . . . . . . . . . : 172.27.2.246 Subnet Mask . . . . . . . . . . . : 255.255.0.0 IP Address. . . . . . . . . . . . : 172.27.2.44 Subnet Mask . . . . . . . . . . . : 255.255.0.0 Default Gateway . . . . . . . . . : 172.27.1.59 I have added the context within the host tag of each service. I have changed the port from 8080 to 80 for the first service. When I type http://localhost it doesn't work. I am pasting the stdout.txt and the other two log files that are generated along with the server.xml file. Can you please have a look at it and correct me? There is an error in the stdout.txt. see these lines SEVERE: Error filterStart Mar 30, 2004 9:41:45 AM org.apache.catalina.core.StandardContext start SEVERE: Context startup failed due to previous errors ---STDOUT.TXT Mar 30, 2004 9:41:22 AM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on port 80 Mar 30, 2004 9:41:24 AM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on port 443 Mar 30, 2004 9:41:24 AM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 6269 ms Mar 30, 2004 9:41:25 AM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Mar 30, 2004 9:41:25 AM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.0.19 Mar 30, 2004 9:41:25 AM org.apache.catalina.core.StandardHost start INFO: XML validation disabled Mar 30, 2004 9:41:26 AM org.apache.catalina.core.StandardHost getDeployer INFO: Create Host deployer for direct deployment ( non-jmx ) Mar 30, 2004 9:41:26 AM org.apache.catalina.core.StandardHostDeployer install INFO: Processing Context configuration file URL file:E:\Tomcat 5.0 \conf\Catalina\localhost\admin.xml Mar 30, 2004 9:41:27 AM org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true Mar 30, 2004 9:41:27 AM org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNull=true Mar 30, 2004 9:41:29 AM org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources', returnNull=true Mar 30, 2004 9:41:35 AM org.apache.catalina.core.StandardHostDeployer install INFO: Processing Context configuration file URL file:E:\Tomcat 5.0 \conf\Catalina\localhost\balancer.xml Mar 30, 2004 9:41:35 AM org.apache.catalina.core.StandardHostDeployer install INFO: Processing Context configuration file URL file:E:\Tomcat 5.0 \conf\Catalina\localhost\manager.xml Mar 30, 2004 9:41:36 AM org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path /IBS from URL file:E:\Tomcat 5.0\webapps\IBS Mar 30, 2004 9:41:36 AM org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path /IBS1 from URL file:E:\Tomcat 5.0\webapps\IBS1 Mar 30, 2004 9:41:36 AM org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path /jsp-examples from URL file:E:\Tomcat 5.0\webapps\jsp-examples Mar 30, 2004 9:41:37 AM org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path /servlets-examples from URL file:E:\Tomcat 5.0\webapps\servlets-examples Mar 30, 2004 9:41:38 AM org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path /struts from URL file:E:\Tomcat 5.0\webapps\struts Mar 30, 2004 9:41:38 AM org.apache.catalina.startup.ContextConfig applicationConfig INFO: Missing application web.xml, using defaults only StandardEngine[Catalina].StandardHost[localhost].StandardContext[/struts] Mar 30, 2004 9:41:38 AM org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path /TEST from URL file:E:\Tomcat 5.0\webapps\TEST Mar 30, 2004 9:41:38 AM org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path /test1 from URL file:E:\Tomcat 5.0\webapps\test1 Mar 30, 2004 9:41:38 AM org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path /tomcat-docs from URL file:E:\Tomcat 5.0\webapps\tomcat-docs Mar 30, 2004 9:41:39 AM org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path /webdav from URL file:E:\Tomcat 5.0\webapps\webdav Mar 30, 2004 9:41:39 AM org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path /workwear from URL file:E:\Tomcat 5.0\webapps\workwear Mar 30, 2004 9:41:39 AM org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path /workwear1 from URL file:E:\Tomcat
Re: Configuring Tomcat on different IP's
Doug, I fogot to tell you that the first context has only one .jsp file. Here is the content of that index.jsp file % response.sendRedirect(https://172.27.2.246/IBS/Login.jsp;); % Thanks Uma - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Configuring Tomcat on different IP's
Hi, My Tomcat 5.0.19 configuration is typical. I have got 2 IP addresses (202.200.xxx.xx1 and 202.200.xxx.xx2) which are pointing to 2 internal IP addresses (192.68.xxx.xx1 and 192.68.xxx.xx2) I have registered one domain name (www.mysite.com). The entire site should work only on https:// I need to configure this domain in such a way that the first IP address (202.200.xxx.xx1) will have only one page(dummy jsp page that will fwd to https home page of the site) and this IP address will accept only 80 port. The second IP address (202.200.xxx.xx2) will server only 443 requests. And the pages that are accessed in https should not be accessed by http protocol. I understand that I need to create 2 contexts and place the dummy jsp page in one context and the rest of the files in the 2nd context. But how do I configure that the first context should work only on 80 and the second context should work only on 443 port? Any help would be great. Thanks Uma - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Configuring Tomcat on different IP's
Doug, Thanks for the reply. It is just for security reasons out network administrator has planned to do. So, I need to configure as such. I have made the settings in the code to see if the user is using http or https and block the user from using http. But there should be some way of doing this, right? Thank you, Best Regards, Uma Parsons Technical Services To parsonstechnical @earthlink.net Tomcat Users List [EMAIL PROTECTED] 03/29/2004 11:23 cc AM Please respond to Tomcat Users List Subject [EMAIL PROTECTED] Re: Configuring Tomcat on different rta.apache.org IP's Uma, First don't take this wrong but I got to ask Why? Someone with more knowledge will have to chime in to say if this can be done. But if the goal is to send all request for http://www.mysite.com to https://www.mysite.com then Tomcat can do this for you. And without two IPs. For details see; http://marc.theaimsgroup.com/?l=tomcat-userm=104951559722619w=2 If you have some special reason for the two IPs then, never mind Doug www.parsonstechnical.com - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, March 28, 2004 11:23 PM Subject: Configuring Tomcat on different IP's Hi, My Tomcat 5.0.19 configuration is typical. I have got 2 IP addresses (202.200.xxx.xx1 and 202.200.xxx.xx2) which are pointing to 2 internal IP addresses (192.68.xxx.xx1 and 192.68.xxx.xx2) I have registered one domain name (www.mysite.com). The entire site should work only on https:// I need to configure this domain in such a way that the first IP address (202.200.xxx.xx1) will have only one page(dummy jsp page that will fwd to https home page of the site) and this IP address will accept only 80 port. The second IP address (202.200.xxx.xx2) will server only 443 requests. And the pages that are accessed in https should not be accessed by http protocol. I understand that I need to create 2 contexts and place the dummy jsp page in one context and the rest of the files in the 2nd context. But how do I configure that the first context should work only on 80 and the second context should work only on 443 port? Any help would be great. Thanks Uma - 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: Configuring Tomcat on different IP's
Doug, There will be only one site running in the server, so there wont be much problems. I never created a connector. Can you help me out with this? Any sample .xml file would be helpful. Thank you, Best Regards, Uma Parsons Technical Services To parsonstechnical @earthlink.net Tomcat Users List [EMAIL PROTECTED] 03/29/2004 11:49 cc AM Please respond to Tomcat Users List Subject [EMAIL PROTECTED] Re: Configuring Tomcat on different rta.apache.org IP's Uma, I think this will do what you want. For each connector defined, one for http and one for https use the address attribute to specify the IP to listen on. So in the https connector use address=192.68.xxx.xx1 and Tomcat will listen on 192.68.xxx.xx1 for only https request. On the http connector use address=192.68.xxx.xx2 and Tomcat will listen only for http request on 192.68.xxx.xx2 . Remember this affect all applications running on this instance of Tomcat. See this for details: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/http.html Doug - Original Message - From: [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, March 28, 2004 11:58 PM Subject: Re: Configuring Tomcat on different IP's Doug, Thanks for the reply. It is just for security reasons out network administrator has planned to do. So, I need to configure as such. I have made the settings in the code to see if the user is using http or https and block the user from using http. But there should be some way of doing this, right? Thank you, Best Regards, Uma Parsons Technical Services To parsonstechnical @earthlink.net Tomcat Users List [EMAIL PROTECTED] 03/29/2004 11:23 cc AM Please respond to Tomcat Users List Subject [EMAIL PROTECTED] Re: Configuring Tomcat on different rta.apache.org IP's Uma, First don't take this wrong but I got to ask Why? Someone with more knowledge will have to chime in to say if this can be done. But if the goal is to send all request for http://www.mysite.com to https://www.mysite.com then Tomcat can do this for you. And without two IPs. For details see; http://marc.theaimsgroup.com/?l=tomcat-userm=104951559722619w=2 If you have some special reason for the two IPs then, never mind Doug www.parsonstechnical.com - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, March 28, 2004 11:23 PM Subject: Configuring Tomcat on different IP's Hi, My Tomcat 5.0.19 configuration is typical. I have got 2 IP addresses (202.200.xxx.xx1 and 202.200.xxx.xx2) which are pointing to 2 internal IP addresses (192.68.xxx.xx1 and 192.68.xxx.xx2) I have registered one domain name (www.mysite.com). The entire site should work only on https:// I need to configure this domain in such a way that the first IP address (202.200.xxx.xx1) will have only one page(dummy jsp page that will fwd to https home page of the site) and this IP address will accept only 80 port. The second IP address (202.200.xxx.xx2) will server only 443 requests. And the pages that are accessed in https should not be accessed by http protocol. I understand that I need to create 2 contexts and place the dummy jsp page in one context and the rest of the files in the 2nd context. But how do I configure that the
Re: Configuring Tomcat on different IP's
I am using Tomcat 5.0.19 and using context tag within the server.xml file is not recommended. Do you still want me try with this one? Thank you, Best Regards, Uma Parsons Technical Services To parsonstechnical @earthlink.net Tomcat Users List [EMAIL PROTECTED] 03/29/2004 12:31 cc PM Please respond to Tomcat Users List Subject [EMAIL PROTECTED] Re: Configuring Tomcat on different rta.apache.org IP's Okay to continue, In the Server element you can declare two services. In one service you would have the connector for the http and the context for your application. Note unless someone can tell me how to control which service a context is associate you will have to put your context in the server.xml. In the other sevice you will declare the https and the other context. Now for clarification I have NOT done this before and am basing it on what I read from the config documentaion. If you look in the server.xml file you will find the connector declaration for the http. If you have NOT used the admin application, you will also find the connector for the https but it will be commented out !---- . To try this first make a copy of the server.xml. Next copy and paste the service section from start tag service to finish tag /service and paste it right after the service finish tag. In the second service tag you will need to change the name on the service and maybe the engine. Then comment out the http connector and uncomment the https connector. Add the address= to each connector. Add the context for your applications in the appropriate service. Restart tomcat and see what the logs say. Again, I have never done this. But the configuration docs say: Quote The following components may be nested inside a Server element: Service - One or more service element. GlobalNamingResources - Configure the JNDI global resources for the server. Unquote So having two services is okay. Now can someone tell me which service an application will be associated with if you use the context.xml in the app? Give it a try and read up on the docs at: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/server.html Good luck. Doug - Original Message - From: Parsons Technical Services [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, March 29, 2004 1:26 AM Subject: Re: Configuring Tomcat on different IP's Clicked too fast. There is more to come... - Original Message - From: Parsons Technical Services [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, March 29, 2004 1:19 AM Subject: Re: Configuring Tomcat on different IP's Uma, I think this will do what you want. For each connector defined, one for http and one for https use the address attribute to specify the IP to listen on. So in the https connector use address=192.68.xxx.xx1 and Tomcat will listen on 192.68.xxx.xx1 for only https request. On the http connector use address=192.68.xxx.xx2 and Tomcat will listen only for http request on 192.68.xxx.xx2 . Remember this affect all applications running on this instance of Tomcat. See this for details: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/http.html Doug - Original Message - From: [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, March 28, 2004 11:58 PM Subject: Re: Configuring Tomcat on different IP's Doug, Thanks for the reply. It is just for security reasons out network administrator has planned to do. So, I need to configure as such. I
Re: Configuring Tomcat on different IP's
Doug, Can you look at this server.xml file to see if I have done everything correct? (See attached file: server.xml) Thank you, Best Regards, Uma Parsons Technical Services To parsonstechnical @earthlink.net Tomcat Users List [EMAIL PROTECTED] 03/29/2004 12:31 cc PM Please respond to Tomcat Users List Subject [EMAIL PROTECTED] Re: Configuring Tomcat on different rta.apache.org IP's Okay to continue, In the Server element you can declare two services. In one service you would have the connector for the http and the context for your application. Note unless someone can tell me how to control which service a context is associate you will have to put your context in the server.xml. In the other sevice you will declare the https and the other context. Now for clarification I have NOT done this before and am basing it on what I read from the config documentaion. If you look in the server.xml file you will find the connector declaration for the http. If you have NOT used the admin application, you will also find the connector for the https but it will be commented out !---- . To try this first make a copy of the server.xml. Next copy and paste the service section from start tag service to finish tag /service and paste it right after the service finish tag. In the second service tag you will need to change the name on the service and maybe the engine. Then comment out the http connector and uncomment the https connector. Add the address= to each connector. Add the context for your applications in the appropriate service. Restart tomcat and see what the logs say. Again, I have never done this. But the configuration docs say: Quote The following components may be nested inside a Server element: Service - One or more service element. GlobalNamingResources - Configure the JNDI global resources for the server. Unquote So having two services is okay. Now can someone tell me which service an application will be associated with if you use the context.xml in the app? Give it a try and read up on the docs at: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/server.html Good luck. Doug - Original Message - From: Parsons Technical Services [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, March 29, 2004 1:26 AM Subject: Re: Configuring Tomcat on different IP's Clicked too fast. There is more to come... - Original Message - From: Parsons Technical Services [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, March 29, 2004 1:19 AM Subject: Re: Configuring Tomcat on different IP's Uma, I think this will do what you want. For each connector defined, one for http and one for https use the address attribute to specify the IP to listen on. So in the https connector use address=192.68.xxx.xx1 and Tomcat will listen on 192.68.xxx.xx1 for only https request. On the http connector use address=192.68.xxx.xx2 and Tomcat will listen only for http request on 192.68.xxx.xx2 . Remember this affect all applications running on this instance of Tomcat. See this for details: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/http.html Doug - Original Message - From: [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, March 28, 2004 11:58 PM Subject: Re: Configuring Tomcat on different IP's Doug, Thanks for the reply. It is just for security reasons out network administrator has planned to do. So, I need to configure as such. I have made the
Re: web.xml Welcome -file and for SSL
Hi Forte, I am also having similar type of problem. When the user types http://www.mysite.com it should first go to the default .html page (that is using 80 port) that I have set in the welcome-file-list in web.xml file. Its working fine. But once the user logs in from the home page, he should then be redirected to https://www.mysite.com/Welcome.jsp (using 443 port). See the port difference. I do not know where to set the redirection. or should I hard code this settings in my .jsp file itself? Thank you, Best Regards, Uma Forte, Graham [EMAIL PROTECTED] .com To 03/16/2004 06:50 'Tomcat Users List' PM[EMAIL PROTECTED] cc Please respond to Tomcat Users List [EMAIL PROTECTED] rta.apache.org Subject web.xml Welcome -file and for SSL Hello, I am wondering if it is possible to specify a Welcome-file for an https request. If I am using port 443 how can I configure Tomcat 4.1 so that when the user types in https://myIPAddress or https://myDomainName they will be directed to https://myIPAddress/myFirstPage.jsp. Thanks, Graham PS I have the web.xml Welcome-file setup with: welcome-file-list welcome-filemyFirstPage.jsp/welcome-file /welcome-file-list Will this accomplish what I need to accomplish, or do I need to add something else. I cant test this out right now because I have all ports blocked except 8443. Thanks!! - 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: OutOfMemoryError
Hi, I do I control it instead of viewing my memory usage? Thank you, Best Regards, Uma - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HTTPS on Tomcat
Can you give me a sample web.xml file that can help me out please? Thank you, Best Regards, Uma Keshav Sarin [EMAIL PROTECTED] it.comTo 03/12/2004 11:28 [EMAIL PROTECTED] PM cc Please respond to Tomcat Users List [EMAIL PROTECTED] Subject rta.apache.org Re: HTTPS on Tomcat You need to change the security constraint settings in the web.xml of the application that needs redirection. Read the web.xml DTD for more information. [EMAIL PROTECTED] 03/11/04 07:37PM Hi, I wanted to have the default page running on 80 port and when the user logs in, I need him to be in 443 port. I have made all the settings but I need a clarification on how to redirect the user who has logged in using 80 port to 443 port. How is this generally handled in realtime. Do I need 2 instances of the tomcat running? If so how? Thank you, Best Regards, Uma - 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]
OutOfMemoryError
Hi, I am getting the following error message when I have accessed Tomcat for more than 2 days without shutting it down. I am using Tomcat 5.0.19 256 MB Ram Pentium III Win 2k Pro Mar 13, 2004 3:57:54 PM org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor processChildren SEVERE: Exception invoking periodic operation: java.lang.OutOfMemoryError Any help on how to solve the problem would be great. Do I need to create multiple instances of the server for load balancing? Thank you, Best Regards, Uma - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
HTTPS on Tomcat
Hi, I wanted to have the default page running on 80 port and when the user logs in, I need him to be in 443 port. I have made all the settings but I need a clarification on how to redirect the user who has logged in using 80 port to 443 port. How is this generally handled in realtime. Do I need 2 instances of the tomcat running? If so how? Thank you, Best Regards, Uma - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Why do I need to restart my server
Hi, Every time my database server connection goes down, I need to restart my Tomcat 5.0.19 to re-establish the connection. Why is this so? Is this a bug? Thank you, Best Regards, Uma - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Why do I need to restart my server
Hi Alex, Where shold I specify the parameters? i.e in which .xml file Thank you, Best Regards, Uma - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Why do I need to restart my server
Shapira, I am using my own connection pooling concenpt. The server isn't going down because of my query executions but due to some other reason. If incase it goes down, I need to restart my tomcat. This is a big problem for me. How can I prevent this. Will using the parameters tag in server.xml file solve the problem? Thank you, Best Regards, Uma - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Steps to follow for SSL
Hi, Can some one tell me what are the steps that I need to follow for installing SSL on Tomcat 5. I have already woked on creating a self cretified certificate and it works good. But when I purchase a certificate what are the steps that I need to do i.e importing the certificate and where to place it so that tomcat can recognize it, etc.. Thank you, Best Regards, Uma - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat not printing on console. (BUG ?)
Hi, I am using Tomcat 5.0.19. My Tomcat suddenly stopped printing the System.out.println statements in the consule. I checked out the log file too but it too dont have any of this. Is this a bug? Thank you, Best Regards, Uma - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Sharing common files between different contexts
Hi, I have 2 different contexts in my webapps folder and I wanted to share some of my files by both the contexts. I have placed them in the common folder but I dont get it to work. Can some one tell me if there is any thing required to configure? Thank you, Best Regards, Uma - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat on Win 2003 Server
Hi, Win Tomcat 5.0.19 work on Windows 2003 Advanced Server? Thank you, Best Regards, Uma - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat on Win 2003 Server
Hi, Thanks for the reply. Thank you, Best Regards, Uma - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat users
Hi Kannan, Thank you for your reply. May I know what kind of Hardware or Software configuration can improve the performance of Tomcat please? Thank you, Best Regards, Uma - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat users
Hello, I would like to know how many users can access Tomcat 5.0.19 per second. i.e I need to know the hit ratio. Can some one help me please? Thank you, Best Regards, Uma - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]