RE: query problem
i have checked all.. there is no other username i have put all the codes involved in the coding.. please point out the mistake .. html head title Staffing /title /head h1Add Staff/h1 body %@ page language=java import=java.sql.* % %! String con_url = jdbc:mysql:///AAAServer?user=tjcpassword=password; Connection c; Statement stmt1; String username,password,AdminName; % % try { Class.forName(com.mysql.jdbc.Driver).newInstance(); } catch (Exception E) { System.err.println(CONCEPT: Unable to Load Driver ); E.printStackTrace(); } % table border=0 cellpadding=10 tr % // System.out.println(Connecting...); c = DriverManager.getConnection(con_url); // System.out.println(Connection ok: + c); stmt1 = c.createStatement(); % thUserName/th td form input type=text name=username1 size=8 % username = request.getParameter(username1); % /form /td /tr tr thName/th td form input type=text name=AdminName size=12 /form /td /tr tr thPassword/th td form input type=password name=password size=8 input type=submit name=Add value=AddStaff /form /td /tr /table /body /html % String submit1 = request.getParameter(Add); if(submit1 == null) { } else { password = request.getParameter(password); AdminName = request.getParameter(AdminName); String query7 = Insert into Admin(UserName,PassWord,Admin_type,Admin_Name) values('+username+','+password+', 'Staff','+AdminName+'); stmt1.executeUpdate(query7); stmt1.close(); } % - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: query problem
Hello, Are you sure you don't have another filed name=username somewhere else in your jsp code ? Lau/ -Message d'origine- De : ganesan malairaja [mailto:[EMAIL PROTECTED] Envoyé : lundi 8 août 2005 06:28 À : tomcat-user@jakarta.apache.org Objet : query problem i am extracting info from html forms .. but one of the field allways return the value null only html code form input type=text name=username size=8 /form jsp code String username = request.getParameter(username); SQL codes; String query7 = Insert into Admin(UserName,PassWord,Admin_type,Admin_Name) values('+username+','+password+', 'Staff','+AdminName+'); it returns the username as null i cant figure out what is the problem .. any links or example how to do it properly will help thanks stmt1.executeUpdate(query7); stmt1.close(); - 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: Query on catalina.bat of Tomcat 5.0.28
On Apr 1, 2005 2:11 PM, Lakshmi Narayanan K. [EMAIL PROTECTED] wrote: Hi All, In the file catalina.bat, the following lines of code are present: echo Using CATALINA_BASE: %CATALINA_BASE% echo Using CATALINA_HOME: %CATALINA_HOME% echo Using CATALINA_TMPDIR: %CATALINA_TMPDIR% echo Using JAVA_HOME: %JAVA_HOME% set _EXECJAVA=%_RUNJAVA% My question here is, who / wherefrom is the value of _RUNJAVA being set/obtained? I noticed that shutdown.bat file calls catalina.bat file with stop option. I am facing a problem with the execution of the same. When I executed shutdown.bat via the command prompt, the value of _RUNJAVA gets set to the value of the proper java that is present in JAVA_HOME. But when I am executed the same shutdown.bat script from within our product application, the value _RUNJAVA isn't getting set as expected. Because of this, tomcat shutdown is not getting called, hence tomcat never stops when I try to stop it via our application. Any ideas??? - Lakshmi Narayanan K. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] There may be an environment variable set JAVA_HOME that is causing trouble. Look at setclasspath.bat to what _RUNJAVA points to. -- Benchmark Softech www.benchmarksoft.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Query on mod_jk.log
in your mod_jk.conf : JkLogFile /var/log/apache/mod_jk.log On Thu, 10 Mar 2005 11:58:03 +0530 [EMAIL PROTECTED] wrote: Hi All, I need to change the location of mod_jk.log file. Presently it gets logged in /apache/logs. I need to put it in /var/log/apache. How to accomplish this? Thanks and Regards, Mandar M Kelvekar Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Query on mod_jk.log
JkLogFile -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: March 10, 2005 1:28 AM To: tomcat-user@jakarta.apache.org Subject: Query on mod_jk.log Hi All, I need to change the location of mod_jk.log file. Presently it gets logged in /apache/logs. I need to put it in /var/log/apache. How to accomplish this? Thanks and Regards, Mandar M Kelvekar Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:422fe96e132135474820448!
RE: Query on changing the path for catalina.out
The location of the catalina.out log file is not controlled from server.xml. This is other log files. Look in catalina.sh for $CATALINA_BASE/logs/catalina.out 21 and change that, to change the location of catalina.out. Ta Matt -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 09 March 2005 12:04 To: tomcat-user@jakarta.apache.org Subject: Query on changing the path for catalina.out Hi, I need to change the default location of Catalina.out log file. So I modified the server.xml file in the conf dir in the following way: !-- Global logger unless overridden at lower levels -- Logger className=3Dorg.apache.catalina.logger.FileLogger directory=3D/var/log/tomcat prefix=3Dcatalina_log. suffix=3D.txt timestamp=3Dtrue/ But inspite of doing this my catalina.out is gets logged in CATALINA_BASE/logs/ directory. There are two scripts in tomcat/bin/ directory catalina.sh and Catalina.50.sh which are doing a= touch $CATALINA_BASE/logs/catalina.out So are my changes made in the server.xml are getting overridden by these Scripts? If yes, please let me know a way to handle this. Your inputs will be extremely helpful for me. Thanks and Regards, Mandar M Kelvekar Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Query on changing the path for catalina.out
Thanks Dave, Is there any other way of doing this as in my environment, I cannot modify those files as I do not have permission for changing them. Thanks and Regards, Mandar M Kelvekar -Original Message- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 09, 2005 5:41 PM To: Tomcat Users List Subject: RE: Query on changing the path for catalina.out The location of the catalina.out log file is not controlled from server.xml. This is other log files. Look in catalina.sh for $CATALINA_BASE/logs/catalina.out 21 and change that, to change the location of catalina.out. Ta Matt -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 09 March 2005 12:04 To: tomcat-user@jakarta.apache.org Subject: Query on changing the path for catalina.out Hi, I need to change the default location of Catalina.out log file. So I modified the server.xml file in the conf dir in the following way: !-- Global logger unless overridden at lower levels -- Logger className=3Dorg.apache.catalina.logger.FileLogger directory=3D/var/log/tomcat prefix=3Dcatalina_log. suffix=3D.txt timestamp=3Dtrue/ But inspite of doing this my catalina.out is gets logged in CATALINA_BASE/logs/ directory. There are two scripts in tomcat/bin/ directory catalina.sh and Catalina.50.sh which are doing a= touch $CATALINA_BASE/logs/catalina.out So are my changes made in the server.xml are getting overridden by these Scripts? If yes, please let me know a way to handle this. Your inputs will be extremely helpful for me. Thanks and Regards, Mandar M Kelvekar Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Query on Upgrade of tomcat 4.0.6 to 5.0.x
Murthy Tetali wrote: Hi, We would like to upgrade our production Tomcat Server from 4.0.6 to 5.0.x Our application is higly multi-threaded, having 2000 concurrent users. This Application is running on tomcat 4.0.6 from last 2 years without any problem. I will be looking forward for your recommendation/suggestions for more stable tomcat 5.0.x version and is appreciated. Thanks Regards Satish - Do you Yahoo!? Dress up your holiday email, Hollywood style. Learn more. Well, If I wasn't having any problems,and I did not have any real reason to upgrade then I would stay confortably where I am at. If, however, you are doing this because you want to move up in the servlet spec or jsp spec, and have been planning on doing so then I would go ahead and move to 5.0.28 or .29. I've been using 5.0.28 for a while now without having any issues. I've been happy with it. Of course I go by the adage: If it isn't broken don't fix it. So, if I didn't have any better reason to upgrade tomcat other than it's a newer version and I have been running happily for 2 years.I would stay right where I'm at. Wade - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Query on Upgrade of tomcat 4.0.6 to 5.0.x
Hi Wade, Thank You. Your opinion will be good input for me. The reason for upgradation is, we would like upgrade the specs and as well want to take the advantage of JMX support. Thank Regards Murthy Tetali Wade Chandler [EMAIL PROTECTED] wrote: Murthy Tetali wrote: Hi, We would like to upgrade our production Tomcat Server from 4.0.6 to 5.0.x Our application is higly multi-threaded, having 2000 concurrent users. This Application is running on tomcat 4.0.6 from last 2 years without any problem. I will be looking forward for your recommendation/suggestions for more stable tomcat 5.0.x version and is appreciated. Thanks Regards Satish - Do you Yahoo!? Dress up your holiday email, Hollywood style. Learn more. Well, If I wasn't having any problems,and I did not have any real reason to upgrade then I would stay confortably where I am at. If, however, you are doing this because you want to move up in the servlet spec or jsp spec, and have been planning on doing so then I would go ahead and move to 5.0.28 or .29. I've been using 5.0.28 for a while now without having any issues. I've been happy with it. Of course I go by the adage: If it isn't broken don't fix it. So, if I didn't have any better reason to upgrade tomcat other than it's a newer version and I have been running happily for 2 years.I would stay right where I'm at. Wade - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Yahoo! Mail - Helps protect you from nasty viruses.
RE: Query with 404 error processing -- Tomcat 5.0.19
Enable (comment in) the AccessLogValve in your server.xml. That way you will be able to see exactly what requested URLs result in 404s. The file is enabled and nope -- I'm not seeing any 404 errors. Yoav Shapira http://www.yoavshapira.com What confuses me is why I get a ClassCastException? This must (I assume :) be in the server.xml file. However, that's the standard one that came with Tomcat. I've tried to look at that but I can't find any clues to link the servlet service() error below to anything in that file. If it helps the full Java error stack is: 2004-12-14 21:45:30 StandardContext[/manager]Manager: restart: Reloading web application at '/Server' 2004-12-14 22:03:51 ApplicationDispatcher[/Server] Servlet.service() for servlet default threw exception java.lang.ClassCastException at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:182) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:233) 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:512) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:445) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:359) at org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:440) at org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:345) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:194) 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.valves.AccessLogValve.invoke(AccessLogValve.java:578) 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:534) 2004-12-14 22:03:51 [EMAIL PROTECTED]: Exception Processing ErrorPage[errorCode=404, location=/404.html] java.lang.ClassCastException at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:182) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:233) 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:512) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:445) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:359) at org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:440) at org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:345) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:194) 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.valves.AccessLogValve.invoke(AccessLogValve.java:578) 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
RE: Query with 404 error processing -- Tomcat 5.0.19
Hi, Because this processing servlet of yours itself had an error. A JSP file by default is processed by Tomcat's JSP servlet, not your Router servlet. Accordingly, it's not subject to your custom error handling mechanism. A more standard way to do this is declare an error-page for 404's in your web.xml, and/or an errorPage for the specific JSP page in the JSP page itself. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Jon Doe [mailto:[EMAIL PROTECTED] Sent: Sunday, December 12, 2004 7:58 PM To: [EMAIL PROTECTED] Subject: Query with 404 error processing -- Tomcat 5.0.19 Can someone please explain why I get the default Tomcat 404 error when a pages does not exist? I have a set of URLs that end with *.ext. These are all routed to a servlet called Router, and these all work fine. This servlet has catch-all at the end that displays an error message when an unknown *.ext is processed. That all works fine. However, when an unknown *.jsp file is processed I get the default Tomcat error: HTTP Status 404 - /unknown.jsp type Status report message /unknown.jsp description The requested resource (/unknown.jsp) is not available. Apache Tomcat/5.0.19 The error in the generates this output in the log file: 2004-12-13 00:40:10 ApplicationDispatcher[/Server] Servlet.service() for servlet default threw exception java.lang.ClassCastException at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorF ilte r.java:182) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic atio nFilterChain.java:233) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil terC hain.java:204) ... 2004-12-13 00:40:10 [EMAIL PROTECTED]: Exception Processing ErrorPage[errorCode=404, location=/404.html] java.lang.ClassCastException at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorF ilte r.java:182) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic atio nFilterChain.java:233) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil terC hain.java:204) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispat cher .java:750) at org.apache.catalina.core.ApplicationDispatcher.processRequest(Applicati onDi spatcher.java:512) ... Here is my web.xml file: ?xml version=1.0 encoding=UTF-8? !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 display-nameMy server/display-name servletservlet-nameRouter/servlet-name servlet-classcom.mycompany.Router/servlet-class /servlet servletservlet-nameInitServlet/servlet-name servlet-classcom.mycompany.InitServlet/servlet-class load-on-startup2/load-on-startup /servlet servlet-mappingservlet-nameInitServlet/servlet-name url-pattern/InitServlet/url-pattern /servlet-mapping !-- All URLs end .ext. These are processed by the front controller. -- servlet-mappingservlet-nameRouter/servlet-name url-pattern*.ext/url-pattern /servlet-mapping session-configsession-timeout30/session-timeout/session-config welcome-file-listwelcome-fileindex.html/welcome-file /welcome-file-list error-pageerror-code404/error-code location/404.html/location /error-page /web-app And my 404.html file: html head /head body Error! /body /html Any help will be, as always, greatly appreciated. Joe. _ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Query with 404 error processing -- Tomcat 5.0.19
Hi, Because this processing servlet of yours itself had an error. A JSP file by default is processed by Tomcat's JSP servlet, not your Router servlet. Accordingly, it's not subject to your custom error handling mechanism. A more standard way to do this is declare an error-page for 404's in your web.xml, and/or an errorPage for the specific JSP page in the JSP page itself. Sorry, not sure I understand this. Is this not what I've done with this?: error-pageerror-code404/error-code location/404.html/location /error-page My understanding of how this works is that any URL that ends with the string '.ext' will be picked up by my Servlet. Any other URL ('.jpg', '.jsp' or whatever) will thus fall through this, and my Router servlet will not see it. It keeps falling to the error-page code above. Have you any sample code you would be kiind enough to paste? I'm obviously being thick here. :( Joe. Yoav Shapira http://www.yoavshapira.com Here is my web.xml file: ?xml version=1.0 encoding=UTF-8? !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 display-nameMy server/display-name servletservlet-nameRouter/servlet-name servlet-classcom.mycompany.Router/servlet-class /servlet servletservlet-nameInitServlet/servlet-name servlet-classcom.mycompany.InitServlet/servlet-class load-on-startup2/load-on-startup /servlet servlet-mappingservlet-nameInitServlet/servlet-name url-pattern/InitServlet/url-pattern /servlet-mapping !-- All URLs end .ext. These are processed by the front controller. -- servlet-mappingservlet-nameRouter/servlet-name url-pattern*.ext/url-pattern /servlet-mapping session-configsession-timeout30/session-timeout/session-config welcome-file-listwelcome-fileindex.html/welcome-file /welcome-file-list error-pageerror-code404/error-code location/404.html/location /error-page /web-app _ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Query with 404 error processing -- Tomcat 5.0.19
Hi, Sorry, not sure I understand this. Is this not what I've done with this?: error-pageerror-code404/error-code location/404.html/location /error-page Yeah, that is what you've done. I didn't read your original web.xml carefully enough it seems ;) My understanding of how this works is that any URL that ends with the string '.ext' will be picked up by my Servlet. Any other URL ('.jpg', '.jsp' or whatever) will thus fall through this, and my Router servlet will not see it. It keeps falling to the error-page code above. That understanding is correct. Enable (comment in) the AccessLogValve in your server.xml. That way you will be able to see exactly what requested URLs result in 404s. Yoav Shapira http://www.yoavshapira.com This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Query: How to auto-recover from a W2K power bounce ...
register tomcat as a service i do use it that way and is pretty bullet proof... the installer does that for you Hensley, Doug escribió: I have a 3rd party app running on W2K Server supported by Tomcat 5.0.27 J2SDK 1.4.2_05. I want to set up the box so that Java Tomcat auto-recover if the box is inadvertently bounced. The batch file which I wrote to establish environmental variables start Tomcat (to build the server debug the app) works fine manually but when I define a W2K Started Task bounce the box, it does not fire. I have the task defined under the server's administrative logon ID. Any suggestions on a bullet proof autorecovery that is (hopefully) simple to set up? Thank you, DH Disclaimer: This electronic message, including any attachments, is confidential and intended solely for use of the intended recipient(s). This message may contain information that is privileged or otherwise protected from disclosure by applicable law. Any unauthorized disclosure, dissemination, use or reproduction is strictly prohibited. If you have received this message in error, please delete it and notify the sender immediately. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- John Villar Gerente de Proyectos Computadores Flor Hard Soft 2058 C.A. www.florhard.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Query: How to auto-recover from a W2K power bounce ...
John, thank you. Is there any issue with JAVA having to stabilize before Tomcat is started during an auto-recover? For instance, should there be a time delay? -Original Message- From: John Villar [mailto:[EMAIL PROTECTED] Sent: Thursday, September 02, 2004 3:32 PM To: Tomcat Users List Subject: Re: Query: How to auto-recover from a W2K power bounce ... register tomcat as a service i do use it that way and is pretty bullet proof... the installer does that for you Hensley, Doug escribió: I have a 3rd party app running on W2K Server supported by Tomcat 5.0.27 J2SDK 1.4.2_05. I want to set up the box so that Java Tomcat auto-recover if the box is inadvertently bounced. The batch file which I wrote to establish environmental variables start Tomcat (to build the server debug the app) works fine manually but when I define a W2K Started Task bounce the box, it does not fire. I have the task defined under the server's administrative logon ID. Any suggestions on a bullet proof autorecovery that is (hopefully) simple to set up? Thank you, DH Disclaimer: This electronic message, including any attachments, is confidential and intended solely for use of the intended recipient(s). This message may contain information that is privileged or otherwise protected from disclosure by applicable law. Any unauthorized disclosure, dissemination, use or reproduction is strictly prohibited. If you have received this message in error, please delete it and notify the sender immediately. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- John Villar Gerente de Proyectos Computadores Flor Hard Soft 2058 C.A. www.florhard.com Disclaimer: This electronic message, including any attachments, is confidential and intended solely for use of the intended recipient(s). This message may contain information that is privileged or otherwise protected from disclosure by applicable law. Any unauthorized disclosure, dissemination, use or reproduction is strictly prohibited. If you have received this message in error, please delete it and notify the sender immediately. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Query: How to auto-recover from a W2K power bounce ...
No... just the normal W2K recover procedure... Java is just another app running on your server. Hensley, Doug escribió: John, thank you. Is there any issue with JAVA having to stabilize before Tomcat is started during an auto-recover? For instance, should there be a time delay? -Original Message- From: John Villar [mailto:[EMAIL PROTECTED] Sent: Thursday, September 02, 2004 3:32 PM To: Tomcat Users List Subject: Re: Query: How to auto-recover from a W2K power bounce ... register tomcat as a service i do use it that way and is pretty bullet proof... the installer does that for you Hensley, Doug escribió: I have a 3rd party app running on W2K Server supported by Tomcat 5.0.27 J2SDK 1.4.2_05. I want to set up the box so that Java Tomcat auto-recover if the box is inadvertently bounced. The batch file which I wrote to establish environmental variables start Tomcat (to build the server debug the app) works fine manually but when I define a W2K Started Task bounce the box, it does not fire. I have the task defined under the server's administrative logon ID. Any suggestions on a bullet proof autorecovery that is (hopefully) simple to set up? Thank you, DH Disclaimer: This electronic message, including any attachments, is confidential and intended solely for use of the intended recipient(s). This message may contain information that is privileged or otherwise protected from disclosure by applicable law. Any unauthorized disclosure, dissemination, use or reproduction is strictly prohibited. If you have received this message in error, please delete it and notify the sender immediately. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- John Villar Gerente de Proyectos Computadores Flor Hard Soft 2058 C.A. www.florhard.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: (Query)Running Program on Tomcat
Are you saying you have /webapps /greetings web.xml whatever.class index.html for your file structure? Wendell Holmes -Original Message- From: mohit agarwal [mailto:[EMAIL PROTECTED] Sent: Friday, April 09, 2004 7:12 AM To: [EMAIL PROTECTED] Subject: (Query)Running Program on Tomcat Hello, Please help me come out of this problem. The environment i m having is: Operating System - Windows XP J2sdk1.4.2_04 Tomcat 5.0.19 I am able to compile my servlet program, but when it comes to running it i got the HTTP Status Error 404 which points to file not found. I came to that i need to do some configuration settings. Asper the info i had uncommented both the Servlet and the Servlet -Mapping for the invoker servlet which are commented out in this version. I was hope ful that the program would run biut it still shown the same error. The entire program consisting of index.html , the .class file and the web.xml is contained in the greeting folder which is placed inside the webapps folder.. Try to point the solution to my problem.Moreover tell me if for JSP also i need to do some configuration settings. Regards, mohit Yahoo! India Matrimony: Find your partner online. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: (Query)Running Program on Tomcat
Hi, What is your servlet's mapping and what is the URL you're using to access the servlet? Do you have any errors in your logs? You don't need to map JSPs pages, the JSP servlet automagically handles that for you. Yoav Shapira Millennium Research Informatics -Original Message- From: mohit agarwal [mailto:[EMAIL PROTECTED] Sent: Friday, April 09, 2004 9:12 AM To: [EMAIL PROTECTED] Subject: (Query)Running Program on Tomcat Hello, Please help me come out of this problem. The environment i m having is: Operating System - Windows XP J2sdk1.4.2_04 Tomcat 5.0.19 I am able to compile my servlet program, but when it comes to running it i got the HTTP Status Error 404 which points to file not found. I came to that i need to do some configuration settings. Asper the info i had uncommented both the Servlet and the Servlet -Mapping for the invoker servlet which are commented out in this version. I was hope ful that the program would run biut it still shown the same error. The entire program consisting of index.html , the .class file and the web.xml is contained in the greeting folder which is placed inside the webapps folder.. Try to point the solution to my problem.Moreover tell me if for JSP also i need to do some configuration settings. Regards, mohit Yahoo! India Matrimony: Find your partner online. This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Query..
http://mirrors.midco.net/pub/apache.org/jakarta/tomcat-connectors/ Antony Paul - Original Message - From: Krishna Kumar [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, November 18, 2003 10:53 AM Subject: Query.. Hi, Can u please send me the link to download isapi_redirect.dll Tx Reg Krishna - Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Query
Howdy, Please define what you mean by the jsp size. The size (in KB or lines of code) of the JSP file on disk? The size (in KB or lines of code) of the compiled servlet on disk? The amount of memory taken up by the servlet instance in the JVM? Yoav Shapira Millennium ChemInformatics -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 11, 2003 12:23 AM To: [EMAIL PROTECTED] Subject: Query Hi there, I want to know the jsp size while executing in tomcat. Please let me know it there are any settings/configurations to be done in tomcat. Regards, Milind - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Query on url-pattern element of web.xml file ??
Hi, First all thanks for your reply,can you please give me the link of archives so that I can serach there for my query. Regards Bikash --- Shapira, Yoav [EMAIL PROTECTED] wrote: Howdy, Senor Wingfield pointed you at the right (and definitive) resource on this already. I just wanted to mention this EXACT question (complete with the /*.jsp mapping) has been asked on the list before, so you can search the archives if you'd like. Yoav Shapira Millennium ChemInformatics -Original Message- From: Bikash Paul [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 7:05 AM To: [EMAIL PROTECTED] Subject: Query on url-pattern element of web.xml file ?? Hi all friends, If my web application's web.xml file contains this: filter-mapping filter-nameTest Filter/filter-name url-pattern/*.jsp/url-pattern /filter-mapping then the filter doesn't run when I invoke a JSP in the application's top-level directory. If I change the url-pattern to this: url-pattern*.jsp/url-pattern then the filter does run. Can any one please explain it why it is not working with /*.jsp.Iam little bit confused about url-pattern element of web.xml file.Can any one plz give me some tutorial link for this element so that I can clear my concept from there coz Iam also confused about url-pattern element in case of servlet-mapping.Any help will be highly appreciated. Regards Bikash __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Query on url-pattern element of web.xml file ??
The mail from this list is archived here: http://marc.theaimsgroup.com/?l=tomcat-user The specification is a much easier thing to work with though in my opinion. Andoni. - Original Message - From: Bikash Paul [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, September 18, 2003 8:26 AM Subject: RE: Query on url-pattern element of web.xml file ?? Hi, First all thanks for your reply,can you please give me the link of archives so that I can serach there for my query. Regards Bikash --- Shapira, Yoav [EMAIL PROTECTED] wrote: Howdy, Senor Wingfield pointed you at the right (and definitive) resource on this already. I just wanted to mention this EXACT question (complete with the /*.jsp mapping) has been asked on the list before, so you can search the archives if you'd like. Yoav Shapira Millennium ChemInformatics -Original Message- From: Bikash Paul [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 7:05 AM To: [EMAIL PROTECTED] Subject: Query on url-pattern element of web.xml file ?? Hi all friends, If my web application's web.xml file contains this: filter-mapping filter-nameTest Filter/filter-name url-pattern/*.jsp/url-pattern /filter-mapping then the filter doesn't run when I invoke a JSP in the application's top-level directory. If I change the url-pattern to this: url-pattern*.jsp/url-pattern then the filter does run. Can any one please explain it why it is not working with /*.jsp.Iam little bit confused about url-pattern element of web.xml file.Can any one plz give me some tutorial link for this element so that I can clear my concept from there coz Iam also confused about url-pattern element in case of servlet-mapping.Any help will be highly appreciated. Regards Bikash __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - 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: Query on url-pattern element of web.xml file ??
Read chapter 11 of the servlet 2.3 specification. It's all there. The spec is available from here: http://www.jcp.org/aboutJava/communityprocess/final/jsr053/ Bikash Paul wrote: Hi all friends, If my web application's web.xml file contains this: filter-mapping filter-nameTest Filter/filter-name url-pattern/*.jsp/url-pattern /filter-mapping then the filter doesn't run when I invoke a JSP in the application's top-level directory. If I change the url-pattern to this: url-pattern*.jsp/url-pattern then the filter does run. Can any one please explain it why it is not working with /*.jsp.Iam little bit confused about url-pattern element of web.xml file.Can any one plz give me some tutorial link for this element so that I can clear my concept from there coz Iam also confused about url-pattern element in case of servlet-mapping.Any help will be highly appreciated. Regards Bikash __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - 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: Query on url-pattern element of web.xml file ??
Howdy, Senor Wingfield pointed you at the right (and definitive) resource on this already. I just wanted to mention this EXACT question (complete with the /*.jsp mapping) has been asked on the list before, so you can search the archives if you'd like. Yoav Shapira Millennium ChemInformatics -Original Message- From: Bikash Paul [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 7:05 AM To: [EMAIL PROTECTED] Subject: Query on url-pattern element of web.xml file ?? Hi all friends, If my web application's web.xml file contains this: filter-mapping filter-nameTest Filter/filter-name url-pattern/*.jsp/url-pattern /filter-mapping then the filter doesn't run when I invoke a JSP in the application's top-level directory. If I change the url-pattern to this: url-pattern*.jsp/url-pattern then the filter does run. Can any one please explain it why it is not working with /*.jsp.Iam little bit confused about url-pattern element of web.xml file.Can any one plz give me some tutorial link for this element so that I can clear my concept from there coz Iam also confused about url-pattern element in case of servlet-mapping.Any help will be highly appreciated. Regards Bikash __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Query string / InputStream
[EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi list, I have a question to servlets with TC. I set up a easy web site with a form and request method POST. The action is then a call to a servlet. In this servlet I implemented doPost and doGet while doPost just calls doGet. Now when the servlet gets called the query string is null. This I also can see in the server log file. Also there is no no query string. I figured out that the actual query string can be read from the InputStream in the servlet. But why is this so? Did I set up something wrong? This is how POST works. The parameters are sent in the message body of the request. What do I need to do to just get the query string? If you just want to log the parameters someplace, it's an easy Filter to get them and log them. On the web site I tried both methods POST and GET with the same effect. I am running TC 4.1.18 as a standalone web server. Any suggestions are welcome because I tried so many things now and do not know where the point is. Regards, Christian Schuster Rudolf Schuster AG Postfach 277 CH - 3000 Bern 11 http://www.rsag.ch ++41 31 348 05 30 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Query
Have you ever heard about the manual ? :) I don't think I have the time to explain in detail, but Apache is an HTTP server, and tomcat is a Servlet Container. Apache and tomcat are not made to do the same things, even though some of the things they do are very similar. You should be able to find something on that matter on the internet... Try www.google.com Hope it helps -reynir -Original Message- From: priya narayanan [mailto:[EMAIL PROTECTED]] Sent: 27. janúar 2003 10:46 To: [EMAIL PROTECTED] Subject: Query Q: Is there any difference between Apache and Tomcat server?please explain in detail. - Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: query
faisal shabbir wrote: Hi, I have just implemented ssl on tomcat4.0 by using jsse. Now on running my application i found that ssl is working on all of the pages. Problem is that i want ssl to work on the pages that contains sensitive information. How can i turn ON and OFF ssl on jsp pages. You really don't want to do this! Apart from securing the 'visible' data passing between the client and the server, SSL also secures the session id. Once a hacker has got the session id, he can masquerade as the client. Probably not what you want :-) HTH, Martin -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Query
-Original Message- From: Tony McNicholas [mailto:[EMAIL PROTECTED]] Sent: Monday, September 09, 2002 4:05 AM To: [EMAIL PROTECTED] Subject: Query HI, I have the following query, I am using tomcat 3.3.1 and would like to deploy a new version of a webapp in a war file. To do this I need to stop Tomcat, remove the expanded old war directory and restart Tomcat. I would like to know is there a way to deploy a new version of a webbapp in a war file without having to manually delete the earlier expanded war file ? Note in the apps-*.xml file reloadable is set to true. ?xml version=1.0 encoding=ISO-8859-1? webapps Context path=/emissary docBase=webapps/emissary debug=0 reloadable=true /Context /webapps AFAIK, it is only possible in tc 4.x series. TC 3.x does not support dynamic class loading. Thanks, Tony. Vikram. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Query
Vikram, I don't mind having to restart Tomcat 3.3.1 but I don't want to have to manually remove the webapps/emissary directory before restarting. emissary being the name of our webapp. I would like Tomcat on restart to realise that there is a newer war file, remove the old webapps/emissary directory where the old expanded war file exists and expand the newer war file again. Is it possible to do this ? Thanks, Tony. -Original Message- From: Vikramjit Singh [mailto:[EMAIL PROTECTED]] Sent: 09 September 2002 12:05 To: 'Tomcat Users List' Subject: RE: Query -Original Message- From: Tony McNicholas [mailto:[EMAIL PROTECTED]] Sent: Monday, September 09, 2002 4:05 AM To: [EMAIL PROTECTED] Subject: Query HI, I have the following query, I am using tomcat 3.3.1 and would like to deploy a new version of a webapp in a war file. To do this I need to stop Tomcat, remove the expanded old war directory and restart Tomcat. I would like to know is there a way to deploy a new version of a webbapp in a war file without having to manually delete the earlier expanded war file ? Note in the apps-*.xml file reloadable is set to true. ?xml version=1.0 encoding=ISO-8859-1? webapps Context path=/emissary docBase=webapps/emissary debug=0 reloadable=true /Context /webapps AFAIK, it is only possible in tc 4.x series. TC 3.x does not support dynamic class loading. Thanks, Tony. Vikram. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Query
-Original Message- From: Tony McNicholas [mailto:[EMAIL PROTECTED]] Sent: Monday, September 09, 2002 4:14 AM To: Tomcat Users List Subject: RE: Query Vikram, I don't mind having to restart Tomcat 3.3.1 but I don't want to have to manually remove the webapps/emissary directory before restarting. emissary being the name of our webapp. I would like Tomcat on restart to realise that there is a newer war file, remove the old webapps/emissary directory where the old expanded war file exists and expand the newer war file again. If i get you correctly, you mean that your war file is expanded, and any changes made in the war file are not reflected. I dont think it is possible in 3.x, coz tc expands the .war files to the directory structure, then it does not look into the war file. It just serves the pages from the directory. If you put a new war file, tc does not load it since there is a directory with the same name, but if you delete the folder then tc reads from the war file and unzips it. In TC 4.x you could use the manager for reloading the application without restarting tomcat. Is it possible to do this ? Thanks, Tony. -Original Message- From: Vikramjit Singh [mailto:[EMAIL PROTECTED]] Sent: 09 September 2002 12:05 To: 'Tomcat Users List' Subject: RE: Query -Original Message- From: Tony McNicholas [mailto:[EMAIL PROTECTED]] Sent: Monday, September 09, 2002 4:05 AM To: [EMAIL PROTECTED] Subject: Query HI, I have the following query, I am using tomcat 3.3.1 and would like to deploy a new version of a webapp in a war file. To do this I need to stop Tomcat, remove the expanded old war directory and restart Tomcat. I would like to know is there a way to deploy a new version of a webbapp in a war file without having to manually delete the earlier expanded war file ? Note in the apps-*.xml file reloadable is set to true. ?xml version=1.0 encoding=ISO-8859-1? webapps Context path=/emissary docBase=webapps/emissary debug=0 reloadable=true /Context /webapps AFAIK, it is only possible in tc 4.x series. TC 3.x does not support dynamic class loading. Thanks, Tony. Vikram. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: query three remote databases at the same time
Hi Halil, open three different connections and close them in the right order Connection con1=DriverManager.getConnection(); Connection con2=DriverManager.getConnection(); do ur stuff here con2.close(); con1.close(); HTH ravi - Original Message - From: Halil AKINCI [EMAIL PROTECTED] To: jakarta-tomcat yahoo groups [EMAIL PROTECTED]; servlet-interest group [EMAIL PROTECTED]; Tomcat Users List [EMAIL PROTECTED] Sent: Monday, June 24, 2002 2:03 PM Subject: query three remote databases at the same time Hi, How can I query three remote databases at the same time using servlet? I want to send a parameter this databases using a HTML form. Remote servers receive this parameter, execute query and send results to client. I want to display all results (that remote databases send) one HTML page. How can do that? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: query unique identifier of a webapp from init()?...
Howdy, How about giving it a key yourself in your web.xml? (As a context-param or init-param to some servlet)? That seems simpler. Alternatively, consider using javax.servlet.context.tempdir, although I'm not sure if that's in the SRV v2.2. Yoav Shapira Millennium ChemInformatics -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 12, 2002 3:48 PM To: Tomcat Users List Subject: query unique identifier of a webapp from init()?... I'm looking for a way to set unique system properties for any individual webapp. Maybe an example of what I need will help to explain: For instance, I want to set a [unique_webapp_key].log.home system property. so, I would do: System.setProperty([unique_webapp_key].log.home) I don't want to just set log.home because I'm thinking that some other process might override such a common name and log.home would end up pointing to a path that I didn't expect. I was going to use getServletContext().getServletContextName() and replace any spaces with .. However getServletContextName() was introduced in Servlet 2.3 and I want it to work with Servlet 2.2. Besides, if the display-name element in the web.xml is not specified, all I get back is null. I also need to be able to predict the result of the unique_webapp_key so that I can reference it from config files. Is there something in the servlet spec 2.2+ that can help me...or am I overlooking something more simple? Jake -- Best regards, Jacob mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Query
What happens if you just enter http://localhost:8080 ?? If entering the url without the /greeting returns a page saying If you're seeing this page via a web browser, it means you've setup Tomcat successfully. Congratulations! then everything is allright.. Entering http://localhost:8080/greeting means that you are requesting a servlet/webapp called greeting that you have not installed or made yet.. Øyvind Vestavik Øvre Møllenberggt 44b 7014 Trondheim [EMAIL PROTECTED] 41422911 On Fri, 17 May 2002, Balaji Ganapathiraman wrote: Sir I have installed tomcat 4.0 in my PC. But now when i am typing http://localhost:8080/greeting I am getting an error. The error statement is The requested resource (/greeting) is not available. Kindly advice me suitably and help me out of this problem. Eagerly awaiting your reply Balaji Balaji G - Yahoo! Autos - everything you wanted to know about cars and bikes -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Query
I don't think you can do it, as Tomcat doesn't give you any tool to do that. ?? any One ? Mahesh Sapre wrote: Hi I am an software developer from India.I would like to know how do i startup and shutdown my tomcat server from remote location? Regards Mahesh Sapre -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Query
If you install Tomcat as a service (Win32 distribution), you can do this with eny tool which enables remote control for services... If you are using UNIX, you can start telnet or X-Window (or whatever) terminal to log in remotely and start the service manualy from this client connection. Running tomcat service should be configurable to accept shut down command from remote location. But it is not able to start it this way (there is no start-up listener...). GG - Original Message - From: Shashank [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, April 08, 2002 1:03 PM Subject: Re: Query | I don't think you can do it, as Tomcat doesn't give you any tool to do | that. ?? | | any One ? | | Mahesh Sapre wrote: | | Hi |I am an software developer from India.I would like to know how do i | startup and shutdown my tomcat server from remote location? | | Regards |Mahesh Sapre | | | | | | -- | To unsubscribe: mailto:[EMAIL PROTECTED] | For additional commands: mailto:[EMAIL PROTECTED] | Troubles with the list: mailto:[EMAIL PROTECTED] | | -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Query
You can start and shutdown from remote location using telnet service. - Original Message - From: Shashank [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, April 08, 2002 4:28 PM Subject: Re: Query I don't think you can do it, as Tomcat doesn't give you any tool to do that. ?? any One ? Mahesh Sapre wrote: Hi I am an software developer from India.I would like to know how do i startup and shutdown my tomcat server from remote location? Regards Mahesh Sapre -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Query
oh looks like I read the question wrong.. Logging into remote system and starting /ending a process is fine. But I thought he meant to ask something like an agent sitting on the remote machine on which tomcat is running, and tool or some peace of codes knows how to contact the agent and ask it to start/end s process??? Shashank wrote: I don't think you can do it, as Tomcat doesn't give you any tool to do that. ?? any One ? Mahesh Sapre wrote: Hi I am an software developer from India.I would like to know how do i startup and shutdown my tomcat server from remote location? Regards Mahesh Sapre -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Query regarding mod_jk.conf-auto
In Tomcat 3.2.x you will have to modify src/share/org/apache/tomcat/task/ApacheConfig.java, re-compile and update your webserver.jar. (In Tomcat 3.3.x, this is configurable.) Cheers, Larry -Original Message- From: sharadsk [mailto:[EMAIL PROTECTED]] Sent: Monday, April 08, 2002 4:10 AM To: Tomcat Users List Subject: Query regarding mod_jk.conf-auto Hi, We have requirement where we want to use mod_jk.conf-auto file, for Apache configuration. This file whenevr generated by Tomcat puts default LoadModule directive, which is LoadModule jk_module libexec/mod_jk.so We want this directive to be LoadModule jk_module modules/mod_jk.so, each time this file is generated. Is there any way to achieve this? We are using Tomcat 3.2.4. TIA -Sharad Kasab -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Query: Reloadable
On Fri, 14 Dec 2001 [EMAIL PROTECTED] wrote: Date: Fri, 14 Dec 2001 14:29:43 +0530 From: [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Query: Reloadable What shall I do if I have to make my Tomcat 4.1 autoreloadable. i.e. it should reload the app whenever there is change in .class files. This is a development server not a production server. Around 50 apps r there and I don't want to use manager app. Put a Context element in your server.xml file, with reloadable=true inside. Note that this only works on classes loaded from /WEB-INF/classes or /WEB-INF/lib. You might also want to shorten the timeout at which Tomcat checks for updated classes (default is 15 seconds): Context path=... docBase=... reloadable=true Loader checkInterval=5/ /Context For more info on server.xml configuration settings, see the Server Configuration Reference in the docs shipped with Tomcat, or available online at: http://jakarta.apache.org/tomcat/tomcat-4.0-doc/ Thanks in Advance Shekhar Craig -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Query: Reloadable
Thanks Craig I tried with ur solution but it didn't work. I copied examples dir as test in webapps folder. and added following to server.xml. Context path=/test docBase=test reloadable=true debug=0 Loader checkInterval=2/ /Context Let me give u more details of this. I have tomcat4. My installation is default. Only I copied webapps/examples directory by other names in webapps folder so now all the folders r visible thr browser. I also tried adding this to server.xml DefaultContext reloadable=true debug=0 /DefaultContext but still servlets are not autoreloadable. Any help is greatly appriciated. Shekhar - Original Message - From: Craig R. McClanahan [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, December 14, 2001 11:05 PM Subject: Re: Query: Reloadable On Fri, 14 Dec 2001 [EMAIL PROTECTED] wrote: Date: Fri, 14 Dec 2001 14:29:43 +0530 From: [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Query: Reloadable What shall I do if I have to make my Tomcat 4.1 autoreloadable. i.e. it should reload the app whenever there is change in .class files. This is a development server not a production server. Around 50 apps r there and I don't want to use manager app. Put a Context element in your server.xml file, with reloadable=true inside. Note that this only works on classes loaded from /WEB-INF/classes or /WEB-INF/lib. You might also want to shorten the timeout at which Tomcat checks for updated classes (default is 15 seconds): Context path=... docBase=... reloadable=true Loader checkInterval=5/ /Context For more info on server.xml configuration settings, see the Server Configuration Reference in the docs shipped with Tomcat, or available online at: http://jakarta.apache.org/tomcat/tomcat-4.0-doc/ Thanks in Advance Shekhar Craig -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Query
Of course, try: http://jakarta.apache.org/tomcat/tomcat-3.2-doc/tomcat-apache-howto.html and the links too ;) Loïc Lefèvre -Message d'origine- De : Al Hatf [mailto:[EMAIL PROTECTED]] Envoyé : mercredi 1 août 2001 12:34 À : [EMAIL PROTECTED] Objet : Query Hey There, Can u direct me to any docs as to how to go about connecting apache to tomcat Thanks --- Loïc Lefèvre [EMAIL PROTECTED] wrote: Hi It's me againn ;) Now that apache and tomcat SEEMS to work together, I've got dome problems about SESSION. After being 'loged', the following code return null: HttpSession session = req.getSession(false); The question is : WHY? Loïc Lefèvre __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/
RE: Query
Title: Query Since you have posted this to the tomcat-user mailing list, I assume you have a copy of tomcat. The class that you mention (it is not a package) is contained in servlet.jar contained in tomcat_home/lib. Gautam -Original Message- From: Swapan Kumar Chakraborty [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 25, 2001 9:02 PM To: [EMAIL PROTECTED] Subject: Query Can u please help me to know from where do I download the following package javax.servlet.jsp.tagext.Tag Regards, Ravinder Kaur ___NOTICE This electronic mail transmission contains confidential information intended only for the person(s) named. Any use, distribution, copying or disclosure by any other person is strictly prohibited. If you received this transmission in error, please notify the sender by reply e-mail and then destroy the message. Opinions, conclusions, and other information in this message that do not relate to the official business of NIIT shall be understood to be neither given nor endorsed by NIIT When addressed to NIIT clients, any information contained in this e-mail is subject to the terms and conditions in the governing client contract.
RE: Query
Title: Query Since you have posted this to the tomcat-user mailing list, I assume you have a copy of tomcat. The class that you mention (it is not a package) is contained in servlet.jar contained in tomcat_home/lib. Gautam -Original Message- From: Swapan Kumar Chakraborty [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 25, 2001 9:02 PM To: [EMAIL PROTECTED] Subject: Query Can u please help me to know from where do I download the following package javax.servlet.jsp.tagext.Tag Regards, Ravinder Kaur ___NOTICE This electronic mail transmission contains confidential information intended only for the person(s) named. Any use, distribution, copying or disclosure by any other person is strictly prohibited. If you received this transmission in error, please notify the sender by reply e-mail and then destroy the message. Opinions, conclusions, and other information in this message that do not relate to the official business of NIIT shall be understood to be neither given nor endorsed by NIIT When addressed to NIIT clients, any information contained in this e-mail is subject to the terms and conditions in the governing client contract.
Re: Query
You can get the source from http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.3/src/ or the binary is included in the servlet.jar in the tomcat/lib directory. cheesr dim On Thu, 26 Jul 2001, Swapan Kumar Chakraborty wrote: Can u please help me to know from where do I download the following package javax.servlet.jsp.tagext.Tag Regards, Ravinder Kaur ___NOTICE This electronic mail transmission contains confidential information intended only for the person(s) named. Any use, distribution, copying or disclosure by any other person is strictly prohibited. If you received this transmission in error, please notify the sender by reply e-mail and then destroy the message. Opinions, conclusions, and other information in this message that do not relate to the official business of NIIT shall be understood to be neither given nor endorsed by NIIT When addressed to NIIT clients, any information contained in this e-mail is subject to the terms and conditions in the governing client contract.
RE: Query
when l compiled it, error is at line 61..undefined variable 'propernoun'... so declare it.. Rams -Original Message-From: haneesh [mailto:[EMAIL PROTECTED]]Sent: Thursday, May 24, 2001 12:49 PMTo: [EMAIL PROTECTED]Subject: Query on compiling the attached java file i receive the following error C:\test\changed\loginagain.java:27: cannot resolve symbolsymbol : method setMaxInactiveInterval (int)location: interface javax.servlet.http.HttpSession httpsession.setMaxInactiveInterval(1800); ^1 error advice thanks
RE: Query
It means what it sounds like: the method isn't defined in the version of HttpSession that's on your CLASSPATH. I thinkthat method was added in JSDK 2.1. What version are you compling against? -- Bill K. -Original Message-From: haneesh [mailto:[EMAIL PROTECTED]]Sent: Thursday, May 24, 2001 12:19 AMTo: [EMAIL PROTECTED]Subject: Query on compiling the attached java file i receive the following error C:\test\changed\loginagain.java:27: cannot resolve symbolsymbol : method setMaxInactiveInterval (int)location: interface javax.servlet.http.HttpSession httpsession.setMaxInactiveInterval(1800); ^1 error advice thanks
Re: query??
The default port is 8080. So your friend should try http://yourip:8080/ Ah, one more thing: try sending messages with more descriptive subjects. It helps if you want a prompt response. Un saludo, Alex. Amit Mahale wrote: I am a tomcat user my o.s is windows 95 .I would like my friend to view my project files through the internetso i capture the IP address using "winipcfg" and ask my friend to type the url as http://IP ADDRESS/ but there comes an error saying cannot connect to server... do i need to make some extra settings to enable this facilityhelp me out please amit. _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Re: Query regarding applet calling
Ayyappa wrote: i am calling a applet from a .jsp page in the following manner applet code="crossword.Test" height="200" width="200"> /applet>i am having the .class file of the applet in a package inside the classes folder in WEB-INF. It says that class Test not foundI even tried using the jsp:plugin> tag but it asks me to install the java plugin. can i call the applet using the applet tag above or is it important to use the jsp:plugin> tag. Ayyappa email -id [EMAIL PROTECTED] Applet classes are located relative to the directory that the requesting page is in. So, if the page above is in directory "$PAGE", the class file would be loaded from "$PAGE/crossword/Test.class". You can change the base directory for where applets are located by using the "codebase" attribute on the applet> tag. Craig McClanahan
Re: Query regarding applet calling
Ayyappa wrote: i am calling a applet from a .jsp page in the following manner applet code="crossword.Test" height="200" width="200" /applet i am having the .class file of the applet in a package inside the classes folder in WEB-INF. It says that class Test not found I even tried using the jsp:plugin tag but it asks me to install the java plugin. can i call the applet using the applet tag above or is it important to use the jsp:plugin tag. Ayyappa email -id [EMAIL PROTECTED] The way you have this set up now, the browser will request the class files from the server using the url for the servlet. Servers are forbidden to directly serve anything from WEB-INF. This same problem also affects image files. One solution is to define a base tag in the head area of the page you generate - this tag gives a href to a location the server CAN serve files from - anywhere you would put a normal static HTML page. -- WBB - [EMAIL PROTECTED] Java Cert mock exams http://www.lanw.com/java/javacert/ Author of Java Developer's Guide to Servlets and JSP ISBN 0-7821-2809-2 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: query about tomcat in win32
[EMAIL PROTECTED] wrote: Hi, Just want know which zip files is suitable for downloading to a Win98 machine for development and implementation ? http://jakarta.apache.org/builds/tomcat/release/v3.2/bin/jakarta-tomcat-3.2.zip has everything you need except a JDK (which you can download from http://java.sun.com). Thx, Simon Leung Craig McClanahan