Re: Unable to update or delete Windows Service

2016-05-16 Thread Leo Donahue
Chris,

On Mon, May 16, 2016 at 3:22 PM, Christopher Schultz <
ch...@christopherschultz.net> wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA256
>
> Chuck,
>
> On 5/16/16 4:11 PM, Caldarale, Charles R wrote:
> >> From: Christopher Schultz [mailto:ch...@christopherschultz.net]
> >> Subject: Unable to update or delete Windows Service
> >
> >> I've got a Windows service called "foo" and I'm able to edit the
> >> configuration successfully by running the following command:
> >
> >> C:\> %CATALINA_HOME%\bin\tomcat8w.exe //ES//foo
> >
> >> But if I try to update the service from the command-line, or
> >> update the service, I get an error "Error parsing command line"
> >> with no further information.
> >
> > Example of the command line that's failing?
>
> Hah, that would have been good information, eh?
>
> C:\> %CATALINA_HOME%\bin\tomcat8w.exe //DS/foo
>

The command is just:  tomcat8 //DS//foo


>
> I get a pop-up window with the message "Error parsing command line".
> Same thing when running "//US//foo" with no additional arguments.
>
> - -chris
>


Re: Windows Service won't launch

2016-05-16 Thread Leo Donahue
Chris,

On Mon, May 16, 2016 at 3:25 PM, Christopher Schultz <
ch...@christopherschultz.net> wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA256
>
> All,
>
> I'm upgrading a client's system from Tomcat 7 to Tomcat 8 as part of a
> new release of our software. I've got Tomcat 8 installed using the
> 32-bit ZIP file, and the Windows Services have been re-created from
> scratch using tomcat8w.exe. They are running 64-bit Windows but a
> 32-bit JVM.
>

I just tried the following.

Windows 7 64 bit OS
x86 jdk1.8.0.92
I ran service.bat for Tomcat 8.0.33 32 bit.  (Tomcat 32 bit, jvm 32 bit)
No problems starting the service.

Windows 7 64 bit OS
x86 jdk1.8.0.92
I ran service.bat for Tomcat 8.0.33 64 bit. (Tomcat 64 bit, jvm 32 bit)
Incorrect Function in event viewer when trying to start the service.


>
> When I try to launch the service, I get an error "Incorrect function"
> in the event log, and the service does not start.


And I'm reading your statement above which says your environment is 32 bit
for both Tomcat 8 and the jvm.  Interesting.

I've never installed windows services using the Tomcat8w.exe directly on
the command line.  I've always used the service.bat, but I take all the
defaults in service.bat.

And off-topic speaking of defaults, in service.bat, why aren't these values
the same?
--JvmMs 128
--JvmMx 256


> I can launch Tomcat
> from the command-line successfully, so this is not a problem with
> Tomcat per se, nor my application. It's got to be a problem with my
> configuration of the Windows Service.
>
> I'm tempted to tell them "Install a 64-bit JVM" and use the 64-bit
> service-runner, but I'd prefer to get it working before I tell them
> they have to change everything ;)
>
> Any suggestions for what to look for?
>
> Thanks,
> - -chris
>
>


Re: Windows Service won't launch

2016-05-16 Thread David Kerber

On 5/16/2016 4:25 PM, Christopher Schultz wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

All,

I'm upgrading a client's system from Tomcat 7 to Tomcat 8 as part of a
new release of our software. I've got Tomcat 8 installed using the
32-bit ZIP file, and the Windows Services have been re-created from
scratch using tomcat8w.exe. They are running 64-bit Windows but a
32-bit JVM.

When I try to launch the service, I get an error "Incorrect function"
in the event log, and the service does not start. I can launch Tomcat
from the command-line successfully, so this is not a problem with
Tomcat per se, nor my application. It's got to be a problem with my
configuration of the Windows Service.

I'm tempted to tell them "Install a 64-bit JVM" and use the 64-bit
service-runner, but I'd prefer to get it working before I tell them
they have to change everything ;)

Any suggestions for what to look for?


I'd check first for incorrectly-delimited parameters in the service 
definition.  Missing quotes or some such thing.  I would have said in 
any .properties .cfg or .ini files, but you say it runs ok from the cmd 
line.   I've seen this error before, but can't recall the exact 
circumstances at the moment.





Thanks,
- -chris
-BEGIN PGP SIGNATURE-
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJXOizBAAoJEBzwKT+lPKRYNhkQAKeKijhlZXLjqe/wzk9bKB88
xGyFofi78uGtPI1fgznyjU0RifizVqY3EbuVvpycTCcxutRRhoIxI3HWuEq1ZCB8
nL7VSoA1gAG2d2+Bn/sWH7be6swkUNnUWH90HffdEZCPGMPg61S1EX00pmDDSJyK
UcXLzuPu8FvHdenuxkNFNqvcyjccTSjoZ0h6FF4L7XXxXbsuCosi4fpVabJ5yKq4
AWLlsh3Qwf5cUsneNhmVzMyBrOX/3fHEYixDdKPmcQM5BdaD9Rdfaq9ESH/JVjns
hy4wB/b4YKYWUZB+3iW1Ukav+zwYmRNdRQZdk2P6zQJ6zC8AgF4vHOI8vLsV2fB+
j4w2LmSi4pV8VIW1Sb5UzkPSeMp+r196H1/2PDE8JmXOGKpLXD8wgfY62erCJelF
+np6dTJd/OkTjjVcps3lF9b6bTpcokAu5xRXhjHrlxtq3H/77/ujfcvZ0qz2wlYx
EiG0ZgT8pe2yR4bntdoMIl2xGhBFyw4rmZgRLX9ClMwtMV516N5VTLzitQ7ll5Sf
5MjsYhdIH+Pc8fmUMGqjDiEGMURs2cE2nuIIrcFvDUkaaqYN0v3BegZNStp3Zatq
GjTnGO1ykXF/xi7WwsGc8DgrfpuRYLTAyl9fG13+/9Q2JIQ82xwyh0dIZ6CxB/ph
SHeeYTldIF9sab0F3B40
=BZgJ
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org





-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat DS question

2016-05-16 Thread pradeep reddy
Hello Woonsan,
   Via Jconsole I had validated all my changes that were made in
context.xml. But for some reason the logs doesn't show anything about
abandoned connections in catalina.out. I am not sure at this time if its a
bug in tomcat 6 or tomcat-dbcp.jar, but threaddumps clearly show that
threads are waiting on connections from connection pool.

Thanks
Pradeep

On Mon, May 16, 2016 at 4:38 PM, Woonsan Ko  wrote:

> Hi Pradeep,
>
> Just in case, you might want to make sure your changes were really
> applied. For example, an effective context.xml could be in
> conf/Catalina/localhost/...
> If it was applied properly, the stack trace should have shown
> o.a.c.dbcp.AbandonedObjectPool#borrowObject() as well.
>
> Regards,
>
> Woonsan
>
>
> On Mon, May 16, 2016 at 5:54 PM, pradeep reddy 
> wrote:
> > unfortunately it is not writing anything catalina.out :-(
> >
> > Thanks
> > Pradeep
> >
> > On Mon, May 16, 2016 at 3:47 PM, Christopher Schultz <
> > ch...@christopherschultz.net> wrote:
> >
> >> -BEGIN PGP SIGNED MESSAGE-
> >> Hash: SHA256
> >>
> >> Pradeep,
> >>
> >> On 5/16/16 5:13 PM, pradeep reddy wrote:
> >> > Hello Christopher,
> >> >
> >> > Let me post my thread dump here.
> >> >
> >> > All  HTTP threads are in WAITING state.
> >> >
> >> > "http-12453-346" daemon prio=10 tid=0x7fbd3061f800 nid=0x59d0
> >> > in Object.wait() [0x7fbbe124f000] java.lang.Thread.State:
> >> > WAITING (on object monitor) at java.lang.Object.wait(Native
> >> > Method) at java.lang.Object.wait(Object.java:485) at
> >> > org.apache.tomcat.dbcp.pool.impl.GenericObjectPool.borrowObject(Generi
> >> cObjectPool.java:1104)
> >> >
> >> >
> >> - - locked <0x00072b18f320> (a
> >> > org.apache.tomcat.dbcp.pool.impl.GenericObjectPool$Latch) at
> >> > org.apache.tomcat.dbcp.dbcp.PoolingDataSource.getConnection(PoolingDat
> >> aSource.java:106)
> >> >
> >> >
> >> at
> >> org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSourc
> >> e.java:1044)
> >> > at
> >> > org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider.g
> >> etConnection(LocalDataSourceConnectionProvider.java:82)
> >>
> >> Yep,
> >> >
> >> that certainly looks like you are waiting for connections from
> >> Tomcat's DBCP-based pool.
> >>
> >> >  >> > type="javax.sql.DataSource"
> >> > driverClassName="oracle.jdbc.OracleDriver" url="XXX"
> >> > username="XX" password="XX" initialSize="1" maxActive="10"
> >> > minIdle="1" maxIdle="1" connectionCachingEnabled="true"
> >> > fastConnectionFailoverEnabled="true"
> >> > connectionCacheProperties="{MinLimit=1, MaxLimit=20,
> >> > InitialLimit=1, oracle.net.ns.SQLnetDef.TCP_CONNTIMEOUT_STR=3000}"
> >> > ONSConfiguration="nodes=X" validationQuery="SELECT 1 from
> >> > DUAL" removeAbandoned="true" removeAbandonedTimeout="30"
> >> > logAbandoned="true" maxWait="-1"/>
> >>
> >> That configuration looks okay to me.
> >>
> >> The "abandoned" logs are logged to stdout, so they should show up in
> >> your catalina.out file (or stdout.log if you are using a Windows Service
> >> ).
> >>
> >> Are you getting no messages about the abandoned connections?
> >>
> >> - -chris
> >> -BEGIN PGP SIGNATURE-
> >> Comment: GPGTools - http://gpgtools.org
> >> Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
> >>
> >> iQIcBAEBCAAGBQJXOj/gAAoJEBzwKT+lPKRYFVQP/RJKOl0QoU8/qcgMBtdrqwbr
> >> gddAEbqeDVT4nb8Bp/MWpWEoICBr75IGMgSir+qKASwTKXNsORceyxcSn+YxRJnK
> >> POZgIZfwti4vLYMBr9jU1kdUsxCGriettcBZ8pkwJAAtyVX9O0lZiwEZuCp7WwA5
> >> sbatkYHNtJQsjxQli1XA6NPNjQBS6y+WuQZQ0e/mf3CJUq9Rqa0uvsgAOK9XQTDB
> >> HBNfhF1sjIFy2ro5Vb6OagRHB+9CBxc01gM8V2d37hrbqmUVpiE4pKqO2sWZ6cz5
> >> yCwSBEcxyNKvDoeP2kz/1HGIhSwB7ifV1zkbhgZaB5eQZVZZubXVcdwgmRMswUgl
> >> RtzqCPF6rOHkgccoe5IqZLb89pQITibz6G3xTAoHhcvh2m7bADAkoN9Jq88DxUqT
> >> CqXEc/01A0AdC5zzqdGPToReLPEcaifLuAK0seGQsHIHAtOytYEY2E9rmoPtCrGp
> >> J4AshEzNtmVT+WUc40FS1+KeabolYBk0biXZiZG/mkVEmKf1DpzPtsBGFfYvo3/i
> >> 0IAOS4zBvluQT1xaqNO6bFJ4fyfIwyWE26FBEPWRpsju2CEg/9+uXw6YM3xYxdkc
> >> TmTTXqp4wvfE82fb2NMGQT3Av/q2fD4Yvzt7DiyHmWL0i0BlsnWBRdJD0dogKFRK
> >> oVun2+a1tFD7lvJnVoiu
> >> =AHDK
> >> -END PGP SIGNATURE-
> >>
> >> -
> >> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> >> For additional commands, e-mail: users-h...@tomcat.apache.org
> >>
> >>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: Tomcat DS question

