Re: Question about licensincing of tomcat 6 latest

2010-06-10 Thread Gurkan Erdogdu
Hello Kartikey; You could use with giving required "NOTICE" for the Apache Tomcat (Apache Tomcat NOTICE file includes notices, http://svn.apache.org/repos/asf/tomcat/trunk/NOTICE) and your product must include "ASL V2 license text file" that is readable by your prospects/customers etc. Please

Re: Where to store uploaded user content in app

2010-06-10 Thread Eric P
Caldarale, Charles R wrote: From: Eric P [mailto:eric.maill...@gmail.com] Subject: Where to store uploaded user content in app For example, in my application I was thinking I would create an empty directory under /web/WEB-INF for the non-web accessible image uploads and another empty directory

Re: Tomcat in Eclipse Error 500 java.lang.ClassNotFoundException

2010-06-10 Thread Vitalstatistix
Yeh that was just a dodgy hack to get around my initial errors when using javac. I found out later the reason why javac wasn't working on my servlet class was because servlet-api.jar wasn't on the classpath, after adding that I was able to compile it the normal way. Also the solution is NOT to put

RE: Question about licensincing of tomcat 6 latest

2010-06-10 Thread Caldarale, Charles R
> From: kartikey.shu...@vidurinfosoft.com > [mailto:kartikey.shu...@vidurinfosoft.com] > Subject: Question about licensincing of tomcat 6 latest > > We want package tomcat server with our build . Can you please tell me > what is licensing policy for packaging tomcat server . You could always try

Re: Connection is closed when CometEvent.close is called during an event

2010-06-10 Thread Konstantin Kolinko
2010/6/11 Reich, Matthias : > > The concept of long poll is e.g. described in > http://www.javaworld.com/javaworld/jw-03-2008/jw-03-asynchhttp.html?page=6 > > The sequence of events in my situation is as follows: > - a poll request is received by the server > - the CoyoteAdapter.service method is c

Question about licensincing of tomcat 6 latest

2010-06-10 Thread kartikey . shukla
Dear Sir/Madam , We are devloping a web application . We will use tomcat6 as web container for our product . We want package tomcat server with our build . Can you please tell me what is licensing policy for packaging tomcat server . Waiting for your warm reply . Thanks Kartikey ---

Re: EL 2.2 in Tomcat 7 RC1/RC2 does not fully support method invocation, such as "#{helloWorldController.doSomething(helloWorldModel)}"

2010-06-10 Thread John Wu
That sounds even better. I'm looking forward to test the modified impl in the next RC/release. Mark Thomas wrote: > > On 10/06/2010 14:42, John Wu wrote: >> >> Hi Mark, >> >> The fix of "to derive the type directly from the value which ..." sounds >> not >> a solution. In a slightly more comp

RE: Connection is closed when CometEvent.close is called during an event

2010-06-10 Thread Reich, Matthias
On 10/06/2010 9:49 PM, Konstantin Kolinko wrote: > 2010/6/8 Reich, Matthias: > > I modified the code (in 6.0.20 and 6.0.26) so that the > error flag is not set. > > With that change Tomcat kept the connection open: > > > > ... > >    if (response.isClosed() || !request.isComet()) { > >        if

Re: EL 2.2 in Tomcat 7 RC1/RC2 does not fully support method invocation, such as "#{helloWorldController.doSomething(helloWorldModel)}"

2010-06-10 Thread Mark Thomas
On 10/06/2010 14:42, John Wu wrote: > > Hi Mark, > > The fix of "to derive the type directly from the value which ..." sounds not > a solution. In a slightly more complex scenario, the fix still fails. > > Say the method signature is "public * theMethod(TheSupperType o)" and > calling the method

Re: Connection is closed when CometEvent.close is called during an event

2010-06-10 Thread Konstantin Kolinko
2010/6/8 Reich, Matthias : > I modified the code (in 6.0.20 and 6.0.26) so that the error flag is not set. > With that change Tomcat kept the connection open: > > ... >    if (response.isClosed() || !request.isComet()) { >        if (status==SocketStatus.OPEN) { >        //CometEvent.close was call

Re: How to configure a web app

2010-06-10 Thread André Warnier
David kerber wrote: On 6/10/2010 3:52 PM, André Warnier wrote: ... Does there exist *any* way to put the actual values "value1", "value2", etc.. in some place *outside* the web.xml file, and *outside* the war that would be created for this application, and still allow the application, on star

Re: HTTP Status 408!

2010-06-10 Thread Konstantin Kolinko
2010/6/10 neo21 zerro : >     Are there other versions of Tomcat ? I mean newer versions, like 7 ? > There is "RC 4" build of Tomcat 7 available for testing. See a thread on d...@. Best regards, Konstantin Kolinko - To unsubscr

Re: HTTP Status 408!

2010-06-10 Thread Mark Thomas
On 10/06/2010 15:39, neo21 zerro wrote: > > Yes I am requesting a protected resource but I don't know why is this > happening. > > > I've tried to set all sort of cookies in my browser but nothing > works.The problem is that I'm not using jsp like Pid said > and I think I should try

Re: How to configure a web app

2010-06-10 Thread David kerber
On 6/10/2010 3:52 PM, André Warnier wrote: ... Does there exist *any* way to put the actual values "value1", "value2", etc.. in some place *outside* the web.xml file, and *outside* the war that would be created for this application, and still allow the application, on startup, to read the valu

Re: How to configure a web app

2010-06-10 Thread André Warnier
Konstantin Kolinko wrote: 2010/6/10 André Warnier : Let me speak for the OP, and for others like me who do not necessarily write the applications and filters which they are installing on customer systems. Sometimes, you have to deal with such third-party modules, which have to be used e.g. as a

Re: How to configure a web app

2010-06-10 Thread André Warnier
Mark Thomas wrote: On 10/06/2010 20:52, André Warnier wrote: Does there exist *any* way to put the actual values "value1", "value2", etc.. in some place *outside* the web.xml file, and *outside* the war that would be created for this application, and still allow the application, on startup, to r

Re: How to configure a web app

2010-06-10 Thread Mark Thomas
On 10/06/2010 20:52, André Warnier wrote: > Does there exist *any* way to put the actual values "value1", "value2", > etc.. in some place *outside* the web.xml file, and *outside* the war > that would be created for this application, and still allow the > application, on startup, to read the values

Re: HyperLink Office connection

2010-06-10 Thread antonio giulio
Hi Andrè, yes I know the "route" is very long tho at this point I don't see many alternatives. The "200" returned to Office with the same path of the first request (changing "http" to "https") make it working with one session only. I have not the Office's specification for this communication (mayb

Re: How to configure a web app

2010-06-10 Thread Konstantin Kolinko
2010/6/10 André Warnier : > > Let me speak for the OP, and for others like me who do not necessarily write > the applications and filters which they are installing on customer systems. > Sometimes, you have to deal with such third-party modules, which have to be > used e.g. as a servlet filter in c

Re: How to configure a web app

2010-06-10 Thread Pid
On 10/06/2010 16:43, André Warnier wrote: > > If at the same time you have a customer who insists on receiving war > files for application updates, you're cooked, because you have to build > a customer-specific war file every time. This might be /tedious/, but it's not /hard/. If it was somethin

Re: HyperLink Office connection

2010-06-10 Thread André Warnier
Hi. I am glad that you found a solution that works for you, and maybe the most important at this point is that it quickly solves your problem. About the solution below however, I want to point out that it is rather "expensive" in many respects, and I hope that this is not supposed to be a hi

Re: tomcat 6.0 404 error only on firefox due to backslashes?

2010-06-10 Thread André Warnier
mamalacation wrote: awarnier wrote: No. But before you find a "solution" and create a big security issue, I suggest that from now on you check this with different browsers, and particularly different IE versions. I think that the "fix" you found is really a kludge, in that it kind of wor

Re: tomcat 6.0 404 error only on firefox due to backslashes?

2010-06-10 Thread mamalacation
awarnier wrote: > > > No. But before you find a "solution" and create a big security issue, I > suggest that from now on you check this with different browsers, and > particularly different IE versions. > > I think that the "fix" you found is really a kludge, in that it kind of > works by

Re: tomcat 6.0 404 error only on firefox due to backslashes?

2010-06-10 Thread Ziggy
For security purposes, Mozilla applications block links to local files (and directories) from remote files. This includes linking to files on your hard drive, on mapped network drives, and accessible via Uniform Naming Convention

Re: tomcat 6.0 404 error only on firefox due to backslashes?

2010-06-10 Thread André Warnier
mamalacation wrote: Pid * wrote: Why not just fix the URLs? p I am not sure what you mean by saying "fix the URLs", but in the meantime I found out how to set the option org.apache.catalina.connector. CoyoteAdapter.ALLOW_BACKSLASH=true in conf/catalina.properties, so now it almost work

Re: tomcat 6.0 404 error only on firefox due to backslashes?

2010-06-10 Thread mamalacation
Pid * wrote: > > > Why not just fix the URLs? > > p > > > I am not sure what you mean by saying "fix the URLs", but in the meantime I found out how to set the option org.apache.catalina.connector. CoyoteAdapter.ALLOW_BACKSLASH=true in conf/catalina.properties, so now it almost works! It

Re: How to configure a web app

2010-06-10 Thread André Warnier
Mark H. Wood wrote: On Wed, Jun 09, 2010 at 05:20:22PM +0200, Thomas Kloeber wrote: Mark H. Wood wrote on 09.06.2010 17:03: On Wed, Jun 09, 2010 at 04:19:17PM +0200, Thomas Kloeber wrote: the problems I have are: * the IP address of the backing database is one of the parameters

Re: tomcat 6.0 404 error only on firefox due to backslashes?

2010-06-10 Thread Pid
On 10/06/2010 15:41, mamalacation wrote: > > Dear all, > > I had to setup a Windows 2008r2 box running tomcat 6.0.26 in a virtual > machine, in order to see if a project/site from a windows 2003 SP2 and > tomcat 5.0 could run on it. During the "upgrade" process everything worked > well (after a f

Re: How to configure a web app

2010-06-10 Thread Mark H. Wood
On Wed, Jun 09, 2010 at 05:20:22PM +0200, Thomas Kloeber wrote: > Mark H. Wood wrote on 09.06.2010 17:03: > > On Wed, Jun 09, 2010 at 04:19:17PM +0200, Thomas Kloeber wrote: > > > >> the problems I have are: > >> > >> * the IP address of the backing database is one of the parameters > >>

Re: tomcat 6.0 404 error only on firefox due to backslashes?

2010-06-10 Thread mamalacation
I have seen the configuration variables: org.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH and org.apache.catalina.connector.CoyoteAdapter.ALLOW_BACKSLASH that if they could be set to true, they could solve my problem, but I have no idea where to place them (configuration file?!), and/or

Re: HyperLink Office connection

2010-06-10 Thread antonio giulio
Hi Andre', thanks for the offer, you are right, at this point is off-topic, anyway I solved (sorry for the OT) all in Apache-httpd: on the virtual host configuration: RewriteEngine on ReWriteCond %{SERVER_PORT} !^443$ RewriteRule (.*) https://%{HTTP_HOST}/cgi-bin/redirect.pl$1 and the simple r

tomcat 6.0 404 error only on firefox due to backslashes?

2010-06-10 Thread mamalacation
Dear all, I had to setup a Windows 2008r2 box running tomcat 6.0.26 in a virtual machine, in order to see if a project/site from a windows 2003 SP2 and tomcat 5.0 could run on it. During the "upgrade" process everything worked well (after a few tricks), except from one thing (at this point I have

Re: HTTP Status 408!

2010-06-10 Thread neo21 zerro
Yes I am requesting a protected resource but I don't know why is this happening. I've tried to set all sort of cookies in my browser but nothing works.The problem is that I'm not using jsp like Pid said and I think I should try to use jsp...for my login page. Are there other v

Re: HTTP Status 408!

2010-06-10 Thread neo21 zerro
Hello, this is my login.html page: From: Martin Gainty To: Tomcat Users List Sent: Thu, June 10, 2010 4:34:11 PM Subject: RE: HTTP Status 408! the form-login-page login.html *should* contain the j_security parameters for your login form e.g.:

Re: HTTP Status 408!

2010-06-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Neo21, On 6/9/2010 4:52 PM, neo21 zerro wrote: > I'm using Tomcat 6.0.26 with java 1.5 JDK. > > I've developed a JAAS login module for my application and when I try > to login in my app a strange error occur's: HTTP Status 408:The time > allowed for

Re: EL 2.2 in Tomcat 7 RC1/RC2 does not fully support method invocation, such as "#{helloWorldController.doSomething(helloWorldModel)}"

2010-06-10 Thread John Wu
Hi Mark, The fix of "to derive the type directly from the value which ..." sounds not a solution. In a slightly more complex scenario, the fix still fails. Say the method signature is "public * theMethod(TheSupperType o)" and calling the method in EL like "#{theClassInstance.theMethod(theDerived

Re: J2EE (Spring) + Flex + Tomcat 6.0.18 problem

2010-06-10 Thread André Warnier
Caldarale, Charles R wrote: From: Pid [mailto:p...@pidster.com] Subject: Re: J2EE (Spring) + Flex + Tomcat 6.0.18 problem I've used Charles 3.5.1 to analyse http request/response Chuck is *software*!? The secret is out... That release is at least 50 years old however, and although it is su

RE: HTTP Status 408!

2010-06-10 Thread Martin Gainty
the form-login-page login.html *should* contain the j_security parameters for your login form e.g.: is this the case? Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist ver

Re: HTTP Status 408!

2010-06-10 Thread Pid
On 10/06/2010 14:19, neo21 zerro wrote: > > Yes every time I want to login! > > > > User Application > /* > > > user > > > > > FORM > user > > /forms/login.html > /forms/error.html I usually place them in: WEB-INF/login/form.jsp WEB-INF/login/error.jsp so they can't be requested dir

Re: HTTP Status 408!

2010-06-10 Thread neo21 zerro
Yes every time I want to login! User Application /* user FORM user /forms/login.html /forms/error.html User Role for authentication user From: Pid To: Tomcat Users List Sent: Thu, June 10, 2010 3:43:18 PM Subject: Re: HTTP Status 408! On

RE: J2EE (Spring) + Flex + Tomcat 6.0.18 problem

2010-06-10 Thread Caldarale, Charles R
> From: Pid [mailto:p...@pidster.com] > Subject: Re: J2EE (Spring) + Flex + Tomcat 6.0.18 problem > > > I've used Charles 3.5.1 to analyse http request/response > > Chuck is *software*!? The secret is out... (But not quite as soft as I used to be, since we started using a Wii Fit.) - Chuck T

RE: Question about context.xml

2010-06-10 Thread Caldarale, Charles R
> From: Abid Hussain [mailto:abid.huss...@dilax.com] > Subject: Question about context.xml > > My question is about the several possibility to declare > elements for configuring JNDI resources in Tomcat 6 configuration. Read the (not - case matters) doc first, then search: http://tomcat.apache

Re: Question about context.xml

2010-06-10 Thread Pid
On 10/06/2010 12:47, Abid Hussain wrote: > Hello, > > I'm sure this question has been posted in the past already, but when > searching for "Tomcat 6 context.xml" (or similar) I didn't find anything > which described my question. > > My question is about the several possibility to declare > e

Re: HTTP Status 408!

2010-06-10 Thread Pid
On 10/06/2010 12:06, neo21 zerro wrote: > Hello , > > > Good news I found a way to get rid of the error with this code in my JASS: > session = req.getSession(true); > > > But now I get another strage error : > > HTTP Status 400 - Invalid direct reference to form login page > __

Question about context.xml

2010-06-10 Thread Abid Hussain
Hello, I'm sure this question has been posted in the past already, but when searching for "Tomcat 6 context.xml" (or similar) I didn't find anything which described my question. My question is about the several possibility to declare elements for configuring JNDI resources in Tomcat 6 config

Re: HTTP Status 408!

2010-06-10 Thread neo21 zerro
Hello , Good news I found a way to get rid of the error with this code in my JASS: session = req.getSession(true); But now I get another strage error : HTTP Status 400 - Invalid direct reference to form login page type Status report message Invalid direct refe

Re: HyperLink Office connection

2010-06-10 Thread André Warnier
antonio giulio wrote: N.B. If Office is handling the connection requests up to some step, then Tomcat can't do anything about it - the problem is occuring before Tomcat has any influence over the situation. Yes, Unfortunely I think you are right. A solution maybe could be writing a CGI for Apa

RE: J2EE (Spring) + Flex + Tomcat 6.0.18 problem

2010-06-10 Thread Martin Gainty
if your bean implemenents implements Lifecycle it is likely that you LifecycleBean is not running in which case you'll need to restart it e.g true if(!context.getBean("lifecycle").isRunning()) context.getBean("lifecycle").start(); if your bean implelements FactoryBean then increase t

Re: HTTP Status 408!

2010-06-10 Thread neo21 zerro
Hello Pid , Thanks for your time! I put this in my web.xml : 30 From: Pid To: Tomcat Users List Sent: Thu, June 10, 2010 12:13:34 PM Subject: Re: HTTP Status 408! On 09/06/2010 21:52, neo21 zerro wrote: > Hello, > > I'm usin

Re: Tomcat DBCP

2010-06-10 Thread Mark Thomas
On 10/06/2010 08:25, Altanis Alexandros wrote: > Thanks! > > However, when I try to checkout the repository, I get > > "Repository moved permanently to > '/viewvc/tomcat/trunk/modules/jdbc-pool/';" > > I had to use > > http://svn.apache.org/repos/asf/tomcat/trunk/modules/jdbc-pool/ > > in o

Re: HyperLink Office connection

2010-06-10 Thread antonio giulio
> N.B. If Office is handling the connection requests up to some step, > then Tomcat can't do anything about it - the problem is occuring before > Tomcat has any influence over the situation. Yes, Unfortunely I think you are right. A solution maybe could be writing a CGI for Apache and redirect th

Re: HyperLink Office connection

2010-06-10 Thread Pid
On 10/06/2010 10:31, antonio giulio wrote: > No proxy for the browser. > > I try to describe better with header stuff steps: > > 1) When the user click on link the request for the URL is sent by Office/Word > 2) Office/Word connect 200 to the server > 3) Server sends back 302 http status and a re

Re: Running Perl in Tomcat

2010-06-10 Thread Sravan Suryadevara
Okay, after looking through the logs, I decided to check my web.xml and context.xml files, so I realized that the servlet mapping included for the CGI Servlet, maps to within the ROOT directory (where my webapp is sitting). I also had to put the script in ROOT/WEB-INF/cgi. So now it's working. Tha

Re: Connection is closed when CometEvent.close is called during an event

2010-06-10 Thread Pid
On 08/06/2010 11:26, Reich, Matthias wrote: > Hello, > > I am using a CometProcessor servlet in a long-poll scenario, and recently had > a closer look at the life span of connections that are used for poll requests. > > I noticed that connections are closed by Tomcat whenever a poll request > wa

Re: J2EE (Spring) + Flex + Tomcat 6.0.18 problem

2010-06-10 Thread Pid
On 08/06/2010 15:03, kitikat wrote: > > Hello, > I have been searching a solution for my problem and I haven't found an > answer, so I decided to write here. I have a system, consisting of J2EE > (Spring) server-side LifeCycle Data Services for my Adobe Flex client > application. Synchronization o

Re: Tomcat in Eclipse Error 500 java.lang.ClassNotFoundException

2010-06-10 Thread Pid
On 10/06/2010 03:20, Vitalstatistix wrote: > > > SOLVED: > > There was no HelloServlet.class file so I had to put an empty main method > into the HelloServlet.java class and run it to generate the > HelloServlet.class file, then I placed the class file in the WEB-INF folder > and it all worked f

Re: Session clustering across different contexts

2010-06-10 Thread Pid
On 10/06/2010 06:13, Andrew Bruno wrote: > Hello, > > I have managed to get session clustering working when using the same context. Tomcat, JVM, OS exact versions please. > I need to get session replication working across different contexts. > Does anyone know if this is possible? Depends what

Re: HTTP Status 408!

2010-06-10 Thread Pid
On 09/06/2010 21:52, neo21 zerro wrote: > Hello, > > I'm using Tomcat 6.0.26 with java 1.5 JDK. > > >I've developed a JAAS login module for my application and when I try > to login in my app a strange error occur's: > HTTP Status 408:The time allowed for the login process has been ex

Re: Running Perl in Tomcat

2010-06-10 Thread Pid
On 10/06/2010 09:54, Sravan Suryadevara wrote: >> "Only Contexts which are marked as privileged may use the CGI servlet" >> >> Did you mark the context as privileged? >> >> http://tomcat.apache.org/tomcat-6.0-doc/config/context.html > > I have, in conf/context.xml. Since I'm only running one app

Re: Running Perl in Tomcat

2010-06-10 Thread Sravan Suryadevara
> "Only Contexts which are marked as privileged may use the CGI servlet" > > Did you mark the context as privileged? > >  http://tomcat.apache.org/tomcat-6.0-doc/config/context.html I have, in conf/context.xml. Since I'm only running one app I figured it wouldn't really be terrible if it was globa

Re: Running Perl in Tomcat

2010-06-10 Thread Pid
On 10/06/2010 08:30, Sravan Suryadevara wrote: > Hi, > > So I'm trying run a perl script within tomcat. Since I need to run > only one script, I figured itd be easier to just include it in tomcat > than install Apache HTTP server. > I'm currently using Tomcat 6.0.26 on CentOS 5. I'm using port 810

Re: How to finalize all sessions in a server with SingleSignOn valve activated ?

2010-06-10 Thread Pid
On 10/06/2010 09:05, Mariano López wrote: > According to > http://tomcat.apache.org/tomcat-6.0-doc/config/host.html#Single%20Sign%20On > > *As soon as the user logs out of one web application (for example, by > invalidating the corresponding session if form based login is used), the > user's sessi

Re: How to finalize all sessions in a server with SingleSignOn valve activated ?

2010-06-10 Thread Mariano López
According to http://tomcat.apache.org/tomcat-6.0-doc/config/host.html#Single%20Sign%20On *As soon as the user logs out of one web application (for example, by invalidating the corresponding session if form based login is used), the user's sessions in all web applications will be invalidated. Any s

Running Perl in Tomcat

2010-06-10 Thread Sravan Suryadevara
Hi, So I'm trying run a perl script within tomcat. Since I need to run only one script, I figured itd be easier to just include it in tomcat than install Apache HTTP server. I'm currently using Tomcat 6.0.26 on CentOS 5. I'm using port 8100 (has worked before the cgi stuff), and my webapp is runni

RE: Tomcat DBCP

2010-06-10 Thread Altanis Alexandros
Thanks! However, when I try to checkout the repository, I get "Repository moved permanently to '/viewvc/tomcat/trunk/modules/jdbc-pool/';" I had to use http://svn.apache.org/repos/asf/tomcat/trunk/modules/jdbc-pool/ in order to checkout. Thanks again! Alexander -Original Message---