How to use Jar Scan Filters

2015-03-25 Thread Thusitha Thilina Dayaratne
Hi, I'm using embedded tomcat as an OSGi bundle. In tomcat 7.0.59 we extended the StandardJarScanner to scan some jars which are resides in a custom location. Since these jars are needed for all the applications putting them in WEB-INF is not applicable, We are now trying to use Tomcat 8.0.20 with

Re: SPNEGO test configuration with Manager webapp

2015-03-25 Thread Terence M. Bandoian
On 3/25/2015 2:19 PM, André Warnier wrote: David Marsh wrote: Javas version of kinit seems to report issue ? C:\Program Files\Apache Software Foundation\Tomcat 8.0\conf>"C:\Program Files\Ja va\jdk1.8.0_40\bin\kinit" -t -k c:\keytab\tomcat.keytab Exception: krb_error 0 Do not have keys of type

Re: Tomcat 6->8 upgrade breaks logout script?

2015-03-25 Thread Baron Fujimoto
On Fri, Mar 20, 2015 at 05:46:42PM -0400, Christopher Schultz wrote: > >On 3/20/15 4:27 PM, Baron Fujimoto wrote: >> I hope someone may be able to provide some insight or a solution to >> a problem we encountered after I upgraded from Tomcat 6 to 8. We're >> using Tomcat as the servlet container fo

RE: SPNEGO test configuration with Manager webapp

2015-03-25 Thread David Marsh
Still getting :- java.security.PrivilegedActionException: GSSException: Defective token detected (Mechanism level: G SSHeader did not find the right tag) Folks here mention lack of NegoEx support or bugs in GSS-APi ? http://sourceforge.net/p/spnego/discussion/1003769/thread/990913cc/?page=1 Do

RE: SPNEGO test configuration with Manager webapp

2015-03-25 Thread David Marsh
With the correct keytab and krb5.ini I can get kinit to pass... Still cannot get SPNEGO in tomcat to work, have the same 401 three times. C:\Windows>java -Dsun.security.krb5.debug=true -Djava.security.krb5.conf=c:\windows\krb5.ini sun.security.krb5.internal.tools.Kinit -k -t c:\keytab\tomcat.keyt

RE: SPNEGO test configuration with Manager webapp

2015-03-25 Thread David Marsh
Turns out to use the Java kinit I need a krb5.conf inside the jdk/jre lib/secrutiy folder. Now I get :- C:\>java -Dsun.security.krb5.debug=true sun.security.krb5.internal.tools.Kinit k -t c:\keytab\tomcat.keytab HTTP/win-tc01.kerbtest.local@KERBTEST.LOCAL >>>KinitOptions cache name is C:\Users\

RE: SPNEGO test configuration with Manager webapp

2015-03-25 Thread David Marsh
Thanks for all the help guys, I managed to find the correct way to call kinit for Java on windows :- I get the following :- C:\>java -Dsun.security.krb5.debug=true sun.security.krb5.internal.tools.Kinit - k -t c:\keytab\tomcat.keytab HTTP/win-tc01.kerbtest.local@KERBTEST.LOCAL tc01pas s >>>Ki

Re: SPNEGO test configuration with Manager webapp

2015-03-25 Thread André Warnier
Felix Schumacher wrote: Am 25.03.2015 um 20:19 schrieb André Warnier: David Marsh wrote: Javas version of kinit seems to report issue ? C:\Program Files\Apache Software Foundation\Tomcat 8.0\conf>"C:\Program Files\Ja va\jdk1.8.0_40\bin\kinit" -t -k c:\keytab\tomcat.keytab Exception: krb_erro

Re: SPNEGO test configuration with Manager webapp

2015-03-25 Thread Felix Schumacher
Am 25.03.2015 um 20:19 schrieb André Warnier: David Marsh wrote: Javas version of kinit seems to report issue ? C:\Program Files\Apache Software Foundation\Tomcat 8.0\conf>"C:\Program Files\Ja va\jdk1.8.0_40\bin\kinit" -t -k c:\keytab\tomcat.keytab Exception: krb_error 0 Do not have keys of t

Re: SPNEGO test configuration with Manager webapp

2015-03-25 Thread Felix Schumacher
Am 25.03.2015 um 18:29 schrieb David Marsh: Javas version of kinit seems to report issue ? C:\Program Files\Apache Software Foundation\Tomcat 8.0\conf>"C:\Program Files\Ja va\jdk1.8.0_40\bin\kinit" -t -k c:\keytab\tomcat.keytab Exception: krb_error 0 Do not have keys of types listed in default_t

Re: Fwd: Can't connect to echo.websocket.org using WebSocket client