2016-05-16 Thread Woonsan Ko
Hi Pradeep,

Just in case, you might want to make sure your changes were really
applied. For example, an effective context.xml could be in
conf/Catalina/localhost/...
If it was applied properly, the stack trace should have shown
o.a.c.dbcp.AbandonedObjectPool#borrowObject() as well.

Regards,

Woonsan


On Mon, May 16, 2016 at 5:54 PM, pradeep reddy  wrote:
> unfortunately it is not writing anything catalina.out :-(
>
> Thanks
> Pradeep
>
> On Mon, May 16, 2016 at 3:47 PM, Christopher Schultz <
> ch...@christopherschultz.net> wrote:
>
>> -BEGIN PGP SIGNED MESSAGE-
>> Hash: SHA256
>>
>> Pradeep,
>>
>> On 5/16/16 5:13 PM, pradeep reddy wrote:
>> > Hello Christopher,
>> >
>> > Let me post my thread dump here.
>> >
>> > All  HTTP threads are in WAITING state.
>> >
>> > "http-12453-346" daemon prio=10 tid=0x7fbd3061f800 nid=0x59d0
>> > in Object.wait() [0x7fbbe124f000] java.lang.Thread.State:
>> > WAITING (on object monitor) at java.lang.Object.wait(Native
>> > Method) at java.lang.Object.wait(Object.java:485) at
>> > org.apache.tomcat.dbcp.pool.impl.GenericObjectPool.borrowObject(Generi
>> cObjectPool.java:1104)
>> >
>> >
>> - - locked <0x00072b18f320> (a
>> > org.apache.tomcat.dbcp.pool.impl.GenericObjectPool$Latch) at
>> > org.apache.tomcat.dbcp.dbcp.PoolingDataSource.getConnection(PoolingDat
>> aSource.java:106)
>> >
>> >
>> at
>> org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSourc
>> e.java:1044)
>> > at
>> > org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider.g
>> etConnection(LocalDataSourceConnectionProvider.java:82)
>>
>> Yep,
>> >
>> that certainly looks like you are waiting for connections from
>> Tomcat's DBCP-based pool.
>>
>> > > > type="javax.sql.DataSource"
>> > driverClassName="oracle.jdbc.OracleDriver" url="XXX"
>> > username="XX" password="XX" initialSize="1" maxActive="10"
>> > minIdle="1" maxIdle="1" connectionCachingEnabled="true"
>> > fastConnectionFailoverEnabled="true"
>> > connectionCacheProperties="{MinLimit=1, MaxLimit=20,
>> > InitialLimit=1, oracle.net.ns.SQLnetDef.TCP_CONNTIMEOUT_STR=3000}"
>> > ONSConfiguration="nodes=X" validationQuery="SELECT 1 from
>> > DUAL" removeAbandoned="true" removeAbandonedTimeout="30"
>> > logAbandoned="true" maxWait="-1"/>
>>
>> That configuration looks okay to me.
>>
>> The "abandoned" logs are logged to stdout, so they should show up in
>> your catalina.out file (or stdout.log if you are using a Windows Service
>> ).
>>
>> Are you getting no messages about the abandoned connections?
>>
>> - -chris
>> -BEGIN PGP SIGNATURE-
>> Comment: GPGTools - http://gpgtools.org
>> Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
>>
>> iQIcBAEBCAAGBQJXOj/gAAoJEBzwKT+lPKRYFVQP/RJKOl0QoU8/qcgMBtdrqwbr
>> gddAEbqeDVT4nb8Bp/MWpWEoICBr75IGMgSir+qKASwTKXNsORceyxcSn+YxRJnK
>> POZgIZfwti4vLYMBr9jU1kdUsxCGriettcBZ8pkwJAAtyVX9O0lZiwEZuCp7WwA5
>> sbatkYHNtJQsjxQli1XA6NPNjQBS6y+WuQZQ0e/mf3CJUq9Rqa0uvsgAOK9XQTDB
>> HBNfhF1sjIFy2ro5Vb6OagRHB+9CBxc01gM8V2d37hrbqmUVpiE4pKqO2sWZ6cz5
>> yCwSBEcxyNKvDoeP2kz/1HGIhSwB7ifV1zkbhgZaB5eQZVZZubXVcdwgmRMswUgl
>> RtzqCPF6rOHkgccoe5IqZLb89pQITibz6G3xTAoHhcvh2m7bADAkoN9Jq88DxUqT
>> CqXEc/01A0AdC5zzqdGPToReLPEcaifLuAK0seGQsHIHAtOytYEY2E9rmoPtCrGp
>> J4AshEzNtmVT+WUc40FS1+KeabolYBk0biXZiZG/mkVEmKf1DpzPtsBGFfYvo3/i
>> 0IAOS4zBvluQT1xaqNO6bFJ4fyfIwyWE26FBEPWRpsju2CEg/9+uXw6YM3xYxdkc
>> TmTTXqp4wvfE82fb2NMGQT3Av/q2fD4Yvzt7DiyHmWL0i0BlsnWBRdJD0dogKFRK
>> oVun2+a1tFD7lvJnVoiu
>> =AHDK
>> -END PGP SIGNATURE-
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>
>>

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat DS question

2016-05-16 Thread pradeep reddy
unfortunately it is not writing anything catalina.out :-(

Thanks
Pradeep

On Mon, May 16, 2016 at 3:47 PM, Christopher Schultz <
ch...@christopherschultz.net> wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA256
>
> Pradeep,
>
> On 5/16/16 5:13 PM, pradeep reddy wrote:
> > Hello Christopher,
> >
> > Let me post my thread dump here.
> >
> > All  HTTP threads are in WAITING state.
> >
> > "http-12453-346" daemon prio=10 tid=0x7fbd3061f800 nid=0x59d0
> > in Object.wait() [0x7fbbe124f000] java.lang.Thread.State:
> > WAITING (on object monitor) at java.lang.Object.wait(Native
> > Method) at java.lang.Object.wait(Object.java:485) at
> > org.apache.tomcat.dbcp.pool.impl.GenericObjectPool.borrowObject(Generi
> cObjectPool.java:1104)
> >
> >
> - - locked <0x00072b18f320> (a
> > org.apache.tomcat.dbcp.pool.impl.GenericObjectPool$Latch) at
> > org.apache.tomcat.dbcp.dbcp.PoolingDataSource.getConnection(PoolingDat
> aSource.java:106)
> >
> >
> at
> org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSourc
> e.java:1044)
> > at
> > org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider.g
> etConnection(LocalDataSourceConnectionProvider.java:82)
>
> Yep,
> >
> that certainly looks like you are waiting for connections from
> Tomcat's DBCP-based pool.
>
> >  > type="javax.sql.DataSource"
> > driverClassName="oracle.jdbc.OracleDriver" url="XXX"
> > username="XX" password="XX" initialSize="1" maxActive="10"
> > minIdle="1" maxIdle="1" connectionCachingEnabled="true"
> > fastConnectionFailoverEnabled="true"
> > connectionCacheProperties="{MinLimit=1, MaxLimit=20,
> > InitialLimit=1, oracle.net.ns.SQLnetDef.TCP_CONNTIMEOUT_STR=3000}"
> > ONSConfiguration="nodes=X" validationQuery="SELECT 1 from
> > DUAL" removeAbandoned="true" removeAbandonedTimeout="30"
> > logAbandoned="true" maxWait="-1"/>
>
> That configuration looks okay to me.
>
> The "abandoned" logs are logged to stdout, so they should show up in
> your catalina.out file (or stdout.log if you are using a Windows Service
> ).
>
> Are you getting no messages about the abandoned connections?
>
> - -chris
> -BEGIN PGP SIGNATURE-
> Comment: GPGTools - http://gpgtools.org
> Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
>
> iQIcBAEBCAAGBQJXOj/gAAoJEBzwKT+lPKRYFVQP/RJKOl0QoU8/qcgMBtdrqwbr
> gddAEbqeDVT4nb8Bp/MWpWEoICBr75IGMgSir+qKASwTKXNsORceyxcSn+YxRJnK
> POZgIZfwti4vLYMBr9jU1kdUsxCGriettcBZ8pkwJAAtyVX9O0lZiwEZuCp7WwA5
> sbatkYHNtJQsjxQli1XA6NPNjQBS6y+WuQZQ0e/mf3CJUq9Rqa0uvsgAOK9XQTDB
> HBNfhF1sjIFy2ro5Vb6OagRHB+9CBxc01gM8V2d37hrbqmUVpiE4pKqO2sWZ6cz5
> yCwSBEcxyNKvDoeP2kz/1HGIhSwB7ifV1zkbhgZaB5eQZVZZubXVcdwgmRMswUgl
> RtzqCPF6rOHkgccoe5IqZLb89pQITibz6G3xTAoHhcvh2m7bADAkoN9Jq88DxUqT
> CqXEc/01A0AdC5zzqdGPToReLPEcaifLuAK0seGQsHIHAtOytYEY2E9rmoPtCrGp
> J4AshEzNtmVT+WUc40FS1+KeabolYBk0biXZiZG/mkVEmKf1DpzPtsBGFfYvo3/i
> 0IAOS4zBvluQT1xaqNO6bFJ4fyfIwyWE26FBEPWRpsju2CEg/9+uXw6YM3xYxdkc
> TmTTXqp4wvfE82fb2NMGQT3Av/q2fD4Yvzt7DiyHmWL0i0BlsnWBRdJD0dogKFRK
> oVun2+a1tFD7lvJnVoiu
> =AHDK
> -END PGP SIGNATURE-
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: java.lang.NoSuchMethodError: org.apache.tomcat.util.buf.ByteChunk.findByte

2016-05-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Venkata,

On 5/16/16 5:01 PM, Venkata Reddy P wrote:
> Hi,
> 
> I am using tomcat8.0.33 with jre1.8u91,  I am getting the following
> errors. What I am doing wrong? java.lang.NoSuchMethodError:
> org.apache.tomcat.util.buf.ByteChunk.findByte([BIIB) 
> java.lang.NoSuchMethodError:
> org.apache.catalina.connector.OutputBuffer.getContentWritten()J
> 
> 
> SEVERE: Error processing request java.lang.NoSuchMethodError:
> org.apache.tomcat.util.buf.ByteChunk.findByte([BIIB)I at
> org.apache.tomcat.util.buf.UDecoder.convert(UDecoder.java:83) at
> org.apache.tomcat.util.buf.UDecoder.convert(UDecoder.java:210) at
> org.apache.catalina.connector.CoyoteAdapter.postParseRequest(CoyoteAdapter.java:821)
>
> 
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:517)
> at
> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1095)
>
> 
at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:672)
> at
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1502)
>
> 
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1458)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>
> 
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> at
> org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
>
> 
at java.lang.Thread.run(Thread.java:745)
> 
> May 16, 2016 1:54:11 PM
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler
> process SEVERE: Error reading request, ignored 
> java.lang.NoSuchMethodError:
> org.apache.catalina.connector.OutputBuffer.getContentWritten()J at
> org.apache.catalina.connector.Response.getContentWritten(Response.java:294)
>
> 
at
org.apache.catalina.connector.CoyoteAdapter.checkRecycled(CoyoteAdapter.java:704)
> at
> org.apache.coyote.http11.AbstractHttp11Processor.recycle(AbstractHttp11Processor.java:1832)
>
> 
at
org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.release(Http11NioProtocol.java:218)
> at
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:771)
>
> 
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1502)
> at
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1458)
>
> 
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>
> 
at
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
> at java.lang.Thread.run(Thread.java:745)
> 
> Many thanks.

