RE:JNDI property roleSearchAsUser not working as expected

2013-03-14 Thread Eugène Adell
Hello there is an LDAP listening but I did not give the credentials here for security reasons (I could start one LDAP server with public credentials for you if needed). The LDAP log for this Tomcat startup failure is : 51416e66 conn=1004 fd=14 ACCEPT from IP=46.218.139.243:48297

Re: AW: AW: AW: AJP suddenly Stopps acting: ajp on 7009 and 9009 : connections keept open

2013-03-14 Thread André Warnier
Hi. Note: try to avoid top-posting, on this list. (top-posting means responding on top of the previous message, like I am doing just now). The reason why we ask not to do that, is that it forces whoever is reading your message, to scroll down and try to figure out to what question(s) you are

Caching of resources in META-INF/resources folder

2013-03-14 Thread Martin Grigorov
Hi, I'm experiencing troubles with updating CSS/JS resources in META-INF/resources during development. My application is a multi module Maven project. Some of the 'jar' modules (i.e. the ones that are packed in WEB-INF/lib/**) have META-INF/resources with some CSS/JS files inside. Deploying the

Re: Caching of resources in META-INF/resources folder

2013-03-14 Thread Martin Grigorov
On Thu, Mar 14, 2013 at 10:43 AM, Martin Grigorov mgrigo...@apache.orgwrote: Hi, I'm experiencing troubles with updating CSS/JS resources in META-INF/resources during development. My application is a multi module Maven project. Some of the 'jar' modules (i.e. the ones that are packed in

Re: JNDI property roleSearchAsUser not working as expected

2013-03-14 Thread Felix Schumacher
Am 13.03.2013 21:46, schrieb Eugène Adell: Hello I am running the following : java version 1.6.0_25 Java(TM) SE Runtime Environment (build 1.6.0_25-b06) Java HotSpot(TM) Client VM (build 20.0-b11, mixed mode, sharing) Tomcat 7.0.37 CentOS release 6.3 with this REALM configuration in

Re: Can Tomcat 8 snapshots be published to Maven?

2013-03-14 Thread Mark Thomas
https://repository.apache.org/content/repositories/snapshots/org/apache/tomcat/ Mark Sweet! Thanks! So will I need to add https://repository.apache.org/ as a custom repository in my POM, or will Maven Central eventually pick up the change? I thought central did pick these up but a re-read of

Re: tomcat 6.0.35 in production maintaince

2013-03-14 Thread fachhoch
I added all my jsp with %@ page session=false % still session count is increasing , is there any session listner which will debug all session creation ,time ,ipaddress etc and session destroy atleast I can see where the session are coming from. -- View this message in context:

Re: Running a binary program from a JSP

2013-03-14 Thread Daniel Mikusa
On Mar 14, 2013, at 12:34 AM, Tim Gross wrote: Hi, I want to know if it is possible to execute a binary program (written in C) from within a JSP. Yes. I would like to do this on the server side, not the browser, in Tomcat6. If it is possible, can somebody provide an example. Use...

Re: AW: AW: AW: AJP suddenly Stopps acting: ajp on 7009 and 9009 : connections keept open

2013-03-14 Thread André Warnier
David Kumar wrote: Hey, I'm using: lsof -u tomcat example of netstat output on one of our own systems right now : 1) first one vovm1:~# netstat -t -pan | grep -v ESTAB Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address

Re: Can Tomcat 8 snapshots be published to Maven?

2013-03-14 Thread Martin Grigorov
On Thu, Mar 14, 2013 at 12:49 PM, Mark Thomas ma...@apache.org wrote: https://repository.apache.org/content/repositories/snapshots/org/apache/tomcat/ Mark Sweet! Thanks! So will I need to add https://repository.apache.org/ as a custom repository in my POM, or will Maven Central

RE:JNDI property roleSearchAsUser not working as expected

