Re: Compile, build and prepare Webapp for Tomcat in command line

2011-10-31 Thread Tim Watts
On Mon, 2011-10-31 at 08:17 -0700, Léa Massiot wrote: Hello, Thank you for reading my post. I am presently programming my Webapps inside Eclipse. I would like to automate the compiling and building of my source code. I need to know which javac, java (and maybe jar) commands I should run

RE: cannot read complete HTTP request body. It reads only 8192 characters

2011-10-31 Thread Tim Watts
The answer likely lies somewhere in the version and/or configuration of AJP. You never shared the details of these and so no further useful comment is possible. See Rainer Jung's response on 10/27. On Mon, 2011-10-31 at 18:42 -0700, Anantaneni Harish wrote: Any thoughts about this? Thanks

Re: Re: : tomcat error 404

2011-10-24 Thread Tim Watts
On Mon, 2011-10-24 at 12:41 -0400, Dave Filchak wrote: Humm, well I did the whole export CLASSPATH thing. So I should just have to place them in my apps lib directory, as shown below, and it should load automagically? Indeed it should. No need to monkey with CLASSPATH. You may need to

Re: [OT] control of session timed out with tomcat

2011-10-21 Thread Tim Watts
On Fri, 2011-10-21 at 11:05 -0400, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tim, On 10/20/2011 7:01 PM, Tim Watts wrote: This was a while ago -- no HttpSessionListeners available -- so we couldn't easily persist the session and recall it when the user

Re: control of session timed out with tomcat

2011-10-20 Thread Tim Watts
On Thu, 2011-10-20 at 09:51 -0400, Alejandro Soto wrote: Hi my friends, I want to ask you all, If there is a way to control the timed out of sessions with tomcat, what I need is when the session timed out, automatically the user is redirected to the login page, Is this possible to do that from

Re: control of session timed out with tomcat

2011-10-20 Thread Tim Watts
On Thu, 2011-10-20 at 10:06 -0400, Tim Watts wrote: On Thu, 2011-10-20 at 09:51 -0400, Alejandro Soto wrote: Hi my friends, I want to ask you all, If there is a way to control the timed out of sessions with tomcat, what I need is when the session timed out, automatically the user

Re: control of session timed out with tomcat

2011-10-20 Thread Tim Watts
On Thu, 2011-10-20 at 07:08 -0700, Hassan Schroeder wrote: On Thu, Oct 20, 2011 at 6:51 AM, Alejandro Soto smalejan...@gmail.com wrote: Hi my friends, I want to ask you all, If there is a way to control the timed out of sessions with tomcat, what I need is when the session timed out,

Re: control of session timed out with tomcat

2011-10-20 Thread Tim Watts
On Thu, 2011-10-20 at 10:23 -0400, Alejandro Soto wrote: Hi, thanks for your replies, These are the only ways I have to do it?, I was reading something about filters, but I think only works with user interaction. Basically, that's all. Filters are only active during the request-response

Re: [OT?] control of session timed out with tomcat

2011-10-20 Thread Tim Watts
On Thu, 2011-10-20 at 16:35 +0100, Mark Thomas wrote: On 20/10/2011 16:22, André Warnier wrote: Hassan Schroeder wrote: On Thu, Oct 20, 2011 at 7:52 AM, André Warnier a...@ice-sa.com wrote: 1) Tomcat (probably) doesn't spend its time all the time scanning stored sessions to see if one

Re: control of session timed out with tomcat

2011-10-20 Thread Tim Watts
On Thu, 2011-10-20 at 16:44 -0400, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tim, On 10/20/2011 10:15 AM, Tim Watts wrote: I should also point out that this approach is somewhat kludgey because of the inherent latency problems when the session is close

Re: [sidebar] Tomcat configuration under webApp

2011-10-19 Thread Tim Watts
Don't know how this happens but your replies are coming across as quoted (i.e. having a line prefix). Makes it very difficult to follow the thread. On Wed, 2011-10-19 at 10:21 -0700, ettoregia wrote: Christopher Schultz-2 wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1

Re: Tomcat configuration under webApp

2011-10-18 Thread Tim Watts
On Tue, 2011-10-18 at 09:15 -0700, ettoregia wrote: Pid * wrote: On 18 Oct 2011, at 16:12, ettoregia ettore...@gmail.com wrote: My system: Tomcat 6.0.18 --- Linux Red Hat 4 -- Java 6 Hi folk, does anyone of you knows where I can get some materials in order to understand