It looks like you have broken your Tomcat installation. Have you
overwritten any of the JAR file in Tomcat's lib/ directory?

- -chris
-BEGIN PGP SIGNATURE-
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJXOkBSAAoJEBzwKT+lPKRYdpsQAMC0atmwVXSLebw5q7hSsgru
ndyLNlLq0MO1WDCggdU+OgWQO/TPsijvoDKgiLpjehrn+T5dBfuAACoerzdtsRiB
BxF8wxAzFbAF51qxxkm4XrGWJqWPCzdG03+ULBeYzIFW+LszQvruS31r+xzjOPSs
e8sgAXJRcEyrkPb/l3bgiAoYoy+nbUVv+mlTQT31mG5YbsefZaquooHWzKlCXYdg
h8MNLYENX9Y5rbAll1KKQBgOHcUC2+j8yNYNPtOWiL++1ykOXL2aqvchZtB/uR5L
p6HrEpzPUKAmsttHOvSXswjky63pGoXr+HjBV9PxVV4QhV/FyCZVheFhse7++6NT
V6BwWX1XH/gHpfHu9JryiKd0+u8bChNrWds9fAMzoK20X11JZb8Yh7vx1EKtDe8k
eeAsQmjzRh0qPW/Dr2LTwFxhYANG3j5ZrUN4uStOHxXhtau/LsddN+jwmSjl1nP9
cz2heQ2nbIoblGAOj2oZH72Zeu6cR0mm0UPqfYvwXgykWyEi//YrB53Viic7+AR1
IKurQiEyDfJjLK2poCnI6PhrlHECdw3eMqtInK1dK1ZESXy7DDHjEnnei5nePqXb
M/e4ZvQXRhsIpVl6ip5MD2qhiGwZrLeC+/d7tmHMxhVMfj0mQPb71Z+MhXZ8NVL9
8+L4NxvuakTFdRk1CQdC
=HnYI
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat DS question

2016-05-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Pradeep,

On 5/16/16 5:13 PM, pradeep reddy wrote:
> Hello Christopher,
> 
> Let me post my thread dump here.
> 
> All  HTTP threads are in WAITING state.
> 
> "http-12453-346" daemon prio=10 tid=0x7fbd3061f800 nid=0x59d0
> in Object.wait() [0x7fbbe124f000] java.lang.Thread.State:
> WAITING (on object monitor) at java.lang.Object.wait(Native
> Method) at java.lang.Object.wait(Object.java:485) at
> org.apache.tomcat.dbcp.pool.impl.GenericObjectPool.borrowObject(Generi
cObjectPool.java:1104)
>
> 
- - locked <0x00072b18f320> (a
> org.apache.tomcat.dbcp.pool.impl.GenericObjectPool$Latch) at
> org.apache.tomcat.dbcp.dbcp.PoolingDataSource.getConnection(PoolingDat
aSource.java:106)
>
> 
at
org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSourc
e.java:1044)
> at
> org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider.g
etConnection(LocalDataSourceConnectionProvider.java:82)

Yep,
> 
that certainly looks like you are waiting for connections from
Tomcat's DBCP-based pool.

>  type="javax.sql.DataSource"
> driverClassName="oracle.jdbc.OracleDriver" url="XXX" 
> username="XX" password="XX" initialSize="1" maxActive="10" 
> minIdle="1" maxIdle="1" connectionCachingEnabled="true"
> fastConnectionFailoverEnabled="true" 
> connectionCacheProperties="{MinLimit=1, MaxLimit=20,
> InitialLimit=1, oracle.net.ns.SQLnetDef.TCP_CONNTIMEOUT_STR=3000}" 
> ONSConfiguration="nodes=X" validationQuery="SELECT 1 from
> DUAL" removeAbandoned="true" removeAbandonedTimeout="30" 
> logAbandoned="true" maxWait="-1"/>

That configuration looks okay to me.

The "abandoned" logs are logged to stdout, so they should show up in
your catalina.out file (or stdout.log if you are using a Windows Service
).

Are you getting no messages about the abandoned connections?

- -chris
-BEGIN PGP SIGNATURE-
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJXOj/gAAoJEBzwKT+lPKRYFVQP/RJKOl0QoU8/qcgMBtdrqwbr
gddAEbqeDVT4nb8Bp/MWpWEoICBr75IGMgSir+qKASwTKXNsORceyxcSn+YxRJnK
POZgIZfwti4vLYMBr9jU1kdUsxCGriettcBZ8pkwJAAtyVX9O0lZiwEZuCp7WwA5
sbatkYHNtJQsjxQli1XA6NPNjQBS6y+WuQZQ0e/mf3CJUq9Rqa0uvsgAOK9XQTDB
HBNfhF1sjIFy2ro5Vb6OagRHB+9CBxc01gM8V2d37hrbqmUVpiE4pKqO2sWZ6cz5
yCwSBEcxyNKvDoeP2kz/1HGIhSwB7ifV1zkbhgZaB5eQZVZZubXVcdwgmRMswUgl
RtzqCPF6rOHkgccoe5IqZLb89pQITibz6G3xTAoHhcvh2m7bADAkoN9Jq88DxUqT
CqXEc/01A0AdC5zzqdGPToReLPEcaifLuAK0seGQsHIHAtOytYEY2E9rmoPtCrGp
J4AshEzNtmVT+WUc40FS1+KeabolYBk0biXZiZG/mkVEmKf1DpzPtsBGFfYvo3/i
0IAOS4zBvluQT1xaqNO6bFJ4fyfIwyWE26FBEPWRpsju2CEg/9+uXw6YM3xYxdkc
TmTTXqp4wvfE82fb2NMGQT3Av/q2fD4Yvzt7DiyHmWL0i0BlsnWBRdJD0dogKFRK
oVun2+a1tFD7lvJnVoiu
=AHDK
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat DS question

2016-05-16 Thread pradeep reddy
Hello Christopher,

 Let me post my thread dump here.

All  HTTP threads are in WAITING state.

"http-12453-346" daemon prio=10 tid=0x7fbd3061f800 nid=0x59d0 in
Object.wait() [0x7fbbe124f000]
   java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:485)
at 
org.apache.tomcat.dbcp.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1104)
- locked <0x00072b18f320> (a
org.apache.tomcat.dbcp.pool.impl.GenericObjectPool$Latch)
at 
org.apache.tomcat.dbcp.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
at 
org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
at 
org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider.getConnection(LocalDataSourceConnectionProvider.java:82)
at 
org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:446)
at 
org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:167)
at 
org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:161)
at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1577)
at org.hibernate.loader.Loader.doQuery(Loader.java:696)
at 
org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:259)
at org.hibernate.loader.Loader.doList(Loader.java:2232)
at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2129)
at org.hibernate.loader.Loader.list(Loader.java:2124)
at org.hibernate.loader.custom.CustomLoader.list(CustomLoader.java:312)
at org.hibernate.impl.SessionImpl.listCustomQuery(SessionImpl.java:1723)
at 
org.hibernate.impl.AbstractSessionImpl.list(AbstractSessionImpl.java:165)
at org.hibernate.impl.SQLQueryImpl.list(SQLQueryImpl.java:175)
at 
com.adobe_services.orderservice.persistence.dao.impl.StoreEmailDAOImpl.findPendingEmailOidsForOrderNumber(StoreEmailDAOImpl.java:237)
at 
com.adobe_services.orderservice.service.OrderServiceImpl.findPendingEmailOidsForOrderNumber_aroundBody4(OrderServiceImpl.java:670)
at 
com.adobe_services.orderservice.service.OrderServiceImpl.findPendingEmailOidsForOrderNumber_aroundBody5$advice(OrderServiceImpl.java:37)
at 
com.adobe_services.orderservice.service.OrderServiceImpl.findPendingEmailOidsForOrderNumber(OrderServiceImpl.java:1)
at sun.reflect.GeneratedMethodAccessor948.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at 
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
at 
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at 
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at 
org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at 
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy112.findPendingEmailOidsForOrderNumber(Unknown Source)
at sun.reflect.GeneratedMethodAccessor948.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at 
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
at 
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at 
org.springframework.orm.hibernate3.HibernateInterceptor.invoke(HibernateInterceptor.java:111)
at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at 
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy113.findPendingEmailOidsForOrderNumber(Unknown Source)
at sun.reflect.GeneratedMethodAccessor948.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at 

java.lang.NoSuchMethodError: org.apache.tomcat.util.buf.ByteChunk.findByte

2016-05-16 Thread Venkata Reddy P
Hi,

I am using tomcat8.0.33 with jre1.8u91,  I am getting the following errors. 
What I am doing wrong?
java.lang.NoSuchMethodError: 
org.apache.tomcat.util.buf.ByteChunk.findByte([BIIB)
java.lang.NoSuchMethodError: 
org.apache.catalina.connector.OutputBuffer.getContentWritten()J


SEVERE: Error processing request
java.lang.NoSuchMethodError: 
org.apache.tomcat.util.buf.ByteChunk.findByte([BIIB)I
at org.apache.tomcat.util.buf.UDecoder.convert(UDecoder.java:83)
at org.apache.tomcat.util.buf.UDecoder.convert(UDecoder.java:210)
at 
org.apache.catalina.connector.CoyoteAdapter.postParseRequest(CoyoteAdapter.java:821)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:517)
at 
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1095)
at 
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:672)
at 
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1502)
at 
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1458)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at 
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)

May 16, 2016 1:54:11 PM 
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler process
SEVERE: Error reading request, ignored
java.lang.NoSuchMethodError: 
org.apache.catalina.connector.OutputBuffer.getContentWritten()J
at 
org.apache.catalina.connector.Response.getContentWritten(Response.java:294)
at 
org.apache.catalina.connector.CoyoteAdapter.checkRecycled(CoyoteAdapter.java:704)
at 
org.apache.coyote.http11.AbstractHttp11Processor.recycle(AbstractHttp11Processor.java:1832)
at 
org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.release(Http11NioProtocol.java:218)
at 
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:771)
at 
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1502)
at 
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1458)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at 
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)

Many thanks.


Re: Tomcat DS question

2016-05-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Pradeep,

