Re: 100% usage and hanging on startup of Spring/Hibernate app in Tomcat 5.5 on Ubuntu 7

2009-08-30 Thread Peter Crowther
2009/8/28 Bradley Wagner bradley.wag...@hannonhill.com I have a Spring/Hibernate app running in Tomcat 5.5.20 that we've tested in many environments that is currently faltering when running in a Ubuntu 7 VM. Basically on startup, frequently, the startup process will halt when trying to read

Unable to view uploaded files in Tomcat till server is refreshed

2009-08-30 Thread asingla4
Hi All, I am building an application wherein the user would have an option to upload files (can be documents or images) and once the files are uploaded the user should be able to download it. I am using Apache Tomcat 6.0 and JDK1.6. Every thing seems to be OK for the File Upload part but I have

Unable to access files outside Webapp directory in tomcat

2009-08-30 Thread asingla4
Hi All, I am developing a web application with JDK 1.6 and Tomcat 6.0. I have kept all the documents and images outside the root directory of the application. How can I access these files in my application. Please suggest Thanks Akash Singla TheDaedals.com -- View this message in context:

Re: Unable to view uploaded files in Tomcat till server is refreshed

2009-08-30 Thread Hassan Schroeder
On Sun, Aug 30, 2009 at 9:17 AM, asingla4mrakashsin...@gmail.com wrote: One fix we found out for this was to create a new file directory under the web-apps folder of tomcat outside the root directory of the application and save the files in this directory. To make this work we added a new

How to set header (directly) before response is committed

2009-08-30 Thread Martin Grotzke
Hi, I want to set a cookie as late as possible from within a valve. So that the Set-Cookie header is set on the response and sent to the client the response must not be committed, so setting the cookie directly before the response is committed would be ideal from my point of view. I found the

Re: How to redirect from HTTPS to HTTP

2009-08-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thilani, On 8/29/2009 9:23 AM, Thilani wrote: I am developing a web application which is require login for users. I want to use HTTPS for login only. Your biggest problem will be maintaining the session id across the HTTP-HTTPS switch. See this

Re: How to set header (directly) before response is committed

2009-08-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Martin, On 8/30/2009 1:50 PM, Martin Grotzke wrote: I found the ActionHook within the coyote response, so I'd try to wrap this and intercept the action with ActionCode.ACTION_COMMIT. Is this the correct approach for solving this problem? Sounds

Re: How to set header (directly) before response is committed

2009-08-30 Thread Martin Grotzke
On Sun, 2009-08-30 at 14:57 -0400, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Martin, On 8/30/2009 1:50 PM, Martin Grotzke wrote: I found the ActionHook within the coyote response, so I'd try to wrap this and intercept the action with

Is resource-ref really needed?

2009-08-30 Thread Robert Whane
Hi, I'm using Tomcat 6.20 and have configured a datasource in META-INF/context.xml, which looks basically like this: ?xml version=1.0? Context reloadable=false Resource name=jdbc/mydb factory=org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory type=javax.sql.DataSource

RE: Is resource-ref really needed?

2009-08-30 Thread Martin Gainty
mandatory: define the attributes in ContextResource in applicationContext.xml OR optionally define the resource attributes resource-env-ref or resource-ref in web.xml http://proteinbank.vbi.vt.edu/tomcat-docs/config/context.html#Resource%20Definitions Martin Gainty

Re: Is resource-ref really needed?

2009-08-30 Thread Robert Whane
Hi, On Mon, Aug 31, 2009 at 1:12 AM, Martin Gaintymgai...@hotmail.com wrote: mandatory: define the attributes in ContextResource in applicationContext.xml OR optionally define the resource attributes resource-env-ref or resource-ref in web.xml

RE: Is resource-ref really needed?

2009-08-30 Thread Martin Gainty
you can enter a documentation change to correct either 1)duplicate behaviour of ApplicationContext.xml Resource by web.xml resource-ref 2)or make the documentation a bit clearer on what is required and what is optional the doc states: You CAN declare the characteristics of the resource to

Re: How to set header (directly) before response is committed

2009-08-30 Thread Bill Barker
Martin Grotzke martin.grot...@javakaffee.de wrote in message news:1251665502.4485.70.ca...@localhost.localdomain.tld... On Sun, 2009-08-30 at 14:57 -0400, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Martin, On 8/30/2009 1:50 PM, Martin Grotzke wrote: I

tomcat 4.1.31 problem

2009-08-30 Thread jamez smith
Hi, I am using Tomcat 4.1.31 and jdk 1.4 for a legacy web application. I have spent two days trying to deploy myApp.war to $CATALINA_HOME/webapps, but no success. I searched the Web and found most of the solution is for Tomcat 5 and Tomcat 6. The strange thing I have is Tomcat 4.1 works when I