Re: Session Replication question

2008-10-15 Thread Filip Hanik - Dev Lists
useDirtyFlag is supposed to be the SimpleTcpManager, DeltaManager always only replicates deltas. so does the backup manager. The two managers that work best are DeltaManager and BackupManager, both of them replicate upon setAttribute/removeAttribute actions. DeltaManager replicates to all other

Re: Tomcat5 - Error : catalina.bat startup script is missing

2008-10-15 Thread André Warnier
In your Tomcat\bin directory, is there a (small) file called tomcat5.exe , and another called tomcat5w.exe ? If yes, then this will explain what is currently going on : http://tomcat.apache.org/tomcat-5.5-doc/windows-service-howto.html (Note : it is also linked to what you will find here :

RE: Changing the ROOT application in Tomcat 6.0.18 on Linux

2008-10-15 Thread Maik Schumacher
Thanks for the response, Chris. Yes, I used ROOT.xml (in upper case) but it just does not work. Well, there is no particular reason for not renaming my 'testweb' directory to 'ROOT'. I just do not like the fact very much that I have to rely on Tomcat specific contexts. I prefer to use my one and

RE: NIO 100% CPU usage

2008-10-15 Thread Matías Rojas
Hi Filip, Thanks for your response. I can only reproduce it on production, where we are running a Linux 2.6 Kernel with JDK 6 update 7. After a high load it is still running at 100% CPU usage (sometimes 200% or 300% taking 2 or 3 cores). Today I'll try to do some profiling to detect the exact

Transaction manager

2008-10-15 Thread Jérôme Delattre
Hi, I am looking for a standalone transaction manager for Tomcat. I tried JOTM but there's some blocker bugs in XAPool and the datasource implementation, moreover no new release for 3 years is scary :-) JBossTM works fine but it's under LGPL and unfortunatly I can't use it, too bad :-( Atomikos

Re: Socket error