On 5/16/16 12:34 PM, pradeep reddy wrote:
> Hello Community, I have a weird issue, which I am not able to
> figure it out and needed some help. I am a Web Administrator and in
> my organization we use Tomcat + CXF to run our commerce services.
> 
> We are running on Tomcat-6.0.32 and jdk1.6.0_24, anyways we have
> recently started to see issues with our connection pool and from
> our monitoring tools its evident that we are running out of
> connections.  Now I have read some manuals on Apache Tomcat Page to
> use below three settings to fail gracefully and to Log those
> sessions which are either causing connection leak or abandoned
> 
> removeAbandoned - set to true if we want to detect leaked
> connections removeAbandonedTimeout logAbandoned="true"
> 
> 
> But unfortunately even after having configured those above three
> settings, I still see some sessions just hanging in and not
> releasing the connection and I need help in understanding what I am
> doing wrong.
> 
> My DS cnfiguration  auth="Container" type="javax.sql.DataSource"
> driverClassName="oracle.jdbc.OracleDriver" url="XXX" 
> username="XX" password="XX" initialSize="1" maxActive="10" 
> minIdle="1" maxIdle="1" connectionCachingEnabled="true"
> fastConnectionFailoverEnabled="true" 
> connectionCacheProperties="{MinLimit=1, MaxLimit=20,
> InitialLimit=1, oracle.net.ns.SQLnetDef.TCP_CONNTIMEOUT_STR=3000}" 
> ONSConfiguration="nodes=X" validationQuery="SELECT 1 from
> DUAL" removeAbandoned="true" removeAbandonedTimeout="30" 
> logAbandoned="true" maxWait="-1"/>

What do the stack traces look like or the hung threads?

- -chris
-BEGIN PGP SIGNATURE-
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJXOjC7AAoJEBzwKT+lPKRYl5oQAL+tSB6ZkBpMOqihbN79UHdG
LAKsRdenKPhphA2yjahoXIx9nWvSd03jsFy8uzJYe3ztyRkJGW4h7VAm37gAHkKl
sg/jtQzvtl4HYO6YI1v5OgljxR5GnK8CvGad5PhOg/s6/mLRZ9kfUdGgv6tCYHXe
lpoEOA8Em6tMaTwg1u07gXAqMEJyqg5QA3tYR3MU+0RALhNeVWgXNoEULol0FEil
PJVcAVN1WC6AX0qVa3JlXIK+PHHLDDZWLH7qrpo2nGVvcf/5oFf27N5AnnnarH87
RtOWHjWgK4APRVkEEOSX8Pef7YAb2dj6E+6fgf+3v117eEwYJlkLWU5pS/6Q3zWm
23obZllDks1clyYzs7C96zJukFb60wSRRGPdbHoSiKspH1J3/GavebaG7Sbg2ADB
DNLcWG0fd4FUmy+kbG+pPi3hdEdwOQ0c6kgaqH7ARDjdYtfVKV8kgCe6wpJlKx+k
WXfDK3cE2jWhUT/zx9VMutM+38gYk9G6ArUIZvOg5qdhcv6LvX299so3x8dEaL7w
D/NNz4+yTJGVfQMnJ4LTnZR+R6wCUdhpS0quSYo9ZJNpXGERo3NY0aV80g4S8MQJ
HObHoGDSUHDw4lScKCpIJYT7ZZ+Ok25fqyrlx+JN1fhsq7PcPtDQz/7FrRuhKEGa
z8kfsKuyduF8cW1gDj5h
=s/bM
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Windows Service won't launch

2016-05-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

All,

I'm upgrading a client's system from Tomcat 7 to Tomcat 8 as part of a
new release of our software. I've got Tomcat 8 installed using the
32-bit ZIP file, and the Windows Services have been re-created from
scratch using tomcat8w.exe. They are running 64-bit Windows but a
32-bit JVM.

When I try to launch the service, I get an error "Incorrect function"
in the event log, and the service does not start. I can launch Tomcat
from the command-line successfully, so this is not a problem with
Tomcat per se, nor my application. It's got to be a problem with my
configuration of the Windows Service.

I'm tempted to tell them "Install a 64-bit JVM" and use the 64-bit
service-runner, but I'd prefer to get it working before I tell them
they have to change everything ;)

Any suggestions for what to look for?

Thanks,
- -chris
-BEGIN PGP SIGNATURE-
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJXOizBAAoJEBzwKT+lPKRYNhkQAKeKijhlZXLjqe/wzk9bKB88
xGyFofi78uGtPI1fgznyjU0RifizVqY3EbuVvpycTCcxutRRhoIxI3HWuEq1ZCB8
nL7VSoA1gAG2d2+Bn/sWH7be6swkUNnUWH90HffdEZCPGMPg61S1EX00pmDDSJyK
UcXLzuPu8FvHdenuxkNFNqvcyjccTSjoZ0h6FF4L7XXxXbsuCosi4fpVabJ5yKq4
AWLlsh3Qwf5cUsneNhmVzMyBrOX/3fHEYixDdKPmcQM5BdaD9Rdfaq9ESH/JVjns
hy4wB/b4YKYWUZB+3iW1Ukav+zwYmRNdRQZdk2P6zQJ6zC8AgF4vHOI8vLsV2fB+
j4w2LmSi4pV8VIW1Sb5UzkPSeMp+r196H1/2PDE8JmXOGKpLXD8wgfY62erCJelF
+np6dTJd/OkTjjVcps3lF9b6bTpcokAu5xRXhjHrlxtq3H/77/ujfcvZ0qz2wlYx
EiG0ZgT8pe2yR4bntdoMIl2xGhBFyw4rmZgRLX9ClMwtMV516N5VTLzitQ7ll5Sf
5MjsYhdIH+Pc8fmUMGqjDiEGMURs2cE2nuIIrcFvDUkaaqYN0v3BegZNStp3Zatq
GjTnGO1ykXF/xi7WwsGc8DgrfpuRYLTAyl9fG13+/9Q2JIQ82xwyh0dIZ6CxB/ph
SHeeYTldIF9sab0F3B40
=BZgJ
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Unable to update or delete Windows Service

2016-05-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Chuck,

On 5/16/16 4:11 PM, Caldarale, Charles R wrote:
>> From: Christopher Schultz [mailto:ch...@christopherschultz.net] 
>> Subject: Unable to update or delete Windows Service
> 
>> I've got a Windows service called "foo" and I'm able to edit the 
>> configuration successfully by running the following command:
> 
>> C:\> %CATALINA_HOME%\bin\tomcat8w.exe //ES//foo
> 
>> But if I try to update the service from the command-line, or
>> update the service, I get an error "Error parsing command line"
>> with no further information.
> 
> Example of the command line that's failing?

Hah, that would have been good information, eh?

C:\> %CATALINA_HOME%\bin\tomcat8w.exe //DS/foo

I get a pop-up window with the message "Error parsing command line".
Same thing when running "//US//foo" with no additional arguments.

- -chris
-BEGIN PGP SIGNATURE-
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJXOivwAAoJEBzwKT+lPKRYzfIP/RsDQ6Mwq4AnS38BMXCoc9is
JS/M9Uid3e3RtYQvqFk4//KMwKVt6VJD/M6kcQsTY3PHBflazS4RZXjZNrVRyYz9
apzJeKHS82ntt+q+GjH1QpdhDBtkoC9oWWVEUIam094CJhByhZTExGrSsLLUhNMR
2QSepo79VCVw9wpSaTR5uS0b2zHrcTdh41JI7a0EWe/jJa9Z0yPi5eSGmgdKHMvJ
BtJIQyyOSxfghnim8dKvyMEAxUEpdvUiyj2VZ18wT6nan+1DgOVfo8A2auKXhh2P
nQXCQ5Giwuqgx5603CRmTBlsjpFFViMfA4B4p6NCx3H1UJSTQfTKihfO2tBPKu9z
E3vubAPMSe1qhK5OPa5LwT8FBbjiZ/EvUph7jtHT3u5QwHGJ8i7wfOc1007X3n2F
C5Hdy+fgmLdWWfHeDtdyyjotyMP9NYfZZkKBmmSpjkmpsyf+WPgeRgxoBlnH8kq3
GW9HJH1cauTQBBaiK5WshY9Uuz3ILtpKqbdbvrFkeTRUhNp1qvuBlw2CvRn58Stp
KZKBe1wlap6VhAU0MnthmHw9zRd5hojn0fELN9V0SnM7LdjbrdOAGklFdpBd/gV1
zfQxdIZ9grltbJI/zi7Lqk7fOCPV7AiBr29d93/iojD+P64fSUpieQ9z9/vTa2k9
rwtBb9pXR/7b+Ffmkqrm
=85KS
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Unable to update or delete Windows Service

2016-05-16 Thread Caldarale, Charles R
> From: Christopher Schultz [mailto:ch...@christopherschultz.net] 
> Subject: Unable to update or delete Windows Service

> I've got a Windows service called "foo" and I'm able to edit the
> configuration successfully by running the following command:

> C:\> %CATALINA_HOME%\bin\tomcat8w.exe //ES//foo

> But if I try to update the service from the command-line, or update
> the service, I get an error "Error parsing command line" with no
> further information.

Example of the command line that's failing?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Unable to update or delete Windows Service

2016-05-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

All,

I've got a Windows service called "foo" and I'm able to edit the
configuration successfully by running the following command:

C:\> %CATALINA_HOME%\bin\tomcat8w.exe //ES//foo

But if I try to update the service from the command-line, or update
the service, I get an error "Error parsing command line" with no
further information.

I've tried using quotes around the command-and-service-name argument,
and I've tried copying tomcat8w.exe to "foo.exe" to see if it could
work with the default, and it doesn't.

Oddly enough, the "service.bat remove foo" does work. So something is
wrong in the documentation or maybe I missed something. I have yet to
trace-through the service.bat file to see what is different.

Just a heads-up. This is with Tomcat 8.0.33 ZIP distro package, btw.

- -chris
-BEGIN PGP SIGNATURE-
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJXOicZAAoJEBzwKT+lPKRYxtcP/04HdvrDH6KOxFqGyOEoY+YV
fYl405bBNDuH8mlLyowWfnVb1A2kSe5/uU3cV/kbS5bVA55f3YRLzbT0e7bcZGz+
CXGfL6bVeGIDqhZ6CDdRWGjYEm+XKrPzUZiAeyH1b8I3DSDYJCaXbgkUzSPtItUT
aBcr5w/r6st3wJWY2c7dSeq+thCYKO/2G4Y6pQ0Hkd+c/zhL0JKvWtmlLlFBajLz
riq/fpiVLCxNZHfwfLxTSXxmTBLRelo94IqxL+oTrs9emhgUi2/iwgIQIiSxUkBi
Pvm2VzfuRA6udrIQ5lef0gQPDLv2oSLIiFA9S9iECx1fCsMzCg+Qf7kaxIUc6WOg
czUcduR8q+gKTtTGykj6W7i56p1Mc2ME9bK8+NiCcxfl52GzJEHus8tWEC6+z2V2
5n7ZfAZv2BJI3Xf5nyivFMeZwkktcXb1i7yaqth9TAz7RwnZBzKag6Rkle3AJQkn
SLtSnZqEdUEvn1XxOkzLueVyXdQvIYZAoNrDMVGUbnMWf/mBLinCg1BUhRsdiCO/
eJSoTpfDwzTrEdan2NMXr5cbRs3HasB2nOCWaxylpYCL+hM4a9EpnOR+YPx1Q7SP
3bwkDULNIXefcTF96Qx0yIZbqOkBQSsvNwm7IoOMav+k/cgjnNmcTuA7nr9yyV/j
4vZfDWc2ilhGPgyKTzHc
=WSo6
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: java.security.NoSuchAlgorithmException: SHA1PRNG SecureRandom not available

