How to have a request timeout ?

2007-11-22 Thread christophe blin
Hi, I'd like to cancel a servlet request if it took more than 5 seconds. ATM, I know this is not possible directly via a tomcat configuration (in fact I found no servlet container with this option). By googling and doing a lot of tries (mainly based on

trigger program which installed on client machine

2007-11-22 Thread raybristol
Hi, I need to trigger a program which installed on client machine when use press a button from a web page, I wonder what's the best way to do it? Any links? - I post this on wicket forum as well, but I also got jsp pages so I think I might get more answers if I posted it here as well. Many

Re: How to have a request timeout ?

2007-11-22 Thread Johnny Kewl
--- HARBOR: http://coolharbor.100free.com/index.htm Now Tomcat is also a cool pojo application server --- - Original Message - From: christophe

Re: How to have a request timeout ?

2007-11-22 Thread Pid
christophe blin wrote: Hi, I'd like to cancel a servlet request if it took more than 5 seconds. ATM, I know this is not possible directly via a tomcat configuration (in fact I found no servlet container with this option). By googling and doing a lot of tries (mainly based on

RE: failing to log on to manager web application

2007-11-22 Thread Tshuma Lingani
thanks so much for your help guys i'v managed to get around the problem. i changed the tomcat server i'm using to 5.5.25 and discarded the bundled one.i hink it was the one giving me problems. thanks Links - To start a new

multithreaded with taglibs

2007-11-22 Thread Yair Ben-Meir
Hi Is there a way to write a taglib that will do a multithreading work? Meaning, that tomcat will not wait till the first instance of the tag will end, and continue to the rest of the page, and maybe start with another instance, and than it will insert the result of each instance in the right

Intel's New SOA Security Toolkit

2007-11-22 Thread Andrea Zabala
Dear Tomcat-Users List, Intel is glad to announce the release of the Intel® SOA Security Toolkit 1.0 Beta. This toolkit (for the Linux* operating system) provides XML Digital Signature and XML Encryption following the WS-Security standard. The toolkit is delivered as an Axis2* interface and

Re: How to have a request timeout ?

