Tomcat 5.5 and Windows 7

2010-08-26 Thread Marcos Molina
Hi there, I only wanna know if i can run Tomcat 5.5 on windows 7 ??? And if i have to take any considerations to do it. Thanks for yours answers. Regards Marcos. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org Fo

RE: pick load

2010-08-26 Thread Alexandre Chapellon
Le jeudi 26 août 2010 à 22:04 -0500, Caldarale, Charles R a écrit : > > From: Alexandre Chapellon [mailto:alexandre.chapel...@mana.pf] > > Subject: Re: pick load > > > To me this sounds like a pool of database connection > > that is full > > It's not a full connection pool - you're not using on

RE: pick load

2010-08-26 Thread Caldarale, Charles R
> From: Alexandre Chapellon [mailto:alexandre.chapel...@mana.pf] > Subject: Re: pick load > To me this sounds like a pool of database connection > that is full It's not a full connection pool - you're not using one. It's also likely that your database is a bit sluggish in establishing connecti

Re: failed FORM authentication redirects to /j_security_check

2010-08-26 Thread Shaun Senecal
Currently the only content in the HTML file is a script tag, since I am using GWT for the UI. I dont think there is any way I can set a class/id on a script tag, so I went with the empty DIV and put a known id on it. You're right though, I could have reused an existing element for this purpose as

Re: pick load

