INFO: Marking servlet jsp as unavailable

2012-10-10 Thread majin_clo...@t-online.de
Hello, well I have the following problem: I use kornak-api which provides a simple servlet-based recommender application available under the Apache license. Wenn I want to start the webservice I get the following error: [INFO] Scanning for projects... [INFO]

Tomcat SPNEGO valve - role assignment in 'grant-all' realm

2012-10-10 Thread Maarten van Hulsentop
Hi, We are configuring our Tomcat web application to authenticate using SPNEGO (Kerberos in particular) on Tomcat 7.0.29. Following the step-by-step 'Windows Authentication How-To', i succeeded doing so. Part of setting it up was configuring a Realm that assigns a role to the user, because the

Tomcat Security Limitation

2012-10-10 Thread Mouradk
Hello, I am running a servlet that reads and writes to an remote instance of = Hbase/Hadoop on ec2. When the security manager is off, all is fine. But = when the manager is on, write and read operations fail. I have the following permissions on my 04webapps.policy file: permission

WebSockets and HTTPS problems

2012-10-10 Thread Steffen Heil (Mailinglisten)
Hi We have a web application that makes more and more use of websockets. (In fact we emulate websockets with comet servlets for older browsers and want to use real websockets for current ones.) We implemented our websocket support using tomcat 7.0.30 and a servlet extending

Re: Tomcat SPNEGO valve - role assignment in 'grant-all' realm

2012-10-10 Thread Mark Thomas
On 10/10/2012 10:30, Maarten van Hulsentop wrote: Hi, We are configuring our Tomcat web application to authenticate using SPNEGO (Kerberos in particular) on Tomcat 7.0.29. Following the step-by-step 'Windows Authentication How-To', i succeeded doing so. Part of setting it up was configuring

Re: WebSockets and HTTPS problems

2012-10-10 Thread Mark Thomas
On 10/10/2012 12:55, Steffen Heil (Mailinglisten) wrote: Do you see any error in my configuration? Nothing jumps out at me. What can I do to debug this? I'd use Wireshark. I tried to enable logging in tomcat [2], but it seems that did not suffice to make tomcat more verbose... Maybe I

Re: Tomcat Security Limitation

2012-10-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mouradk, On 10/10/12 7:49 AM, Mouradk wrote: I am running a servlet that reads and writes to an remote instance of = Hbase/Hadoop on ec2. When the security manager is off, all is fine. But = when the manager is on, write and read operations fail.

Tomcat 6.0 cluster query

2012-10-10 Thread vicky007aggarwal
Hello All, Can somebody please help me out in setting up unicast clustering on tomcat 6.0. Series. I looked around on apache-tomcat website but didnt find anything in particular which actually helps in understanding implementing the unicast clusting for a beginner. Kindly suggest Thanks,

Re: Tomcat 6.0 cluster query

2012-10-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Vicky, On 10/10/12 9:27 AM, vicky007aggar...@yahoo.co.in wrote: Can somebody please help me out in setting up unicast clustering on tomcat 6.0. Series. I looked around on apache-tomcat website but didnt find anything in particular which

Re: Tomcat Security Limitation

2012-10-10 Thread Mouradk
Hi Chris, I am using Tomcat6 on ubuntu 10.10. I suppose when you say CATALINA_OPTS you mean that in /usr/share/tomcat6/bin/catalina.sh . I have added this as such: CATALINA_OPTS=$CATALINA_OPTS $JPDA_OPTS, -Djava.security.debug=all I have also set the logging level to FINE in

Re: Tomcat Security Limitation

2012-10-10 Thread André Warnier
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mouradk, On 10/10/12 7:49 AM, Mouradk wrote: I am running a servlet that reads and writes to an remote instance of = Hbase/Hadoop on ec2. When the security manager is off, all is fine. But = when the manager is on, write

Re: Tomcat 6.0 cluster query

2012-10-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pid, On 10/10/12 10:09 AM, Pid wrote: On 10/10/2012 14:37, Christopher Schultz wrote: Vicky, On 10/10/12 9:27 AM, vicky007aggar...@yahoo.co.in wrote: Can somebody please help me out in setting up unicast clustering on tomcat 6.0. Series. I

Re: Tomcat Security Limitation

2012-10-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mouradk, On 10/10/12 10:04 AM, Mouradk wrote: I am using Tomcat6 on ubuntu 10.10. I suppose when you say CATALINA_OPTS you mean that in /usr/share/tomcat6/bin/catalina.sh . It would be better to use CATALINA_BASE/bin/setenv.sh so you don't have

Re: [OT] Tomcat Security Limitation

2012-10-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 10/10/12 10:05 AM, André Warnier wrote: Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mouradk, On 10/10/12 7:49 AM, Mouradk wrote: I am running a servlet that reads and writes to an remote instance of =

Re: Tomcat Security Limitation