2007-11-22 Thread christophe blin
Pid-2 wrote: Can you elaborate on the reason behind this requirement? sure ! first some background : 1/ my servlet is a web service (done with spring exporter and xfire if that matters) 2/ the client is not a browser but the PHP SOAP extension 3/ 5 seconds is the example (in real life,

IOException: Stream closed

2007-11-22 Thread Uma Kalluru
Hi, I am using Tomcat 5.5 and I am facing the following error. Can someone help me with this error? I searched Google to find a solution but could not get any valid answers. The interesting part is I don't get this error with Tomcat 5.0.28. 2007-11-19 01:46:42,774 ERROR [TP-Processor3986]

class loading problem: NoClassDefFoundError: javax/servlet/http/HttpSessionListener

2007-11-22 Thread Giancarlo Frison
Hi all, I have Tomcat/6.0.14 and i'm trying to launch the catalina.sh throught this script: export JAVA_HOME=/opt/java export CATALINA_HOME=/opt/tomcat export CATALINA_BASE=/srv/webx export JAVA_OPTS=-Denvironment=test \ -Xmx3800m -Xms3800m -Xmn2g -Xss128k -XX:+UseParallelGC

Re: How to have a request timeout ?

2007-11-22 Thread Pid
christophe blin wrote: Pid-2 wrote: Can you elaborate on the reason behind this requirement? sure ! first some background : 1/ my servlet is a web service (done with spring exporter and xfire if that matters) 2/ the client is not a browser but the PHP SOAP extension 3/ 5 seconds

Re: Relate URL / to a tomcat web application

2007-11-22 Thread Hassan Schroeder
On Nov 21, 2007 10:57 PM, Rocco Scappatura [EMAIL PROTECTED] wrote: Infact, I never use Apache before, until I wolud like to deploy an application (ie: roller) and on [EMAIL PROTECTED] mailing list someone said: That was a description of *how* to use Apache httpd with Tomcat, not a claim

Re: class loading problem: NoClassDefFoundError: javax/servlet/http/HttpSessionListener

2007-11-22 Thread Pid
Have you inadvertently included a jar file with the servlet-api in your WEB-INF/lib directory? That often causes problems like this. p Giancarlo Frison wrote: Hi all, I have Tomcat/6.0.14 and i'm trying to launch the catalina.sh throught this script: export JAVA_HOME=/opt/java export

RE: class loading problem: NoClassDefFoundError: javax/servlet/http/HttpSessionListener

2007-11-22 Thread Caldarale, Charles R
From: Giancarlo Frison [mailto:[EMAIL PROTECTED] Subject: class loading problem: NoClassDefFoundError: javax/servlet/http/HttpSessionListener java.lang.NoClassDefFoundError: javax/servlet/http/HttpSessionListener The above is frequently caused by having the servlet-api.jar in your

Re: I'm desparate with an Apache problem and ReverseProxy

2007-11-22 Thread Christoph P. Kukulies
Thanks for the replies. I managed it finally with ProxyPass and ProxyPassReverse What has caused all the headache was the fact that the backend server (application server that ran the forum) had a html meta refresh tag in it's /index.html and that did not get translated by the proxypass

Re: class loading problem: NoClassDefFoundError: javax/servlet/http/HttpSessionListener

2007-11-22 Thread Giancarlo Frison
Absolutely no. The WEB-INF/lib contains: commons-codec-1.3.jarcommons-httpclient-3.1-rc1.jar jta.jar quartz-all-1.6.0.jar stringtree-json-2.0.5.jar commons-collections-3.2.jar commons-logging.jar log4j-1.2.14.jar spring.jarxmlpull.jar

Re: Comet servlet synchronization and flush problems

2007-11-22 Thread Filip Hanik - Dev Lists
a NPE probably has nothing to do with synchronization, more like you are trying to write back on an invalid connection (that probably timed out) Filip Leonardo Fraga wrote: Hello, I'm developing a java web application for finances quotes' real-time stream, for hundreds of concurrent users.

Re: I'm desparate with an Apache problem and ReverseProxy

2007-11-22 Thread Rainer Jung
Christoph P. Kukulies wrote: Thanks for the replies. I managed it finally with ProxyPass and ProxyPassReverse What has caused all the headache was the fact that the backend server (application server that ran the forum) had a html meta refresh tag in it's /index.html and that did not get

Re: How to have a request timeout ?

2007-11-22 Thread christophe blin
I found the problem: infinite loop of course ! Nevertheless, I think that having a security in the servlet container for such (stupid) things could be great Thanks for your help. Chris -- View this message in context:

Re: multithreaded with taglibs

2007-11-22 Thread David Cassidy
Hi What is your tag going to produce ? is it an IMG SRC=. type tag ? or how are you allowing the browser to access the image ? Ta D On Thu, 2007-11-22 at 14:57 +0200, Yair Ben-Meir wrote: Hi Is there a way to write a taglib that will do a multithreading work? Meaning, that tomcatwill

Reasonable approach to configure log4j in a web app environment

2007-11-22 Thread Michael
Hi, I am quite new to Tomcat and wanted to configure Tomcat and my webapps to log properly. I made some simple steps to understand log4j. I've noticed that log4j does *not* reconfigure on config file change unless I tell him programmatically with PropertyConfigurator#configureAndWatch. Well,

Re: iBatis + Spring + Spring MVC and Webflow on Tomcat vs. JBoss

2007-11-22 Thread rad muthu
I wonder why you use both iBatis and Spring. Is it not Spring itself can do the job. krish On Nov 20, 2007 3:13 PM, P.B. [EMAIL PROTECTED] wrote: Hello, I am going to write an application using the following frameworks: iBatis + Spring + Spring MVC and Webflow. The application is going to

Re: Tomcat 6 virtual host problem please help

2007-11-22 Thread Pid
David Gagnon wrote: Hi all, I reading the doc for hours now and searching the web without success. Maybe my understanding of virtual hosting is wrong. if any of you can just correct my understanding and point me in the right direction I will greatly appreciate it. I have an

Tomcat 6 virtual host problem please help

2007-11-22 Thread David Gagnon
Hi all, I reading the doc for hours now and searching the web without success. Maybe my understanding of virtual hosting is wrong. if any of you can just correct my understanding and point me in the right direction I will greatly appreciate it. I have an application i.e.:toto.war that I

Re: Tomcat 6 virtual host problem please help

2007-11-22 Thread Hassan Schroeder
On Nov 22, 2007 10:50 AM, David Gagnon [EMAIL PROTECTED] wrote: http://mysite.com:8080/toto/hello.jpg I want to access this URL using the following alias in my browser: http://alias1.com:8080/hello.jpg (note that the context name TOTO is gone) Rename toto.war to ROOT.war, which signifies the

RE: iBatis + Spring + Spring MVC and Webflow on Tomcat vs. JBoss

2007-11-22 Thread Martin Gainty
He is specifically requesting an Object Relational Mapping tool such as iBatis or HibernateThere is a fully functional iBatis and Spring web application called JPetstore available More information is available from Ted at http://husted.com/central/Resources/Struts1/powered.htmlSpecific

Re: Relate URL / to a tomcat web application

2007-11-22 Thread Rocco Scappatura
So I need to have further clarification... Not sure what you're looking for -- the best clarification would be to simply install Roller and see for yourself that it works :-) Youre very ironic and I very appreciate the guy like you. I have already installed roller and it works fine.. Now

Re: Tomcat 6 virtual host problem please help

2007-11-22 Thread Rocco Scappatura
I want to access this URL using the following alias in my browser: http://alias1.com:8080/hello.jpg (note that the context name TOTO is gone) So I need to link a virtual host to an application right? I look to but alias in the context.xml file .. I haven't found anything to specify my

Re: iBatis + Spring + Spring MVC and Webflow on Tomcat vs. JBoss

2007-11-22 Thread P.B.
And what aspects of an application would require using a full app server? Thanks, P.B. Mark Thomas-15 wrote: P.B. wrote: Hello, I am going to write an application using the following frameworks: iBatis + Spring + Spring MVC and Webflow. The application is going to talk to external web

Cross-domain calls when third-party cookies are not allowed

2007-11-22 Thread J.Gustafsson
Hi, I have an interesting problem (I think) that I wonder if someone could assist me with. I want to do cross-domain scripting. I have some java-script that makes a cross-domain http request to a Tomcat server. This works fine as long as third-party cookies are allowed in the browser. Tomcat can

Re: iBatis + Spring + Spring MVC and Webflow on Tomcat vs. JBoss

2007-11-22 Thread P.B.
Hello, and what components in an app would make JBoss or another app server a must? Kind regards, Agata Dras Mark Thomas-15 wrote: Well, unlike Websphere, JBoss or Tomcat don't offer you the feature that lets you part with a large pile of cash ;) Seriously - you'll need to spend

Re: iBatis + Spring + Spring MVC and Webflow on Tomcat vs. JBoss

2007-11-22 Thread P.B.
Hi, Spring does not deal with O-R mapping. Thanks, P.B. I wonder why you use both iBatis and Spring. Is it not Spring itself can do the job. krish -- View this message in context:

Re: Tomcat 6 virtual host problem please help

2007-11-22 Thread Hassan Schroeder
On Nov 22, 2007 1:41 PM, Rocco Scappatura [EMAIL PROTECTED] wrote: 1) What's happen if I have 2 app which I want to assign the root URL? Sure I can't rename both WARs as ROOT.war... :-( Sure you can -- each virtual host should have a unique appBase. Again, this is covered in the virtual

Re: Tomcat 6 virtual host problem please help

2007-11-22 Thread Pid
Rocco Scappatura wrote: I want to access this URL using the following alias in my browser: http://alias1.com:8080/hello.jpg (note that the context name TOTO is gone) So I need to link a virtual host to an application right? I look to but alias in the context.xml file .. I haven't found

Re: Tomcat 6 virtual host problem please help

2007-11-22 Thread Rocco Scappatura
2) Suppose that I have another level inside the root webapps dir (eg: http://mysite.com:8080/toto/subdir/hello.jpg) and I would like to access to the URL above with http://alias1.com:8080/hello.jpg. How I behave myself in this situation? :-( If you mean a second virtual host, then you would

Re: Recieving responses from another request

2007-11-22 Thread Mark Thomas
Самойлов Андрей Иванович wrote: I use Tomcat v5.5.9, OS Windows 2003. On the Tomcat deployed a servlet, which executes a stored procedure on the Oracle database, then prints the result of execution into output stream: StoredProcedure(); PrintWriter out = response.getWriter(); ...

Re: Tomcat 6 virtual host problem please help

2007-11-22 Thread Hassan Schroeder
On Nov 22, 2007 3:18 PM, Rocco Scappatura [EMAIL PROTECTED] wrote: But I get the sad surprise that indeed roller/blog is not a valid path on the filesystem. It is merely a path of a context created on the fly from data cointained in the roller data base (I suppose). /roller is a Context path

RE: configure my web app as default app instead of root in tomcat 6.0‏

2007-11-22 Thread Yonatan Menahem
That solved my problem. Although, I couldn't figure out how to do it using the context element as described in the documentation. I just undeployed the ROOT and deployed myApp.war instead in the / Context Path. That works for now. Thank you. From: [EMAIL PROTECTED] To: users@tomcat.apache.org

RE: Recieving responses from another request

2007-11-22 Thread Самойлов Андрей Иванович
Each incoming request requires a thread for the duration of that request. How can occur, if the one thread suspended, the another thread is answers? Where defines the maximal timeout waiting of responses? -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Friday,

RE: Recieving responses from another request

2007-11-22 Thread Caldarale, Charles R
From: Самойлов Андрей Иванович [mailto:[EMAIL PROTECTED] Subject: RE: Recieving responses from another request Each incoming request requires a thread for the duration of that request. How can occur, if the one thread suspended, the another thread is answers? If the original thread has

Re: configure my web app as default app i nstead of root in tomcat 6.0‏

2007-11-22 Thread Pid
Yonatan Menahem wrote: That solved my problem. Although, I couldn't figure out how to do it using the context element as described in the documentation. I just undeployed the ROOT and deployed myApp.war instead in the / Context Path. Did you define an additional host in server.xml, or are

Re: Tomcat 6 virtual host problem please help

2007-11-22 Thread Rocco Scappatura
On Nov 22, 2007 3:18 PM, Rocco Scappatura [EMAIL PROTECTED] wrote: But I get the sad surprise that indeed roller/blog is not a valid path on the filesystem. It is merely a path of a context created on the fly from data cointained in the roller data base (I suppose). /roller is a