RE: Redeploying war file kills context xml

2006-03-22 Thread Aust, Christian
Hi Jim, thanks for your reply. Defining the context outside the war file solves some issues, since we deploy the very same application to different server setups. JNDI environment values are different on test and production machines, and those are defined in the context. Adding them to the war

Re: Running webapp as root context

2006-03-22 Thread Per Johnsson
Hi! I think the easiest way is to put all the contents in your folder "mmwebclient" in the webapps/ROOT. Not put the whole folder just the contents. /Per Jonsson "Ryan Di Francesco" <[EMAIL PROTECTED]> 2006-03-22 22:57 Please respond to "Tomcat Users List" To cc Subject Running webapp

Realm defined within my webapp

2006-03-22 Thread Dustin Sallings
I have several webapps I am trying to bring over from Resin that make use of various types of authentication that needs to live solely within my webapp (I may have multiple deployed instances of one with different versions, for example). I have attempted to add it to META-INF/context.xm

SSL handshake times out on Tomcat 5.5

2006-03-22 Thread Aust, Christian
Hi, although I've read all the docs and FAQs I could find, I can't get Tomcat 5.5.15 to do SSL on Windows with SUN JDK 1.5. I've imported the keys according to the docs, starting with the root CA cert and going all the way up until the cert that matches my key request. Then I've copied the key

Re: Running webapp as root context

2006-03-22 Thread Amila Suriarachchi
remane the folder mmwebclient as ROOT

Re: overheads on multiple connectors