2012-10-10 Thread André Warnier
Mouradk wrote: Hi Chris, I am using Tomcat6 on ubuntu 10.10. I suppose when you say CATALINA_OPTS you mean that in /usr/share/tomcat6/bin/catalina.sh . I have added this as such: CATALINA_OPTS=$CATALINA_OPTS $JPDA_OPTS, -Djava.security.debug=all I have also set the logging level to FINE in

[ANN] Apache Tomcat 5.5.36 released

2012-10-10 Thread Mark Thomas
The Apache Tomcat Team announces the immediate availability of Apache Tomcat 5.5.36. Apache Tomcat 5.5.36 is primarily a bug-fix release. As per the previous end of life announcement [1] this will almost certainly be the final Apache Tomcat 5.5.x release. Users of the 5.5.x series are strongly

Re: Tomcat 6.0 cluster query

2012-10-10 Thread vicky007aggarwal
Thanks guys for responding promptly. I am looking forward to have a cluster with static membership that does not use multicast for membership. Step by step configuration details will be a great help for me. Plzxzxz help out Thanks, Vicky On Oct 10, 2012, at 7:47 PM, Christopher Schultz

Re: Tomcat 6.0 cluster query

2012-10-10 Thread nk02.mls
Vicky, From my memo inn 2010, I seemed to test that function by using following server.xml But I've forgotten the meanings of each parameter... Please check documents. And I don't know whether this config works fine on current Tomcat 6.0.x..

Re: Tomcat Security Limitation

2012-10-10 Thread Mouradk
Dear all, Thanks all for your reply. I managed to get the debug logs on and those logs of interest were set to WARN (warnings), they gave me an indication to the required security settings and I finally got it to work !! I am experiencing another problem now. But at least I got Tomcat security

Re: Tomcat 6.0 cluster query

2012-10-10 Thread vivek aggarwal
nk02.mls,   Can you help me in understand that the significance of port attribute in Receiver Member Tag. These need to be same ??? Does this need to be 4000 ??     Receiver className=org.apache.catalina.tribes.transport.nio.NioReceiver address=192.168.2.200 port=4000 autoBind=100

AW: WebSockets and HTTPS problems

2012-10-10 Thread Steffen Heil (Mailinglisten)
Hi Check to see if the WebSocket examples that ship with Tomcat work with your configuration. If they don't compare the differences between the default configuration and you configuration to and find the change that breaks stuff. First, thanks for the reply. I downloaded tomcat 7.0.32

Re: Tomcat 6.0 cluster query

2012-10-10 Thread nk02.mls
Vicky, The port of Receiver seems to be bound automatically. http://tomcat.apache.org/tomcat-6.0-doc/config/cluster-receiver.html The listen port for incoming data. The default value is 4000. To avoid port conflicts the receiver will automatically bind to a free port within the range of

Re: Tomcat 6.0 cluster query

2012-10-10 Thread vivek aggarwal
nk02.mls, Thanks for responding my silly queries.   But seriously i didnt understand what does th documentation states, its vague   I didnt understand the difference between port autoBind.   port The listen port for incoming data. The default value is 4000. To avoid port conflicts the receiver

Re: Tomcat 6.0 cluster query

2012-10-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Vicky, On 10/10/12 12:36 PM, vivek aggarwal wrote: nk02.mls, Can you help me in understand that the significance of port attribute in Receiver Member Tag. These need to be same ??? Does this need to be 4000 ?? You need to read the

Re: Tomcat 6.0 cluster query

2012-10-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Vicky, On 10/10/12 1:09 PM, vivek aggarwal wrote: I didnt understand the difference between port autoBind. Secondly if above Receiver port is for listenning cluster messages what does the Intercetor port will do... as mentioned below You need

Re: Tomcat Security Limitation

2012-10-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mourad, On 10/10/12 12:35 PM, Mouradk wrote: Thanks all for your reply. I managed to get the debug logs on and those logs of interest were set to WARN (warnings), they gave me an indication to the required security settings and I finally got it

Re: how to programmatically expire inactive sessions?

2012-10-10 Thread Shanti Suresh
Hi Kirill, At this point, I'm thinking that perhaps a network traffic capture might give you some clues. Just see the kind of traffic coming in to the server. You may use wireshark easily to both capture and see traffic. Setup up a capture filter to capture traffic to and from your server

Re: how to programmatically expire inactive sessions?

2012-10-10 Thread Kirill Kireyev
Thanks Shanti! I think your hypothesis is that these sessions remain active, due to client-side polling. However, I don't think that's the case - these sessions are listed as *inactive* (or rather inactive for longer than 20 mins) in the Tomcat manager

Re: how to programmatically expire inactive sessions?

2012-10-10 Thread Mark Thomas
On 10/10/2012 19:24, Kirill Kireyev wrote: Thanks Shanti! I think your hypothesis is that these sessions remain active, due to client-side polling. However, I don't think that's the case - these sessions are listed as *inactive* (or rather inactive for longer than 20 mins) in the Tomcat

Re: how to programmatically expire inactive sessions?