2013-03-14 Thread Eugène Adell
This doc is self-contradictory because it suggests to setup a technical user when we don't want to configure a technical user, and it doesn't give any solution when we are not the admin of the directory. Here we learn that Tomcat JNDI Realm only works in Administrator Login Mode with an

Re: Can Tomcat 8 snapshots be published to Maven?

2013-03-14 Thread Nick Williams
On Mar 14, 2013, at 7:25 AM, Martin Grigorov wrote: On Thu, Mar 14, 2013 at 12:49 PM, Mark Thomas ma...@apache.org wrote: https://repository.apache.org/content/repositories/snapshots/org/apache/tomcat/ Mark Sweet! Thanks! So will I need to add https://repository.apache.org/ as a

AW: AW: AW: AW: AJP suddenly Stopps acting: ajp on 7009 and 9009 : connections keept open

2013-03-14 Thread David Kumar
Hey André, André Warnier wrote: The jsvc process here is the wrapper which wraps the JVM and Tomcat to allow them to use orts below 1024 and still run as non-root. For practical purposes, consider it as tomcat. As you can see, there are some AJP connections (local port 8009) in the

RE:JNDI property roleSearchAsUser not working as expected

2013-03-14 Thread Felix Schumacher
Am 14.03.2013 13:40, schrieb Eugène Adell: This doc is self-contradictory because it suggests to setup a technical user when we don't want to configure a technical user, and it doesn't give any solution when we are not the admin of the directory. I can't read that out of the docs for

RE:RE:JNDI property roleSearchAsUser not working as expected

2013-03-14 Thread Eugène Adell
Thanks Felix, I will choose the easy way by allowing the anonymous to bind the directory, against all security logics, and strengthen the ACL to forbid anonymous search. Anyway, the bug 19444 is closed saying the new parameter (introduced in 7.0.9 and corrected in 7.0.30) allows role

Re: tomcat 6.0.35 in production maintaince

2013-03-14 Thread fachhoch
every few seconds a new session is begin created from an ipaddress , I have no clue who owns that ipaddress , how can I find more about that ipaddress? -- View this message in context: http://tomcat.10.n6.nabble.com/tomcat-6-0-35-in-production-maintaince-tp4995740p4995895.html Sent from

Re: tomcat 6.0.35 in production maintaince

2013-03-14 Thread Daniel Mikusa
On Mar 14, 2013, at 10:13 AM, fachhoch wrote: every few seconds a new session is begin created from an ipaddress , I have no clue who owns that ipaddress , how can I find more about that ipaddress? Block it and see who complains that they can no longer access your server? Dan

RE:tomcat 6.0.35 in production maintaince

2013-03-14 Thread Eugène Adell
Maybe a monitoring tool (NAGIOS/PATROL/..) which is checking if the site is available ? De : fachhoch [fachh...@gmail.com] Envoyé : jeudi 14 mars 2013 15:13 À : users@tomcat.apache.org Objet : Re: tomcat 6.0.35 in production maintaince every few seconds

Re: tomcat 6.0.35 in production maintaince

2013-03-14 Thread fachhoch
how can I block it , can I do it from my app or server setting or os setting , please advice me . -- View this message in context: http://tomcat.10.n6.nabble.com/tomcat-6-0-35-in-production-maintaince-tp4995740p4995898.html Sent from the Tomcat - User mailing list archive at Nabble.com.

RE:RE:JNDI property roleSearchAsUser not working as expected

