how to compile java file in tomcat ?

2007-01-18 Thread Harish Pathak
Hi All, Anybody please tell me how to compile java file in tomcat ? I have placed java file inside root \web-inf\classes Thanks Please reply soon. Harish Pathak - Don't pick lemons. See all the new 2007 cars at Yahoo! Autos.

Tomcat and jdbc over MS SQL Server

2007-01-18 Thread Andrea Modesto Rossi
Hi all, Need help on this. I'm using Tomcat6 over Debian GNU/Linux. Now i've a webapps written by JAVA but the database is sql server microsoft on the windows server. Is it possible to connect java webapps with sqlserver using jdbc? Appreciate your help. Krishna

Re: Daylight Savings 2007

2007-01-18 Thread Bob Hall
--- John Flores <[EMAIL PROTECTED]> wrote: > Do you know where I can find some documentation on > this subject? > > John, On the JRE side, see: -Bob

Re: Daylight Savings 2007

2007-01-18 Thread John Flores
Do you know where I can find some documentation on this subject? - Original Message - From: "Mark Thomas" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Thursday, January 18, 2007 7:28 PM Subject: Re: Daylight Savings 2007 John Flores wrote: I am concerned about the change in Da

RE: Tomcat / DBCP / Oracle / Reconnect

2007-01-18 Thread Krishna Paparaju
I could make this work with 'validationQuery' parameter. Thanks -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Thursday, January 18, 2007 7:08 PM To: Tomcat Users List Subject: Re: Tomcat / DBCP / Oracle / Reconnect Krishna Paparaju wrote: > I am trying to find i

Re: Tomcat / DBCP / Oracle / Reconnect

2007-01-18 Thread Mark Thomas
Krishna Paparaju wrote: > I am trying to find is there anyway Tomcat can be configured to > reconnect back to DB once it is up. I know autoReconnect flag works for > mySQL. Is there any equivalent in Oracle/thin driver? You could use testOnBorrow="true" and a validationQuery to achieve this. Check

Tomcat / DBCP / Oracle / Reconnect

2007-01-18 Thread Krishna Paparaju
Hi all, Need help on this. We are using Tomcat 5.5 with DBCP to reach Oracle DB. When this DB goes down for an hour or so and comes back up (like maintenance etc), Tomcat server is not able to connect back to DB and the only way out is restarting the tomcat server. I am trying to find

Re: Daylight Savings 2007

2007-01-18 Thread David Kerber
John Flores wrote: I am concerned about the change in Daylight Savings Times in 2007. Is there a patch that is needed to accomodate this change for all versions of Tomcat. If so, can you tell me where I can find the patch and intallation documentation for each version? Thanks John Flores

Re: Daylight Savings 2007

2007-01-18 Thread Mark Thomas
John Flores wrote: > I am concerned about the change in Daylight Savings Times in 2007. Is there > a patch that is needed to accomodate this change for all versions of Tomcat. > If so, can you tell me where I can find the patch and intallation > documentation for each version? > > Thanks > Jo

Re: Tomcat / DBCP / Oracle / Reconnect

2007-01-18 Thread Mark Thomas
When starting a new thread (ie sending a message to the list about a new topic) please do not reply to an existing message and change the subject line. To many of the list archiving services and mail clients used by list subscribers this makes your new message appear as part of the old thread. Thi

Re: Locale for

2007-01-18 Thread Mark Thomas
When starting a new thread (ie sending a message to the list about a new topic) please do not reply to an existing message and change the subject line. To many of the list archiving services and mail clients used by list subscribers this makes your new message appear as part of the old thread. Thi

Re: digest

2007-01-18 Thread Markus Schönhaber
Garner, Shawn wrote: > Is there a digest version of this list? http://tomcat.apache.org/lists.html#tomcat-users Regards mks - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For

digest

2007-01-18 Thread Garner, Shawn
Is there a digest version of this list? Shawn This email may contain confidential material. If you were not an intended recipient, Please notify the sender and delete all copies. We may monitor email to and f

Re: Apache mod_jk memory leak?