2012-10-10 Thread Kirill Kireyev
Thanks Mark! So currently ContainerBackgroundProcessor is sleeping: 0x5f31 0 27.4 "ContainerBackgroundProcessor[StandardEngine[Catalina]]" daemon prio=10 tid=0x0306c800 nid=0x5f31 sleeping[0x7fa2e9dcb000] What should I be

Re: how to programmatically expire inactive sessions?

2012-10-10 Thread Mark Thomas
On 10/10/2012 19:30, Kirill Kireyev wrote: Thanks Mark! So currently ContainerBackgroundProcessor is sleeping: 0x5f31027.4 ContainerBackgroundProcessor[StandardEngine[Catalina]] daemon prio=10 tid=0x0306c800 nid=0x5f31 sleeping[0x7fa2e9dcb000] What should I be

Re: AW: WebSockets and HTTPS problems

2012-10-10 Thread Mark Thomas
On 10/10/2012 17:41, Steffen Heil (Mailinglisten) wrote: Hi Check to see if the WebSocket examples that ship with Tomcat work with your configuration. If they don't compare the differences between the default configuration and you configuration to and find the change that breaks stuff.

AW: AW: WebSockets and HTTPS problems

2012-10-10 Thread Steffen Heil (Mailinglisten)
Hi I just took a look at this. The examples work out of the box for HTTPS with BIO but not with NIO. This looks like a Tomcat bug at this point. I'll take a look. What would I need to do to switch to BIO for now? And does Comet work with BIO? Regards, Steffen smime.p7s Description:

Re: how to programmatically expire inactive sessions?

2012-10-10 Thread Shanti Suresh
Hi Kirill, I am also just curious how much active heap you are really using. From the previous heapdumps the script generated, what size are these? Was there a reason you needed a huge heap like 25GB? What is the lowest heap size you have tried so far? You may need to invoke the script 10

Re: AW: AW: WebSockets and HTTPS problems

2012-10-10 Thread Mark Thomas
On 10/10/2012 19:51, Steffen Heil (Mailinglisten) wrote: Hi I just took a look at this. The examples work out of the box for HTTPS with BIO but not with NIO. This looks like a Tomcat bug at this point. I'll take a look. What would I need to do to switch to BIO for now? Change the

Tomcat DBCP SQLServer failover

2012-10-10 Thread Jose María Zaragoza
Hi: I want to add database failover to my web application I use Tomcat 6 and SQLServer database + JDBC Driver 3.0 I'm getting connections from datasource with DataSource ds = ic.lookup(java:comp/env/jdbc/mydb); Connection con = ds.getConnection(); I know that I've got to define a DN like

NPE during custom error page handling in Tomcat 7.0.32

2012-10-10 Thread Sean Owen
Hello all, I'm looking for any ideas on the following issue: https://issues.apache.org/bugzilla/show_bug.cgi?id=53958 On Tomcat 7.0.32, using embedded Tomcat, I'm seeing a NullPointerException when using a custom error page. The page itself is fine and loads if accessed directly. Triggering an

Re: Tomcat 6.0 cluster query

2012-10-10 Thread vicky007aggarwal
Thanks Schultz for explaining. I got the clarity now . Thankz a ton Thanks, Vicky On Oct 10, 2012, at 11:05 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Vicky, On 10/10/12 1:09 PM, vivek aggarwal wrote: I didnt understand

Sending through WebSockets

2012-10-10 Thread Steffen Heil (Mailinglisten)
Hi I have a server with several websocket connections. (Or at least I will have at some time, see thread about ssl problems...) Now just as in the chat example, I need to send some data from time to time so some (but not neccessarily all) of those connections. Now, what happens if one of the

Re: Tomcat 6.0.35 Hanged by requests

2012-10-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Daniel, On 10/10/12 3:44 PM, Daniel Barcellos wrote: Hey folks, i'm digging around for quite some time to solve a particular problem. We have a download funtionality that serves our clients with pdf files that are retrieved from DB. Ok. My

Re: how to programmatically expire inactive sessions?

2012-10-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Shanti, On 10/10/12 2:55 PM, Shanti Suresh wrote: I am also just curious how much active heap you are really using. From the previous heapdumps the script generated, what size are these? Was there a reason you needed a huge heap like 25GB? Yes.

Re: Tomcat DBCP SQLServer failover

2012-10-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jose María, On 10/10/12 3:00 PM, Jose María Zaragoza wrote: I want to add database failover to my web application I use Tomcat 6 and SQLServer database + JDBC Driver 3.0 But my doubts are about what happen with pooled connections. The scenario

Re: Tomcat SPNEGO valve - role assignment in 'grant-all' realm

2012-10-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark and Maarten, On 10/10/12 8:24 AM, Mark Thomas wrote: On 10/10/2012 10:30, Maarten van Hulsentop wrote: Hi, We are configuring our Tomcat web application to authenticate using SPNEGO (Kerberos in particular) on Tomcat 7.0.29. Following the