2016-05-16 Thread Venkata Reddy P
Awesome it works. I have tried with jre1.8.91 version and resolves the issue.

-Original Message-
From: Mark Thomas [mailto:ma...@apache.org] 
Sent: 17 May 2016 00:10
To: Tomcat Users List
Subject: Re: java.security.NoSuchAlgorithmException: SHA1PRNG SecureRandom not 
available

On 16/05/2016 19:30, Venkata Reddy P wrote:
> Hi,
> 
> I am deploying tomcat8.0.33 version with jre1.8u92.   could you please help 
> why I am getting this error?

Broken JRE install? SHA1PRNG is a standard name so all Java 8 JREs should 
support it.

Mark

> 
> INFO: Starting Servlet Engine: Apache Tomcat/8.0.33 May 16, 2016 
> 11:03:16 AM org.apache.catalina.util.SessionIdGeneratorBase 
> createSecureRandom
> SEVERE: Exception initializing random number generator using algorithm 
> [SHA1PRNG]
> java.security.NoSuchAlgorithmException: SHA1PRNG SecureRandom not available
> at sun.security.jca.GetInstance.getInstance(Unknown Source)
> at java.security.SecureRandom.getInstance(Unknown Source)
> at 
> org.apache.catalina.util.SessionIdGeneratorBase.createSecureRandom(SessionIdGeneratorBase.java:210)
> at 
> org.apache.catalina.util.SessionIdGeneratorBase.getRandomBytes(SessionIdGeneratorBase.java:174)
> at 
> org.apache.catalina.util.StandardSessionIdGenerator.generateSessionId(StandardSessionIdGenerator.java:34)
> at 
> org.apache.catalina.util.SessionIdGeneratorBase.generateSessionId(SessionIdGeneratorBase.java:167)
> at 
> org.apache.catalina.util.SessionIdGeneratorBase.startInternal(SessionIdGeneratorBase.java:256)
> at 
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
> at 
> org.apache.catalina.session.ManagerBase.startInternal(ManagerBase.java:719)
> at 
> org.apache.catalina.session.StandardManager.startInternal(StandardManager.java:352)
> at 
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
> at 
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5268)
> at 
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
> at 
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1408)
> at 
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1398)
> at java.util.concurrent.FutureTask.run(Unknown Source)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
> at java.lang.Thread.run(Unknown Source)
> 
> Thanks in advance.
> 


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: java.security.NoSuchAlgorithmException: SHA1PRNG SecureRandom not available

2016-05-16 Thread Mark Thomas
On 16/05/2016 19:30, Venkata Reddy P wrote:
> Hi,
> 
> I am deploying tomcat8.0.33 version with jre1.8u92.   could you please help 
> why I am getting this error?

Broken JRE install? SHA1PRNG is a standard name so all Java 8 JREs
should support it.

Mark

> 
> INFO: Starting Servlet Engine: Apache Tomcat/8.0.33
> May 16, 2016 11:03:16 AM org.apache.catalina.util.SessionIdGeneratorBase 
> createSecureRandom
> SEVERE: Exception initializing random number generator using algorithm 
> [SHA1PRNG]
> java.security.NoSuchAlgorithmException: SHA1PRNG SecureRandom not available
> at sun.security.jca.GetInstance.getInstance(Unknown Source)
> at java.security.SecureRandom.getInstance(Unknown Source)
> at 
> org.apache.catalina.util.SessionIdGeneratorBase.createSecureRandom(SessionIdGeneratorBase.java:210)
> at 
> org.apache.catalina.util.SessionIdGeneratorBase.getRandomBytes(SessionIdGeneratorBase.java:174)
> at 
> org.apache.catalina.util.StandardSessionIdGenerator.generateSessionId(StandardSessionIdGenerator.java:34)
> at 
> org.apache.catalina.util.SessionIdGeneratorBase.generateSessionId(SessionIdGeneratorBase.java:167)
> at 
> org.apache.catalina.util.SessionIdGeneratorBase.startInternal(SessionIdGeneratorBase.java:256)
> at 
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
> at 
> org.apache.catalina.session.ManagerBase.startInternal(ManagerBase.java:719)
> at 
> org.apache.catalina.session.StandardManager.startInternal(StandardManager.java:352)
> at 
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
> at 
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5268)
> at 
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
> at 
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1408)
> at 
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1398)
> at java.util.concurrent.FutureTask.run(Unknown Source)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
> at java.lang.Thread.run(Unknown Source)
> 
> Thanks in advance.
> 


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



java.security.NoSuchAlgorithmException: SHA1PRNG SecureRandom not available

2016-05-16 Thread Venkata Reddy P
Hi,

I am deploying tomcat8.0.33 version with jre1.8u92.   could you please help why 
I am getting this error?

INFO: Starting Servlet Engine: Apache Tomcat/8.0.33
May 16, 2016 11:03:16 AM org.apache.catalina.util.SessionIdGeneratorBase 
createSecureRandom
SEVERE: Exception initializing random number generator using algorithm 
[SHA1PRNG]
java.security.NoSuchAlgorithmException: SHA1PRNG SecureRandom not available
at sun.security.jca.GetInstance.getInstance(Unknown Source)
at java.security.SecureRandom.getInstance(Unknown Source)
at 
org.apache.catalina.util.SessionIdGeneratorBase.createSecureRandom(SessionIdGeneratorBase.java:210)
at 
org.apache.catalina.util.SessionIdGeneratorBase.getRandomBytes(SessionIdGeneratorBase.java:174)
at 
org.apache.catalina.util.StandardSessionIdGenerator.generateSessionId(StandardSessionIdGenerator.java:34)
at 
org.apache.catalina.util.SessionIdGeneratorBase.generateSessionId(SessionIdGeneratorBase.java:167)
at 
org.apache.catalina.util.SessionIdGeneratorBase.startInternal(SessionIdGeneratorBase.java:256)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
at 
org.apache.catalina.session.ManagerBase.startInternal(ManagerBase.java:719)
at 
org.apache.catalina.session.StandardManager.startInternal(StandardManager.java:352)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
at 
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5268)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
at 
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1408)
at 
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1398)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

Thanks in advance.


Re: Failed to read schema document 'classpath:/schema/shibboleth-2.0-services.xsd'

2016-05-16 Thread Violeta Georgieva
2016-05-16 18:35 GMT+03:00 Hilbert, Colin :
>
>
>
> On 5/16/16, 10:49 AM, "Violeta Georgieva"  wrote:
>
> >2016-05-16 17:45 GMT+03:00 Hilbert, Colin :
> >>
> >> Hello,
> >>
> >> On 5/5/16, 3:55 PM, "Violeta Georgieva"  wrote:
> >>
> >> >Hi,
> >> >
> >> >
> >> >2016-05-05 20:51 GMT+03:00 Hilbert, Colin :
> >> >>
> >> >> Hi,
> >> >>
> >> >> On 5/5/16, 1:48 PM, "Hilbert, Colin" 
> >wrote:
> >> >>
> >> >> >Hello,
> >> >> >
> >> >> >Thank you for checking up on this.  In the meantime, is there a
> >> >>different
> >> >> >way you recommend I add these to the class path other than moving
> >>the
> >> >> >jars?
> >> >> >
> >> >> >Colin
> >> >> >
> >> >> >
> >> >> >On 4/27/16, 4:06 AM, "Violeta Georgieva" 
wrote:
> >> >> >
> >> >> >>Hi,
> >> >> >>
> >> >> >>
> >> >> >>2016-04-26 22:49 GMT+03:00 Hilbert, Colin
> >> >>:
> >> >> >>>
> >> >> >>> Tomcat version 7.0.69
> >> >> >>> Also happens on 7.0.68 and 7.0.67
> >> >> >>>
> >> >> >>> I don¹t get this error on 7.0.65
> >> >> >>>
> >> >> >>> I have deployed an idp.war on tomcat
> >> >> >>> The idp.war has a service.xml file that looks like this at the
> >> >> >>>beginning:
> >> >> >>>
> >> >> >>>
> >> >> >>>  >> >> >>>   xmlns:attribute-afp="urn:mace:shibboleth:2.0:afp"
> >> >> >>>
> >> >>
> >>
>
>xmlns:attribute-authority="urn:mace:shibboleth:2.0:attribute:authority
> >"
> >> >> >>>
> >> >>xmlns:attribute-resolver="urn:mace:shibboleth:2.0:resolver"
> >> >> >>>
> >> >>xmlns:profile="urn:mace:shibboleth:2.0:idp:profile-handler"
> >> >> >>>
> >xmlns:relyingParty="urn:mace:shibboleth:2.0:relying-party"
> >> >> >>>   xmlns:resource="urn:mace:shibboleth:2.0:resource"
> >> >> >>>   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;
> >> >> >>>   xsi:schemaLocation="urn:mace:shibboleth:2.0:services
> >> >> >>classpath:/schema/shibboleth-2.0-services.xsd
> >> >> >>>   urn:mace:shibboleth:2.0:afp
> >> >> >>classpath:/schema/shibboleth-2.0-afp.xsd
> >> >> >>>
> >> >> >>>urn:mace:shibboleth:2.0:attribute:authority
> >> >> >>classpath:/schema/shibboleth-2.0-attribute-authority.xsd
> >> >> >>>   urn:mace:shibboleth:2.0:resolver
> >> >> >>classpath:/schema/shibboleth-2.0-attribute-resolver.xsd
> >> >> >>>
> >> >> >>>urn:mace:shibboleth:2.0:idp:profile-handler
> >> >> >>classpath:/schema/shibboleth-2.0-idp-profile-handler.xsd
> >> >> >>>
> >>urn:mace:shibboleth:2.0:relying-party
> >> >> >>classpath:/schema/shibboleth-2.0-relying-party.xsd
> >> >> >>>   urn:mace:shibboleth:2.0:resource
> >> >> >>classpath:/schema/shibboleth-2.0-resource.xsd²>
> >> >> >>>
> >> >> >>> The stack complains that it cannot find the first schemaLocation
> >> >listed
> >> >> >>but if I go to the deployed idp folder in tomcat idp/WEB-INF/lib/
> >> >>there
> >> >> >>are
> >> >> >>jars there, one of which is shibboleth-common-1.2.1.jar
> >> >> >>>
> >> >> >>> Which has the path /schema/ containing all those listed
> >> >schemaLocations
> >> >> >>from the service.xml
> >> >> >>>
> >> >> >>> I can move all the jars from idp/WE-INF/lib/ to
tomcat7.0.69/lib/
> >> >>and
> >> >> >>>the
> >> >> >>exception goes away but I haven¹t had to do this prior to .67
> >> >> >>>
> >> >> >>> Can anyone shed some light on this?
> >> >> >>
> >> >> >>
> >> >> >>I think that this is related to the following feature [1].
> >> >> >>I'll check that.
> >> >> >>
> >> >> >>Regards,
> >> >> >>Violeta
> >> >> >>
> >> >> >>[1] https://bz.apache.org/bugzilla/show_bug.cgi?id=56777
> >> >> >
> >> >> >
> >> >>
> >>>-
> >> >> >To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> >> >> >For additional commands, e-mail: users-h...@tomcat.apache.org
> >> >> >
> >> >>
> >> >> Sorry for the top post.  I didn’t understand what I was doing.
> >> >
> >> >Please follow the discussion [1] on the dev list.
> >> >
> >> >Regards,
> >> >Violeta
> >> >
> >> >[1] http://marc.info/?t=14617548634=1=2
> >> >
> >> >> Colin.
> >> >>
> >>
> >> Is there a bugzilla ticket that I can follow on this?
> >
> >No there isn't.
> >You can open one and point to the mail thread.
> >
> >Regards,
> >Violeta
> >
> >> Colin
> >>
>
> How does one link the email thread in the ticket, would I just save this
> outlook message and attach it as a file or do I provide that link for the
> discussion you gave me previousy?


