RE: Tomcat as Windows service

2011-03-07 Thread Zbynek Vavros
Hi, Ok I switched to 7.0.8. Install Installed using package from http://mirror.fubra.com/ftp.apache.org/tomcat/tomcat-7/v7.0.8/bin/apache-tomcat-7.0.8.exe. Start service Started either directly in services (changed from auto to manual) or using that small GUI application(//MS//). Yes I had

Re: Running Tomcat as service - is it possible to make tomcat7.exe run a batch file each time it starts?

2011-03-07 Thread Evgeny Goldin
Mladen Turk-3 wrote: I can try --Install service option and make service run myBatch.bat which in turn will invoke tomcat7.exe. That won't work. Target executable should be %COMSPEC% with .bat file as a parameter (%COMSPEC% /C call nyBatch.bat) However running that requires a special

Re: Tomcat NTLM Authentication

2011-03-07 Thread Borut Hadžialić
Hi Hila, I have a similar requirement in my current project. End users (using browsers and java desktop apps) which work on windows workstations which are in a domain, must be able to log in the application without needing to type in username and password (using their windows credentials).

Re: Tomcat NTLM Authentication

2011-03-07 Thread Borut Hadžialić
One of the links I sent you was broken, the right link is: Oracle Jdbc connection with kerberos http://download.oracle.com/docs/cd/B28359_01/java.111/b31224/clntsec.htm#CIHCIDHF Or just google for 'oracle jdbc kerberos' if they move the content again. On Mon, Mar 7, 2011 at 10:55 AM, Borut

Forcing SSL use

2011-03-07 Thread Olivier Lefevre
I put this in my webapp's web.xml, then intent being to allow GET and POST over https and nothing else: security-constraint web-resource-collection web-resource-nameforbidden/web-resource-name url-pattern/*/url-pattern http-methodHEAD/http-method

Re: Running Tomcat as service - is it possible to make tomcat7.exe run a batch file each time it starts?

2011-03-07 Thread chris derham
I run Groovy to make some machine-specific replacements in some files according to properties file which can be configured prior to starting Tomcat. We have Artifactory and Jenkins deployed to Tomcat. This property file contains various configurations to them and Groovy script, started from

Re: Cleaning up after tomcat jdbc-pool?

2011-03-07 Thread Olivier Lefevre
On 3/7/2011 8:00 AM, הילה wrote: How do I know if I use the new pool? just by specifying the org.apache.tomcat.jdbc.pool.DataSourceFactory AFAICT yes. what is the advantages of using the new pool? in which cases should I use it? See http://people.apache.org/~fhanik/jdbc-pool/jdbc-pool.html

Re: Cleaning up after tomcat jdbc-pool?

2011-03-07 Thread הילה
So it's only for use on Tomcat 7? I have installed tomcat 6.0.29 2011/3/7 Olivier Lefevre lefev...@yahoo.com On 3/7/2011 8:00 AM, הילה wrote: How do I know if I use the new pool? just by specifying the org.apache.tomcat.jdbc.pool.DataSourceFactory AFAICT yes. what is the advantages

Re: Cleaning up after tomcat jdbc-pool?

2011-03-07 Thread הילה
I found this http://people.apache.org/~fhanik/tomcat/jdbc-pool.html that I see that it suits for tomcat 6 as well but I can't find tomcat-jdbc.jar for download, and I understood I need it to use the new pool. from where can I download it? Thanks Hila בתאריך 7 במרס 2011 12:28, מאת הילה

Re: Cleaning up after tomcat jdbc-pool?

2011-03-07 Thread Mark Thomas
On 07/03/2011 10:39, הילה wrote: I found this http://people.apache.org/~fhanik/tomcat/jdbc-pool.html that I see that it suits for tomcat 6 as well but I can't find tomcat-jdbc.jar for download, and I understood I need it to use the new pool. from where can I download it? There is no

Re: Tomcat NTLM Authentication

2011-03-07 Thread André Warnier
Borut, thanks. I think that this is very helpful. It does not do what the OP wanted to do, but it does what he /should/ be doing (in my view). הילה, if the users connect to Tomcat, and the connections to the database are all done under the Tomcat user-id, then basically you are putting all

Re: Tomcat NTLM Authentication

2011-03-07 Thread Borut Hadžialić
Yes Andre you are right, I misunderstood the OP - Hila wants to access the database as a single domain user. How to implement this is probably database specific. For example Oracle jdbc driver requires you to either: A) be running the process which makes the database connections as the domain

Re: Tomcat NTLM Authentication

2011-03-07 Thread הילה
I'm using Microsoft SQL Server 2008, latest SP. the use of domain user is used with the jtds package, which allows the tomcat service to authenticate to the DB with the presence of native SSPI DLL called ntlmauth.dll However, it generated a memory leak in the server. So I'm looking for

AnnotationProcessor to InstanceManager Refactor

2011-03-07 Thread Martin Gainty
Good Afternoon All Could the author detail the reason for refactoring AnnotationProcessor to InstanceManager for TC7? Any explanation for effecting the need for this refactor would be greatly appreciated. thanks! Martin Gainty __ Verzicht und

