Re: tomcat process memory
Dear Andrew, have a look at http://www.lambdaprobe.org/d/index.htm, it helped us by memory problems a lot. Best regards, Nikola
retrieve session data stored in db using JDBCStore.
Hi, I have been successful in saving the sessions to my mysql db, using the given code in my server configuration file. Store className=org.apache.catalina.session.JDBCStore connectionURL=jdbc:mysql://X/xx?user=zamp;password=zz driverName=com.mysql.jdbc.Driver sessionIdCol=id sessionValidCol=valid sessionMaxInactiveCol=maxinactive sessionLastAccessedCol=lastaccess sessionTable = app_sessions sessionAppCol = context sessionDataCol = data / this stores the session data as a blob in the db. So my questions are, Can we assign the blob data directly to a new session, so that this new session assumes the state of the session in the db? Can we retrieve and edit information from the blob? if YES, please furnish some sample code or at least direct me towards the solutions. if NO, what other ways can we go about, to achieve session persistence(not just validation as in cookies but a complete session state snapshot). -- View this message in context: http://www.nabble.com/retrieve-session-data-stored-in-db-using-JDBCStore.-tp23020556p23020556.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Expose URL via Apache / Tomcat Load
Hi Would the same work with Apache / Tomcat Load Balanced mode Configuration for single installation of the web application acme www.acme.com being exposed to INTERNET www.acme.com/adminbeing exposed to INTRANET Reason : The application uses a single DB to request of orders (from Subscribers) and same URL with *admin* would process the orders ( Internal Employees) and should not be exposed to outside world. Is there any Configuration with in Apache or Tomcat to achieve the same? With regards Karthik
Re: retrieve session data stored in db using JDBCStore.
jerrySheen wrote: Hi, I have been successful in saving the sessions to my mysql db, using the given code in my server configuration file. Store className=org.apache.catalina.session.JDBCStore connectionURL=jdbc:mysql://X/xx?user=zamp;password=zz driverName=com.mysql.jdbc.Driver sessionIdCol=id sessionValidCol=valid sessionMaxInactiveCol=maxinactive sessionLastAccessedCol=lastaccess sessionTable = app_sessions sessionAppCol = context sessionDataCol = data / this stores the session data as a blob in the db. So my questions are, Can we assign the blob data directly to a new session, so that this new session assumes the state of the session in the db? Why? The session manager should be doing this for you. Can we retrieve and edit information from the blob? Why? The risk is that you will introduce inconsistencies into live sessions. Surely modifying the session using the API provided by the Servlet spec is a) safer and b) easier. if YES, please furnish some sample code or at least direct me towards the solutions. if NO, what other ways can we go about, to achieve session persistence(not just validation as in cookies but a complete session state snapshot). Isn't that happening now? p p.s. tomcat version, jvm version, os version? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: clustering error
Yes, you can test clustering using two tomcats on the same machine. -Original Message- From: supareno [mailto:reno.rkc...@free.fr] Sent: Saturday, April 11, 2009 7:12 AM To: Tomcat Users List Subject: clustering error hello, we 're trying to do some tomcat clustering but i think that our implementation is not really good we have 2 tomcats on the same machine and we configured the clustering (same multicast port and ip and differents tcplistenport) the problem is that we have a lots of errors in each tomcat log (multicast error) so my question is: is it possible to test the clusterng with two tomcats on the same machine? regards supareno - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Removal of (or disable) /admin for the user manager
Tomcat 5.5.23 on Linux Hello, I have a question in reference to Tomcat's Tomcat Manager's default page 'Tomcat Web Application Manager' When I log in, as user 'manager' to that page I like to either: 1) remove the row '/admin' all together, 2) if I can not do that, I at least like to prevent the ability to do any of the actions mentioned in the 'commands' column (start/stop ,etc,etc). Is there an easy way (if at all) to achieve this? Thank you, Farid - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Removal of (or disable) /admin for the user manager
From: Farid Hamjavar [mailto:hamja...@unm.edu] Subject: Removal of (or disable) /admin for the user manager 1) remove the row '/admin' all together, 2) if I can not do that, I at least like to prevent the ability to do any of the actions mentioned in the 'commands' column (start/stop ,etc,etc). Do you want to eliminate the admin webapp completely, or just prevent its manipulation via the manager webapp? Since access to the manager webapp is already controlled, what purpose does this serve? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Removal of (or disable) /admin for the user manager
On 04/13/2009 10:30 AM, Caldarale, Charles R wrote: From: Farid Hamjavar [mailto:hamja...@unm.edu] Subject: Removal of (or disable) /admin for the user manager 1) remove the row '/admin' all together, 2) if I can not do that, I at least like to prevent the ability to do any of the actions mentioned in the 'commands' column (start/stop ,etc,etc). Do you want to eliminate the admin webapp completely, or just prevent its manipulation via the manager webapp? Either would be fine. Since access to the manager webapp is already controlled, what purpose does this serve? Tomcat default users 'admin' and 'manager' are different entities and I just don't think person who logs in as 'manager' to manage one or more webapps should also be able to shutdown the server as is the default case. Farid - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
reading jvmRoute property specified in server.xml
Guys, i have the following property set in server.xml. i need to read jvmRoute in my web app. Can someone please suggestion how to read this property in java class ? Thanks in advance venky -- View this message in context: http://www.nabble.com/reading--jvmRoute-property-specified-in-server.xml-tp23024883p23024883.html Sent from the Tomcat - User mailing list archive at Nabble.com.
Announcing new Apache Tomcat installable Live CD appliance
Hi everyone, I'm one of the developers for TurnKey Linux, a community oriented open source project developing a family of free, Ubuntu-based installable Live CDs which are lightweight and optimized for ease of use in server-type usage scenarios (e.g., LAMP, Joomla CMS, Drupal, Ruby on Rails): http://www.turnkeylinux.org/appliances We're proud to announce the release of TurnKey Apache Tomcat, an installable live CD of Apache Tomcat that can run on real hardware in addition to most types of virtual machines (e.g., VMWare, VirtualBox, Parallels, Xen HVM). It is designed to provide users with a pre-integrated, auto-updating, turn-key operating system environment that is carefully built from the ground up with the minimum components needed to run Apache Tomcat with maximum usability, efficiency, and security. Basically this is an extremely easy way to get up and running with Apache Tomcat in just a few minutes. Feature highlights: * Auto-updated daily with latest security patches * SSL support out of the box * Elegant Web administration interface (Mac OS X themed) * Minimal footprint (212MB) Full details: http://www.turnkeylinux.org/appliances/tomcat BTW, this type of pre-integrated, ready-to-use system is typically called a software appliance: http://en.wikipedia.org/wiki/Software_appliance Take a look and tell us what you think! Cheers, Liraz - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Tomcats in two mod_jk lb-clusters simultaneously
Im need it for failover issues. Is this possible? Scheme of my idea here: http://pic.ipicture.ru/uploads/090413/k3k83oomS1.gif Any remarks are welcome. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: reading jvmRoute property specified in server.xml
From: bhanujirao [mailto:dumpala.venk...@gmail.com] Subject: reading jvmRoute property specified in server.xml i need to read jvmRoute in my web app. It should be part of the session id; if your code is running in a servlet, try: HttpServletRequest.getSession().getId() and parse it out. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Tomcats in two mod_jk lb-clusters simultaneously
I don't see anything not doable in your diagram, although I would take issue with you having your apache servers separated in your cisco load balancer. Why aren't you load balancing to both apaches in a single cluster instead of having one take all the load and the other in reserve in case the first fails (as your diagrams seems to show)? -Tony --- Manager, IT Operations Format Dynamics, Inc. 303-573-1800x27 abia...@formatdynamics.com http://www.formatdynamics.com -Original Message- From: J Channel [mailto:jchann...@gmail.com] Sent: Monday, April 13, 2009 11:58 AM To: Tomcat Users List Subject: Tomcats in two mod_jk lb-clusters simultaneously Im need it for failover issues. Is this possible? Scheme of my idea here: http://pic.ipicture.ru/uploads/090413/k3k83oomS1.gif Any remarks are welcome. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Tomcats in two mod_jk lb-clusters simultaneously
Oh no, I wasn't saying to have cisco loadbalance the tomcats, I was asking why cisco isn't load balancing your apache requests? But yes, your answer is yes. -Tony --- Manager, IT Operations Format Dynamics, Inc. 303-573-1800x27 abia...@formatdynamics.com http://www.formatdynamics.com -Original Message- From: J Channel [mailto:jchann...@gmail.com] Sent: Monday, April 13, 2009 2:37 PM To: Tomcat Users List Subject: Re: Tomcats in two mod_jk lb-clusters simultaneously Cause at first cisco can't balance all tomcats as precision as mod_jk And for example if all tomcats on Server1 dies, or work s sloooww (like 3mins waiting for reply, it can be in our application) but apache still alive - cisco will dont know about it fail and users can give a bad page with nothing =)) Anyway, reply for Q: Its possible to include a few tomcat servers in two different lb-clusters is YES? Why aren't you load balancing to both apaches in a single cluster instead of having one take all the load and the other in reserve in case the first fails (as your diagrams seems to show)? -Original Message- From: J Channel [mailto:jchann...@gmail.com] Sent: Monday, April 13, 2009 11:58 AM To: Tomcat Users List Subject: Tomcats in two mod_jk lb-clusters simultaneously Im need it for failover issues. Is this possible? Scheme of my idea here: http://pic.ipicture.ru/uploads/090413/k3k83oomS1.gif - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
JSP: No suitable driver found
Hello All, I have what should be a simple problem, but can't seem to resolve it. Basic JSP using a non-pooled connection: sql:setDataSource var=myDS url=jdbc:oracle:thin:@host.example.com:1521:ORACLE driver=oracle.jdbc.driver.OracleDriver user=username password=password / I'm getting the exception: javax.servlet.ServletException: javax.servlet.jsp.JspException: Unable to get connection, DataSource invalid: java.sql.SQLException: No suitable driver found for ${myDS} I've confirmed that the host, user, password are correct. Of course it looks like a classpath problem, but WEB-INF/lib contains: jstl-1.2.jar ojdbc14.jar standard.jar Can anyone suggest what else I might try to resolve this? Thanks! --john - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: JSP: No suitable driver found
please download classes12.jar from http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/htdocs/jdbc_10201.html and place classes12.jar into $TOMCAT_HOME/AppContext/WEB-INF/lib/ HTH Martin Gainty __ Disclaimer and Confidentiality/Verzicht und Vertraulichkeitanmerkung / Note de déni et de confidentialité This message is confidential. If you should not be the intended receiver, then we ask politely to report. Each unauthorized forwarding or manufacturing of a copy is inadmissible. This message serves only for the exchange of information and has no legal binding effect. Due to the easy manipulation of emails we cannot take responsibility over the the contents. Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Mon, 13 Apr 2009 16:24:31 -0600 From: john.c.cartwri...@noaa.gov Subject: JSP: No suitable driver found To: users@tomcat.apache.org Hello All, I have what should be a simple problem, but can't seem to resolve it. Basic JSP using a non-pooled connection: sql:setDataSource var=myDS url=jdbc:oracle:thin:@host.example.com:1521:ORACLE driver=oracle.jdbc.driver.OracleDriver user=username password=password / I'm getting the exception: javax.servlet.ServletException: javax.servlet.jsp.JspException: Unable to get connection, DataSource invalid: java.sql.SQLException: No suitable driver found for ${myDS} I've confirmed that the host, user, password are correct. Of course it looks like a classpath problem, but WEB-INF/lib contains: jstl-1.2.jar ojdbc14.jar standard.jar Can anyone suggest what else I might try to resolve this? Thanks! --john - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org _ Rediscover Hotmail®: Get e-mail storage that grows with you. http://windowslive.com/RediscoverHotmail?ocid=TXT_TAGLM_WL_HM_Rediscover_Storage1_042009
Re: JSP: No suitable driver found
Thank you for your prompt reply Martin and for your suggestion. Given that I have the ojdbc14.jar in the WEB-INF/lib, doesn't that the version of the OracleDriver suitable for jdk 1.4+? It *seems* like it started working when I replaced jstl-1.2.jar w/ jstl-1.1.2.jar - does that make any sense? This is tomcat 6.0.18 on a RHEL 5 box w/ JDK 1.6. --john Martin Gainty wrote: please download classes12.jar from http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/htdocs/jdbc_10201.html and place classes12.jar into $TOMCAT_HOME/AppContext/WEB-INF/lib/ HTH Martin Gainty __ Disclaimer and Confidentiality/Verzicht und Vertraulichkeitanmerkung / Note de déni et de confidentialité This message is confidential. If you should not be the intended receiver, then we ask politely to report. Each unauthorized forwarding or manufacturing of a copy is inadmissible. This message serves only for the exchange of information and has no legal binding effect. Due to the easy manipulation of emails we cannot take responsibility over the the contents. Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Mon, 13 Apr 2009 16:24:31 -0600 From: john.c.cartwri...@noaa.gov Subject: JSP: No suitable driver found To: users@tomcat.apache.org Hello All, I have what should be a simple problem, but can't seem to resolve it. Basic JSP using a non-pooled connection: sql:setDataSource var=myDS url=jdbc:oracle:thin:@host.example.com:1521:ORACLE driver=oracle.jdbc.driver.OracleDriver user=username password=password / I'm getting the exception: javax.servlet.ServletException: javax.servlet.jsp.JspException: Unable to get connection, DataSource invalid: java.sql.SQLException: No suitable driver found for ${myDS} I've confirmed that the host, user, password are correct. Of course it looks like a classpath problem, but WEB-INF/lib contains: jstl-1.2.jar ojdbc14.jar standard.jar Can anyone suggest what else I might try to resolve this? Thanks! --john - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org _ Rediscover Hotmail®: Get e-mail storage that grows with you. http://windowslive.com/RediscoverHotmail?ocid=TXT_TAGLM_WL_HM_Rediscover_Storage1_042009 - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: JSP: No suitable driver found
I believe classes12.jar is the jdbc library (with tracing) jstl-1.1.2.jar is for JSTL Taglibs, version 1.1.2 feel free to ping chuck,mark,chris,rainier and hassan for relevant details HTH Martin __ Disclaimer and Confidentiality/Verzicht und Vertraulichkeitanmerkung / Note de déni et de confidentialité This message is confidential. If you should not be the intended receiver, then we ask politely to report. Each unauthorized forwarding or manufacturing of a copy is inadmissible. This message serves only for the exchange of information and has no legal binding effect. Due to the easy manipulation of emails we cannot take responsibility over the the contents. Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Mon, 13 Apr 2009 16:54:27 -0600 From: john.c.cartwri...@noaa.gov Subject: Re: JSP: No suitable driver found To: users@tomcat.apache.org Thank you for your prompt reply Martin and for your suggestion. Given that I have the ojdbc14.jar in the WEB-INF/lib, doesn't that the version of the OracleDriver suitable for jdk 1.4+? It *seems* like it started working when I replaced jstl-1.2.jar w/ jstl-1.1.2.jar - does that make any sense? This is tomcat 6.0.18 on a RHEL 5 box w/ JDK 1.6. --john Martin Gainty wrote: please download classes12.jar from http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/htdocs/jdbc_10201.html and place classes12.jar into $TOMCAT_HOME/AppContext/WEB-INF/lib/ HTH Martin Gainty __ Disclaimer and Confidentiality/Verzicht und Vertraulichkeitanmerkung / Note de déni et de confidentialité This message is confidential. If you should not be the intended receiver, then we ask politely to report. Each unauthorized forwarding or manufacturing of a copy is inadmissible. This message serves only for the exchange of information and has no legal binding effect. Due to the easy manipulation of emails we cannot take responsibility over the the contents. Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Mon, 13 Apr 2009 16:24:31 -0600 From: john.c.cartwri...@noaa.gov Subject: JSP: No suitable driver found To: users@tomcat.apache.org Hello All, I have what should be a simple problem, but can't seem to resolve it. Basic JSP using a non-pooled connection: sql:setDataSource var=myDS url=jdbc:oracle:thin:@host.example.com:1521:ORACLE driver=oracle.jdbc.driver.OracleDriver user=username password=password / I'm getting the exception: javax.servlet.ServletException: javax.servlet.jsp.JspException: Unable to get connection, DataSource invalid: java.sql.SQLException: No suitable driver found for ${myDS} I've confirmed that the host, user, password are correct. Of course it looks like a classpath problem, but WEB-INF/lib contains: jstl-1.2.jar ojdbc14.jar standard.jar Can anyone suggest what else I might try to resolve this? Thanks! --john - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For
Re: JSP: No suitable driver found
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 John, On 4/13/2009 6:24 PM, John Cartwright wrote: I have what should be a simple problem, but can't seem to resolve it. Basic JSP using a non-pooled connection: sql:setDataSource var=myDS url=jdbc:oracle:thin:@host.example.com:1521:ORACLE driver=oracle.jdbc.driver.OracleDriver user=username password=password / I'm getting the exception: javax.servlet.ServletException: javax.servlet.jsp.JspException: Unable to get connection, DataSource invalid: java.sql.SQLException: No suitable driver found for ${myDS} Hmm... does it say ${myDS}? Maybe you get that exception when you try to /use/ the connection. Is sql:setDataSource part of the JSTL? I've confirmed that the host, user, password are correct. Of course it looks like a classpath problem, but WEB-INF/lib contains: jstl-1.2.jar ojdbc14.jar standard.jar You might try putting your JDBC driver in Tomcat's top-level lib directory (lib/ for TC6, common/lib for TC5) and trying that. Just remember that there should only be one copy of your JDBC driver available on the CLASSPATH (which you should NOT set yourself... Tomcat takes care of all of this for you). Definitely don't downgrade to classes12.jar as Martin suggests. Generally speaking, there are no JDK version-specific JDBC drivers. You should get the more up-to-date driver that makes sense for you. Also don't downgrade the JSTL (if that's what you are using): you should use the most up-to-date version you can get for that, too. FWIW, you should consider using a pooled datasource at some point. Maybe setting that up, now, wouldn't be a bad idea. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAknj7qUACgkQ9CaO5/Lv0PAjvACfSHcnbIj4Icsg4B8fiEzhTho4 EGcAnR3dMwiUBrThNBzyavDskaZVN2Jk =h7Mi -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: JSP: No suitable driver found
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 John, On 4/13/2009 10:02 PM, Christopher Schultz wrote: Is sql:setDataSource part of the JSTL? Duh. Yes. Sorry 'bout that. When you execute your query, how do you do it? Can you post your sql:query (or whatever) that you use? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAknj77wACgkQ9CaO5/Lv0PBAYwCbBWyL4LHu20u2qBbQqGWHQlgf QNsAoKsNWR1W9WFDxIO3TQ/ZVjAkIZsZ =DhVo -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: No suitable driver found
From: John Cartwright [mailto:john.c.cartwri...@noaa.gov] Subject: JSP: No suitable driver found DataSource invalid: java.sql.SQLException: No suitable driver found for ${myDS} The presence of the ${} in the message is certainly rather odd. This is not likely to be related, but you might want to play with the setting of org.apache.jasper.compiler.Parser.STRICT_QUOTE_ESCAPING, just in case you have an odd construct. Look here for details: http://tomcat.apache.org/tomcat-6.0-doc/config/systemprops.html#Jasper - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: reading jvmRoute property specified in server.xml
Well thanks for ur reply.. i know that is one alternative but i need to read it in java class which i dont have access to HttpServletRequest .. any other alternative... Thanks Venkat Caldarale, Charles R wrote: From: bhanujirao [mailto:dumpala.venk...@gmail.com] Subject: reading jvmRoute property specified in server.xml i need to read jvmRoute in my web app. It should be part of the session id; if your code is running in a servlet, try: HttpServletRequest.getSession().getId() and parse it out. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- View this message in context: http://www.nabble.com/reading--jvmRoute-property-specified-in-server.xml-tp23024883p23032280.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: reading jvmRoute property specified in server.xml
From: bhanujirao [mailto:dumpala.venk...@gmail.com] Subject: RE: reading jvmRoute property specified in server.xml i need to read it in java class which i dont have access to HttpServletRequest So what does this Java class have access to? If you'd provide information about what you *are* doing (as opposed to what you're *not* doing), it would help. Playing twenty questions isn't that much fun. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: reading jvmRoute property specified in server.xml
We have Quartz jobs running in back ground. It needs to know whether this instance has to run the job or not. Earlier we use to catilina.base which we can read as System property . now all the servers have the same instance names..so i am just thinking is there any way this property will help to get the unique name to find out the instance. currently i have resolved this by the combination of catilina.base with java.net.InetAddress.getLocalHost().getHostName() which makes unique.. Caldarale, Charles R wrote: From: bhanujirao [mailto:dumpala.venk...@gmail.com] Subject: RE: reading jvmRoute property specified in server.xml i need to read it in java class which i dont have access to HttpServletRequest So what does this Java class have access to? If you'd provide information about what you *are* doing (as opposed to what you're *not* doing), it would help. Playing twenty questions isn't that much fun. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- View this message in context: http://www.nabble.com/reading--jvmRoute-property-specified-in-server.xml-tp23024883p23032458.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: retrieve session data stored in db using JDBCStore.
Why? The risk is that you will introduce inconsistencies into live sessions. Surely modifying the session using the API provided by the Servlet spec is a) safer and b) easier. As we are dealing with sessions that are no more accessable, this action would have no effect on any live sessions thus no inconsistencies. if YES, please furnish some sample code or at least direct me towards the solutions. if NO, what other ways can we go about, to achieve session persistence(not just validation as in cookies but a complete session state snapshot). Isn't that happening now? Yes but only at server restarts. Can we assign the blob data directly to a new session, so that this new session assumes the state of the session in the db? Why? The session manager should be doing this for you. Again this happens only at server restarts. tomcat version = 5.5.20, jvm version = 1.6.0, os version = windows xp sp2. Ok. what i am trying to implement here is session persistence across browser restarts. ie. I would like to maintain the session state even if the browser is closed and restarted at which point a new session is started. we know that the session exists in the db for the time that is specified in 'sessionMaxInactiveCol=maxinactive ' so, even if the browser is closed and the session is destroyed at browser level it still exists in the db. (we can prolong session expiry using: session.setMaxInactiveInterval(2 weeks);) now i would like to persist the old session by maintaining the session id inside a cookie, and compare this id against the session id stored in 'sessionIdCol=id ', then copy the session data stored as blob in '''sessionDataCol = data ' and assign this data to the new session. thus i would be able to regain the last session state in which the browser was closed. once the transaction is complete i would remove the old session from the db. Is this possible, if yes how? -- View this message in context: http://www.nabble.com/retrieve-session-data-stored-in-db-using-JDBCStore.-tp23020556p23032552.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org