Use this http://marc.info/?t=14617548634=1=2


Regards,
Violeta


> Colin
>


Tomcat DS question

2016-05-16 Thread pradeep reddy
Hello Community,
 I have a weird issue, which I am not able to figure it out and needed
some help. I am a Web Administrator and in my organization we use Tomcat +
CXF to run our commerce services.

We are running on Tomcat-6.0.32 and jdk1.6.0_24, anyways we have recently
started to see issues with our connection pool and from our monitoring
tools its evident that we are running out of connections.  Now I have read
some manuals on Apache Tomcat Page to use below three settings to fail
gracefully and to Log those sessions which are either causing connection
leak or abandoned

removeAbandoned - set to true if we want to detect leaked connections
removeAbandonedTimeout
logAbandoned="true"


But unfortunately even after having configured those above three settings,
I still see some sessions just hanging in and not releasing the connection
and I need help in understanding what I am doing wrong.

My DS cnfiguration


Thanks
Pradeep


Re: Failed to read schema document 'classpath:/schema/shibboleth-2.0-services.xsd'

2016-05-16 Thread Hilbert, Colin


On 5/16/16, 10:49 AM, "Violeta Georgieva"  wrote:

>2016-05-16 17:45 GMT+03:00 Hilbert, Colin :
>>
>> Hello,
>>
>> On 5/5/16, 3:55 PM, "Violeta Georgieva"  wrote:
>>
>> >Hi,
>> >
>> >
>> >2016-05-05 20:51 GMT+03:00 Hilbert, Colin :
>> >>
>> >> Hi,
>> >>
>> >> On 5/5/16, 1:48 PM, "Hilbert, Colin" 
>wrote:
>> >>
>> >> >Hello,
>> >> >
>> >> >Thank you for checking up on this.  In the meantime, is there a
>> >>different
>> >> >way you recommend I add these to the class path other than moving
>>the
>> >> >jars?
>> >> >
>> >> >Colin
>> >> >
>> >> >
>> >> >On 4/27/16, 4:06 AM, "Violeta Georgieva"  wrote:
>> >> >
>> >> >>Hi,
>> >> >>
>> >> >>
>> >> >>2016-04-26 22:49 GMT+03:00 Hilbert, Colin
>> >>:
>> >> >>>
>> >> >>> Tomcat version 7.0.69
>> >> >>> Also happens on 7.0.68 and 7.0.67
>> >> >>>
>> >> >>> I don¹t get this error on 7.0.65
>> >> >>>
>> >> >>> I have deployed an idp.war on tomcat
>> >> >>> The idp.war has a service.xml file that looks like this at the
>> >> >>>beginning:
>> >> >>>
>> >> >>>
>> >> >>> > >> >>>   xmlns:attribute-afp="urn:mace:shibboleth:2.0:afp"
>> >> >>>
>> >>
>>
>xmlns:attribute-authority="urn:mace:shibboleth:2.0:attribute:authority
>"
>> >> >>>
>> >>xmlns:attribute-resolver="urn:mace:shibboleth:2.0:resolver"
>> >> >>>
>> >>xmlns:profile="urn:mace:shibboleth:2.0:idp:profile-handler"
>> >> >>>
>xmlns:relyingParty="urn:mace:shibboleth:2.0:relying-party"
>> >> >>>   xmlns:resource="urn:mace:shibboleth:2.0:resource"
>> >> >>>   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;
>> >> >>>   xsi:schemaLocation="urn:mace:shibboleth:2.0:services
>> >> >>classpath:/schema/shibboleth-2.0-services.xsd
>> >> >>>   urn:mace:shibboleth:2.0:afp
>> >> >>classpath:/schema/shibboleth-2.0-afp.xsd
>> >> >>>
>> >> >>>urn:mace:shibboleth:2.0:attribute:authority
>> >> >>classpath:/schema/shibboleth-2.0-attribute-authority.xsd
>> >> >>>   urn:mace:shibboleth:2.0:resolver
>> >> >>classpath:/schema/shibboleth-2.0-attribute-resolver.xsd
>> >> >>>
>> >> >>>urn:mace:shibboleth:2.0:idp:profile-handler
>> >> >>classpath:/schema/shibboleth-2.0-idp-profile-handler.xsd
>> >> >>>  
>>urn:mace:shibboleth:2.0:relying-party
>> >> >>classpath:/schema/shibboleth-2.0-relying-party.xsd
>> >> >>>   urn:mace:shibboleth:2.0:resource
>> >> >>classpath:/schema/shibboleth-2.0-resource.xsd²>
>> >> >>>
>> >> >>> The stack complains that it cannot find the first schemaLocation
>> >listed
>> >> >>but if I go to the deployed idp folder in tomcat idp/WEB-INF/lib/
>> >>there
>> >> >>are
>> >> >>jars there, one of which is shibboleth-common-1.2.1.jar
>> >> >>>
>> >> >>> Which has the path /schema/ containing all those listed
>> >schemaLocations
>> >> >>from the service.xml
>> >> >>>
>> >> >>> I can move all the jars from idp/WE-INF/lib/ to tomcat7.0.69/lib/
>> >>and
>> >> >>>the
>> >> >>exception goes away but I haven¹t had to do this prior to .67
>> >> >>>
>> >> >>> Can anyone shed some light on this?
>> >> >>
>> >> >>
>> >> >>I think that this is related to the following feature [1].
>> >> >>I'll check that.
>> >> >>
>> >> >>Regards,
>> >> >>Violeta
>> >> >>
>> >> >>[1] https://bz.apache.org/bugzilla/show_bug.cgi?id=56777
>> >> >
>> >> >
>> >> 
>>>-
>> >> >To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> >> >For additional commands, e-mail: users-h...@tomcat.apache.org
>> >> >
>> >>
>> >> Sorry for the top post.  I didn’t understand what I was doing.
>> >
>> >Please follow the discussion [1] on the dev list.
>> >
>> >Regards,
>> >Violeta
>> >
>> >[1] http://marc.info/?t=14617548634=1=2
>> >
>> >> Colin.
>> >>
>>
>> Is there a bugzilla ticket that I can follow on this?
>
>No there isn't.
>You can open one and point to the mail thread.
>
>Regards,
>Violeta
>
>> Colin
>>

How does one link the email thread in the ticket, would I just save this
outlook message and attach it as a file or do I provide that link for the
discussion you gave me previousy?

Colin



Re: Failed to read schema document 'classpath:/schema/shibboleth-2.0-services.xsd'

2016-05-16 Thread Violeta Georgieva
2016-05-16 17:45 GMT+03:00 Hilbert, Colin :
>
> Hello,
>
> On 5/5/16, 3:55 PM, "Violeta Georgieva"  wrote:
>
> >Hi,
> >
> >
> >2016-05-05 20:51 GMT+03:00 Hilbert, Colin :
> >>
> >> Hi,
> >>
> >> On 5/5/16, 1:48 PM, "Hilbert, Colin" 
wrote:
> >>
> >> >Hello,
> >> >
> >> >Thank you for checking up on this.  In the meantime, is there a
> >>different
> >> >way you recommend I add these to the class path other than moving the
> >> >jars?
> >> >
> >> >Colin
> >> >
> >> >
> >> >On 4/27/16, 4:06 AM, "Violeta Georgieva"  wrote:
> >> >
> >> >>Hi,
> >> >>
> >> >>
> >> >>2016-04-26 22:49 GMT+03:00 Hilbert, Colin
> >>:
> >> >>>
> >> >>> Tomcat version 7.0.69
> >> >>> Also happens on 7.0.68 and 7.0.67
> >> >>>
> >> >>> I don¹t get this error on 7.0.65
> >> >>>
> >> >>> I have deployed an idp.war on tomcat
> >> >>> The idp.war has a service.xml file that looks like this at the
> >> >>>beginning:
> >> >>>
> >> >>>
> >> >>>  >> >>>   xmlns:attribute-afp="urn:mace:shibboleth:2.0:afp"
> >> >>>
> >>
>
xmlns:attribute-authority="urn:mace:shibboleth:2.0:attribute:authority"
> >> >>>
> >>xmlns:attribute-resolver="urn:mace:shibboleth:2.0:resolver"
> >> >>>
> >>xmlns:profile="urn:mace:shibboleth:2.0:idp:profile-handler"
> >> >>>
xmlns:relyingParty="urn:mace:shibboleth:2.0:relying-party"
> >> >>>   xmlns:resource="urn:mace:shibboleth:2.0:resource"
> >> >>>   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;
> >> >>>   xsi:schemaLocation="urn:mace:shibboleth:2.0:services
> >> >>classpath:/schema/shibboleth-2.0-services.xsd
> >> >>>   urn:mace:shibboleth:2.0:afp
> >> >>classpath:/schema/shibboleth-2.0-afp.xsd
> >> >>>
> >> >>>urn:mace:shibboleth:2.0:attribute:authority
> >> >>classpath:/schema/shibboleth-2.0-attribute-authority.xsd
> >> >>>   urn:mace:shibboleth:2.0:resolver
> >> >>classpath:/schema/shibboleth-2.0-attribute-resolver.xsd
> >> >>>
> >> >>>urn:mace:shibboleth:2.0:idp:profile-handler
> >> >>classpath:/schema/shibboleth-2.0-idp-profile-handler.xsd
> >> >>>   urn:mace:shibboleth:2.0:relying-party
> >> >>classpath:/schema/shibboleth-2.0-relying-party.xsd
> >> >>>   urn:mace:shibboleth:2.0:resource
> >> >>classpath:/schema/shibboleth-2.0-resource.xsd²>
> >> >>>
> >> >>> The stack complains that it cannot find the first schemaLocation
> >listed
> >> >>but if I go to the deployed idp folder in tomcat idp/WEB-INF/lib/
> >>there
> >> >>are
> >> >>jars there, one of which is shibboleth-common-1.2.1.jar
> >> >>>
> >> >>> Which has the path /schema/ containing all those listed
> >schemaLocations
> >> >>from the service.xml
> >> >>>
> >> >>> I can move all the jars from idp/WE-INF/lib/ to tomcat7.0.69/lib/
> >>and
> >> >>>the
> >> >>exception goes away but I haven¹t had to do this prior to .67
> >> >>>
> >> >>> Can anyone shed some light on this?
> >> >>
> >> >>
> >> >>I think that this is related to the following feature [1].
> >> >>I'll check that.
> >> >>
> >> >>Regards,
> >> >>Violeta
> >> >>
> >> >>[1] https://bz.apache.org/bugzilla/show_bug.cgi?id=56777
> >> >
> >> >
> >> >-
> >> >To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> >> >For additional commands, e-mail: users-h...@tomcat.apache.org
> >> >
> >>
> >> Sorry for the top post.  I didn’t understand what I was doing.
> >
> >Please follow the discussion [1] on the dev list.
> >
> >Regards,
> >Violeta
> >
> >[1] http://marc.info/?t=14617548634=1=2
> >
> >> Colin.
> >>
>
> Is there a bugzilla ticket that I can follow on this?