2006-03-22 Thread Long
> To the Chris, I personally don't think it is the norm since your average > site usually don't get that kind of load. I would start with 2 or 3 and > scale up as needed. I have gotten request to separate traffic to multiple ports so that Network Engineer can manage/debug network traffic easier (b

mod_jk failover loadbalancing doesn't recognize hung tomcat

2006-03-22 Thread Vidya TR
Our application which runs on Apache HTTP Server 2.0.54, TOMCAT 5.0.28 with mod_jk 1.2.15 connector. In production while our application was running. Our application had a thread dead Lock hosing up all the users trying to connect our application. So started investigating the failover setup in mod

RE: Would like to track googlebots, or spiders from site

2006-03-22 Thread Tim Lucia
Try here: http://www.robotstxt.org/wc/robots.html -Original Message- From: Scott Purcell [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 22, 2006 8:00 PM To: Tomcat Users List Subject: Would like to track googlebots, or spiders from site Not necessarily a tomcat problem, but I have cr

Would like to track googlebots, or spiders from site

2006-03-22 Thread Scott Purcell
Not necessarily a tomcat problem, but I have created a webapp on Tomcat 5.x. I would like to be able to track any robot activity in a log file, but not really sure where to begin looking for this functionality? If this is possible, is there a debug level that could be used so I could find out w

multiple Tomcat realm

2006-03-22 Thread Colin . Lew
Hi all, We are currently using the JNDIRealm in Tomcat to allow user to connect through LDAP. all users with the userBase attribute OU=Internal can log in. However, we also have a OU=External, which are unable to get authenticated. Is there any way we can have multiple Tomcat realm? or any oth

Re: Problem configuring webapp with Tomcat 5.0.28 on RHE3

2006-03-22 Thread Rachel McConnell
You know I just worked that out! Forgot to change the JAVA_HOME variable. *sigh* Now I have a different problem (app can't find the data source) but I'll whang on it a bit before asking here. Thanks, Rachel Markus Schönhaber wrote: Rachel McConnell wrote: Exception stack trace: ---

Re: Problem configuring webapp with Tomcat 5.0.28 on RHE3

2006-03-22 Thread Markus Schönhaber
Rachel McConnell wrote: > Exception stack trace: > - > java.lang.UnsupportedClassVersionError: org/apache/jsp/setup/index_jsp > (Unsupported major.minor version 49.0) You're trying to run a Java 1.5 class on a Java <=1.4 VM. Either start Tomcat wit

RE: overheads on multiple connectors

2006-03-22 Thread Chris Fong
Thanks for the replies. > : Where are you getting this 20 connection count from? Those must be > : currently open connections to clients? Actually, I am talking about connector (Http Connector) instead of connection. > To the Chris, I personally don't think it is the norm since your average >

RE: Run Tomcat in W2k3 as service

2006-03-22 Thread Tim Lucia
You can specify parameters on the various tabs under the servicew app (the tray monitor). You probably want "Startup" in this case, so it would go alongside the "start" option. Tim -Original Message- From: Ryan Daly [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 22, 2006 4:26 PM To:

Problem configuring webapp with Tomcat 5.0.28 on RHE3

2006-03-22 Thread Rachel McConnell
I've got a web application that runs succesfully on Win/Tomcat 5.0 and on RH/resin 2.x. I am pretty sure my problem is with the container configuration. I need to run several versions of the app and I'd like to do this using several different Tomcat instances, with different $CATALINA_BASE di

Re: Desupport for Tomcat 4?

2006-03-22 Thread Mark Thomas
TroyGeek wrote: > Hello, > Do you know when the tomcat development group plans on not releasing any new > patches for Tomcat 4? Does this ever happen? If a bug is found in Tomcat 4 > is it fixed in Tomcat 4 or are we forced to upgrade to Tomcat 5? I am currently working my way through all reported

Running webapp as root context

2006-03-22 Thread Ryan Di Francesco
Hello - I've just finished my first installation of Tomcat 5.5 along with Meeting Maker. Right now the URL to access Meeting Maker is http://localhost/mmwebclient. As this is the only application this server will be running, ideally I'd like to configure it so just accessing http://localhost wi

Re: Connector Installation

2006-03-22 Thread Scott Gravenhorst
More stuff. I found a tutorial (one of the many) and in that it was said that the prefork .so file is the one to copy as mod_jk.so to the directory containing modules. It also said to set the chmod permissions to 755. After I added the loadmodule directive to httpd.conf, I now get an error when

Run Tomcat in W2k3 as service

2006-03-22 Thread Ryan Daly
Has anyone successfully set environment variables for the Tomcat process when it's running as a service? Is it possible to start the service with the "-security" option, as in Linux? Thanks in advance. - To unsubscribe, e-mail:

Tomcat 5.5.16 Virtual Hosting Problem

2006-03-22 Thread Vamsidhar
Hi all: I have posted for help yesterday, but I think the post was poorly worded. So I am posting again. I am using Tomcat 5.5.16 (stand-alone) with JDK 5.0 on Windows XP and trying to setup virtual hosting (to start with two hosts + localhost). Once I start the tomcat server, three host folders

Re: running two instances of tomcat

2006-03-22 Thread Jim the Standing Bear
Thanks, Chuck. I will take a closer look at RUNNING.txt. However, i still think there is something else causing our problems.. We installed two copies of the tomcat code, one running at root, and the other running as a regular user. Now, even if the ports were conflicting, it would prevent one

RE: running two instances of tomcat

2006-03-22 Thread Caldarale, Charles R
> From: Jim the Standing Bear [mailto:[EMAIL PROTECTED] > Subject: Re: running two instances of tomcat > > Is there anything special we need to configure to > allow the co-existence (other than the port numbers)? That should be it, just make sure yout get _all_ the ports. By default, there are

caldav implementation in webdavServlet

2006-03-22 Thread jirina
Goog day, my name is George and Im student of IT, and I should create calendar server application suporting CalDAV protocol (as an extension to WebDAV to publish calendaring data). And I would like to ask, about implementation. I write it in java (servlet application working on tomcat server), b

Re: running two instances of tomcat

2006-03-22 Thread Jim the Standing Bear
Thank you all for the replies - it was my fault for not specifying the environment. Actually we are trying to run the tomcats under linux, but they seemed to be conflicting each other. Is there anything special we need to configure to allow the co-existence (other than the port numbers)? Thanks.

RE: running two instances of tomcat

2006-03-22 Thread Caldarale, Charles R
> From: Nic Daniau [mailto:[EMAIL PROTECTED] > Subject: Re: running two instances of tomcat > > That was the case in 4.1 yes, but it doesn't work with 5.5 > on Windows platform, because of the way the service is set > up from the nsi scrip (that you can read from tomcat source). The service.bat

Re: robust Failover, mod_jk

2006-03-22 Thread Vidya TR
Our application which runs on Apache HTTP Server 2.0.54, TOMCAT 5.0.28 with mod_jk 1.2.15 connector. In production while our application was running. Our application had a thread dead Lock hosing up all the users trying to connect our application. So started investigating the failover setup in mod

Re: running two instances of tomcat

2006-03-22 Thread David Kerber
I got it working no problem on Windows, running 5.5.12. Just had to mess with the service installation scripts a bit to give each of them different names. A little hassle, but not a big one. Nic Daniau wrote: That was the case in 4.1 yes, but it doesn't work with 5.5 on Windows platform, b

Re: running two instances of tomcat

2006-03-22 Thread Nic Daniau
That was the case in 4.1 yes, but it doesn't work with 5.5 on Windows platform, because of the way the service is set up from the nsi scrip (that you can read from tomcat source). I've written down a procedure to overcome this and I will post it tomorrow (its on my laptop which I left at the office

Re: running two instances of tomcat

2006-03-22 Thread David Kerber
Jim the Standing Bear wrote: Hi, Is there a way to run two instances of tomcat 5.5 on the same machine? Because me and a coworker were developing some webapps using the same node, but under two different tomcat instances. We just learned a painful lesson that as soon as the second instance of

running two instances of tomcat

2006-03-22 Thread Jim the Standing Bear
Hi, Is there a way to run two instances of tomcat 5.5 on the same machine? Because me and a coworker were developing some webapps using the same node, but under two different tomcat instances. We just learned a painful lesson that as soon as the second instance of tomcat is launched, the first on

RE: return (HexUtils.convert(md.digest())) in RealmBase

2006-03-22 Thread Jay Burgess
Then maybe I'm misunderstanding something. But I can guarantee that MessageDigest.digest(), which returns an array of bytes, will NOT return an array of bytes every time that can be transmitted on a URL i.e. is a printable string. That's why it has to be encoded in some form, and two hex chars/by

Start Tomcat from a java client

2006-03-22 Thread Hans Sowa
Hi I would like to start Tomcat with axis2 from a java client. The use case is that there is a web service on a server. The clients can login on the server with the web service and the server. If all clients are ready the should work together without the service using webservices. So every client

RE: Redeploying war file kills context xml

2006-03-22 Thread Jim Freeby
I am using Tomcat 5.5.15 w/ jdk1.5.0_06 In my webapp, I have created a context file in ${app.name}/META-INF/context.xml. If Tomcat is running and I drop a new war file in the webapps dir, Tomcat reads ${app.name}/META-INF/context.xml and creates a new ${catalina.home}/conf/Catlina/${host.name}/

Connector Installation

2006-03-22 Thread Scott Gravenhorst
Greetings from a new guy... I have Tomcat 5.5 running under FC3. I would like to install and configure the mod_jk connector, but I'm finding the documentation somewhat unclear. I know tomcat is working because I can display the samples via port 8080. The Apache web server is also installed and

Re: return (HexUtils.convert(md.digest())) in RealmBase

2006-03-22 Thread Alessandro Colantoni
Thanks for answer. I'm sure that the byte representation is printable, because that's a very easy algorithm, and it is working since some year storing correct encrypted password with the other application. What i should need is an inverse operation of the HexUtils.convert. Is there such an algorith

Re: Supporting maximum number of keep-alive connections

2006-03-22 Thread Rajeev Jha
On 3/22/06, Remy Maucherat <[EMAIL PROTECTED]> wrote: > On 3/22/06, Rajeev Jha <[EMAIL PROTECTED]> wrote: > > In our case,the servlet is interfacing to the back-end that sends > > async events from time to time. > > As you may have noticed, the HTTP protocol (and the Servlet API) are > not designed

maximum number of threads for tomcat

2006-03-22 Thread Rajeev Jha
Hi We are desiging a push application to run with tomcat. Our servlet interfaces to a backend and listens for async events, when the events arrive,data is pushed to the browser. Browser opens a keep-alive connection and shows the data received from servlet. The doGet() method is like this doGet(

Re: Supporting maximum number of keep-alive connections

2006-03-22 Thread Remy Maucherat
On 3/22/06, Rajeev Jha <[EMAIL PROTECTED]> wrote: > In our case,the servlet is interfacing to the back-end that sends > async events from time to time. As you may have noticed, the HTTP protocol (and the Servlet API) are not designed for this kind of usage. You can try to hack your way through if

RE: return (HexUtils.convert(md.digest())) in RealmBase

2006-03-22 Thread Jay Burgess
I think this is the right answer: digest() returns a sequence of bytes. Depending on the values of the individual bytes, if you were to try and convert it to String, you can end up with non-printable characters, etc. I'm assuming that HexUtils.convert() turns each 4 bits of each byte into a hex

return (HexUtils.convert(md.digest())) in RealmBase

2006-03-22 Thread Alessandro Colantoni
Hi All! I saw that both method Digest(..) and digest(..) in RealmBase return ( HexUtils.convert(md.digest())) and not just md.digest().toString. My problem is that user table is maintained by another application developed in an other technology. My application uses this table just to authenticate.

Supporting maximum number of keep-alive connections

2006-03-22 Thread Rajeev Jha
> On 3/17/06, Rajeev Jha <[EMAIL PROTECTED]> wrote: > > > What's your ratio of Apache to Tomcat instances? You may want to look > into using squid as a reverse proxy to Tomcat, it is very good at > supporting a huge number of concurrent clients without having to spawn > a thread or process for each

Re: Desupport for Tomcat 4?

2006-03-22 Thread Markus Schönhaber
TroyGeek wrote: > Do you know when the tomcat development group plans on not releasing any > new patches for Tomcat 4? Does this ever happen? If a bug is found in > Tomcat 4 is it fixed in Tomcat 4 or are we forced to upgrade to Tomcat 5? Look at this: http://tomcat.apache.org/whichversion.html Th

Re: Tomcat 5.5.16 - Confirmation of " Extra bytes at the end of class file listeners/ContextListener" error

2006-03-22 Thread Adam Hill
Thanks for confirming I wasn't crazy :-) adam... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Desupport for Tomcat 4?

2006-03-22 Thread TroyGeek
Hello, Do you know when the tomcat development group plans on not releasing any new patches for Tomcat 4? Does this ever happen? If a bug is found in Tomcat 4 is it fixed in Tomcat 4 or are we forced to upgrade to Tomcat 5? Thank you for your time! ~ T r o y ~

Re: SSL

2006-03-22 Thread ngolehung84
Thank you very much!! I have configured successful!! -- View this message in context: http://www.nabble.com/SSL-t1318762.html#a3534884 Sent from the Tomcat - User forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED]

RE: SSL

2006-03-22 Thread Caldarale, Charles R
> From: ngolehung84 [mailto:[EMAIL PROTECTED] > Subject: RE: SSL > > But I don't know what is "localhost.crt" and "localhost.key" > ? How can I create 2 file? As you've been told before, read the OpenSSL docs: http://www.openssl.org/docs/ The openssl command line tool appears to do what you n

Controlling contents of the localhost..log file

2006-03-22 Thread Davidian
I've posed this question recently, but I am going to try to phrase it better, as I think last time it may have been poorly worded... My web application logs information to the localhost..log file. The information that is being logged is doing so correctly. However, here is my problem: In betwe

RE: SSL

2006-03-22 Thread ngolehung84
I have saw that file http://tomcat.apache.org/tomcat-5.5-doc/apr.html: The "server.xml" file But I don't know what is "localhost.crt" and "localhost.key" ? How can I create 2 file? -- View this message in context: http://www.nabble.com/SSL-t1318762.html#a3532758 Sent from the Tomcat - User foru

RE: SSL

2006-03-22 Thread Caldarale, Charles R
> From: ngolehung84 [mailto:[EMAIL PROTECTED] > Subject: Re: SSL > > Thanks, I saw APR, but in the Tomcat Documentation I can't > find the doc which tell how to configure Tomcat with OpenSSL > ( just some guide lines!:( ). Did you look at the APR doc? http://tomcat.apache.org/tomcat-5.5-doc/apr

Re: SSL

2006-03-22 Thread ngolehung84
Thanks, I saw APR, but in the Tomcat Documentation I can't find the doc which tell how to configure Tomcat with OpenSSL ( just some guide lines!:( ). Now I want to customize the cipher algorithms, can I do this with OpenSSL? How can I configure Tomcat to use OpenSSL? Thanks in advance! Hung. -- Vi

AppServer Comparison metrics

2006-03-22 Thread Martin Gainty
Good Morning All- Has anyone come across any studies detailing comparisons of AppServers (supported name algorithms, supported security models, how many max threads are supported, J2EE support Servlet spec support?) etc ? Sorry for the O/T thread Many Thanks, Martin-

RE: apache(v2.0) front-end to jboss(v4.0.3)/tomcat5.5 webapp: context path prepend ?

2006-03-22 Thread Tim Lucia
You will probably want to set emptySessionPath to true http://tomcat.apache.org/tomcat-5.5-doc/config/http.html http://marc.theaimsgroup.com/?l=tomcat-user&m=114082698006999&w=2 Otherwise, the browser will send the cookie for /mywebapp as that is the context which Tomcat will set JSESSIONID under

Re: FarmWarDeployer instructions

2006-03-22 Thread Edoardo Causarano
Alle Tuesday 21 March 2006 18:05, Filip Hanik - Dev Lists ha scritto: Thank you Filip, please bear me one more time. I understand that only the "tomcat cluster master" should have a watchDir configured and watchEnabled set to true. The deployDir of all "tomcat cluster members" should point to t

connections not freed

2006-03-22 Thread Edward Quick
Hi, I have the following scenerio: I'm running a jsp on tomcat 4.1.31 fronted by apache 2.0.54. This jsp uses a tomcat jdbc pool connection with maxWait set to 1ms. At the moment the database is screwed up because one of the filesystems on there has filled up from an archive job. Now wh

Re: Data Truncation Error

2006-03-22 Thread Jon Wingfield
Try replacing the ampersand character with the xml entity & HTH, Jon Mark Whitby wrote: Further to my email earlier I've discovered I can either have the truncation on or the reconnect on, but I can't include both in the url otherwise Tomcat doesn't start up. Also, if I take off the autorec

Re: keeping same session via apache2 mod_jk2 and tomcat5

2006-03-22 Thread Vahid Hedayati
Hi all I had as a test used seperate engines for each virtual host but instead it loaded up one of the virtual hosts on both and the site that had the wrong virtual host loaded up seemed to keep the session ID . Anyhow here are the configs. The first 2 is what is currently running the last 2 are