Re: Forcing SSL use

2011-03-07 Thread Konstantin Kolinko
2011/3/7 Olivier Lefevre lefev...@yahoo.com: I put this in my webapp's web.xml, then intent being to allow GET and POST over https and nothing else:    security-constraint      web-resource-collection        web-resource-nameforbidden/web-resource-name        url-pattern/*/url-pattern      

Re: Mod_JK inserted header case sensitivity issue

2011-03-07 Thread Rainer Jung
Hi John, could you please try the patch I applied in r1078762: http://svn.apache.org/viewvc?view=revisionrevision=1078762 Regards, Rainer On 29.01.2011 16:39, Mladen Turk wrote: On 01/29/2011 12:45 PM, Jon Forster wrote: Mladen Finding any Sun documentation can be a painful experience

Re: Tomcat NTLM Authentication

2011-03-07 Thread André Warnier
הילה wrote: I'm using Microsoft SQL Server 2008, latest SP. the use of domain user is used with the jtds package, which allows the tomcat service to authenticate to the DB with the presence of native SSPI DLL called ntlmauth.dll However, it generated a memory leak in the server. So I'm looking

Re: Tomcat NTLM Authentication

2011-03-07 Thread הילה
Hey, I cannot look for it in Microsoft, since the Java is of SUN, and the implementation is on the Java side, not the SQL Microsoft side. Option no' 1 :] User and password should not exist in clear text in the xml file. 2011/3/7 André Warnier a...@ice-sa.com הילה wrote: I'm using Microsoft

Re: Tomcat NTLM Authentication

2011-03-07 Thread David kerber
On 3/7/2011 8:10 AM, הילה wrote: Hey, I cannot look for it in Microsoft, since the Java is of SUN, and the implementation is on the Java side, not the SQL Microsoft side. Microsoft may have a jdbc driver you could use, though. D Option no' 1 :] User and password should not exist in clear

Re: Tomcat NTLM Authentication

2011-03-07 Thread הילה
I read that JTDS (jtds-1.2.5.jar) is more stable and less buggy than JDBC of Microsoft. So I don't want to add more logs to the fire.. :] 2011/3/7 David kerber dcker...@verizon.net On 3/7/2011 8:10 AM, הילה wrote: Hey, I cannot look for it in Microsoft, since the Java is of SUN, and the

Re: Tomcat NTLM Authentication

2011-03-07 Thread André Warnier
הילה wrote: I read that JTDS (jtds-1.2.5.jar) is more stable and less buggy than JDBC of Microsoft. So I don't want to add more logs to the fire.. :] That's a funny thing to say, considering that it has a memory leak, and that nobody is answering your calls for help on the jTDS list. What

Re: Tomcat NTLM Authentication

2011-03-07 Thread David kerber
On 3/7/2011 8:27 AM, הילה wrote: I read that JTDS (jtds-1.2.5.jar) is more stable and less buggy than JDBC of Microsoft. So I don't want to add more logs to the fire.. :] As Andre says, the one you're using now seems to be rather buggy. We have been using the Microsoft driver for a few

Re: Tomcat NTLM Authentication

2011-03-07 Thread הילה
Yeah, ha :] Since I'm desperate, I'll try it out. Do I need to change the connectionURL or DriverClassName in the XML configuration file of tomcat, in order for this to work? 2011/3/7 André Warnier a...@ice-sa.com הילה wrote: I read that JTDS (jtds-1.2.5.jar) is more stable and less buggy

Re: Tomcat NTLM Authentication

2011-03-07 Thread הילה
*As Andre says, the one you're using now seems to be rather buggy. We have been using the Microsoft driver for a few months now with no trouble, though we're not using NTLM authentication with it, and the SQL we're using isn't very demanding* But does the Microsoft Driver has the ability to

Re: Running Tomcat as service - is it possible to make tomcat7.exe run a batch file each time it starts?

2011-03-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Evgeny, On 3/6/2011 5:41 PM, Evgeny Goldin wrote: I run Groovy to make some machine-specific replacements in some files according to properties file which can be configured prior to starting Tomcat. Is there any reason why this couldn't be done

Re: Confused by url-pattern in Contatner Managed Auth

2011-03-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 3/5/2011 6:26 PM, Caldarale, Charles R wrote: From: shmol...@gmail.com [mailto:shmol...@gmail.com] On Behalf Of Jonathan Rosenberg Subject: Confused by url-pattern in Contatner Managed Auth I thought this would require auth for the

Re: Confused by url-pattern in Contatner Managed Auth

2011-03-07 Thread Jonathan Rosenberg
My bet is that the webapp is deployed under /Adoption and therefore the url-pattern should not have /Adoption prepended to it. This was indeed the problem. Took me awhile to figure that out. Next time I'll provide more info up front. Thanks. -- Jonathan Rosenberg Founder Executive Director

Re: Tomcat NTLM Authentication

2011-03-07 Thread André Warnier
הילה wrote: ... But does the Microsoft Driver has the ability to support windows authentication? If so, how is it implemented? Don't know. You should ask Microsoft. Or try to find out yourself, beginning e.g. at the page I mentioned. I would tend to think that, this being a Microsoft