2015-03-25 Thread Mark Thomas
On 25/03/2015 19:05, Palmer Cox wrote: > On Wed, Mar 25, 2015 at 2:37 PM, Mark Thomas wrote: >> On 25/03/2015 18:08, Palmer Cox wrote: >>> Hi, >>> >>> No matter what I've tried, >> >> And the list members have no idea what you have tried since you haven't >> told us. >> >> Take a look at Tomcat's

Re: SPNEGO test configuration with Manager webapp

2015-03-25 Thread André Warnier
David Marsh wrote: Javas version of kinit seems to report issue ? C:\Program Files\Apache Software Foundation\Tomcat 8.0\conf>"C:\Program Files\Ja va\jdk1.8.0_40\bin\kinit" -t -k c:\keytab\tomcat.keytab Exception: krb_error 0 Do not have keys of types listed in default_tkt_enctypes available; on

Re: ClassNotFoundError on context unload

2015-03-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Austin, On 3/23/15 2:54 PM, Austin Jones wrote: > Hi Chris, > >> If MyClass had been loaded at initialization time (like your >> sample code shows), it should not have needed to be loaded back >> off the disk for shutdown. > > In my first example,

Re: Fwd: Can't connect to echo.websocket.org using WebSocket client

2015-03-25 Thread Palmer Cox
On Wed, Mar 25, 2015 at 2:37 PM, Mark Thomas wrote: > On 25/03/2015 18:08, Palmer Cox wrote: >> Hi, >> >> No matter what I've tried, > > And the list members have no idea what you have tried since you haven't > told us. > > Take a look at Tomcat's unit tests for WebSocket. There are a number of >

Re: Fwd: Can't connect to echo.websocket.org using WebSocket client

2015-03-25 Thread Mark Thomas
On 25/03/2015 18:08, Palmer Cox wrote: > Hi, > > No matter what I've tried, And the list members have no idea what you have tried since you haven't told us. Take a look at Tomcat's unit tests for WebSocket. There are a number of working examples you can use as a basis for you code. Mark

Fwd: Can't connect to echo.websocket.org using WebSocket client

2015-03-25 Thread Palmer Cox
Hi, No matter what I've tried, I'm unable to get the Tomcat WebSocket client to connect to ws://echo.websocket.org. I get the (slightly edited) Exception: javax.websocket.DeploymentException: The HTTP request to initiate the WebSocket connection failed at org.apache.tomcat.websocket.WsWe

RE: SPNEGO test configuration with Manager webapp

2015-03-25 Thread David Marsh
Javas version of kinit seems to report issue ? C:\Program Files\Apache Software Foundation\Tomcat 8.0\conf>"C:\Program Files\Ja va\jdk1.8.0_40\bin\kinit" -t -k c:\keytab\tomcat.keytab Exception: krb_error 0 Do not have keys of types listed in default_tkt_enctypes available; only have keys of follo

Re: Tomcat8 gives me WSOD due to LinkageError

2015-03-25 Thread Neill Lima
Hello Christopher, Thanks for the reply. Actually not, I am working with out-of-the-box Tomcat7 and Tomcat8 in this case. I wonder if any classloader changes occurred in the last builds that could have affected this. Thanks, Neill On Wed, Mar 25, 2015 at 5:44 PM, Christopher Schultz < ch...@chr

RE: SPNEGO test configuration with Manager webapp

2015-03-25 Thread David Marsh
Its possible I guess, although I would not expect that. The test is :- Client Test Windows 8.1 VM with Firefox -> Tomcat Server Windows 8.1 VM Firefox is not configured to use a proxy, its all in Vmware Workstation 10 using the Vmnet01 virtual network. Firefox has three 401 responses with head

Re: Tomcat8 gives me WSOD due to LinkageError

2015-03-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Neill, On 3/20/15 12:28 PM, Neill Lima wrote: > As of today I figured out that the jasper.jar in Tomcat's \lib > takes care of the task out of the box. I've tweaked my pom a few > times, but I started fresh today and realized it. So no pom updates >

RE: SPNEGO test configuration with Manager webapp

2015-03-25 Thread Felix Schumacher
Am 25. März 2015 17:25:25 MEZ, schrieb David Marsh : >This is how the keytab was created :- > >ktpass -ptype KRB5_NT_PRINCIPAL /out c:\tomcat.keytab /mapuser >tc01@KERBTEST.LOCAL /princ HTTP/win-tc01.kerbtest.local@kerbtest.local >/pass tc01pass > >The password is the correct password for the use

RE: SPNEGO test configuration with Manager webapp

2015-03-25 Thread David Marsh
This is how the keytab was created :- ktpass -ptype KRB5_NT_PRINCIPAL /out c:\tomcat.keytab /mapuser tc01@KERBTEST.LOCAL /princ HTTP/win-tc01.kerbtest.local@kerbtest.local /pass tc01pass The password is the correct password for the user tc01 associated with the SPN  HTTP/win-tc01.kerbtest.local

RE: SPNEGO test configuration with Manager webapp

