Re: can't access database after timcat idle for several hours
Are they on the same machine? If not it could be a firewall issue? It could be alot of things but that's a start. --- james edwards [EMAIL PROTECTED] wrote: I am running 3 servers; Apache, Tomcat (5.5.16, java version 1.5.0_06, Informix JDBC-1.3.00.JC3) and Informix (7.31.UD2). After the app has been idle for several hours tomcat cannot access the database. Netstat shows not connections to the database and tcpdump shows no traffic at all going the database when queries are made to the app (which would cause the database to be consulted) At first it seemed that the overnight backup of the database was causing this problem but restarting tomcat after the backup only fixes this problem for a few more hours. I wrote a loop to wget url's that cause the database to be consulted every 60 sec but after several hours this problem happens again. Tomcat seems to be fine, I can load the management page and restart the app. Only restarting tomcat fixes this problem, reloading the app does not fix the problem.. Nothing is being logged during and right before this problem. Does anyone have suggestions to further debug this problem ? -- James H. Edwards Network Systems Administrator Judicial Information Division [EMAIL PROTECTED] ___ Switch an email account to Yahoo! Mail, you could win FIFA World Cup tickets. http://uk.mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Apache Tomcat Redirect Match
Hi All, Has Tomcat got an equivelent of Apache's HTTP's Redirect Match? Thanks alot - Yahoo! Photos NEW, now offering a quality print service from just 8p a photo.
Re: Upgrade to Tomcat 5.5 has broken my jndi
Thanks for the help. I seem to be able to get it working when I have a context file under my web-app in the meta-inf directory. But I am still unable to properly configure a global datasource. Here is my context.xml. very standard: ?xml version=1.0 encoding=UTF-8? Context Resource name=jdbc/testdb auth=SERVLET type=javax.sql.DataSource driverClassName=com.mysql.jdbc.Driver url=jdbc:mysql://localhost:3306/testdb username=me password=me maxActive=30 maxIdle=2000 maxWait=120/ /Context If I remove this and instead add this to server.xml GlobalNamingResources Resource name=jdbc/testdb auth=SERVLET type=javax.sql.DataSource driverClassName=com.mysql.jdbc.Driver url=jdbc:mysql://localhost:3306/testdb username=me password=me maxActive=30 maxIdle=2000 maxWait=120/ /GlobalNamingResources It no longer finds the datasource. My web.xml looks like this: web-app version=2.4 display-nameJNDI Test/display-name description Welcome to JNDI /description resource-ref descriptionhello /description res-ref-namejdbc/testdb/res-ref-name res-typejavax.sql.DataSource/res-type res-authSERVLET/res-auth /resource-ref /web-app I tried this, but it is failing to parse: web-app version=2.4 display-nameJNDI Test/display-name description Welcome to JNDI /description resource-env-ref descriptionhello /description res-env-ref-namejdbc/testdb/res-env-ref-name res-env-typejavax.sql.DataSource/res-env-type /resource-env-ref /web-app Any input would be great. Thanks alot. [EMAIL PROTECTED] wrote: Follows is to do: extract your Resource section from server.xml and copy to context.xml. I did the same and my jndi works very fine. György Tomcat Users List schrieb am 07.03.06 22:58:18: here are the docs http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html I don't see them declare the factory attribute in 5.5, you didn't tell us what version you were on Filip ALEX HYDE wrote: Hi All, I've seen this one all over the user group but I seem to have come to a dead end with this. I have upgraded from tomcat 4 to 5 and I can't seem to get my app working again. The part that has broken is the jndi datasource look-up. I notice that I'm definitly not the first to experience this problem. Perhaps things might have been made a bit clearer. I thought I had set things up correctly. I have extracted my old context from server.xml and added it under my web app context. debug=0 reloadable=true crossContext=true type=javax.sql.DataSource maxActive=10 maxIdle=7 maxWait=5 driverClassName=com.mysql.jdbc.Driver url=jdbc:mysql://localhost:1521/testdb username=user1 password= factory=org.apache.commons.dbcp.BasicDataSourceFactory / I now have this error where it had been working in version 4. org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of cla ss '' for connect URL 'null' Thanks for your help. ___ Win a BlackBerry device from O2 with Yahoo!. Enter now. http://www.yahoo.co.uk/blackberry - 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] -- Mit freundlichen Grüßen Dr. György Kelemen Email: [EMAIL PROTECTED] Mobil: 0173 534 5668 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre.
Upgrade has broken my jndi
Hi All, I've seen this one all over the user group but I seem to have come to a dead end with this. I have upgraded from tomcat 4 to 5 and I can't seem to get my app working again. The part that has broken is the jndi datasource look-up. I notice that I'm definitly not the first to experience this problem. Perhaps things might have been made a bit clearer. I thought I had set things up correctly. I have extracted my old context from server.xml and added it under my web app context. Context path=/myapp docBase=myapp debug=0 reloadable=true crossContext=true Resource name=jdbc/testDB auth=Container type=javax.sql.DataSource maxActive=10 maxIdle=7 maxWait=5 driverClassName=com.mysql.jdbc.Driver url=jdbc:mysql://localhost:1521/testdb username=user1 password= factory=org.apache.commons.dbcp.BasicDataSourceFactory / I now have this error where it had been working in version 4. org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of cla ss '' for connect URL 'null' Thanks for your help. ___ Win a BlackBerry device from O2 with Yahoo!. Enter now. http://www.yahoo.co.uk/blackberry - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problems running Tomcat
You could try: http://10.2.254.103:8080 Riccardo Roasio [EMAIL PROTECTED] wrote: Hi, i'm triyng to install Tomcat; i do like this: tar xzvf apache-tomcat.tar.gz mv apache-tomcat /usr/local/tomcat cd tomcat export TOMCAT_HOME=/usr/local/tomcat and i triyed to run it with usr/local/tomcat/bin/startup.sh it seems to start but if i try to see http://10.2.254.103 ( the address of the machine) from a browse it says impossible to connect... What's wrong? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre.
root context
Is it posible to set the root context to be a directory that doesn't yet exist, ie, a war file, that is yet to be exploded. Tomcat complained it could not find the context. - Yahoo! Photos NEW, now offering a quality print service from just 8p a photo.
Re: Images caching
Hey Bello, I'm fairly new to this but don't mind putting my two pence worth in. I'm not that sure about the client side but I've heard mention of something called Squid which can cache static content quite well and would sit as a proxy in front of Tomcat. Gluck --- Bello Martinez Sergio [EMAIL PROTECTED] wrote: Hi all, I have a web application in Tomcat 5.0 (standalone) that does image swapping for some mouse events. My problem is that IE does a GET request everytime I change an image's src atribute. No matter if I preload all document images with imgX=new Image(); imgX.src = '...', the browser always request the image from the server when I put the mouse over an image. I've tried to change browser cache settings, too. Does anybody know how can I do to avoid this? I've read resin lets you define things like 'cache-mapping url-pattern=*.gif expires=60D/' Is there a way to do this with Tomcat? I would like to avoid using Apache for the moment. Thanks a lot, Sergio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___ To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Serving secured static content
Dear group, I have been looking at how to best serve static content from my web-site. Most of the content is static. I was looking at using Apache as a front to Tomcat and have that all up and running. The problem is securing the content. I have written an Apache plug-in using mod_perl but I'm no expert and am concerned about how this might perform, for example, db connection pooling. What is the the most recent recommendation on serving static content now? I can see a few options: - use Tomcat - use Apache and write a plug-in - use Pippo or seomthing like that Thanks alot. - Yahoo! Photos NEW, now offering a quality print service from just 8p a photo.
RE: Using Tomcat 5.5 as a standalone web server
Adam, I think I just posted a question on nearly this same topic. I found something called Pippo for static content and would be easier to configure as it sits in Tomcat. Do you have security considerations? Have you had to add modules for securing content in Apache? Adam Johnston [EMAIL PROTECTED] wrote: I like the sound of that idea - videos tend to change rarely, and are prime candidates for caching. Is anyone actually using this configuration? Thanks. -Original Message- From: Wouter Boers [mailto:[EMAIL PROTECTED] Sent: 10 January 2006 16:01 To: 'Tomcat Users List' Subject: RE: Using Tomcat 5.5 as a standalone web server There is quite an easy sollution. Run squid as you main webserver and as a web accelator in front of your tomcat. From the squid config you can decide what your want cached and what now. I don't understand why this is not done more often since its A) a very easy sollution B) does not loose any of the funtionality tomcat can offer you C) allow to fine grain the load of tomcat completely Only downsite, the squid cache in core memory gives of course the best performance so as much memory as possible will help. On the other hand. The HTML of much sites fits easily in 500MB core memory. Regards, Wouter -Original Message- From: Adam Johnston [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 10, 2006 3:43 PM To: users@tomcat.apache.org Subject: Using Tomcat 5.5 as a standalone web server Hello all, I am running a reasonable sized site, on Linux Red Hat + Tomcat 5.5.7. The site is serving mainly Flash movies and servlets with streaming video through a commercial codec, plus a full HTML version of the site. Currently, I have Tomcat 5.5.7 integrated with Apache 2.0.46, which was (very) difficult to set up, and now I am looking to rebuild my server into a better configuration, I want to simplify my admin by running Tomcat on its own to serve all content. My question is this : does anyone have experience of running a 500 000 - 1 000 000 page impressions / month site, including elements such as I mention above, on Tomcat alone? I want to avoid the web server integration if Tomcat is up to it, but I would love to hear if anyone else has been successful with Tomcat standalone before I do? Many thanks! Adam This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. Dissemination, distribution or copying of this e-mail or the information herein by anyone other than the intended recipient, or an employee or agent responsible for delivering the message to the intended recipient, is prohibited. If you have received this e-mail in error, please immediately notify us by calling the Help Desk at +44 20 7675 9666 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. Dissemination, distribution or copying of this e-mail or the information herein by anyone other than the intended recipient, or an employee or agent responsible for delivering the message to the intended recipient, is prohibited. If you have received this e-mail in error, please immediately notify us by calling the Help Desk at +44 20 7675 9666 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Yahoo! Messenger NEW - crystal clear PC to PC calling worldwide with voicemail
Re: Mod_jk and Security
I'm abstracting it to a db with a timeout included. That way both Tomcat and Apache can check for a valid user. --- Dave Morrow [EMAIL PROTECTED] wrote: Hi all. I have a website running under Tomcat 5.5.9 I would like to use mod_jk to allow Apache to serve all static content however, I cannot figure out how to serve this content only if the user has already logged into the application. This application uses Tomcat sessions. Anyone have experience in this? David A. Morrow Technical Systems Lead Autodata Solutions Company [EMAIL PROTECTED] http://www.autodata.net NEW !!! Tel: (519) 963-3020 Fax: (519) 451-6615 Poor planning on your part does not necessarily constitute an emergency on my part! This message has originated from Autodata Solutions. The attached material is the Confidential and Proprietary Information of Autodata Solutions. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please delete this message and notify the Autodata system administrator at [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ___ To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
URLConnection
Hi All, I need to make a very simple get request from a remote web server each time a user first comes into the site. I wanted to just use the core HttpURLConnection class. It will be thread safe because the object will be used and created in method scope. In the Sun javadoc it says that underneath the covers, the Connection can be shared. So the question is, is this an expensive operation or am I ok to just create a new HttpURLConnection each time a user first enters the site? I noticed that Apache Commons have a version of an HttpClient, in which they explicitly mention pooling connections in a multi-threaded environment. Can I just use the standard HttpURLConnection or will I quickly run out of resources/connections? Should I be using something along the lines of the Commons Client Thanks alot - Yahoo! Messenger NEW - crystal clear PC to PC calling worldwide with voicemail
Re: Antwort: RE: Tomcat JDBC connection with Mysql
Hi All, I have been developing a system using Tomcat on my Windows box at home. I am now ready to deploy it to a server. I was thinking of using Fedora Core because it is cheaper and I heard it has a fiarly good reputation. Could anyone pass on any experiences of running Tomcat 4 on Linux or even Fedora? I am starting with a clean box and will need to add java and tomcat. COUld anyone point me in the dircetion of nay good tutorials on this? Thanks all Jan Behrens [EMAIL PROTECTED] wrote: look here -- http://dev.mysql.com/doc/refman/4.1/en/connection-access.html rtfm ;) marju jalloh schrieb am 12.12.2005 13:33:54: But how to Grant permission to an ip host Karthik wrote: hI tHE PROBLEMS IS PRESENT WITHIN THE mysql SERVER,U NEED TO GIVE PERMISSION TO THE ip HOST U ARE USING TRY USING THE GRANT PERMISSION AND USE THE SAME,BUT U HAVE TO FLUSH OUT ALL acl PREVELIAGES AVALIABEL IN MYSQL DB USE A FRONT END LIKE MYSQL FRONT TO DO THIS HOPE THIS HELPS. WITH REGARS kARTHIK -Original Message- From: marju jalloh [mailto:[EMAIL PROTECTED] Sent: Monday, December 12, 2005 4:53 PM To: Tomcat Users List Subject: Tomcat JDBC connection with Mysql I can`connect to my database with via servlet. The connection works well in PHP but not with servlet. I have googled but no solution. this is my error page I got java.sql.SQLException: Data source rejected establishment of connection, message from server: Host 'localhost.localdomain' is not allowed to connect to this MySQL server at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:650) at com.mysql.jdbc.Connection.createNewIO(Connection.java:1808) at com.mysql.jdbc.Connection.(Connection.java:452) at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:411) at java.sql.DriverManager.getConnection(DriverManager.java:525) at java.sql.DriverManager.getConnection(DriverManager.java:171) at Liep.doGet(Liep.java:30) ... ... Can anyone help or give me a pointer to a website Byfour - Yahoo! Shopping Find Great Deals on Holiday Gifts at Yahoo! Shopping - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Yahoo! Shopping Find Great Deals on Holiday Gifts at Yahoo! Shopping - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre.
RE: Antwort: RE: Tomcat JDBC connection with Mysql
Thanks for that Richard, I have to use fedora core 3 but I can use Tomcat 5 and probably should! Cheers for the heads up. Alex Richard Mixon [EMAIL PROTECTED] wrote: Jan, Tomcat runs just fine on Linux. Use the most recent version (Fedora Core 4 is fine, or OpenSuse 10, or ...). These should come with a fairly recent version of Tomcat (5.x or 5.5.x) or the packages should be available. I prefer to install Tomcat myself on Linux, from a downloaded binary (tar.gz file) as some of the Linux distributions break things up in various ways, that I find a bit confusing (though I can also usually see the logic of it too). However, why in the world would you be developing with Tomcat 4 - it is two major versions behind. If you had an existing production version to support, that would be more understandable. But you are starting out clean it seems - there are many security and performance fixes are in Tomcat 5.5. HTH - Richard -Original Message- From: ALEX HYDE [mailto:[EMAIL PROTECTED] Sent: Thursday, December 15, 2005 10:46 AM To: Tomcat Users List Subject: Re: Antwort: RE: Tomcat JDBC connection with Mysql Hi All, I have been developing a system using Tomcat on my Windows box at home. I am now ready to deploy it to a server. I was thinking of using Fedora Core because it is cheaper and I heard it has a fiarly good reputation. Could anyone pass on any experiences of running Tomcat 4 on Linux or even Fedora? I am starting with a clean box and will need to add java and tomcat. COUld anyone point me in the dircetion of nay good tutorials on this? Thanks all Jan Behrens wrote: look here -- http://dev.mysql.com/doc/refman/4.1/en/connection-access.html rtfm ;) marju jalloh schrieb am 12.12.2005 13:33:54: But how to Grant permission to an ip host Karthik wrote: hI tHE PROBLEMS IS PRESENT WITHIN THE mysql SERVER,U NEED TO GIVE PERMISSION TO THE ip HOST U ARE USING TRY USING THE GRANT PERMISSION AND USE THE SAME,BUT U HAVE TO FLUSH OUT ALL acl PREVELIAGES AVALIABEL IN MYSQL DB USE A FRONT END LIKE MYSQL FRONT TO DO THIS HOPE THIS HELPS. WITH REGARS kARTHIK -Original Message- From: marju jalloh [mailto:[EMAIL PROTECTED] Sent: Monday, December 12, 2005 4:53 PM To: Tomcat Users List Subject: Tomcat JDBC connection with Mysql I can`connect to my database with via servlet. The connection works well in PHP but not with servlet. I have googled but no solution. this is my error page I got java.sql.SQLException: Data source rejected establishment of connection, message from server: Host 'localhost.localdomain' is not allowed to connect to this MySQL server at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:650) at com.mysql.jdbc.Connection.createNewIO(Connection.java:1808) at com.mysql.jdbc.Connection.(Connection.java:452) at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:411) at java.sql.DriverManager.getConnection(DriverManager.java:525) at java.sql.DriverManager.getConnection(DriverManager.java:171) at Liep.doGet(Liep.java:30) ... ... Can anyone help or give me a pointer to a website Byfour - Yahoo! Shopping Find Great Deals on Holiday Gifts at Yahoo! Shopping - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Yahoo! Shopping Find Great Deals on Holiday Gifts at Yahoo! Shopping - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - How much free photo storage do you get? Store your holiday snaps for FREE with Yahoo! Photos. Get Yahoo! Photos
Re: Securing File System Resources ?
Version 1 is the way I did. Things I had to bare in mind are: - are you actually logging users in or are they authorised on a per individual file basis - can the user re-access the file or is it a one off access? Gluck David Smith [EMAIL PROTECTED] wrote: Either one or two are excellent choices with 1 being the best IMHO. It could be as simple as some other servlet places a flag in the session that essentially says this user is good for downloading this file for this session. The servlet filter sees that and offers the file, or failing to see the the flag, redirects the user to a friendly error page. -David Dov Rosenberg wrote: Our application has its own security model that controls access to our information based on our own roles and permissions. We store files related to our application on the file system where our application is running. These associated files are served out by a web server. Our goal is to come up with a scheme where we could apply our security model to control access to these files via the web server. For example someone associates a PDF with some meta data. We don¹t want the user to be able to bookmark the underlying URL and email it to their friends for them to download without having them authenticated by our service. We are looking at a couple of different ideas. 1. Create a servlet filter to sit in front of the resources requests and somehow tie that into our application logic 2. Create a regular proxy type of servlet that can accept requests and validate them using our security model 3. Figure out a way to secure the filesystem using a Proxy server of some type. Any other thoughts or ideas are appreciated. Thanks in advance -- === David Smith Network Operations Supervisor Department of Entomology College of Agriculture Life Sciences Cornell University 2132 Comstock Hall Ithaca, NY 14853 Phone: 607.255.9571 Fax: 607.255.0939 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre.
Re: TOMCAT + DATASOURCE + CONNECTION POOL
Hey, I think though I'm not 100% When you declare the datasource in web.xml (or is Server.xml?) it creates a pool factory for you under the covers (I think using Jakarta DBCP). When you use JNDI look-up it asks the factory for a pool. You are then magically using a pool. You specify the pool details in the declaration in web.xml. Gluck. Karthik [EMAIL PROTECTED] wrote: Hi I have sucessfully created a JDBC connection using DataSource and JNDI on Tomcat5.x Is it necessary for create a Connection POOL using this DataSource based Jdbc Connnection or will the DataSource itself provides the Connection POOL for managing the JDBC connections on startup ,if so what needs to be done to increase the size of the connection pool size. with regards Karthik - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Play Santa's Celebrity Xmas Party, an exclusive game from Yahoo!
Re: Filters
Carl, I'm quite new to this but I'd guess that the Filter is instantiated at start-up by Tomcat. You might direct your new requests, plus the old requests for the asp pages, to Tomcat, using say Apache. Using a filter you could intercept *.asp and then forward/redirect to the new resource. --- Carl Olivier [EMAIL PROTECTED] wrote: Greetings. I have a questions regarding Filter servlets. If a request is made for a non-existent/non *.jsp or servlet URI - will the Filter be instantiated? Reason I ask is because I want to interect old bookmarked requests for an old site - which has been migrated to a new tomcat based JSP site - however the old site was ASP based. Many users of the old site would have bookmarked something like: /index.asp?PageID=16 or something similar - and I am hoping to be able to intercept that - using a Filter seemed a logical choice - and send back a redirect to the new URL /some.jsp for those requests. Thanks in advance, Carl - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___ How much free photo storage do you get? Store your holiday snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: database connection pooling
Khawaja, Just to add to what the others said. When you close the connection it doesn't actually close the connection, it returns it to the pool. You close it to return it, not to actually close it. It doesn't mean literally terminate the connection, otherwise you're right, there would not be much point in having a pool! Not sure if this is what you meant or not. --- KEREM ERKAN [EMAIL PROTECTED] wrote: When pooling on Tomcat, the connection must be closed. I think, by saying closing would defeat the purpose of connection pooling, Khawaja may be thinking about pooling in Tomcat as some persistent connection method, and while it is a persistent connection with Tomcat and the DB server which it connects to, the code that works on Tomcat sees the connection as a regular connection not a persistent connection. So unlike some persistent connection pooling methods (for example oci8 on php), in Tomcat, the connection must be closed, or it will hang unless some mechanism sets the connection as idle, or until Tomcat is restarted. Regards, Kerem -Original Message- From: Caroline Jen [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 22, 2005 2:04 PM To: Tomcat Users List Subject: Re: database connection pooling Hi, you should definitely close the connection right after the method that is invoked. The connection should be closed in the 'finally' block. May we know the reason why you think the closing would defeat the purpose of connection pooling? --- Khawaja Shams [EMAIL PROTECTED] wrote: Hello, when using connection pooling, i get a connection from the context. I am curious if I am supposed to close this connection when I am done using it. To me, it seems like closing it would defeat the purpose of connection pooling. Any guidance would be appreciated. Thanks in advance. Best Regards, Khawaja Shams __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___ Yahoo! Model Search 2005 - Find the next catwalk superstars - http://uk.news.yahoo.com/hot/model-search/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Could do with some guidance/help
Richard, I'm a novice myself so here's guessing Silly question but have you looked at the Tomcat log? That's usually a good starting place when you get an internal server error. Maybe a path to one of your classes has changed, eg, a filter? ie, your classes don't match was web.xml expects. Good luck. --- Paul Singleton [EMAIL PROTECTED] wrote: I only use Tomcat standalone, and have no hunches about your particular problem, but sometimes IE hides the sordid details of error msgs and I find that Firefox gives them to you straight; also there's a LiveHTTPHeaders plugin which can be useful when troubleshooting? good luck :-/ Paul Singleton Richard Tomkins wrote: Platform: Windows 200 Pro, Service Pack 4 Pentium 4, HyperThreaded, 512MB memory. Installed software, Oracle 10g Release 2, Personal Edition. Apache 1.3.33 J2SDK 1.4.2_10 Tomcat 4.1.31 Mod_jk-1.2.14-apache-1.3.33.so I have set up Tomcat server.xml with the requisite listeners to have it do auto configuration. I a using the ajp13 connector, and I have tried both of the configurations for this inside server.xml, the ajp13 on port 8009 and the coyote/ajp13 on port 8009. The Tomact examples all work as well as the administration and management tools. My problem is that I have an application that I have to install on a number of desktops for internal test purposes. The application is written in jsp and works with an earlier version of Apache and Tomact 3.x.mumble. With the implementation I am working with, on the first page I get a message that an Internal Server Error has occurred. If I right mouse click and choose refresh, the expected page shows up on the browser. If I do this via, HYPERLINK http://localhost:8080/testsoft/index.htmlhttp://localhost:8080/testsoft/in dex.html, the display works everytime, unlike my experience with HYPERLINK http://locahost/testsoft.htmlhttp://locahost/testsoft.html which should work. Many web pages after do work, and as I said previously, the Tomact examples all work with both methods. Something between Apache and Tomcat is causing me some pain. If anyone has any ideas to throw my way, please do. Regards, Richard Tomkins -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.1.362 / Virus Database: 267.12.8/165 - Release Date: 9/Nov/2005 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___ To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Mimetypes
Hey, Thanks for that Andoni. I thought that was what it was originally but I set up some tests and the mime-type returned for the phone I was using was correct. It turns out it was more to do with the encoding of the file itself. I think I had gone a bit hardcore, in the sense of trying to get the phones to play files with a v.high bit and frame rates. Very useful message from the phone though!? Thanks alot Andoni. Andoni [EMAIL PROTECTED] wrote: Have you looked at /conf/web.xml ? In this file you have a list of file extentions and their associated mime types. This tells the HTTP Server in Tomcat what MIME Type to associate with them when they are being output. I would recommend removing Apache from the process altogether while you are having config problems. Set Tomcat's port to 80 from the default 8080 and switch off Apache. Hope that helps, keep writing if not. Andoni. - Original Message - From: ALEX HYDE Newsgroups: gmane.comp.jakarta.tomcat.user Sent: Thursday, November 03, 2005 12:13 PM Subject: Mimetypes Hi All, I've set up Tomcat to work inside of Apache. It's all going ok and I am trying to serve up 3gp to phones. My file worked ok on Sony Ericsson but on Nokia it doesn't work. I have only configurred Tomcat and not Apache to serve up 3gp mimetype. The Nokia does not know what the file type is. has anyone got any suggestions on what I might have configured wrong. Thanks Alex ___ To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - How much free photo storage do you get? Store your holiday snaps for FREE with Yahoo! Photos. Get Yahoo! Photos
Re: Google Map of active users on this list
Very nice. Africa's a bit under-represented. --- Claire McLister [EMAIL PROTECTED] wrote: Hi, We've been working with Google Maps to see if we can automatically map origins of emails to groups. As a trial, we've been mapping active emails to this group since Oct 27th at: http://www.zeesource.net/maps/map.do?group=667 Would like to hear from you what you think of this service. Thanks for listening. Claire -- Claire McLister [EMAIL PROTECTED] 1684 Nightingale Avenue Suite 201 Sunnyvale, CA 94087408-733-2737(fax) http://www.zeemaps.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___ Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Mimetypes
Hi All, I've set up Tomcat to work inside of Apache. It's all going ok and I am trying to serve up 3gp to phones. My file worked ok on Sony Ericsson but on Nokia it doesn't work. I have only configurred Tomcat and not Apache to serve up 3gp mimetype. The Nokia does not know what the file type is. has anyone got any suggestions on what I might have configured wrong. Thanks Alex ___ To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Apache filters?
Hi all, I am using Tomcat to serve up my image content. I was considering moving this static content to Apache itself but I'm stuck on how to do dynamic authorisation of a directory in Apache. In Tomcat I can restrict access to the images directory by adding a filter and in this filter dynamically checking for a valid security pin in the url. But how would I do such a thing in Apache? I know Apache can do it based on user or requesting machine but this is more dynamic. Cheers alot Alex - To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre.
Re: Multi-part response
Cheers. I think I wanted to know how and if there was a good way of incororating mulitpart response into a framewrok like struts? Let's say I have a page with a number of src tags embeded in it, and I don't want the browser to have to pull in each image individually, how could I write them all out to a single response and still stay within a tidy framework like Struts? --- David Delbecq [EMAIL PROTECTED] wrote: If you want to alter the response of a servlet (like struts servlet), a ServletFilter is a good choice. ALEX HYDE a écrit : Hi All, This is probably not strictly a Tomcat question so apologies. If I am using Struts, how can I filter the output so that I convert it into a multipart response? Using a filter probably! But I'm not sure how. For example, how could I send all my embedded images and the response in one mulit-part response? Thanks alot Alex ___ Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.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] ___ How much free photo storage do you get? Store your holiday snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Multi-part response
Okay. Thanks for that guys. I guess I was being a bit optimistic. So images basically can't be written straight to the response? Thanks alot for that both of you. --- Peter Bright [EMAIL PROTECTED] wrote: Will a browser accept unsolicited images? Until the browser has parsed the HTML it doesn't know it wants the images. Will trying to give them to it anyway actually work? Or will it just say what the hell are these images, I haven't asked for them. I'll just ignore them? -Original Message- From: ALEX HYDE [mailto:[EMAIL PROTECTED] Sent: 18 October 2005 10:02 To: tomcat-user@jakarta.apache.org Subject: Multi-part response Hi All, This is probably not strictly a Tomcat question so apologies. If I am using Struts, how can I filter the output so that I convert it into a multipart response? Using a filter probably! But I'm not sure how. For example, how could I send all my embedded images and the response in one mulit-part response? Thanks alot Alex ___ Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] *** The information contained in this electronic message may be confidential and/or privileged. Any unauthorized use, dissemination, distribution, or reproduction is strictly prohibited. If you have received this communication in error, please contact the sender by reply email and destroy all copies of the original message. *** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___ How much free photo storage do you get? Store your holiday snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: 3GP and MPEG-4
Hahaha. Cheers for that then. --- Jon Wingfield [EMAIL PROTECTED] wrote: To simply serve the content, no. I needed to know about it so I could extract the metadata, and because I felt the need to know - must get out more ;) Jon ALEX HYDE wrote: Thanks Jon. That's really useful. I didn't realise it could just serve other types with so little involved. That's really good news. Do I need to know about the 'box model' or can I just take it as given and use it as is? Thanks again. Regards --- Jon Wingfield [EMAIL PROTECTED] wrote: Sure. You just need to add the correct mime-types to the web.xml in $TOMCAT_HOME/conf and tomcat's default servlet will serve them. http://www.iana.org/assignments/media-types/ audio/mp4 audio/3gpp video/mp4 video/3gpp video/3gpp2 The video ones are probably the ones to go for. The 3gpp and mp4 file formats use a box model. The metadata boxes of which tells the browser (phone) what is really in the file. HTH, Jon ALEX HYDE wrote: Dear All, Please can someone tell me whether I can configure Tomcat to serve 3GP and MPEG-4 for mobile devices. And possibly a small explanation. Thanks very much. Regards Alex Hyde ___ To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.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] ___ How much free photo storage do you get? Store your holiday snaps for FREE with Yahoo! Photos http://uk.photos.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] ___ Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]