Re: Tomcat NTLM Authentication

2011-03-07 Thread הילה
Thanks :] I'll dig into it. Any other ideas will be more than welcomed :] 2011/3/7 André Warnier a...@ice-sa.com But does the Microsoft Driver has the ability to support windows authentication? If so, how is it implemented? Don't know. You should ask Microsoft. Or try to find out

Re: Cleaning up after tomcat jdbc-pool?

2011-03-07 Thread Filip Hanik - Dev Lists
On 3/7/2011 3:48 AM, Mark Thomas wrote: On 07/03/2011 10:39, הילה wrote: I found this http://people.apache.org/~fhanik/tomcat/jdbc-pool.html that I see that it suits for tomcat 6 as well but I can't find tomcat-jdbc.jar for download, and I understood I need it to use the new pool. from where

Re: Cleaning up after tomcat jdbc-pool?

2011-03-07 Thread הילה
Thanks :] Let's see if it'll somewhat help with the memory leak, or with memory management at all 2011/3/7 Filip Hanik - Dev Lists devli...@hanik.com On 3/7/2011 3:48 AM, Mark Thomas wrote: On 07/03/2011 10:39, הילה wrote: I found this

Re: Why Tomcat is trying to delete my ROOT.xml ?

2011-03-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Joe, On 3/5/2011 6:53 AM, jo...@centrum.cz wrote: I have strange problem with autodeploying application residing in the war file. I have the ROOT.xml file in the CATALINA_HOME/conf/Catalina/my.domain.com/ directory, in order to define my

Re: Why Tomcat is trying to delete my ROOT.xml ?

2011-03-07 Thread joe.k
Hi Chris, - Apache Tomcat Version 6.0.32 - Java 1.6 - Linux version 2.6.32-bpo.5-amd64 (Debian 2.6.32-30~bpo50+1) Thanks. JoeK Joe, On 3/5/2011 6:53 AM, jo...@centrum.cz wrote: I have strange problem with autodeploying application residing in the war file. I have the ROOT.xml file in

Re: Running Tomcat as service - is it possible to make tomcat7.exe run a batch file each time it starts?

2011-03-07 Thread Evgeny Goldin
Hi Chris, billybob79 wrote: To sum up, each time your service starts, you dynamically configure tomcat for your environment. What do you gain by dynamically configuring tomcat at each startup? Couldn't you just script the dynamic configuration to occur once manually. Then you could

Re: Running Tomcat as service - is it possible to make tomcat7.exe run a batch file each time it starts?

2011-03-07 Thread Evgeny Goldin
Christopher Schultz-2 wrote: I run Groovy to make some machine-specific replacements in some files according to properties file which can be configured prior to starting Tomcat. Is there any reason why this couldn't be done at /deployment/ time instead of startup time? This seems more

Re: Running Tomcat as service - is it possible to make tomcat7.exe run a batch file each time it starts?

2011-03-07 Thread André Warnier
Evgeny Goldin wrote: .. What could probably be taken here for the Tomcat team is onStartup.bat that always runs on Tomcat's startup, regardless of how it was done - via catalina.bat or tomcat7.exe. Same could be done for onShutdown.bat. +1 Sounds like a good idea. Would also allow to do

RE: Forcing SSL use

2011-03-07 Thread Jeffrey Janner
Olivier - No one so far has mentioned it, but yes, you are seeing behavior as designed. The CONFIDENTIAL setting causes Tomcat to send a redirect to SSL if the request comes in on standard HTTP. If your true intent is not to allow *ANY* traffic over HTTP, then you need to remove your HTTP

Re: Running Tomcat as service - is it possible to make tomcat7.exe run a batch file each time it starts?

2011-03-07 Thread Evgeny Goldin
Hi Konstantin, Konstantin Kolinko wrote: Note, that it is possible 1) to use some other class instead of Bootstrap, and delegate start/stop commands to Bootstrap.main() afterwards 2) implement a Listener and configure it in server.xml to programmatically configure Tomcat before it

Re: Logging level

2011-03-07 Thread Konstantin Kolinko
2011/3/6 Mark Thomas ma...@apache.org: On 06/03/2011 19:54, Olivier Lefevre wrote: It's quite unclear, when using ServletContext.log(...), how one can specify the logging level. You can't. Maybe it's impossible? It is. That logging API is close to useless. Use you favourite logging

Re: Cleaning up after tomcat jdbc-pool?

2011-03-07 Thread Nicholas Sushkin
I don't think the default pool has any glaring leaks. However, your db may. I have ran into cases when Oracle would run out of PGA memory, which cleared with tomcat restart. It may help to use connection validation feature of tomcat's new pool to close connections that ran out of memory. Don't

Tomcat 5.5.30 and Spring Framework

2011-03-07 Thread Aureliusz R.
I know this is not a typical tomcat question but please bear with me. All Spring integrations call for placing configuration xmls in /WEB-INF/ of an application. The tomcat that I'm forced to work with has a weird configuration where there are no applications under $TOMCAT_HOME/webapps folder.