How Can I integrate tomcat6 cometprocessor + apache2.2 (load balancing)

2009-06-03 Thread redmoon
Nice to meet you. I am trying to integrate tomcat6 and apache2.2 for load balancing. I tested connecting tomcat6 and apache2.2 (not nio) and load balancing, and it was successful.. By the way, I must use cometprocessor of tomcat6, so that I have to use nio protocol. When I send http

Re: retrive Arabic data

2009-06-03 Thread abdul razack
Hi,   I am using following tools and technologies for the web application   · apache-tomcat-5.5.23 · jdk_1.5.0_12 · JSP, Servlet · SQL servelr 2005 · Windows server 2005 enterprise edition SP1     1.   All JSP pages have the following code   · %@

Three tomcat instances

2009-06-03 Thread xaliasos
I write a java web service and depending on a result i want it to call other web service (http://localhost:80/axis/serv.jws). But, i want serv.jws to be handled by three different servers depending on where i want to send it. How can i run three tomcats simultaneously?I read the server

How to reference Shared Libraries with TOMCAT

2009-06-03 Thread Sarva
Till now I have been deploying all the JARs in WEB-INF/lib folder of my Web Application and run it to satisfaction. Now we need a mechanism by which the JARs will not be stored in WEB-INF/lib but in a centralized location for example c:/lib, and all tomcat Web Applications should refer to this

RE: Three tomcat instances

2009-06-03 Thread Lawrence Lamprecht
If you want to run 3 tomcats then you need to have 3 tomcat installations. One tomcat per instance that you want to have server, this in turn will mean that you will have 3 separate server.xml files. You can then load balance the 3 tomcats to be referenced as required. You can even create

RE: Three tomcat instances

2009-06-03 Thread Peter Crowther
You don't tell us which version of Tomcat you're running, so it's hard to point you to the correct docs for your version on the Web. However, if memory serves, look at the file RUNNING.txt in your Tomcat directory. There's a section in there about setting up multiple Tomcats on the same

[ANN] Apache Tomcat 6.0.20 released

2009-06-03 Thread Remy Maucherat
The Apache Tomcat team announces the immediate availability of Apache Tomcat 6.0.20 stable. This release includes many bugfixes over Apache Tomcat 6.0.18. Apache Tomcat 6.0 includes new features over Apache Tomcat 5.5, including support for the new Servlet 2.5 and JSP 2.1 specifications, a

RE: How to reference Shared Libraries with TOMCAT

2009-06-03 Thread Peter Crowther
From: Sarva [mailto:malhotrasa...@yahoo.in] Till now I have been deploying all the JARs in WEB-INF/lib folder of my Web Application and run it to satisfaction. OK. Now we need a mechanism by which the JARs will not be stored in WEB-INF/lib but in a centralized location for example c:/lib,

RE: How to reference Shared Libraries with TOMCAT

2009-06-03 Thread Zeeshan Ahmad
Hello, You need to add those JAR files on central location add these files in Class Path (its better if you make a environment script), so when will you start your applications it will load JARs from there, thanks. Best Regards, Zeeshan Ahmad. Associate Manager SCM. P Save a tree...pls don't

RE: How to reference Shared Libraries with TOMCAT

2009-06-03 Thread Ghufran
In tomcat 6.x, put the jars in tomcat-home-dir/lib and all the web applications in that tomcat will start sharing the jars. Regards Ghufran Ul Haq -Original Message- From: Zeeshan Ahmad [mailto:zah...@i2cinc.com] Sent: Wednesday, June 03, 2009 1:40 PM To: 'Tomcat Users

RE: How to reference Shared Libraries with TOMCAT

2009-06-03 Thread Zeeshan Ahmad
If you have multiple tomcats and multiple applications then you have to put the jars on a separate location and add these in class path environment before starting any of the tomcat, it will work for more then one tomcats and more then one applications, thanks. Best Regards, Zeeshan Ahmad.

What is a typical Comet event flow, with multiple READ events?

2009-06-03 Thread Pieter Fibbe
Hi, I have been trying to write a Comet webapp, but it's not totally clear to me when and how CometEvents are exactly triggered. According to the documentation a typical life cycle of a Comet request will consist in a series of events such as: BEGIN - READ - READ - READ - ERROR/TIMEOUT (from:

Re: Just a few questions on my Tomcat Configuration

2009-06-03 Thread Josh Gooding
Sorry about that Chuck, I'm a little new to this here... Tomcat version is 6.0.18. My /conf directory is the standard windows installation directory structure it contains no other sud-directories, just my config files. If I modify the directory and add the recomended structure, will Tomcat pick

Re: How Can I integrate tomcat6 cometprocessor + apache2.2 (load balancing)

2009-06-03 Thread Filip Hanik - Dev Lists
using apache with blocking threads and tomcat with comet is somewhat a contradiction. use a regular servlet to achieve what you want Filip redmoon wrote: Nice to meet you. I am trying to integrate tomcat6 and apache2.2 for load balancing. I tested connecting tomcat6 and apache2.2 (not nio)

Re: What is a typical Comet event flow, with multiple READ events?

2009-06-03 Thread Filip Hanik - Dev Lists
When a browser is a client, you typically don't have multiple read events. Filip Pieter Fibbe wrote: Hi, I have been trying to write a Comet webapp, but it's not totally clear to me when and how CometEvents are exactly triggered. According to the documentation a typical life cycle of a Comet

How to kill the port used by tomcat

2009-06-03 Thread kalpeer
Hi All, When I do netstat -an | grep 8443 it says that it was in listen mode. *.8443 *.*0 0 49152 0 LISTEN Now I need to use the same port for the another tomcat.So I need to kill this make the port to non listen mode.

RE: How to kill the port used by tomcat

2009-06-03 Thread Peter Crowther
From: kalpeer [mailto:inka...@gmail.com] How I can free the port without going to the original tomcat shutdown. You have to kill the process that is using the port. - Peter - To unsubscribe, e-mail:

[ANN] New Tomcat announce list

2009-06-03 Thread Mark Thomas
All, In response to popular demand, we have added an announce list to the collection of Tomcat mailing lists. This list is open to anyone to subscribe but only committers may post. It will be used to announce releases, security vulnerabilities and other similar project announcements. To

RE: How to kill the port used by tomcat

2009-06-03 Thread kalpeer
Whats the command used to get the process id of the prot Peter Crowther wrote: From: kalpeer [mailto:inka...@gmail.com] How I can free the port without going to the original tomcat shutdown. You have to kill the process that is using the port. - Peter

RE: How to kill the port used by tomcat

2009-06-03 Thread Peter Crowther
From: kalpeer [mailto:inka...@gmail.com] Whats the command used to get the process id of the prot That depends on your OS - which you haven't told us. Tomcat should show up as a Java process, so if you're running a recent Java (which you also didn't tell us) then jps should tell you some

Re: ISAPI issues

2009-06-03 Thread dljohnson69
Replies included Rainer Jung-3 wrote: On 02.06.2009 23:30, dljohnson69 wrote: Actually I am still on 1.2.27 but am willing to update, just cannot find a compiled download of the 1.2.28 dll. http://tomcat.apache.org/download-connectors.cgi -- downloaded, installed and loaded

RE: How to kill the port used by tomcat

2009-06-03 Thread kalpeer
The os:solaris10 and 9 java:1.5.0_17 please let me know the comment for getting the id :( Peter Crowther wrote: From: kalpeer [mailto:inka...@gmail.com] Whats the command used to get the process id of the prot That depends on your OS - which you haven't told us. Tomcat should show up as

RE: How to kill the port used by tomcat

2009-06-03 Thread Caldarale, Charles R
From: kalpeer [mailto:inka...@gmail.com] Subject: RE: How to kill the port used by tomcat os:solaris10 and 9 java:1.5.0_17 please let me know the comment for getting the id :( This is not a Solaris training list. Since you're acting as a system administrator, you need to have system

Re: How to kill the port used by tomcat

2009-06-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kalai, On 6/3/2009 8:52 AM, kalpeer wrote: When I do netstat -an | grep 8443 it says that it was in listen mode. *.8443 *.*0 0 49152 0 LISTEN Now I need to use the same port for

Re: fonts in linux

2009-06-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 6/2/2009 11:37 PM, Caldarale, Charles R wrote: Do you really mean fonts? Or are you actually referring to the default language and character set? Let's presume the latter, since the former makes little sense. If the OP is using AWT

RE: How to reference Shared Libraries with TOMCAT

2009-06-03 Thread Caldarale, Charles R
From: Zeeshan Ahmad [mailto:zah...@i2cinc.com] Subject: RE: How to reference Shared Libraries with TOMCAT If you have multiple tomcats and multiple applications then you have to put the jars on a separate location As Peter pointed out, doing so is a really bad idea. The OP should continue

Re: sqljdbc, integrated sql server authentication and multiple webapps - only the first app can connect

2009-06-03 Thread vsoneta
Hi, I had the same problem. I resolved the issue by deleting sqljdbc.jar from both the apps and added that jar in the tomcat's lib folder along with the .dll and also .dll to your windows\system32. Make it sure the system's Path is set to your windows\system32. Hope so this helps

Re: Authentication from the browser

2009-06-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Alec, On 6/2/2009 2:03 PM, Alec Swan wrote: Hassan, I don't think that the goals are contradictory, because each goal applies to its own group of users: our customer users and everybody else. Customer users should not have to enter user name and

RE: Just a few questions on my Tomcat Configuration

2009-06-03 Thread Caldarale, Charles R
From: Josh Gooding [mailto:josh.good...@gmail.com] Subject: Re: Just a few questions on my Tomcat Configuration Tomcat version is 6.0.18. Good. My /conf directory is the standard windows installation directory structure it contains no other sud-directories, just my config files. Tomcat

Re: Authentication from the browser

2009-06-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Alec, On 6/2/2009 6:08 PM, Alec Swan wrote: ? You can't put HTTP headers in a link, unless you're processing it through some proxy mechanism... Looks like the last SecurityFilter build was released on Dec. 14, 2004, which makes me hesitant

RE: Just a few questions on my Tomcat Configuration

2009-06-03 Thread Caldarale, Charles R
From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Subject: RE: Just a few questions on my Tomcat Configuration Tomcat will create the subdirectories as needed, such as when you deploy a .war file that has an context.xml file in its META-INF directory. It won't create them

Re: How to reference Shared Libraries with TOMCAT

2009-06-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 6/3/2009 10:15 AM, Caldarale, Charles R wrote: Don't *EVER* set the CLASSPATH environment variable - that causes no end of grief, and plays havoc with Tomcat's classloading requirements. It really shouldn't interfere: it should actually

java.net.SocketException: Too many open files

2009-06-03 Thread John . C . Cartwright
Hello All, something strange happened to our tomcat 5.5 instance running on RHEL Linux. Suddenly we began getting the exception listed below written out to the catalina.out log. It was repeated approx 4 million times w/in a couple of hours until it filled up the file system and hung tomcat.

RE: java.net.SocketException: Too many open files

2009-06-03 Thread Peter Crowther
From: john.c.cartwri...@noaa.gov [mailto:john.c.cartwri...@noaa.gov] Can someone please help to to understand what might cause such an exception? File descriptor exhaustion - the process has run out of fds. Any i/o could use a file descriptor, whether that's socket to httpd, socket to

Re: Just a few questions on my Tomcat Configuration

2009-06-03 Thread Josh Gooding
On Wed, Jun 3, 2009 at 10:36 AM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Subject: RE: Just a few questions on my Tomcat Configuration Tomcat will create the subdirectories as needed, such as when you deploy a

RE: Just a few questions on my Tomcat Configuration

2009-06-03 Thread Caldarale, Charles R
From: Josh Gooding [mailto:josh.good...@gmail.com] Subject: Re: Just a few questions on my Tomcat Configuration Will this happen even if I do not deploy the project via a .war file? Not on 6.0.18 (and I haven't actually tried 6.0.20 yet). But it doesn't really matter - you can create the

RE: How to reference Shared Libraries with TOMCAT

2009-06-03 Thread Caldarale, Charles R
From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: How to reference Shared Libraries with TOMCAT # First clear out the user classpath CLASSPATH= But not on Windows. The corresponding Windows script only sets CLASSPATH if running with a JDK and it can find

[SECURITY] CVE-2009-0033 Apache Tomcat DoS when using Java AJP connector

2009-06-03 Thread Mark Thomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 CVE-2009-0033: Apache Tomcat denial of service vulnerability Severity: important Vendor: The Apache Software Foundation Versions Affected: Tomcat 6.0.0 to 6.0.18 Tomcat 5.5.0 to 5.5.27 Tomcat 4.1.0 to 4.1.39 The unsupported Tomcat 3.x, 4.0.x and

[SECURITY] CVE-2009-0580 Apache Tomcat User enumeration vulnerability with FORM authentication

2009-06-03 Thread Mark Thomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 CVE-2009-0580: Tomcat information disclosure vulnerability Severity: Low Vendor: The Apache Software Foundation Versions Affected: Tomcat 4.1.0 to 4.1.39 Tomcat 5.5.0 to 5.5.27 Tomcat 6.0.0 to 6.0.18 The unsupported Tomcat 3.x, 4.0.x and 5.0.x

Re: Just a few questions on my Tomcat Configuration

2009-06-03 Thread Josh Gooding
Excellent. So let me see if I have everything straight here: I use virtual hosting to create /abcapps and /xyzapps and install the program in each directory. In the Host section, bind the sub-domain to them and then I should be able to login per subdomain and have everything completely seperate

ServletContextAttributeListener and a cluster

2009-06-03 Thread Robbert-Jan Roos
Hi, We've been playing around with the DistributedContext, and setAttribute getAttribute works perfectly. I was wondering if it is possible to get a distributed ServletContextAttributeListener. So when we do setAttribute(foo, bar) on cluster node1 I would like to receive a

Re: Authentication from the browser

2009-06-03 Thread Alec Swan
Bill, thank you for your feedback. I read up on CLIENT-CERT and am now surprised that Bill was the only one to mention it. It sounds like CLIENT-CERT is the scheme that we should. We can generate certificates and ask our customer to distribute it to its users and have them install certificates in

IIS Connector Redirect to Localhost?

2009-06-03 Thread Patrick Markiewicz
Hi, I configured the isapi_redirect file for tomcat using the instructions I found online. The only twist I added, was instead of defining the ISAPI filter for the entire website, I used a wildcard map and instructed IIS 6.0 to use isapi_redirect.dll as the high priority wildcard map

RE: java.net.SocketException: Too many open files

2009-06-03 Thread Martin Gainty
Here is the code void acceptConnections() { if( log.isDebugEnabled() ) log.debug(Accepting ajp connections on + port); while( running ) { try{ MsgContext ep=createMsgContext(packetSize); ep.setSource(this);

RE: Just a few questions on my Tomcat Configuration

2009-06-03 Thread Caldarale, Charles R
From: Josh Gooding [mailto:josh.good...@gmail.com] Subject: Re: Just a few questions on my Tomcat Configuration I use virtual hosting to create /abcapps and /xyzapps and install the program in each directory. The proper term is webapp, not program. A webapp has a spec-defined directory

Re: ServletContextAttributeListener and a cluster

2009-06-03 Thread Filip Hanik - Dev Lists
Robbert-Jan Roos wrote: Hi, We've been playing around with the DistributedContext, and setAttribute getAttribute works perfectly. I was wondering if it is possible to get a distributed ServletContextAttributeListener. So when we do setAttribute(foo, bar) on cluster node1 I would like to

Re: Just a few questions on my Tomcat Configuration

2009-06-03 Thread Josh Gooding
You sir are a gentleman and a scholar! Thank you for all of the tips, they are greatly appreciated! I think you have answered just about all of my questions I have as of right now. I have Win Server 2K3 R2 and a box to play with. I am going to try to get everything up and running this weekend.

Re: java.net.SocketException: Too many open files

2009-06-03 Thread John Cartwright
Thanks for your suggestions Martin, I'll look into modifying the memory parameters. Strange thing is that this has been running for weeks w/o any changes in the configuration or contexts. --john Martin Gainty wrote: Here is the code void acceptConnections() { if(

RE: java.net.SocketException: Too many open files

2009-06-03 Thread Caldarale, Charles R
From: John Cartwright [mailto:john.c.cartwri...@noaa.gov] Subject: Re: java.net.SocketException: Too many open files I'll look into modifying the memory parameters. That would be a complete waste of time. The heap size has nothing to do with the problem you're seeing, and the discussion

Re: java.net.SocketException: Too many open files

2009-06-03 Thread John Cartwright
Thanks for your reply Peter. Initially I was assuming that lsof was not showing me files on disk that were being opened and read by servlets. However, I've been unable to reproduce that in a more controlled setting. Since this system has been running for weeks w/o any modification,

RE: java.net.SocketException: Too many open files

2009-06-03 Thread Martin Gainty
glad to hear that helped you may want to consider implementing SSL on your connectors to protect your TC resources http://www.mbaworld.com/docs/ssl-howto.html Please let us know if we can provide any assistance to your efforts Martin Gainty __ Jogi

how to setup Tomcat 6.x fixes

2009-06-03 Thread Meline, Kirk Alan. (ARC)[PEROT SYSTEMS]
Hi Where can I get instructions on setting up our Tomcat server with the new fixes? I have downloaded the new fixes but cannot see any instructions on the web site. Thanks Kirk Kirk Meline Systems Administrator NASA Ames Research Center Mail Stop 213-7 Moffett Field, CA 94035-1000

RE: how to setup Tomcat 6.x fixes

2009-06-03 Thread Caldarale, Charles R
From: Meline, Kirk Alan. (ARC)[PEROT SYSTEMS] [mailto:kirk.mel...@nasa.gov] Subject: how to setup Tomcat 6.x fixes Where can I get instructions on setting up our Tomcat server with the new fixes? Download, unzip (or untar), run: http://tomcat.apache.org/tomcat-6.0-doc/setup.html I have

RE: how to setup Tomcat 6.x fixes

2009-06-03 Thread Meline, Kirk Alan. (ARC)[PEROT SYSTEMS]
Chuck I have download all the files from the windows section of http://tomcat.apache.org/download-60.cgi#6.0.20 I just would like to know how to install them while making sure I do not cause problems on apache. Thanks Kirk Meline Systems Administrator NASA Ames Research Center Mail Stop

tomcat-connectors mod_jk.dsp file will not load in Visual Studio 2005

2009-06-03 Thread Andy Wang
Hi all, I was able to get mod_jk building fine using Makefile.vc, but couldn't get the .dsp file loaded into Visual Studio 2005. Anyone know if there's a trick to this, or should I just not care (it does build and seem to work fine with the Makefile). When Visual Studio 2005 tries to

Re: How to reference Shared Libraries with TOMCAT

2009-06-03 Thread David Kerber
Caldarale, Charles R wrote: From: Zeeshan Ahmad [mailto:zah...@i2cinc.com] Subject: RE: How to reference Shared Libraries with TOMCAT If you have multiple tomcats and multiple applications then you have to put the jars on a separate location As Peter pointed out, doing so is a really

RE: how to setup Tomcat 6.x fixes

2009-06-03 Thread Martin Gainty
Kirk- I have'nt seen that particular feature incorporated into current TC 6.x release please feel free to post this feature request to https://issues.apache.org/bugzilla/enter_bug.cgi?product=Tomcat%206 powers that be will review the feature request and respond HTH Martin Gainty

Understanding GC Logs

2009-06-03 Thread CrystalCracker
I am just trying to learn and understand the GC logs. (I did read the sun's docs on GC tuning). jdk1.6.0_07 -Xms2g -Xmx2g -Xss256k -XX:+UseLargePages -XX:+PrintGCDetails -verbose:gc -Xloggc:/var/log/gc.log -XX:PermSize=512m -XX:MaxPermSize=512m It is running Parallel Collector by default.

Re: Blank page when native DLL used

2009-06-03 Thread Frank W. Zammetti
-mail: users-h...@tomcat.apache.org __ Information from ESET Smart Security, version of virus signature database 4128 (20090603) __ The message was checked by ESET Smart Security. http://www.eset.com

RE: Blank page when native DLL used

2009-06-03 Thread Caldarale, Charles R
From: Frank W. Zammetti [mailto:fzli...@omnytex.com] Subject: Re: Blank page when native DLL used the only thing I did do was take all the preinstalled applications and remove them from webapps... Including ROOT? If you don't have a default webapp deployed, you will get a blank page back

Re: Blank page when native DLL used

2009-06-03 Thread Frank W. Zammetti
That's correct, root too... I tried adding all the webapps back in anyway to no avail... the URL I know is correct because without the DLL, it gets me my page as expected, but when I drop the DLL in and just hit refresh, I get the blank page (I also confirmed there was no trailing slash both

RE: how to setup Tomcat 6.x fixes

2009-06-03 Thread Caldarale, Charles R
From: Meline, Kirk Alan. (ARC)[PEROT SYSTEMS] [mailto:kirk.mel...@nasa.gov] Subject: RE: how to setup Tomcat 6.x fixes I have download all the files from the windows section of http://tomcat.apache.org/download-60.cgi#6.0.20 O.k., you went a bit overboard, but there's no damage; I'd