2013-03-14 Thread Felix Schumacher
Eugène Adell eugene.ad...@d2-si.eu schrieb: Thanks Felix, I will choose the easy way by allowing the anonymous to bind the directory, against all security logics, and strengthen the ACL to forbid anonymous search. Anyway, the bug 19444 is closed saying the new parameter (introduced in 7.0.9

Re: tomcat 6.0.35 in production maintaince

2013-03-14 Thread Daniel Mikusa
On Mar 14, 2013, at 10:27 AM, fachhoch wrote: how can I block it , can I do it from my app or server setting or os setting , please advice me . If your OS has a firewall, you could use that. Otherwise, you can configure a Remote Address Filter in Tomcat. Configuration of the filter is

RE:tomcat 6.0.35 in production maintaince

2013-03-14 Thread Eugène Adell
Sure, you can block any IP by configuring a VALVE in the main config file (server.xml) : http://tomcat.apache.org/tomcat-6.0-doc/config/valve.html#Remote_Address_Filter Or if you are running Linux, you can configure the IPTABLES. This one is more expensive to do.

Re: tomcat 6.0.35 in production maintaince

2013-03-14 Thread David kerber
On 3/14/2013 10:27 AM, fachhoch wrote: how can I block it , can I do it from my app or server setting or os setting , please advice me . Firewall or OS-level. -- View this message in context: http://tomcat.10.n6.nabble.com/tomcat-6-0-35-in-production-maintaince-tp4995740p4995898.html

Re: tomcat 6.0.35 in production maintaince

2013-03-14 Thread Hassan Schroeder
On Thu, Mar 14, 2013 at 7:39 AM, Daniel Mikusa dmik...@vmware.com wrote: how can I block it If your OS has a firewall, you could use that. If you're on a *nix system, see the man page for 'iptables' and/or 'tcp_wrappers'. -- Hassan Schroeder

RE:RE:RE:JNDI property roleSearchAsUser not working as expected

2013-03-14 Thread Eugène Adell
I still wonder, why you are so reluctant to use a technical user. Especially since you have security concerns about the anonymous user. To find someone's roles, LDAP only requires a bind + a search in groups. It is a simple ldapsearch command for the ones using command lines. But when

Re: RE:tomcat 6.0.35 in production maintaince

2013-03-14 Thread fachhoch
mine app is running behind amazon load balancer may be its ipaddress from that aws , I dont know , but all I care is not to create session , to aws load balancer I gave the url to ping my app which is a servlet and this forwards to jsp in that jsp I have %@ page session=false % this

Re: AW:AJP suddenly Stopps acting: ajp on 7009 and 9009 : connections keept open

2013-03-14 Thread André Warnier
David Kumar wrote: Hey, thanks for note.. Attached you can find a new list. So, java is keeping these connections in close_wait. Yes. Whether this is the java that runs tomcat is not immediately evident. But it also seems that they concern port numbers like 7009, 9009 etc. which must be

Re: tomcat 6.0.35 in production maintaince

2013-03-14 Thread Daniel Mikusa
On Mar 14, 2013, at 10:56 AM, fachhoch wrote: mine app is running behind amazon load balancer may be its ipaddress from that aws , I dont know , but all I care is not to create session , to aws load balancer I gave the url to ping my app which is a servlet and this forwards to jsp in

Re: AW: AW: AW: AW: AJP suddenly Stopps acting: ajp on 7009 and 9009 : connections keept open

2013-03-14 Thread Mark Thomas
On 14/03/2013 13:10, David Kumar wrote: I tried to just restart the Apache, didn't work. As suggested I tried to use the option -DisableReuse. That did make our situation a lot more horrible instead of days / week we it took just minutes to shut all AJP ports down. Interesting. If the

Procrun and Tomcat service/OS shutdown on Windows

2013-03-14 Thread Thomas, Steve
Hi - Running Tomcat 7.0.23 or 7.0.37 (32 or 64-bit) installed as a service (either via service.bat or the exe installer) on a Windows 7 64-bit OS, we are seeing an issue where the Windows shutdown kills Tomcat before our webapp shutdown sequence has time to execute fully. (Specifically, we

configuring tomcat7 with apache 2.2.22

2013-03-14 Thread solar
Although not a newbie to building websites in html and php, and physical computing in C/C++, I'm having a dickens of a time understanding the documentation of Integrating Tomcat 7 with my existing Apache 2.2.22 on WinXP (company supplied development pc, nothing I can do about that). Can I get

RE: Procrun and Tomcat service/OS shutdown on Windows

2013-03-14 Thread Harris, Jeffrey E.
Edit the registry so Tomcat depends on the HSQLDB shutdown. This only works if HSQLDB is also started as a service. Jeffrey Harris -Original Message- From: Thomas, Steve [mailto:stho...@vocollect.com] Sent: Thursday, March 14, 2013 12:00 PM To: users@tomcat.apache.org Subject:

RE: Procrun and Tomcat service/OS shutdown on Windows

2013-03-14 Thread Caldarale, Charles R
From: Thomas, Steve [mailto:stho...@vocollect.com] Subject: Procrun and Tomcat service/OS shutdown on Windows Can we guarantee that Windows won't just kill our Tomcat process and potentially corrupt our database? If the integrity of your database depends on an orderly shutdown sequence,

RE: configuring tomcat7 with apache 2.2.22

2013-03-14 Thread Harris, Jeffrey E.
-Original Message- From: so...@essnmag.com [mailto:so...@essnmag.com] Sent: Thursday, March 14, 2013 12:51 PM To: users@tomcat.apache.org Subject: configuring tomcat7 with apache 2.2.22 Although not a newbie to building websites in html and php, and physical computing in C/C++, I'm

RE: Procrun and Tomcat service/OS shutdown on Windows

2013-03-14 Thread Thomas, Steve
Unfortunately, that appears to be the case with HSQLDB. We maintain a set of nightly backups to address cases like those you've cited; however, if we can avoid issues arising from just shutting down the OS, that would help. Regards, Steve -Original Message- From: Caldarale, Charles R

RE: Procrun and Tomcat service/OS shutdown on Windows

2013-03-14 Thread Thomas, Steve
Thanks, Jeffrey. That may be a possibility for the long-term. --Steve -Original Message- From: Harris, Jeffrey E. [mailto:jeffrey.har...@mantech.com] Sent: Thursday, March 14, 2013 12:52 PM To: Tomcat Users List Subject: RE: Procrun and Tomcat service/OS shutdown on Windows Edit the

NullPointerException in MapperListener; Tomcat#start() does not create a Container?

2013-03-14 Thread Nick Williams
Using a variety of tutorials I found online and the documentation for o.a.c.startup.Tomcat, I created the following main method to start up an embedded Tomcat. I'm using 7.0.37 Tomcat JARs. public static void main(String... arguments) throws Exception { Tomcat tomcat = new

Re: Procrun and Tomcat service/OS shutdown on Windows

2013-03-14 Thread Konstantin Kolinko
2013/3/14 Thomas, Steve stho...@vocollect.com: Hi - Running Tomcat 7.0.23 or 7.0.37 (32 or 64-bit) installed as a service (either via service.bat or the exe installer) on a Windows 7 64-bit OS, we are seeing an issue where the Windows shutdown kills Tomcat before our webapp shutdown

RE: Procrun and Tomcat service/OS shutdown on Windows

2013-03-14 Thread Harris, Jeffrey E.
-Original Message- From: Konstantin Kolinko [mailto:knst.koli...@gmail.com] Sent: Thursday, March 14, 2013 4:01 PM To: Tomcat Users List Subject: Re: Procrun and Tomcat service/OS shutdown on Windows 2013/3/14 Thomas, Steve stho...@vocollect.com: Hi - Running Tomcat 7.0.23

Re: configuring tomcat7 with apache 2.2.22

2013-03-14 Thread André Warnier
so...@essnmag.com wrote: Although not a newbie to building websites in html and php, and physical computing in C/C++, I'm having a dickens of a time understanding the documentation of Integrating Tomcat 7 with my existing Apache 2.2.22 on WinXP (company supplied development pc, nothing I can do

tomcat dead, service won't start

2013-03-14 Thread solar
I had tomcat working earlier today, now it won't start. Not sure what I did, as I was in the process of trying to integrate it with apache. attaching log, but that probably won't go through. Mar 14, 2013 4:21:57 PM org.apache.catalina.startup.Catalina load WARNING: Catalina.start using

Re: NullPointerException in MapperListener; Tomcat#start() does not create a Container?

2013-03-14 Thread Nick Williams
On Mar 14, 2013, at 2:56 PM, Nick Williams wrote: Using a variety of tutorials I found online and the documentation for o.a.c.startup.Tomcat, I created the following main method to start up an embedded Tomcat. I'm using 7.0.37 Tomcat JARs. public static void main(String... arguments)

Re: tomcat dead, service won't start

2013-03-14 Thread Mark Thomas
On 14/03/2013 20:40, so...@essnmag.com wrote: I had tomcat working earlier today, now it won't start. Not sure what I did, as I was in the process of trying to integrate it with apache. attaching log, but that probably won't go through. Mar 14, 2013 4:21:57 PM

Re: configuring tomcat7 with apache 2.2.22

2013-03-14 Thread solar
That would have been good to hear earlier, as I have now killed tomcat somehow. I'll see if I can get tomcat back up, and try your advice. Steve Spence, KK4HFJ http://arduinotronics.blogspot.com http://www.essnmag.com ---Original Message--- From: André Warnier a...@ice-sa.com

Re: tomcat dead, service won't start

2013-03-14 Thread solar
/me Reaches for crystal ball to try and determine key information like Tomcat version number. Mark Tomcat 7.0.37 Tomcat Connectors 1.2.37 Apache 2.2.22 - To unsubscribe, e-mail:

Re: tomcat dead, service won't start

2013-03-14 Thread Mark Thomas
On 14/03/2013 20:45, so...@essnmag.com wrote: /me Reaches for crystal ball to try and determine key information like Tomcat version number. Mark Tomcat 7.0.37 Tomcat Connectors 1.2.37 Apache 2.2.22 Use the real documentation [1] rather than a clearly very old, very out of

RE: configuring tomcat7 with apache 2.2.22

2013-03-14 Thread Harris, Jeffrey E.
-Original Message- From: so...@essnmag.com [mailto:so...@essnmag.com] Sent: Thursday, March 14, 2013 4:43 PM To: Tomcat Users List Subject: Re: configuring tomcat7 with apache 2.2.22 That would have been good to hear earlier, as I have now killed tomcat somehow. I'll see if I can

Re: tomcat dead, service won't start

2013-03-14 Thread André Warnier
Mark Thomas wrote: On 14/03/2013 20:40, so...@essnmag.com wrote: I had tomcat working earlier today, now it won't start. Not sure what I did, as I was in the process of trying to integrate it with apache. attaching log, but that probably won't go through. Mar 14, 2013 4:21:57 PM

Re: tomcat dead, service won't start

2013-03-14 Thread solar
---Original Message--- From: Mark Thomas ma...@apache.org To: Tomcat Users List users@tomcat.apache.org Subject: Re: tomcat dead, service won't start Sent: Mar 14 '13 16:48 On 14/03/2013 20:45, so...@essnmag.com wrote:      /me Reaches for crystal ball to try and

Re: tomcat dead, service won't start

2013-03-14 Thread Mark Thomas
On 14/03/2013 20:59, so...@essnmag.com wrote: ---Original Message--- From: Mark Thomas ma...@apache.org To: Tomcat Users List users@tomcat.apache.org Subject: Re: tomcat dead, service won't start Sent: Mar 14 '13 16:48 On 14/03/2013 20:45, so...@essnmag.com wrote:

RE: tomcat dead, service won't start

2013-03-14 Thread Harris, Jeffrey E.
-Original Message- From: so...@essnmag.com [mailto:so...@essnmag.com] Sent: Thursday, March 14, 2013 4:59 PM To: Tomcat Users List Subject: Re: tomcat dead, service won't start ---Original Message--- From: Mark Thomas ma...@apache.org To: Tomcat Users List

Re: tomcat dead, service won't start

2013-03-14 Thread solar
     Use the real documentation [1] rather than a clearly very old, very out   of date guide you dug up vis Google that has you trying to use a class   that was removed several years ago and deprecated even longer ago.      Mark         [1]

Re: tomcat dead, service won't start

2013-03-14 Thread Mark Thomas
On 14/03/2013 21:09, so...@essnmag.com wrote: Use the real documentation [1] rather than a clearly very old, very out of date guide you dug up vis Google that has you trying to use a class that was removed several years ago and deprecated even longer ago. Mark

Re: tomcat 6.0.35 in production maintaince

2013-03-14 Thread fachhoch
I added the access log and now I know what url is being called , this is the urlI configured my loadbalancer to check application is running fine. The url is of a servlet , this servlet sure does not create session and it forwards to a jsp using the jsp is I am not creating

RE: tomcat dead, service won't start

2013-03-14 Thread Harris, Jeffrey E.
http://tomcat.apache.org/connectors-doc/webserver_howto/apache.html In the section that says it is specific to Tomcat 5.5.x only? That doc could do with a refresh but the odds of something that is specific to 5.5.x working on Tomcat 7 are slim to say the least. auto-configure doesn't

Re: NullPointerException in MapperListener; Tomcat#start() does not create a Container?

2013-03-14 Thread Konstantin Kolinko
2013/3/15 Nick Williams nicho...@nicholaswilliams.net: On Mar 14, 2013, at 2:56 PM, Nick Williams wrote: Using a variety of tutorials I found online and the documentation for o.a.c.startup.Tomcat, I created the following main method to start up an embedded Tomcat. I'm using 7.0.37 Tomcat

Re: tomcat dead, service won't start

2013-03-14 Thread Mark Thomas
On 14/03/2013 21:17, Harris, Jeffrey E. wrote: http://tomcat.apache.org/connectors-doc/webserver_howto/apache.html In the section that says it is specific to Tomcat 5.5.x only? That doc could do with a refresh but the odds of something that is specific to 5.5.x working on Tomcat 7 are

check load

2013-03-14 Thread fachhoch
is there any way I can check load on the server , my loadbabalncer calls a web resource to check if server is able to handle request , if time for repononse exceeds specified linit it launches a new server instance to handle request.Please advice me what is the best way to detect load on a

Re: tomcat 6.0.35 in production maintaince

2013-03-14 Thread fachhoch
I think one of my filters are involved in creating session , I tried in dev box calling the url called by load balancer ,and saw that a session is getting created every time its a new browser, so then I called a html file still session is being created, I use some of the filters which I

Re: check load

2013-03-14 Thread André Warnier
fachhoch wrote: is there any way I can check load on the server , my loadbabalncer calls a web resource to check if server is able to handle request , if time for repononse exceeds specified linit it launches a new server instance to handle request.Please advice me what is the best way to

RE: Running a binary program from a JSP

2013-03-14 Thread Martin Gainty
Hi Dan Earlier I gave him an example of a DWR backend bean which handles the mechanics of Runtime.getRuntime().exec(cmd.,exe /C 'fubar'); I *was* going to suggest using An Applet but I didnt want to spend the rest of the month twiddling the exact permutation of execute and read permissions

WebSockets problem Re: NullPointerException in MapperListener; Tomcat#start() does not create a Container?

2013-03-14 Thread Nick Williams
On Mar 14, 2013, at 4:25 PM, Konstantin Kolinko wrote: 2013/3/15 Nick Williams nicho...@nicholaswilliams.net: On Mar 14, 2013, at 2:56 PM, Nick Williams wrote: Using a variety of tutorials I found online and the documentation for o.a.c.startup.Tomcat, I created the following main method

Re: Procrun and Tomcat service/OS shutdown on Windows

2013-03-14 Thread Howard W. Smith, Jr.
On Thu, Mar 14, 2013 at 12:00 PM, Thomas, Steve stho...@vocollect.comwrote: Running Tomcat 7.0.23 or 7.0.37 (32 or 64-bit) installed as a service (either via service.bat or the exe installer) on a Windows 7 64-bit OS, we are seeing an issue where the Windows shutdown kills Tomcat before our