2007-01-18 Thread Rainer Jung
JNeuhoff wrote: Yes, it starts out with a much smaller memory, around 10 to 15 MB or so, even after a few initial connections to Tomcat from one user session. I see, any idea, how the delta 70-15=55MB relates to connections (if you do stress tests with real parallelity e.g. 20, 50, 100, 200,

Re: JSP suddenly causing problems [fixed -- still have questions]

2007-01-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, It turns out that my problem had to do with my altered deployment: a properties file was not being copied into the right place, and my JSP's init() method required that properties file to exist. My servlet's init method, in this case, would have

Re: Cache problems with static resources

2007-01-18 Thread Stefan Riegel
Stefan Riegel schrieb: Hello all, we are using Apache Tomcat 5.5.16 on both a Windows (development) and Linux (production) system. Caching of static resources works fine but we should control the behavior. We use a filter, which transforms static xml files and inserts some data. The access

JSP suddenly causing problems

2007-01-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, I generally don't do a lot of work with JSP, so I apologize if I'm asking kind of a stupid question, but here goes. Sun Java 1.5, TC 4.1.31 I recently authored a JSP that accepts an encrypted token encoded in the URL from another server to allo

Tomcat / DBCP / Oracle / Reconnect

2007-01-18 Thread Krishna Paparaju
Hi all, Need help on this. We are using Tomcat 5.5 with DBCP to reach Oracle DB. When this DB goes down for an hour or so and comes back up (like maintenance etc), Tomcat server is not able to connect back to DB and the only way out is restarting the tomcat server. I am trying to find is

Locale for

2007-01-18 Thread Wojtek Kusch
Hi All! How can I set the locale for (for example the string in calendar (at bottom): "Today ist 11/10/2006") Thanks! - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additi

Re: Apache mod_jk memory leak?

2007-01-18 Thread JNeuhoff
> It closes the connections, but it doesn't release all objects related to > the corresponding cache slot. Somehow I have the feeling, that it's not > really worth optimizing this, because 70MB for a web server doesn't > sound that much relative to hardware sizes of the last years. I assume >

RE: Accessing files from file server

2007-01-18 Thread Nelson, Tracy M.
| From: Priya Khanna [mailto:[EMAIL PROTECTED] | Sent: Thursday, 18 January, 2007 01:41 | | In my application my user will be logged in | as domain user only so is it possible to check at run time that who has | logged in and if user has access on file server then he can access the | files even if

Re: How to modify the log4j log filename during runtime?

2007-01-18 Thread Noah White
First off this is a log4j question not a Tomcat question and should be directed to the log4j list. You should begin by looking at the log4j java docs. Log4j can be completely (re)configured pragmatically with its APIs which is what you are trying to do. See org.apache.log4j.PropertyConfigurator.

How to modify the log4j log filename during runtime?

2007-01-18 Thread Bachler, Elisabeth \(Elisabeth\)
Hello, I have an application that uses log4j. In the application, I would like the user to choose the log file directory and the logfile name (using fileChooser). Now, how can I pass this information to log4j so it uses this filename as logfile? For the moment, I use as default: "C:\App\log.ht

RE: Tomcat 5.5 and x64 Windows

2007-01-18 Thread Darren Kukulka
Thanks for the pointers Mladen. I carried out the steps you outlined, however the "service install" command fails...as follows; F:\Tomcat5\bin>service install Installing the service 'Tomcat5' ... Using CATALINA_HOME:F:\Tomcat5 Using CATALINA_BASE:F:\Tomcat5 Using JAVA_HOME:C:\Prog

Re: Bypass web.xml declarative security (sort of)

2007-01-18 Thread John Caron
thank you, I will investigate securityfilter Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 John, John Caron wrote: Instead of declaring which URLs need to be secure in web.xml, I would like to determine this when the URL comes in, but then use Tomcat to deal with t

AW: AW: AW: AW: AW: AW: Tomcat 5.5 Cluster: Session Replication before sending the response

2007-01-18 Thread Andy.Scherzinger
Hi Rainer, Thanks for your help. To me it sounds like Filip's solution using a servlet filter or another valve and set all session attributes again in combination with the deltaManager is the best solution at the moment looking at the cost-value ratio. Regards, ---Andy -Ursprüngliche Nac

Re: AW: AW: AW: AW: AW: Tomcat 5.5 Cluster: Session Replication before sending the response

2007-01-18 Thread Rainer Jung
[EMAIL PROTECTED] wrote: Hi Peter, Thanks for your very detailed answer. I see, ReplicationValve triggers the session replication after completion of request/response. But which data of the session (parts or the complete session) depends on the manager. Looking at the JavaDoc neither DeltaM

RE: conecting tomcat 5.5.17 to IIS 6

2007-01-18 Thread Garner, Shawn
Also is it just me or is there no example properties files in the config directory of tomcat. None that I could find anyway. Shawn -Original Message- From: Garner, Shawn [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 17, 2007 11:22 AM To: Tomcat Users List Subject: RE: conecting tomc

AW: AW: AW: AW: AW: Tomcat 5.5 Cluster: Session Replication before sending the response

2007-01-18 Thread Andy.Scherzinger
Hi Peter, Thanks for your very detailed answer. I see, ReplicationValve triggers the session replication after completion of request/response. But which data of the session (parts or the complete session) depends on the manager. Looking at the JavaDoc neither DeltaManager nor StandardManager

RE: server.xml

2007-01-18 Thread Caldarale, Charles R
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Subject: server.xml > > 1. works fine when called from the server machine with the link > localhost:8080\test\test.html The above indicates Tomcat is listening on port 8080. However, it's unlikely the above actually worked with back slashes

RE: server.xml

2007-01-18 Thread Peter Crowther
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > I have a test file put in my webapps folder that > > 1. works fine when called from the server machine with the link > localhost:8080\test\test.html > 2. but http://www2.myhostmz.org/test/test.html shows page not > found I suspect a routing

Re: server.xml

2007-01-18 Thread David Delbecq
En l'instant précis du 01/18/07 15:22, [EMAIL PROTECTED] s'exprimait en ces termes: > Hi, > > Just recently I have installed tomcat and I still cannot make my > pages available. > > > I have a test file put in my webapps folder that > > 1. works fine when called from the server machine with the li

server.xml

2007-01-18 Thread [EMAIL PROTECTED]
Hi, Just recently I have installed tomcat and I still cannot make my pages available. I have a test file put in my webapps folder that 1. works fine when called from the server machine with the link localhost:8080\test\test.html 2. but http://www2.myhostmz.org/test/test.html shows page not f

Re: Tomcat 5.5 and x64 Windows

2007-01-18 Thread Mladen Turk
Darren Kukulka wrote: Mladen, The binary versions you mentioned are the same ones I have already tried. 2 questions; - how do you install the Tomcat service manually? I install Tomcat using the binary download, i.e. apache-tomcat-5.5.20.exe which does not give you the option of NOT installing

RE: How to parameter the logfilename with log4j?

2007-01-18 Thread Bachler, Elisabeth \(Elisabeth\)
I am really sorry about that. I didn't know it. It won't happen again. Should I start a new thread with the question i asked? -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: jueves, 18 de enero de 2007 1:30 To: Tomcat Users List Subject: Re: How to parameter the lo

RE: Tomcat 5.5 and x64 Windows

2007-01-18 Thread Darren Kukulka
Mladen, The binary versions you mentioned are the same ones I have already tried. 2 questions; - how do you install the Tomcat service manually? I install Tomcat using the binary download, i.e. apache-tomcat-5.5.20.exe which does not give you the option of NOT installing the Tomcat service. - I

Re: Tomcat 5.5 and x64 Windows

2007-01-18 Thread Mladen Turk
Darren Kukulka wrote: Hi Everyone, I'm currently testing Tomcat 5.5.20 with SUN JVM 1.5.0.10 on a Windows 2003 Server x64 platform. Everything has installed fine but when I attempt to start Tomcat I get a service error. On Win64 boxes the service must be installed manually. Next you

Tomcat 5.5 and x64 Windows

2007-01-18 Thread Darren Kukulka
Hi Everyone, I'm currently testing Tomcat 5.5.20 with SUN JVM 1.5.0.10 on a Windows 2003 Server x64 platform. Everything has installed fine but when I attempt to start Tomcat I get a service error. Trawling the Net I see that this is a common problem that is resolved either by using a s

Re: AW: AW: AW: AW: Tomcat 5.5 Cluster: Session Replication before sending the response

2007-01-18 Thread Peter Rossbach
Hi Andy, Please, look to ReplicationValve source code! === Snip ReplicationValve code 346ff getNext().invoke(request, response); Manager manager = request.getContext().getManager(); if (manager != null && manager instanceof ClusterManager) { C

Re: Apache mod_jk memory leak?

2007-01-18 Thread Rainer Jung
JNeuhoff wrote: I have completed some stresstests (with up to 500 concurrent users) on Apache 2.0.59, mod_jk 2.1.20, Tomcat 5.5.17, using the following workers.properties: ... and it seems to be coping just fine now under the stressload. I think I'll use this setup on our live server now. Tha

Re: Apache mod_jk memory leak?

2007-01-18 Thread JNeuhoff
I have completed some stresstests (with up to 500 concurrent users) on Apache 2.0.59, mod_jk 2.1.20, Tomcat 5.5.17, using the following workers.properties: <<< # Define 1 real worker using ajp13 worker.list=ajp13 # Set properties for worker1 (ajp13) worker.ajp13.type=ajp13 worker.ajp13.host=loca

Tomcat Timeout

2007-01-18 Thread Edward Quick
Hi, Could someone point me to some docs or give me some advice on Tomcat timeouts please? There seem to be so many places to set it! I have an Apache 2.0.59 - mod_jk 1.2.15 - jakarta-tomcat-4.1.31 server set up, and a webapp deployed on this which opens http connections to a 3rd party external

Re: mod_jk: mounting tomcat instances to subdirectories

2007-01-18 Thread Ortwin Glück
Just for the record, My chosen solution is this one: Listen 81 Listen 82 Listen 83 NameVirtualHost *:80 NameVirtualHost *:81 NameVirtualHost *:82 NameVirtualHost *:83 ProxyPass /1/app/ http://localhost:81/app/ ProxyPass /2/app/ http://localhost:82/app/ ProxyPass /3/app/ http://localhost

AW: AW: AW: AW: Tomcat 5.5 Cluster: Session Replication before sending the response

2007-01-18 Thread Andy.Scherzinger
Hi Peter, The ReplicationValve will intercept the request when the request is completed and before the response is returned to the user. Copied from the JavaDoc for the SimpleTcpReplicationManager: Title: Tomcat Session Replication for Tomcat 4.0 Description: A very simple straight forward impl

Re: configure tomcat to ask for client certificate for particular URL only

2007-01-18 Thread Ambuj Jain
Basically my requirment is to configure a tomcat server to be asked for client certificate for all URLs except one particular URL. It should only allow the URLs access (except one URL that can be accessible irrespective of client browser have certificate or not ) if client have certificates.

Re: connectionTimeout for AJP 1.3 in server.xml

2007-01-18 Thread Rainer Jung
Last time I checked explicitely was for 5.0.28. That (old) version had a default of 60 seconds in the code, but it was not functional. You had to explicitely set a value to enable the timeout. And yes, having a good fit between connectionTimeout and connection_pool_timeout should be best in mo

Re: Apache mod_jk memory leak?

2007-01-18 Thread Rainer Jung
JNeuhoff wrote: By default apache will use as max number of connections the same value, as the max number of threads, so that each thread can get it's own connection. By default it will shrink the connection pool down to half of the max size. There is a min value you can configure if this doesn

Re: mod_jk: mounting tomcat instances to subdirectories

2007-01-18 Thread Peter Rossbach
Hmm, use multiple vhost for your three installations or different webapp names (/myapp1, /myapp2, /myapp3). mod_rewrite rewrite the uri before mod_jk handle the request! Regards Peter Am 17.01.2007 um 17:09 schrieb Ortwin Glück: Hi, I have 3 Tomcat instances, each running a different vers