2010-08-26 Thread Alexandre Chapellon
Thanks. I got the dump of the running JVM (only the benchmark is running at dump time). I tried to take a look at it, but as am not familiar with java, I prefer talk about it here. -first I noticed the number of TP-Processor is twice the number of concurrent resquests send by ab (why twice? i don'

Re: Is there a better way to disable JSESSIONID in the URLs?

2010-08-26 Thread Wesley Acheson
On Sat, Aug 21, 2010 at 12:12 PM, Pid wrote: > On 20/08/2010 22:40, Wesley Acheson wrote: >> I'm a bit lost with this thread. Are people suggesting I should submit a >> patch. I really wouldn't know where to begin looking. > > That's where the discussion was heading. > > Tomcat is Open Source.  Th

Re: How to convert WAR application into console application (Making Unicorn has console application)

2010-08-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ranjith, On 8/20/2010 7:49 AM, Ranjith wrote: > Unicorn just provide a URI and push the button. It will call a > series of validation services and report the results. > > It works fine in apache-tomcat, what I want is how to make the > unicorn as con

Re: Best practices for deployment on cluster environment

2010-08-26 Thread Pid
On 26/08/2010 19:14, Mark Eggers wrote: > I haven't tried this in production (yet) so your mileage may vary. > > In the cluster setup, there's a FarmDeployer element that can be used to > deploy > across the cluster. FarmWarDeployer would certainly benefit from more production usage. I'm not s

Re: pick load

2010-08-26 Thread Rainer Jung
On 26.08.2010 21:00, Alexandre Chapellon wrote: Le jeudi 26 août 2010 à 09:25 +0200, Rainer Jung a écrit : On 26.08.2010 03:28, Alexandre Chapellon wrote: Hello, I'm quite new to tomcat and have an old webapps running on tomcat 4.1 and jvm 1.4.2 with apach2.2 in front ofthem (using modjk). I'

Re: pick load

2010-08-26 Thread Alexandre Chapellon
Le jeudi 26 août 2010 à 09:25 +0200, Rainer Jung a écrit : > On 26.08.2010 03:28, Alexandre Chapellon wrote: > > Hello, > > > > I'm quite new to tomcat and have an old webapps running on tomcat 4.1 > > and jvm 1.4.2 with apach2.2 in front ofthem (using modjk). > > I'm trying to get ready for a com

Re: pick load

2010-08-26 Thread Alexandre Chapellon
ab doesn't says much... except the requests completed and most of them did in less than 5 seconds: ### Server Software:Apache Server Hostname:blablablabla.hostname Server Port:443 SSL/TLS Protocol: TLSv1/SSLv3,DHE-RSA-AES256-SHA,1024,256

Re: A little trouble with SSL

2010-08-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andrea, On 8/26/2010 2:07 PM, Andrea Freire wrote: > I install tomcat 6 and all works without problem, but I had to > install ssl then the problems started. Looking below, you are using Apache httpd along with Tomcat. Would you like httpd to terminat

Re: java.net.BindException: Address already in use

2010-08-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Paul, On 8/26/2010 2:19 PM, Paul Bourget wrote: > Thanks for looking at this. Wouldn't the first instance have open ports > (indicated by netstat)? Or some httpd tasks (ps -ef). Yes, I would expect that. How are you launching Tomcat? I'm wondering

RE: java.net.BindException: Address already in use

2010-08-26 Thread Caldarale, Charles R
From: Paul Bourget [mailto:paul.bour...@isabellaproducts.com] Subject: RE: java.net.BindException: Address already in use Aug 24, 2010 1:51:42 PM org.apache.catalina.core.StandardServer await SEVERE: StandardServer.await: create[8606]: java.net.BindException: Address already in use That's pretty

RE: java.net.BindException: Address already in use

2010-08-26 Thread Paul Bourget
Hi Chris, Thanks for looking at this. Wouldn't the first instance have open ports (indicated by netstat)? Or some httpd tasks (ps -ef). Here is the beginning of the log file. If there are 2 tomcats running, one of them is not writing to the log (from what I can tell). [r...@localhost logs]# mo

Re: Best practices for deployment on cluster environment

2010-08-26 Thread Mark Eggers
I haven't tried this in production (yet) so your mileage may vary. In the cluster setup, there's a FarmDeployer element that can be used to deploy across the cluster. The host that does the deploying: And the hosts that get the web application: For large web applications and frequent depl

RE: java.net.BindException: Address already in use

2010-08-26 Thread Caldarale, Charles R
> From: Christopher Schultz [mailto:ch...@christopherschultz.net] > Subject: Re: java.net.BindException: Address already in use > Your configuration looks fine to me: Not to me; it looks like it's been carried over from some ancient version of Tomcat. There are numerous attributes (e.g., debug

A little trouble with SSL

2010-08-26 Thread Andrea Freire
I install tomcat 6 and all works without problem, but I had to install ssl then the problems started. I tried to configure using the module that connect tomcat6 with apache mod_jk, but send me the request was apparently not the apache server just redirects me what is going to port 80, when I

Re: java.net.BindException: Address already in use

2010-08-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Paul, On 8/26/2010 1:30 PM, Paul Bourget wrote: > Sorry, disregard the last email that file is from a different server > (which is running fine). Here is the file from the server that is not > working. Your configuration looks fine to me: only one

Re: pick load

2010-08-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rainer, On 8/26/2010 3:25 AM, Rainer Jung wrote: > On 26.08.2010 03:28, Alexandre Chapellon wrote: >> Whatever the configuration of my connecter (both on the apache or tomcat >> side) I never go upper than 20 requests / second. >> Here are few parame

RE: java.net.BindException: Address already in use

2010-08-26 Thread Paul Bourget
Sorry, disregard the last email that file is from a different server (which is running fine). Here is the file from the server that is not working. Paul Bourget Isabella Products -Original Message- From: Pid [mailto:p...@pidster.com] Sent: Thursday, August 26, 2010 4:25 AM To: Tomcat

Re: Access StandardContext in WebappClassLoader

2010-08-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chefo, On 8/26/2010 11:24 AM, Chefo wrote: > What bothers me in the WebappClassLoader is the fact that before it checks > its repositories (lib folder and classes) and asks its parent class loader, > it will first attempt to load a class from the syst

RE: java.net.BindException: Address already in use

2010-08-26 Thread Paul Bourget
Server.xml inline below. There is also a server.working.xml Paul Bourget Isabella Products -Original Message- From: Pid [mailto:p...@pidster.com] Sent: Thursday, August 26, 2010 4:25 AM To: Tomcat Users List Subject: Re: java.net.BindException: Address already in use On 25/08/2010 15

Re: Access StandardContext in WebappClassLoader

2010-08-26 Thread Chefo
Great idea. I'll give it a try immediately! Thanks a lot, Chefo On Thu, Aug 26, 2010 at 6:43 PM, Rainer Jung wrote: > On 26.08.2010 17:24, Chefo wrote: > >> Hi again >> >> and thanks for the quick responses. >> >> What bothers me in the WebappClassLoader is the fact that before it checks >> its

Re: Access StandardContext in WebappClassLoader

2010-08-26 Thread Rainer Jung
On 26.08.2010 17:24, Chefo wrote: Hi again and thanks for the quick responses. What bothers me in the WebappClassLoader is the fact that before it checks its repositories (lib folder and classes) and asks its parent class loader, it will first attempt to load a class from the system class loade

Re: Access StandardContext in WebappClassLoader

2010-08-26 Thread Chefo
Hi again and thanks for the quick responses. What bothers me in the WebappClassLoader is the fact that before it checks its repositories (lib folder and classes) and asks its parent class loader, it will first attempt to load a class from the system class loader - from the jvm. This is not standa

Re: Access StandardContext in WebappClassLoader

2010-08-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chefo, On 8/26/2010 9:38 AM, Chefo wrote: > I'm using tomcat 6.0.18 adapted to osgi environment and I would like to make > the WebappClassLoader configurable so that it does not load certain packages > directly through the system class loader but use

Re: Access StandardContext in WebappClassLoader

2010-08-26 Thread Pid
On 26/08/2010 14:38, Chefo wrote: > Hi guys, > > I'm using tomcat 6.0.18 adapted to osgi environment and I would like to make > the WebappClassLoader configurable so that it does not load certain packages > directly through the system class loader but use the class loader hierarchy > instead. In o

Re: Best practices for deployment on cluster environment

2010-08-26 Thread Pid
On 25/08/2010 14:50, Fernando Morgenstern wrote: > Hi, > > I have a Tomcat cluster environment with 4 servers. I was wondering that is > the best way to deploy an application on 4 servers at the same time. > > At a first moment, i thought about having a script that would copy war files > to all

Re: TCP clustering without multicast

2010-08-26 Thread Pid
On 23/08/2010 16:51, Bob Smith wrote: > > > Hey all, > > > Can someone point me to a sample config file showing a simple two node tomcat > 6 > cluster communicating via TCP not using multicast at all? I'm having trouble > finding detailed documentation on this subject. I searched the archi

Re: Best practices for deployment on cluster environment

2010-08-26 Thread Wesley Acheson
An ant deploy perhaps? Through the manager thats what we intend to move to. On Thu, Aug 26, 2010 at 4:17 PM, Pid wrote: > On 26/08/2010 15:03, André Warnier wrote: >> Luca Gervasi wrote: >>> On Wed, 2010-08-25 at 10:50 -0300, Fernando Morgenstern wrote: Hi, I have a Tomcat cluste

Re: separating deployment of classes/lib/config from web content (jsp's/html)

2010-08-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jason, On 8/25/2010 4:06 PM, Jason Britton wrote: > We have a separate department > that is more marketing/static content than it is anything, they'll put > their own stuff up on the website that for the most part is not under > revision control Any

Re: Best practices for deployment on cluster environment

2010-08-26 Thread Pid
On 26/08/2010 15:03, André Warnier wrote: > Luca Gervasi wrote: >> On Wed, 2010-08-25 at 10:50 -0300, Fernando Morgenstern wrote: >>> Hi, >>> >>> I have a Tomcat cluster environment with 4 servers. I was wondering >>> that is the best way to deploy an application on 4 servers at the >>> same time.

Re: Best practices for deployment on cluster environment

2010-08-26 Thread Paolo Santarsiero
Hi, I think the best way is to share a central repository (local or net mounted) for webapps and create for each one and for each tomcat the right context with the right path. regards On 26 August 2010 16:03, André Warnier wrote: > Luca Gervasi wrote: > >> On Wed, 2010-08-25 at 10:50 -0300, Fern

Re: How to configure different default webapp in function of requested hostname on one tomcat server

2010-08-26 Thread Pid
On 26/08/2010 14:52, André Warnier wrote: > Pid wrote: >> On 26/08/2010 13:40, André Warnier wrote: >>> arnaud icard wrote: >>> ... Yes this is where I made a mistake. The parameters "name" and "defaultHost" must be the FULL name (i.e. hostname.domain) >>> No. I mean no, it is n

Re: Best practices for deployment on cluster environment

2010-08-26 Thread André Warnier
Luca Gervasi wrote: On Wed, 2010-08-25 at 10:50 -0300, Fernando Morgenstern wrote: Hi, I have a Tomcat cluster environment with 4 servers. I was wondering that is the best way to deploy an application on 4 servers at the same time. At a first moment, i thought about having a script that would

Re: Best practices for deployment on cluster environment

2010-08-26 Thread Luca Gervasi
On Wed, 2010-08-25 at 10:50 -0300, Fernando Morgenstern wrote: > Hi, > > I have a Tomcat cluster environment with 4 servers. I was wondering that is > the best way to deploy an application on 4 servers at the same time. > > At a first moment, i thought about having a script that would copy war f

Re: How to configure different default webapp in function of requested hostname on one tomcat server

2010-08-26 Thread André Warnier
Pid wrote: On 26/08/2010 13:40, André Warnier wrote: arnaud icard wrote: ... Yes this is where I made a mistake. The parameters "name" and "defaultHost" must be the FULL name (i.e. hostname.domain) No. I mean no, it is not exactly that. For the defaultHost, it does not matter very much, beca

Access StandardContext in WebappClassLoader

2010-08-26 Thread Chefo
Hi guys, I'm using tomcat 6.0.18 adapted to osgi environment and I would like to make the WebappClassLoader configurable so that it does not load certain packages directly through the system class loader but use the class loader hierarchy instead. In order to do that I have extended the standard w

Re: How to list registered Servlets (Servlet 3.0 spec)

2010-08-26 Thread Thiago Locatelli da Silva
Many Thanks for you reply Chuck, i will take a lot at the servlet 3.0 spec! thiago Caldarale, Charles R escreveu: From: Thiago Locatelli da Silva [mailto:thiago.si...@digitro.com.br] Subject: How to list registered Servlets (Servlet 3.0 spec) I need to create a page that lists the cur

RE: How to list registered Servlets (Servlet 3.0 spec)

2010-08-26 Thread Caldarale, Charles R
> From: Thiago Locatelli da Silva [mailto:thiago.si...@digitro.com.br] > Subject: How to list registered Servlets (Servlet 3.0 spec) > I need to create a page that lists the current registered > servlets/filters/listeners in the context. Look at the 3.0 API; ServletContext now includes the getS

Re: another UTF-8 problem

2010-08-26 Thread Tim-Christian Mundt
Thanks for your responses. The problem was not the response from the web service. Something must have been completely mixed up. I set the Java option -Dfile.encoding to utf-8 which solved the write to file problem and also put this in the code: if (req.getCharacterEncoding() == null) req.se

How to list registered Servlets (Servlet 3.0 spec)

2010-08-26 Thread Thiago Locatelli da Silva
Hello everybody, sorry for the previous email. Thanks Pid for the advice Since servlet 3.0 spec, servlets/listeners/filters can be registered inside the context not only thru the web.xml, but also with @WebServlet annotation and with META-INF/web-fragment.xml file. I need to create a page that

Re: How to list registered Servlets (Servlet 3.0 spec)

2010-08-26 Thread Pid
On 26/08/2010 13:45, Thiago Locatelli da Silva wrote: > Hello everybody. > > Since servlet 3.0 spec, servlets/listeners/filters can be registered > inside the context not only thru the web.xml, but also with @WebServlet > annotation and with META-INF/web-fragment.xml file. I need to create a > pag

Re: How to configure different default webapp in function of requested hostname on one tomcat server

2010-08-26 Thread Pid
On 26/08/2010 13:40, André Warnier wrote: > arnaud icard wrote: > ... >> >> Yes this is where I made a mistake. >> The parameters "name" and "defaultHost" must be the FULL name (i.e. >> hostname.domain) >> > No. I mean no, it is not exactly that. > > For the defaultHost, it does not matter very mu

Re: How to configure different default webapp in function of requested hostname on one tomcat server

2010-08-26 Thread arnaud icard
I think I understand what you're explaining. I keep that in mind if I encounter in the future some strange behaviours from the non-default applications. Thanks, arnaud. André Warnier a écrit le 26/08/2010 14:40: arnaud icard wrote: ... Yes this is where I made a mistake. The parameters "na

How to list registered Servlets (Servlet 3.0 spec)

2010-08-26 Thread Thiago Locatelli da Silva
Hello everybody. Since servlet 3.0 spec, servlets/listeners/filters can be registered inside the context not only thru the web.xml, but also with @WebServlet annotation and with META-INF/web-fragment.xml file. I need to create a page that lists the current registered servlets/filters/listeners

Re: How to configure different default webapp in function of requested hostname on one tomcat server

2010-08-26 Thread André Warnier
arnaud icard wrote: ... Yes this is where I made a mistake. The parameters "name" and "defaultHost" must be the FULL name (i.e. hostname.domain) No. I mean no, it is not exactly that. For the defaultHost, it does not matter very much, because it is the default and anything that does not ma

Re: How to configure different default webapp in function of requested hostname on one tomcat server

2010-08-26 Thread arnaud icard
André Warnier a écrit le 26/08/2010 14:14: arnaud icard wrote: httpd is stopped. Here is what I have done in the /opt/tomcat/conf/server.xml : / ... / When connecting to appli1.test.fr, I am redirected to the default ROOT content (which means to the tomcat00c host).

Re: How to configure different default webapp in function of requested hostname on one tomcat server

2010-08-26 Thread André Warnier
arnaud icard wrote: httpd is stopped. Here is what I have done in the /opt/tomcat/conf/server.xml : / ... / When connecting to appli1.test.fr, I am redirected to the default ROOT content (which means to the tomcat00c host). I am a little l

Re: How to configure different default webapp in function of requested hostname on one tomcat server

2010-08-26 Thread arnaud icard
Right the parameter name in and the parameter defaultHost in need the server's FQDN. I didn't realize that ! Thanks a lot Pid. Have a great day. Best regards, arnaud Pid a écrit le 26/08/2010 13:54: On 26/08/2010 11:39, arnaud icard wrote: httpd is stopped. Here is what I have done

Re: How to configure different default webapp in function of requested hostname on one tomcat server

2010-08-26 Thread Pid
On 26/08/2010 11:39, arnaud icard wrote: > httpd is stopped. > > Here is what I have done in the /opt/tomcat/conf/server.xml : > > / > ... > unpackWARs="true" autoDeploy="true" > xmlValidation="false" xmlNamespaceAware="false"> If the DNS reco

Re: How to configure different default webapp in function of requested hostname on one tomcat server

2010-08-26 Thread arnaud icard
httpd is stopped. Here is what I have done in the /opt/tomcat/conf/server.xml : / ... / When connecting to appli1.test.fr, I am redirected to the default ROOT content (which means to the tomcat00c host). I am a little lost now in this tomcat

Re: java.net.BindException: Address already in use

2010-08-26 Thread Pid
On 25/08/2010 15:17, Paul Bourget wrote: > I assumed that this indicates be a port conflict before I googled this > problem. Every solution I found said "find and resolve the port > conflict". I cannot find the conflict. > > > > > > [r...@localhost logs]# netstat -a | grep 8209 > > [r...@

Re: pick load

2010-08-26 Thread André Warnier
Alexandre Chapellon wrote: Hello, I'm quite new to tomcat and have an old webapps running on tomcat 4.1 and jvm 1.4.2 with apach2.2 in front ofthem (using modjk). I'm trying to get ready for a comming pick load I will have to face. I Try to do some benchmark using ab and the jkstatus worker. Wha

Re: failed FORM authentication redirects to /j_security_check

2010-08-26 Thread Pid
On 26/08/2010 02:14, Shaun Senecal wrote: > Thanks for the response Chris. > > You're right. Jetty does a redirect, so on the client-side the > browser sees "/login.html?error=true". Since this isn't happening in > Tomcat, I am unable to retrieve the query string client side. As you > indicated

Re: How to configure different default webapp in function of requested hostname on one tomcat server

2010-08-26 Thread Felix Schumacher
Hello, even if you decided to remove httpd and go directly with virtual hosts in tomcat, there are two things in your httpd config, which could be advanced (see inline below). On Wed, 25 Aug 2010 18:13:28 +0200, arnaud icard wrote: > Hello, > > I guess my subject isn't clear at all so here is

Re: pick load

2010-08-26 Thread Rainer Jung
On 26.08.2010 03:28, Alexandre Chapellon wrote: Hello, I'm quite new to tomcat and have an old webapps running on tomcat 4.1 and jvm 1.4.2 with apach2.2 in front ofthem (using modjk). I'm trying to get ready for a comming pick load I will have to face. I Try to do some benchmark using ab and the

Re: How to configure different default webapp in function of requested hostname on one tomcat server

2010-08-26 Thread arnaud icard
Ok I will remove apache httpd and use Tomcat's virtual hosts system. thank you all for your response. Caldarale, Charles R a écrit le 25/08/2010 18:31: From: Wesley Acheson [mailto:wesley.ache...@gmail.com] Subject: Re: How to configure different default webapp in function of requested hostna