Re: Tomcat Manager

2011-10-17 Thread Tim Watts
On Mon, 2011-10-17 at 08:08 -0700, ettoregia wrote: Hi everybody, I'm using Tomcat 6.0.33 and at localhost:8080 it shows correctly. Does localhost:8080 it shows correctly mean you can see a process listening on it? When I try to access the tomcat manager link I get an 404 page error.

Re: Session across Realm and Servlet

2011-10-17 Thread Tim Watts
On Mon, 2011-10-17 at 01:10 +0530, sailendra karthik wrote: On Sun, Oct 16, 2011 at 5:16 PM, Chema demablo...@gmail.com wrote: In my Custom Realm Implementation iam autheticating some user and allowing him to access my webapps(servlets or filters) (my application) This

Re: Tomcat Manager

2011-10-17 Thread Tim Watts
On Mon, 2011-10-17 at 09:07 -0700, ettoregia wrote: Tim Watts-3 wrote: On Mon, 2011-10-17 at 08:08 -0700, ettoregia wrote: When I try to access the tomcat manager link I get an 404 page error. What URL are you using? Did you enable access (i.e. are you really getting a 404

Re: JSP page that will not update

2011-10-07 Thread Tim Watts
On Fri, 2011-10-07 at 09:05 -0400, Stephen Caine wrote: OK, but can you point me to where I might learn how to do this? See JavaDocs for HttpServletResponse; also RFC2616 (HTTP 1.1) http://datatracker.ietf.org/doc/rfc2616/ But really, don't bother with this until you understand what

Re: WebApps sharing uploaded files

2011-10-03 Thread Tim Watts
It does? Doesn't that mean you have two distinct copies of f.txt? I thought that's what you were trying to avoid. Or are uf1 and uf2 aliases for the same directory? Or was your goal really to have one JSP that would work in w1 and w2? On Mon, 2011-10-03 at 10:15 -0700, Léa Massiot wrote: Hello,

Re: Defining JDBC resource and AutoDeploy

2011-09-29 Thread Tim Watts
Try: * conf/Catalina/localhost/mywebapp.xml OR * webapps/mywebapp/META-INF/context.xml OR * If you put it in GlobalNamingResources then you have to add a Resource-Link to Context. See the Configuration documentation.

[tomcat-6.0.33] META-INF/context.xml Environment not working

2011-09-22 Thread Tim Watts
Hello, My very basic servlet fails to initialize when trying to read its JNDI environment entry. The app context name is xbasic. The context.xml is in xbasic.war's META-INF directory and TomCat (6.0.33) correctly copies it to ${tomcat.home}/conf/Catalina/localhost/xbasic.xml on first deploy.

Re: [tomcat-6.0.33] META-INF/context.xml Environment not working

2011-09-22 Thread Tim Watts
); } log(getClass().getName() +: Successfully initialized. configName=[ +configName +]); } On Thu, 2011-09-22 at 16:50 +0100, Pid * wrote: Why not do your initialisation in the Servlet.init() method? p On 22 Sep 2011, at 16:42, Tim Watts t...@cliftonfarm.org wrote: Hello

RE: [tomcat-6.0.33] META-INF/context.xml Environment not working

2011-09-22 Thread Tim Watts
it. On Thu, 2011-09-22 at 09:10 -0700, Leo Donahue - PLANDEVX wrote: -Original Message- From: Tim Watts [mailto:t...@cliftonfarm.org] Subject: [tomcat-6.0.33] META-INF/context.xml Environment not working === context.xml Context unpackWAR=false

Re: RE:[OT][tomcat-6.0.33] META-INF/context.xml Environment not working

2011-09-22 Thread Tim Watts
On Thu, 2011-09-22 at 13:48 -0700, Leo Donahue - PLANDEVX wrote: So what is the difference between having a env-entry or resource-ref in web.xml vs. a Resource or Environment elements in META-INF/context.xml? Well for starters, the web.xml entries will work in all web containers whereas

Re: [tomcat-6.0.33] META-INF/context.xml Environment not working

2011-09-22 Thread Tim Watts
Wonderful. Thank You! You're right about Parameter/context-param but I'm not sure all standards conforming servlet containers are guaranteed to provide an 'external override' behaviour. On Fri, 2011-09-23 at 07:07 +0400, Konstantin Kolinko wrote: 2011/9/22 Tim Watts t...@cliftonfarm.org

<    1   2