2015-03-25 Thread Felix Schumacher
Am 25.03.2015 16:09, schrieb David Marsh: Put keytab in c:\keytab\tomcat.keytab, ensured owner was tc01@KERTEST.LOCAL, still same symptoms. Ran klist on client after firefox test and the three 401 responses. :- C:\Users\test.KERBTEST.000>klist Current LogonId is 0:0x2fd7a Cached Tickets: (2)

Re: SPNEGO test configuration with Manager webapp

2015-03-25 Thread André Warnier
David Marsh wrote: Put keytab in c:\keytab\tomcat.keytab, ensured owner was tc01@KERTEST.LOCAL, still same symptoms. Ran klist on client after firefox test and the three 401 responses. :- C:\Users\test.KERBTEST.000>klist Current LogonId is 0:0x2fd7a Cached Tickets: (2) #0> Client: t

Re: Tomcat 7 (7.0.54) memory consuption is very high(3 times) than Tomcat 6 (6.0.28)

2015-03-25 Thread Rainer Jung
Am 25.03.2015 um 15:14 schrieb Christopher Schultz: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Rainer, On 3/25/15 6:18 AM, Rainer Jung wrote: Am 24.03.2015 um 23:40 schrieb André Warnier: Rainer Jung wrote: Some numbers from a test here on RHEL 6, using Java 1.7.0_76 and TC 6.0.43, 7.0.

Re: Tomcat 7 (7.0.54) memory consuption is very high(3 times) than Tomcat 6 (6.0.28)

2015-03-25 Thread André Warnier
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Rainer, On 3/25/15 6:18 AM, Rainer Jung wrote: Am 24.03.2015 um 23:40 schrieb André Warnier: Rainer Jung wrote: Some numbers from a test here on RHEL 6, using Java 1.7.0_76 and TC 6.0.43, 7.0.59 and 8.0.20. Measureme

RE: SPNEGO test configuration with Manager webapp

2015-03-25 Thread David Marsh
Put keytab in c:\keytab\tomcat.keytab, ensured owner was tc01@KERTEST.LOCAL, still same symptoms. Ran klist on client after firefox test and the three 401 responses. :- C:\Users\test.KERBTEST.000>klist Current LogonId is 0:0x2fd7a Cached Tickets: (2) #0> Client: test @ KERBTEST.LOCAL

Re: Tomcat 7 (7.0.54) memory consuption is very high(3 times) than Tomcat 6 (6.0.28)

2015-03-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Rainer, On 3/25/15 6:18 AM, Rainer Jung wrote: > Am 24.03.2015 um 23:40 schrieb André Warnier: >> Rainer Jung wrote: >>> Some numbers from a test here on RHEL 6, using Java 1.7.0_76 >>> and TC 6.0.43, 7.0.59 and 8.0.20. >>> >>> Measurement is taken

RE: Tomcat 7 (7.0.54) memory consuption is very high(3 times) than Tomcat 6 (6.0.28)

2015-03-25 Thread Rahul Kumar Singh
Hello Tomcat support Team, One important observation from the GC logs reported in tomcat 7. GC execution time is increased in tomcat7, which increased the young gen capacity of java heap and resident memory of tomcat process is reported by

Re: Tomcat 7 (7.0.54) memory consuption is very high(3 times) than Tomcat 6 (6.0.28)

2015-03-25 Thread Rainer Jung
Am 24.03.2015 um 23:40 schrieb André Warnier: Rainer Jung wrote: Some numbers from a test here on RHEL 6, using Java 1.7.0_76 and TC 6.0.43, 7.0.59 and 8.0.20. Measurement is taken directly after start (a) plus once after one request to a non-existing page and two full GCs (b). Only manager was

Re: How to access JNDI Directory Context in Tomcat 8

2015-03-25 Thread Thusitha Thilina Dayaratne
Hi Mark, > Thanks all for responses. But what I actually want is to register a > URLStreamHandlerService for JNDI >>Finally. More than 2 weeks since the first e-mail in this thread the >>list members know what it is you are actually trying to do. >>You want: >> http://tomcat.apache.org/tomcat-8.

Re: How to access JNDI Directory Context in Tomcat 8

2015-03-25 Thread Mark Thomas
On 25/03/2015 08:14, Thusitha Thilina Dayaratne wrote: > Thanks all for responses. But what I actually want is to register a > URLStreamHandlerService for JNDI Finally. More than 2 weeks since the first e-mail in this thread the list members know what it is you are actually trying to do. You wa

Re: How to access JNDI Directory Context in Tomcat 8

2015-03-25 Thread Thusitha Thilina Dayaratne
Hi >> how can that be modified to load the jndi.properties file? > > The javadoc for InitialContext seems to indicate that this file will be > processed automatically. > > If it isn't processed automatically, I'd suggest trying to figure out > why. >>Good to know, thank you. >>Amazingly, this i