2008-10-15 Thread Johnny Kewl
- Original Message - From: Rathiika [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Wednesday, October 15, 2008 10:37 AM Subject: Re: Socket error Thanks Johny !!! for prompt response. I have checked my code, i am sure there is no problem with xml parsers. I am able to solve

Re: TC 5.5.27 upgrade JSP tag attribute quoting

2008-10-15 Thread Mark Thomas
David Wall wrote: While it makes sense, I was just checking to see if upgrading from Tomcat 5.5.26 to 5.5.27, not thinking such an upgrade would require JSP source code changes, will hold true going forward with subsequent Tomcat releases. We have a few places where JSP tag attribute values

Re: Transaction manager

2008-10-15 Thread Jérôme Delattre
2008/10/15 Jérôme Delattre [EMAIL PROTECTED]: Hi, I am looking for a standalone transaction manager for Tomcat. I tried JOTM but there's some blocker bugs in XAPool and the datasource implementation, moreover no new release for 3 years is scary :-) JBossTM works fine but it's under LGPL

RE: Changing the ROOT application in Tomcat 6.0.18 on Linux

2008-10-15 Thread Caldarale, Charles R
From: Maik Schumacher [mailto:[EMAIL PROTECTED] Subject: RE: Changing the ROOT application in Tomcat 6.0.18 on Linux As mentioned, no problems on Windows XP, but using ROOT.xml on my Linux machine does not work. It seams that Tomcat ignores the ROOT.xml in tomcat/conf/Catalina/localhost

Tomcat Shutdown Port as Variable

2008-10-15 Thread AFaller
Hi All - I have quite a few installs of Tomcat on the same server (same CATALINA_HOME, different CATALINA_BASE), and I am interested in making my configs a little more portable. I'm trying to make certain unique items in my server.xml variable ( ${variablename} ), being pulled from my

tomcat as services

2008-10-15 Thread Frank Uccello
I have a machine that has multiply tomcat instances and they run as a service. I like to add a new tomcat: First I copy an existing tomcat.exe and rename to Tomcat-ItActionSystem.exe Then I type the following tomcat5 //IS//TomcatItActionSystems --DisplayName=Tomcat-ItActionSystem

Re: Tomcat Shutdown Port as Variable

2008-10-15 Thread Rainer Jung
[EMAIL PROTECTED] wrote: Hi All - I have quite a few installs of Tomcat on the same server (same CATALINA_HOME, different CATALINA_BASE), and I am interested in making my configs a little more portable. I'm trying to make certain unique items in my server.xml variable ( ${variablename} ),

AW: Using S/MIME encryption in Tomcat5.5 fails

2008-10-15 Thread Celik, Servet (ext MA)
Hi, all! What I did now: I put the jars listed below into the endorsed directory. Than I got rid of the NoSuchProviderException and run into a NullPointerException now. I set Debug-mode on and get the following cosole output (only first two rows): ## DEBUG: setDebug: JavaMail version 1.3.1

RE: Tomcat Shutdown Port as Variable

2008-10-15 Thread Martin Gainty
a shame that you cant specify that attribute via %JAVA_OPTS% maybe look at writing a set_8005 script which writes that specific_port to %TOMCAT_HOME%/conf/server.xml should be fine as long as you execute the script before starting TC .. any other suggestions? Martin Gainty

RE: tomcat as services

2008-10-15 Thread Caldarale, Charles R
From: Frank Uccello [mailto:[EMAIL PROTECTED] Subject: tomcat as services First I copy an existing tomcat.exe and rename to Tomcat-ItActionSystem.exe tomcat5 //IS//TomcatItActionSystems --DisplayName=Tomcat-ItActionSystem --Install=C:\Program

RE: AW: Using S/MIME encryption in Tomcat5.5 fails

2008-10-15 Thread Martin Gainty
make sure TC knows where the endorsed folder is located e.g. -Djava.endorsed.dirs=$CATALINA_HOME/common/endorsed when you're using a new package the best way to achieve an demonstrable functionality is to follow the provided sample http://javamail-crypto.sourceforge.net This package is beta

RE: tomcat as services

2008-10-15 Thread Frank Uccello
Ok this maybe a stupid question to ask but where do I download the service.bat file I only asked due it is not in tomcaat bin directory and I did a search and can not find this file Thanks -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Wednesday,

Programmatic instruct Tomcat to shutdown

2008-10-15 Thread Maxim Veksler
Hello, I would like to forcefully cause my application server to fail once I discover a situation I can't recover from. We have HA that should handle the situation from there. The best way I can see this happening is by issuing a shutdown instruction to the container, but I can't find how to do

SOAP-based web service question

2008-10-15 Thread Sterritt, Christopher L.
Hello, We'd like to do the following, and it *almost* works. We want multiple ports serving multiple web applications, and following the various how-tos on the web we've got multiple Service/Connector/Engine/Host setups going. This is Tomcat 5.5.16. We've got regular web application 'A' served

RE: Tomcat Shutdown Port as Variable

2008-10-15 Thread Caldarale, Charles R
From: Martin Gainty [mailto:[EMAIL PROTECTED] Subject: RE: Tomcat Shutdown Port as Variable a shame that you cant specify that attribute via %JAVA_OPTS% As Rainer already pointed out, you can; the shutdown script does not use CATALINA_OPTS, but it does honor JAVA_OPTS. - Chuck THIS

RE: tomcat as services

2008-10-15 Thread Frank Uccello
Never mind I found it thanks I go to try it -Original Message- From: Frank Uccello Sent: Wednesday, October 15, 2008 10:52 AM To: 'Tomcat Users List' Subject: RE: tomcat as services Ok this maybe a stupid question to ask but where do I download the service.bat file I only asked due

RE: tomcat as services

2008-10-15 Thread Caldarale, Charles R
From: Frank Uccello [mailto:[EMAIL PROTECTED] Subject: RE: tomcat as services Ok this maybe a stupid question to ask but where do I download the service.bat file Repeating what I already said (emphasis added): Rather than mucking around with all that, download and install the **.zip

Re: Socket error

2008-10-15 Thread Rathiika
Thanks Johny !!! for prompt response. I have checked my code, i am sure there is no problem with xml parsers. I am able to solve the FileNotFoundException, but sockettimeoutexception is still coming. I tried to change the timestamp in my appl, but no use. regards, Rathiika -- View this

RE: tomcat as services

2008-10-15 Thread Frank Uccello
I have now try the service.bat install name It gives me a window error nonalpah45 only option is click ok Once click ok Failed installing 'tomcat-ItActionSystem' service Please help -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Wednesday, October

RE: tomcat as services

2008-10-15 Thread Caldarale, Charles R
From: Frank Uccello [mailto:[EMAIL PROTECTED] Subject: RE: tomcat as services It gives me a window error nonalpah45 only option is click ok Once click ok Failed installing 'tomcat-ItActionSystem' service The error message is self-explanatory: you have a non-alphabetic character in the

Re: Tomcat Shutdown Port as Variable

2008-10-15 Thread AFaller
I have quite a few installs of Tomcat on the same server (same CATALINA_HOME, different CATALINA_BASE), and I am interested in making my configs a little more portable. I'm trying to make certain unique items in my server.xml variable ( ${variablename} ), being pulled from my

Re: Installing another jdk while tomcat is running

2008-10-15 Thread Johnny Kewl
- Original Message - From: nashrul [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Wednesday, October 15, 2008 6:03 AM Subject: Installing another jdk while tomcat is running I have jdk 1.4 and 1.5 installed and tomcat 5.0 running. I downloaded jdk 1.6 and I want to install

Re: question : encounter java.net.SocketTimeoutException: Read timed out occasionally

2008-10-15 Thread doktorkloebner
Hi all, we've been having the same Exception and Stack Trace in an application we've written for a customer. Our application is running on Tomcat 5.5.25 accessed through Apache with ModJk. The Exception occurs when a client accesses the server with a slow connection and plenty of data is posted

problem with executing a batch file in tomcat JAVA servlet

2008-10-15 Thread Daniel L. Gross
I'm trying to execute a batch file in my servlet in tomcat5. I'm using the Process class exec() and issuing a command of cmd.exe /C file.bat Then I do a p.waitFor(); after this. However, it appears that a few of the files copy, then the process hangs. If I stop the calling program, the batch

Re: problem with executing a batch file in tomcat JAVA servlet

2008-10-15 Thread Mark Thomas
Daniel L. Gross wrote: I'm trying to execute a batch file in my servlet in tomcat5. I'm using the Process class exec() and issuing a command of cmd.exe /C file.bat Then I do a p.waitFor(); after this. However, it appears that a few of the files copy, then the process hangs. If I stop the

Logging

2008-10-15 Thread Mohit Anchlia
I am using tomcat 6. And I have enabled log4j by placing log4j.xml and log4j.jar files in classpath. It did change to log4j but I see that some debug messages are put in log files and some are not. I was looking around and found the following: # Set juli LogManager if it is present if [ -r

Re: NIO 100% CPU usage

2008-10-15 Thread Filip Hanik - Dev Lists
what version of tomcat are you using? Filip Matías Rojas wrote: Hi Filip, Thanks for your response. I can only reproduce it on production, where we are running a Linux 2.6 Kernel with JDK 6 update 7. After a high load it is still running at 100% CPU usage (sometimes 200% or 300% taking 2 or 3

RE: tomcat as services

2008-10-15 Thread Frank Uccello
Ok I tried with a - now its tomcatItActionSystems I do not get alpha error but still get Failed installing 'tomcatItActionSystem' service -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 15, 2008 12:12 PM To: Tomcat Users List Subject:

[ANN] Apache Tomcat Connectors 1.2.27-dev-704800 available for testing.

2008-10-15 Thread Mladen Turk
The Apache Tomcat team announces the immediate availability of Apache Tomcat Connectors 1.2.27-dev-704800 for testing. Apache Tomcat Connectors version 1.2.27-dev contains numerous of bug fixes over previous 1.2.26 version and lots of new features. The complete changelog with all fixes and new

RE: tomcat as services

2008-10-15 Thread Frank Uccello
I had change the batch file but I got the service to work thanks -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 15, 2008 12:12 PM To: Tomcat Users List Subject: RE: tomcat as services From: Frank Uccello [mailto:[EMAIL PROTECTED]

Not showing error during deployment

2008-10-15 Thread emerson cargnin
Hi I'm using TC 5.5.26 and java 5. When I deploy one webapp I get the following error: SEVERE: Context [/search] startup failed due to previous errors But it doesn't give any further error. Some other times I added a log4j configuration on the common/classes and the log4j jar inside common\lib

RE: NIO 100% CPU usage

2008-10-15 Thread Matías Rojas
It's 6.0.18 -Original Message- From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Sent: miércoles, 15 de octubre de 2008 07:25 p.m. To: Tomcat Users List Subject: Re: NIO 100% CPU usage what version of tomcat are you using? Filip Matías Rojas wrote: Hi Filip, Thanks for your

Re: NIO 100% CPU usage

2008-10-15 Thread Filip Hanik - Dev Lists
ok, when you reproduce it, you don't really need a profiler, you can do a top with threads on, or a ps -efL, and from those, you can look into a thread dump I've never been able to reproduce the issue, so if you have a system, or if you want to work with me, ping me offline at fhanik at

Re: Not showing error during deployment

2008-10-15 Thread emerson cargnin
I tried doing the log4j trick and just noticed that that just works in linux/unix. Why can't logging in tomcat be simpler??? I just want to see the error that is happening during deployment... 2008/10/15 emerson cargnin [EMAIL PROTECTED]: Hi I'm using TC 5.5.26 and java 5. When I deploy one

tomcat 6 and subdirectories

2008-10-15 Thread Angelov, Rossen
Hi, I recently started using Tomcat 6 but can't configure it to map subdirectories to same servlet within the default context. I didn't have problems with the same setup in Tomcat 5. Here is an example. http://mysite/test.html - maps to the application servlet and works as expected

MySQL DBCP Connection Example?

2008-10-15 Thread Tim Potter
I am attempting to setup a tomcat mysql connection in order to allow users to write jsp webapps that can use a mysql database backend. I have understood that this page seems to be a walkthrough on how to set this up, and I'm running into problems in the MySQL DBCP Example section.

Re: Programmatic instruct Tomcat to shutdown

2008-10-15 Thread Filip Hanik - Dev Lists
you mean like java.lang.System.exit(1); Filip Maxim Veksler wrote: Hello, I would like to forcefully cause my application server to fail once I discover a situation I can't recover from. We have HA that should handle the situation from there. The best way I can see this happening is by

Re: MySQL DBCP Connection Example?

2008-10-15 Thread David Smith
It'd be helpful if you could post that file. Sanitize it for db usernames and passwords, but post it so we can see what it looks like. Also, run it through an XML validator to see if there's any issues. Netbeans has one built-in. --David Tim Potter wrote: I am attempting to setup a

Re: [ANN] Apache Tomcat Connectors 1.2.27-dev-704800 available for testing.

2008-10-15 Thread Rainer Jung
Please join us in ensuring the quality of the forthcoming release by testing this snapshot. The source archives are in the same format as a release download, so easy to build. The last release is already 10 months old and there were important changes in the meantime. We hope we can make you

Re: [ANN] Apache Tomcat Connectors 1.2.27-dev-704800 available for testing.

2008-10-15 Thread Ken Bowen
Rainer, The connectors FAQ (http://tomcat.apache.org/connectors-doc/miscellaneous/faq.html )states: mod_jk works well with Apache 2.2. You need a binary module compiled for version 2.2 of the Apache web server. A binary compiled for version 2.0 will not work. Important parts of the

tomcat error

2008-10-15 Thread Frank Uccello
I have my tomcat start and everything look fine but I can not reach localhost:8057/it/servlet The tomcat log states SEVERE: Invalid message received with signature 18245 Any see this before I can not seem to find anything via google

Tomcat Training at ApacheCon

2008-10-15 Thread Filip Hanik - Dev Lists
Ladies and gentlemen, I am teaching a Tomcat class at ApacheCon, New Orleans and there are still spots left. It's a two day training, going from novice to very experienced in a gradual way over the two days. http://us.apachecon.com/c/acus2008/sessions/13 Filip

Re: tomcat error

2008-10-15 Thread David Smith
That all it states or could you provide a little more context? Also the usual stuff everyone forgets: OS, tomcat version, java version, relevant configs, etc., ... --David Frank Uccello wrote: I have my tomcat start and everything look fine but I can not reach localhost:8057/it/servlet

Re: MySQL DBCP Connection Example?

2008-10-15 Thread Tim Potter
These are my web.xml, context.xml, and test.jsp files (truncated). Let me know if there are any other files you would like to see. [EMAIL PROTECTED]:~$ cat /usr/local/tomcat/conf/web.xml ?xml version=1.0 encoding=ISO-8859-1? !-- Licensed to the Apache Software Foundation (ASF) under one or

Re: Data Truncated when proxied from Apache

2008-10-15 Thread Filip Hanik - Dev Lists
use mod_proxy_http or mod_jk, Filip Stephen Nelson-Smith wrote: Hi, I have an application which parses XML. It sits behind an Apache Httpd 2.2 server using mod_proxy_ajp. I am finding that if I POST more than about 1600 chars, the POST gets truncated, and I get an XML parse error. Httpd

mod_proxy_http v. mod_jk, was Re: Data Truncated when proxied from Apache

2008-10-15 Thread Robert Koberg
On Oct 15, 2008, at 5:44 PM, Filip Hanik - Dev Lists wrote: use mod_proxy_http or mod_jk, I have seen a few posts recommending mod_proxy_http a little bit over mod_jk. Why is that? I used mod_jk recently simply because it was on the tomcat site. I just assumed it was the default/best

Re: MySQL DBCP Connection Example?

2008-10-15 Thread David Smith
I think I see your problem. Don't modify the default web.xml file or the default context.xml file unless you really have good reason to. Instead, your webapp should be layed out similar to this, per the servlet spec: DBTest - test.jsp - WEB-INF - web.xml - lib

Re: MySQL DBCP Connection Example?

2008-10-15 Thread Tim Potter
David, Thanks for your input, I can test that out, but that would be a different direction than I think I want to go. I have running an apache web server that users access home directories (mod_user) in order to run thier primarily php scripted web pages, but some would like the option of jsp.

RE: MySQL DBCP Connection Example?

2008-10-15 Thread Caldarale, Charles R
From: Tim Potter [mailto:[EMAIL PROTECTED] Subject: Re: MySQL DBCP Connection Example? I can test that out, but that would be a different direction than I think I want to go. I don't think David was strong enough in his recommendations: you may not ever add additional Context elements to

Re: MySQL DBCP Connection Example?

2008-10-15 Thread David Smith
The servlet spec was designed around webapps being completely self-contained packages of pages and logic. I'm sure there are people on this list who what you are looking for ... I haven't. Maybe they can chime in here. As an alternative to storing webapps in tomcat's webapps directory, you

Memory leak from threadlocal for hot deployment

2008-10-15 Thread Noble Paul നോബിള്‍ नोब्ळ्
If I store an application object in ThreadLocal and do hot deployment it prevents the old classloader from getting GCed . Why can't Tomcat refresh it's threadpool after every app restart? --Noble - To start a new topic, e-mail:

How does DBCP handle Idle connections

2008-10-15 Thread Emma
Originally the application faces connection reset problems using the configuration: type=javax.sql.DataSource removeAbandoned=true removeAbandonedTimeout=100 maxActive=500 maxIdle=10 maxWait=1000 because the opened connections are closed by the

Re: [ANN] Apache Tomcat Connectors 1.2.27-dev-704800 available for testing.

2008-10-15 Thread Mladen Turk
Ken Bowen wrote: Is there anywhere a description of what mod_jk does that is NOT done by mod_proxy_ajp and mod_proxy_balancer? You might find this useful http://blogs.jboss.com/blog/mturk/ Also, does this release imply a corresponding release of mod_jk? Yes. This is basically 1.2.27