No there isn't.
You can open one and point to the mail thread.

Regards,
Violeta

> Colin
>


Re: Failed to read schema document 'classpath:/schema/shibboleth-2.0-services.xsd'

2016-05-16 Thread Hilbert, Colin
Hello,

On 5/5/16, 3:55 PM, "Violeta Georgieva"  wrote:

>Hi,
>
>
>2016-05-05 20:51 GMT+03:00 Hilbert, Colin :
>>
>> Hi,
>>
>> On 5/5/16, 1:48 PM, "Hilbert, Colin"  wrote:
>>
>> >Hello,
>> >
>> >Thank you for checking up on this.  In the meantime, is there a
>>different
>> >way you recommend I add these to the class path other than moving the
>> >jars?
>> >
>> >Colin
>> >
>> >
>> >On 4/27/16, 4:06 AM, "Violeta Georgieva"  wrote:
>> >
>> >>Hi,
>> >>
>> >>
>> >>2016-04-26 22:49 GMT+03:00 Hilbert, Colin
>>:
>> >>>
>> >>> Tomcat version 7.0.69
>> >>> Also happens on 7.0.68 and 7.0.67
>> >>>
>> >>> I don¹t get this error on 7.0.65
>> >>>
>> >>> I have deployed an idp.war on tomcat
>> >>> The idp.war has a service.xml file that looks like this at the
>> >>>beginning:
>> >>>
>> >>>
>> >>> > >>>   xmlns:attribute-afp="urn:mace:shibboleth:2.0:afp"
>> >>>
>> 
xmlns:attribute-authority="urn:mace:shibboleth:2.0:attribute:authority"
>> >>>   
>>xmlns:attribute-resolver="urn:mace:shibboleth:2.0:resolver"
>> >>>   
>>xmlns:profile="urn:mace:shibboleth:2.0:idp:profile-handler"
>> >>>   xmlns:relyingParty="urn:mace:shibboleth:2.0:relying-party"
>> >>>   xmlns:resource="urn:mace:shibboleth:2.0:resource"
>> >>>   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;
>> >>>   xsi:schemaLocation="urn:mace:shibboleth:2.0:services
>> >>classpath:/schema/shibboleth-2.0-services.xsd
>> >>>   urn:mace:shibboleth:2.0:afp
>> >>classpath:/schema/shibboleth-2.0-afp.xsd
>> >>>
>> >>>urn:mace:shibboleth:2.0:attribute:authority
>> >>classpath:/schema/shibboleth-2.0-attribute-authority.xsd
>> >>>   urn:mace:shibboleth:2.0:resolver
>> >>classpath:/schema/shibboleth-2.0-attribute-resolver.xsd
>> >>>
>> >>>urn:mace:shibboleth:2.0:idp:profile-handler
>> >>classpath:/schema/shibboleth-2.0-idp-profile-handler.xsd
>> >>>   urn:mace:shibboleth:2.0:relying-party
>> >>classpath:/schema/shibboleth-2.0-relying-party.xsd
>> >>>   urn:mace:shibboleth:2.0:resource
>> >>classpath:/schema/shibboleth-2.0-resource.xsd²>
>> >>>
>> >>> The stack complains that it cannot find the first schemaLocation
>listed
>> >>but if I go to the deployed idp folder in tomcat idp/WEB-INF/lib/
>>there
>> >>are
>> >>jars there, one of which is shibboleth-common-1.2.1.jar
>> >>>
>> >>> Which has the path /schema/ containing all those listed
>schemaLocations
>> >>from the service.xml
>> >>>
>> >>> I can move all the jars from idp/WE-INF/lib/ to tomcat7.0.69/lib/
>>and
>> >>>the
>> >>exception goes away but I haven¹t had to do this prior to .67
>> >>>
>> >>> Can anyone shed some light on this?
>> >>
>> >>
>> >>I think that this is related to the following feature [1].
>> >>I'll check that.
>> >>
>> >>Regards,
>> >>Violeta
>> >>
>> >>[1] https://bz.apache.org/bugzilla/show_bug.cgi?id=56777
>> >
>> >
>> >-
>> >To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> >For additional commands, e-mail: users-h...@tomcat.apache.org
>> >
>>
>> Sorry for the top post.  I didn’t understand what I was doing.
>
>Please follow the discussion [1] on the dev list.
>
>Regards,
>Violeta
>
>[1] http://marc.info/?t=14617548634=1=2
>
>> Colin.
>>

Is there a bugzilla ticket that I can follow on this?

Colin



Re: tomcat6.0.43 ajp connector migration to tomcat8.0.33

2016-05-16 Thread Mark Thomas
On 16/05/2016 12:46, Venkata Reddy P wrote:
> Many Thanks Again. Can you point me the ajp documentation to understand 
> different protocol(BIO, NIO,APR,..) implementations?

The AJP implementation is the same for all of them. All the individual
implementations do is plug in the appropriate Endpoint. You may want to
take a look at the various Endpoint implementations in
org.apache.tomcat.util.net

Mark


> 
> -Original Message-
> From: Mark Thomas [mailto:ma...@apache.org] 
> Sent: Monday, May 16, 2016 5:13 PM
> To: Tomcat Users List
> Subject: Re: tomcat6.0.43 ajp connector migration to tomcat8.0.33
> 
> On 16/05/2016 07:25, Venkata Reddy P wrote:
>> Hi,
>>
>>
>>
>> Many Thanks Mark. This is a more of POC release planned for jun-1st week, 
>> will give a try with the existing stable release and thanks for suggesting 
>> the 8.5.x.
>>
>>
>>
>> 1)  As you said, I can see AjpProtocol class as the BIO connector. If I 
>> create a customized class SslEnabledBioAjpProtocol extends AjpProtocol, then 
>>  is the below configuration correct?
>>
>> > protocol="org.apache.coyote.ajp.SslEnabledBioAjpProtocol" 
>> redirectPort="8443" />
> 
> BIO support has been removed in 8.5.x. I suggest you base your implementation 
> on the NIO connector.
> 
> protocol is the correct attribute to use to configure it.
> 
> 
>> 2) In tomcat6, there http connector attribute to define the customized 
>> classname using attribute "sSLImplementation".
>>
>> >
>> sSLImplementation=" 
>> org.apache.tomcat.util.net.jsse.Tomcat6SSLImplementation"
>>
>> scheme="https" secure="true" />
>>
>> is it a still valid attribute in tomcat7.x/tomcat8.x?
> 
> It still exists but you should not need to set it unless you are using some 
> form of custom TLS implementation. Also, I suspect the API for such a class 
> is version specific.
> 
> Mark
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: tomcat6.0.43 ajp connector migration to tomcat8.0.33

2016-05-16 Thread Venkata Reddy P
Many Thanks Again. Can you point me the ajp documentation to understand 
different protocol(BIO, NIO,APR,..) implementations?

-Original Message-
From: Mark Thomas [mailto:ma...@apache.org] 
Sent: Monday, May 16, 2016 5:13 PM
To: Tomcat Users List
Subject: Re: tomcat6.0.43 ajp connector migration to tomcat8.0.33

On 16/05/2016 07:25, Venkata Reddy P wrote:
> Hi,
> 
> 
> 
> Many Thanks Mark. This is a more of POC release planned for jun-1st week, 
> will give a try with the existing stable release and thanks for suggesting 
> the 8.5.x.
> 
> 
> 
> 1)  As you said, I can see AjpProtocol class as the BIO connector. If I 
> create a customized class SslEnabledBioAjpProtocol extends AjpProtocol, then  
> is the below configuration correct?
> 
>  protocol="org.apache.coyote.ajp.SslEnabledBioAjpProtocol" 
> redirectPort="8443" />

BIO support has been removed in 8.5.x. I suggest you base your implementation 
on the NIO connector.

protocol is the correct attribute to use to configure it.


> 2) In tomcat6, there http connector attribute to define the customized 
> classname using attribute "sSLImplementation".
> 
>  
> sSLImplementation=" 
> org.apache.tomcat.util.net.jsse.Tomcat6SSLImplementation"
> 
> scheme="https" secure="true" />
> 
> is it a still valid attribute in tomcat7.x/tomcat8.x?

It still exists but you should not need to set it unless you are using some 
form of custom TLS implementation. Also, I suspect the API for such a class is 
version specific.

Mark


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: tomcat6.0.43 ajp connector migration to tomcat8.0.33

2016-05-16 Thread Mark Thomas
On 16/05/2016 07:25, Venkata Reddy P wrote:
> Hi,
> 
> 
> 
> Many Thanks Mark. This is a more of POC release planned for jun-1st week, 
> will give a try with the existing stable release and thanks for suggesting 
> the 8.5.x.
> 
> 
> 
> 1)  As you said, I can see AjpProtocol class as the BIO connector. If I 
> create a customized class SslEnabledBioAjpProtocol extends AjpProtocol, then  
> is the below configuration correct?
> 
>  protocol="org.apache.coyote.ajp.SslEnabledBioAjpProtocol" redirectPort="8443" 
> />

BIO support has been removed in 8.5.x. I suggest you base your
implementation on the NIO connector.

protocol is the correct attribute to use to configure it.


> 2) In tomcat6, there http connector attribute to define the customized 
> classname using attribute "sSLImplementation".
> 
>  
> sSLImplementation=" 
> org.apache.tomcat.util.net.jsse.Tomcat6SSLImplementation"
> 
> scheme="https" secure="true" />
> 
> is it a still valid attribute in tomcat7.x/tomcat8.x?

It still exists but you should not need to set it unless you are using
some form of custom TLS implementation. Also, I suspect the API for such
a class is version specific.

Mark


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Request for documentation

2016-05-16 Thread Mark Thomas
On 16/05/2016 10:40, Lyallex wrote:
> On 16 May 2016 at 07:49, Violeta Georgieva  wrote:
>> Hi,
>>
>> 2016-05-14 15:06 GMT+03:00 Lyallex :
>>>
>>> I'm trying to find some documentation that details the request lifecycle
>>> I've looked in the obvious places ... and some not so obvious ones
>>>
>>> That is: NOT the servlet lifecycle documentation, this is a different
>>> thing entirely.
>>>
>>> I need some documentation that details exactly what happens when the
>>> fist bit of a request arrives at the server all the way through to
>>> when the last bit of the response leaves the server. Does any such
>>> documentation exit?
>>
>> Check this one
>> http://tomcat.apache.org/tomcat-8.0-doc/architecture/requestProcess/request-process.png
> 
> 
> Excellent, a UML sequence diagram. By far the most useful UML model type..
> 
> Thanks, that's exactly what I was looking for.
> 
> +1 as they say on the trendy (but largely useless) web forums.

I think you'll find that the "+1" concept started at the ASF[1]. If you
look through the archives, particularly on the dev lists you'll find
quite a few of them along with some -1's, +0's, -0's and the occasional
fractional vote such as +0.5.

Mark

[1] https://www.apache.org/foundation/voting.html


> 
> lyallex
> 
> 
>>
>>
>> Regards,
>> Violeta
>>
>>> Presumably the version of Tomcat is important
>>>
>>> 7.0.42
>>>
>>>
>>> Thanks in advance
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>>
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: MIMEParsingException on JAX-WS with AJP

2016-05-16 Thread Ooura, Nobuhito
Mark

I tried 7.0.70 and 8.0.36.
(from source code from svn repository)
I confirmed that it no longer failed.

Thank you very much.

> -Original Message-
> From: Ooura, Nobuhito/大浦 順史
> Sent: Monday, May 16, 2016 1:22 PM
> To: Tomcat Users List
> Subject: RE: MIMEParsingException on JAX-WS with AJP
> 
> Mark
> 
> > The problem has been fixed for 7.0.x, 8.0.x, 8.5.x and 9.0.x and will
> > be included in 7.0.70, 8.0.36, 8.5.3 and 9.0.0.M7.
> 
> Thank you for your support.
> I try it.
> 
> Ooura
> 
> > -Original Message-
> > From: Mark Thomas [mailto:ma...@apache.org]
> > Sent: Friday, May 13, 2016 11:37 PM
> > To: Tomcat Users List
> > Subject: Re: MIMEParsingException on JAX-WS with AJP
> >
> > On 11/05/2016 02:43, Ooura, Nobuhito wrote:
> > > Mark and Christopher
> > >
> > > Thank you for your reply.
> > >
> > >> Are you using mod_jk or mod_proxy_ajp? What versions of everything on 
> > >> the httpd
> side?
> > >> Specifically, httpd itself as well as mod_jk (if you are using mod_jk, 
> > >> of course).
> > >
> > > I'm using httpd 2.2.15-47.el6.centos.4 and mod_proxy_ajp which are
> > > provided by CentOS
> > 6.7.
> > > It is latest package from updates repo.
> > > Except that I have added the following settings, httpd.conf is almost 
> > > default.
> > >
> > > 
> > > ProxyPass ajp://tomcat:8009/
> > > 
> > >
> > > The httpd and tomcat are separated hosts.
> > > There is no FW between httpd and tomcat.
> > > (same ip segment and iptables was disabled)
> > >
> > >>> What percentage fail?
> > >>
> > >> +1
> > >>
> > >> Also, do some succeed and then the failure appears to be fatal? Or,
> > >> do some requests succeed and others fail, but they are all mixed
> > >> together in time? Try running your test client 100 times to see
> > >> what the result is
> > for all 100 trials.
> > >
> > > 20 of 100 times failed.
> > > I tried 100 times from 1 client, so each request are serialized.
> > > The failure appears regularly. As follows, Success - Success -
> > > Success
> > > - Success - Failed ...
> > > If failed, client receives the status code 503.
> > >
> > >>> Can you provide a simple web application that demonstrates the
> > >>> problem?
> > >>
> > >> I think OP tried to do that:
> > >
> > > Yes.
> > > There are them as follows.
> > >
> >  Server program https://github.com/ooura/jaxws-mtom-sample-server
> >  Client program https://github.com/ooura/jaxws-mtom-sample-client
> >
> > Thanks for the report and the easy to use test case. I can confirm the
> > problem (with latest httpd 2.2.x release, mod_proxy_ajp and the latest
> > release of each supported Tomcat version).
> >
> > The problem has been fixed for 7.0.x, 8.0.x, 8.5.x and 9.0.x and will
> > be included in 7.0.70, 8.0.36, 8.5.3 and 9.0.0.M7.
> >
> > Mark
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> > For additional commands, e-mail: users-h...@tomcat.apache.org
> >


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Request for documentation

2016-05-16 Thread Venkata Reddy P
Hi,

Is it same for tomcat ajp request execution flow?

Thanks
Venkata
-Original Message-
From: Lyallex [mailto:lyal...@gmail.com] 
Sent: Monday, May 16, 2016 3:10 PM
To: Tomcat Users List
Subject: Re: Request for documentation

On 16 May 2016 at 07:49, Violeta Georgieva  wrote:
> Hi,
>
> 2016-05-14 15:06 GMT+03:00 Lyallex :
>>
>> I'm trying to find some documentation that details the request 
>> lifecycle I've looked in the obvious places ... and some not so 
>> obvious ones
>>
>> That is: NOT the servlet lifecycle documentation, this is a different 
>> thing entirely.
>>
>> I need some documentation that details exactly what happens when the 
>> fist bit of a request arrives at the server all the way through to 
>> when the last bit of the response leaves the server. Does any such 
>> documentation exit?
>
> Check this one
> http://tomcat.apache.org/tomcat-8.0-doc/architecture/requestProcess/re
> quest-process.png


Excellent, a UML sequence diagram. By far the most useful UML model type..

Thanks, that's exactly what I was looking for.

+1 as they say on the trendy (but largely useless) web forums.

lyallex


>
>
> Regards,
> Violeta
>
>> Presumably the version of Tomcat is important
>>
>> 7.0.42
>>
>>
>> Thanks in advance
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Request for documentation

2016-05-16 Thread Lyallex
On 16 May 2016 at 07:49, Violeta Georgieva  wrote:
> Hi,
>
> 2016-05-14 15:06 GMT+03:00 Lyallex :
>>
>> I'm trying to find some documentation that details the request lifecycle
>> I've looked in the obvious places ... and some not so obvious ones
>>
>> That is: NOT the servlet lifecycle documentation, this is a different
>> thing entirely.
>>
>> I need some documentation that details exactly what happens when the
>> fist bit of a request arrives at the server all the way through to
>> when the last bit of the response leaves the server. Does any such
>> documentation exit?
>
> Check this one
> http://tomcat.apache.org/tomcat-8.0-doc/architecture/requestProcess/request-process.png


Excellent, a UML sequence diagram. By far the most useful UML model type..

Thanks, that's exactly what I was looking for.

+1 as they say on the trendy (but largely useless) web forums.

lyallex


>
>
> Regards,
> Violeta
>
>> Presumably the version of Tomcat is important
>>
>> 7.0.42
>>
>>
>> Thanks in advance
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Enabling Tomcat to be FIPS compliant.

2016-05-16 Thread Violeta Georgieva
Hi,

2016-05-16 7:42 GMT+03:00 Nikitha Benny :
>
> Hello Everyone,
>
>
> I am using JRE 1.8.060 and tomcat 7.00.068 ,after enabling the FIPS mode
> and performing the steps to create a certificate(PKCS12 format). I was
able
> to access the tomcat home page using HTTPS
>
>
> But when I was using the same JRE 1.8.060 with tomcat 7.00.069 and then
> enabling the FIPS and performing the steps to create a certificate I am
> unable to access the tomcat home page using HTTPS.I got an error saying :
“This
> site can’t provide a secure connection,uses an unsupported protocol,
> ERR_SSL_VERSION_OR_CIPHER_MISMATCH”.
>
> Later I added Ciphers in server.xml.ovtemplate and try loading the page
> using Https and the page loaded successfully.
>
>
>
> May I know why I should add ciphers to server.xml.ovtemplate for tomcat
> 7.00.069 but not for 7.00.068 to open in HTTPS ?

Check Tomcat 7.0.69 changelog
http://tomcat.apache.org/tomcat-7.0-doc/changelog.html

Regards,
Violeta


Re: Request for documentation

2016-05-16 Thread Violeta Georgieva
Hi,

2016-05-14 15:06 GMT+03:00 Lyallex :
>
> I'm trying to find some documentation that details the request lifecycle
> I've looked in the obvious places ... and some not so obvious ones
>
> That is: NOT the servlet lifecycle documentation, this is a different
> thing entirely.
>
> I need some documentation that details exactly what happens when the
> fist bit of a request arrives at the server all the way through to
> when the last bit of the response leaves the server. Does any such
> documentation exit?

Check this one
http://tomcat.apache.org/tomcat-8.0-doc/architecture/requestProcess/request-process.png


Regards,
Violeta

> Presumably the version of Tomcat is important
>
> 7.0.42
>
>
> Thanks in advance
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>


RE: tomcat6.0.43 ajp connector migration to tomcat8.0.33

2016-05-16 Thread Venkata Reddy P
Hi,



Many Thanks Mark. This is a more of POC release planned for jun-1st week, will 
give a try with the existing stable release and thanks for suggesting the 8.5.x.



1)  As you said, I can see AjpProtocol class as the BIO connector. If I create 
a customized class SslEnabledBioAjpProtocol extends AjpProtocol, then  is the 
below configuration correct?





2) In tomcat6, there http connector attribute to define the customized 
classname using attribute "sSLImplementation".



is it a still valid attribute in tomcat7.x/tomcat8.x?



Thanks

Venkata



-Original Message-

From: Mark Thomas [mailto:ma...@apache.org]

Sent: 14 May 2016 00:04

To: Tomcat Users List

Subject: Re: tomcat6.0.43 ajp connector migration to tomcat8.0.33



On 13/05/2016 17:55, Venkata Reddy P wrote:

> Existing implementation:-

>

> In tomcat6.0.43 version, I have enabled the ssl on AJP connector by

> following the below steps

>

> 1) I did override the class "org.apache.jk.common.ChannelSocket" to 
> "AjpSslChannelSocket extends ChannelSocket "  to enable ssl on ajp port.



Tomcat does not support, and has never supported, AJP with TLS.

AjpSslChannelSocket must be a custom implementation.



> 2) This overridden "AjpSslChannelSocket" class I have configured in 
> server.xml file as below.

>

>  class.channelSocket=" org.apache.jk.common. AjpSslChannelSocket "

> enableLookups="false" maxThreads="150" port="8009"

> protocol="AJP/1.3" tomcatAuthentication="false"/>

>

> I believe, it is a AJP java connector(ChannelSocket) implementation which 
> comes with tomcat6.0.43.  am I correct?



No. See above.



> what kind of ajp connector implementation on class 
> “org.apache.jk.common.ChannelSocket” (APR,NIO,…)?



BIO.



> Migration to:-

>

> Currently I have to do the same on tomcat8.0.33 version to replicate the 
> above implemention to enable ssl on AJP port.



That isn't going to be possible unless you write some custom code.



> 1)  When I look at the tomcat8.0.33 source code, I don’t find any 
> “org.apache.jk” package.

>

> Did “org.apache.jk” replaced with any package?



Roughly, org.apache.coyote.ajp



> 2)  It looks like the ajp connector attribute (class.channelSocket) also 
> not available in tomcat8.0.33.

>

> Do we have any similar attribute to configure customized connector 
> implementation class?



protocol



> 3)  Finally  the class “ChannelSocket” is also missing in tomcat8.0.33.

>

> What class has to be customized in tomcat8.0.33 to enable ssl on ajp port 
> similar to above mentioned tomcat6.0.43 implementation?



Given that 8.0.x will be replaced by 8.5.x fairly soon (within 3-4 months I 
should think) and that their is a major refactoring of the connector code 
between 8.0.x and 8.5.x you should be looking at the 8.5.x code.



Look at the class hierarchy for AbstractAjpProtocol. You'll probably need to 
extend and override one of its sub-classes.



Mark





-

To unsubscribe, e-mail: 
users-unsubscr...@tomcat.apache.org

For additional commands, e-mail: 
users-h...@tomcat.apache.org