Tomcat 8 embedded - ERROR {org.apache.catalina.core.ContainerBase} - A child container failed during start

2015-03-06 Thread Thusitha Thilina Dayaratne
Hi All, I'm using tomcat embedded and when I try to star the server following error get occurred. I'm using tomcat 8.0.20 and jdk8 ERROR {org.apache.catalina.core.ContainerBase} - A child container failed during start java.util.concurrent.ExecutionException: org.apache.catalina.Lifecycle

Re: Is org.apache.naming.resources package have been removed in tomcat 8.0.20?

2015-03-06 Thread Thusitha Thilina Dayaratne
Hi Mark, I'm trying to bundle the tomcat as a OSGI bundle. While doing so, I've extended the DirContextURLStreamHandler class and overriding the method openConnection(URL u)as a public method. Then I'm registering my extended class as a service in the bundle context. Since *org.apache.naming.reso

Re: Potential IndexOutBounds in AbstractServletInputStream::readLine() ?

2015-03-06 Thread Oswaldo Olivo
I see. Thank you! -- Oswaldo. On Wed, Mar 4, 2015 at 4:21 PM, Caldarale, Charles R < chuck.caldar...@unisys.com> wrote: > > From: Oswaldo Olivo [mailto:ozzy...@gmail.com] > > Subject: Potential IndexOutBounds in > AbstractServletInputStream::readLine() ? > > > I was wondering if there is an unint

Re: How to force Tomcat to use the system clock?

2015-03-06 Thread Hassan Schroeder
On Fri, Mar 6, 2015 at 3:06 PM, Caldarale, Charles R wrote: > Don't be quite so sure about the JRE in this case. This is HP's own JVM, > derived from a Sun JVM specifically for HP UX on Itanium hardware. I don't > believe it's being actively developed anymore, but I know HP threw in a fair >

RE: How to force Tomcat to use the system clock?

2015-03-06 Thread Caldarale, Charles R
> From: Christopher Schultz [mailto:ch...@christopherschultz.net] > Subject: Re: How to force Tomcat to use the system clock? > Tomcat absolutely does not use any internal clock of its own. The JRE > almost certainly does not, either. Don't be quite so sure about the JRE in this case. This is H

Re: How to force Tomcat to use the system clock?

2015-03-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Richard, On 3/6/15 4:29 PM, Salisbury, Richard W DLA CTR INFORMATION OPERATIONS wrote: > We have found a need to stop and start Tomcat once in a while to > allow Tomcat to connect via HTTPS with some other servers. We > think the restart may be syn

RE: [tomcat-users] How to force Tomcat to use the system clock?

2015-03-06 Thread Jason Pyeron
> -Original Message- > From: Salisbury, Richard W DLA CTR INFORMATION OPERATIONS > Sent: Friday, March 06, 2015 16:29 > > Greetings, > > We have found a need to stop and start Tomcat once in a while to allow How long is a "while"? > Tomcat to connect via HTTPS with some other servers.

How to force Tomcat to use the system clock?

2015-03-06 Thread Salisbury, Richard W DLA CTR INFORMATION OPERATIONS
Greetings, We have found a need to stop and start Tomcat once in a while to allow Tomcat to connect via HTTPS with some other servers. We think the restart may be synchronizing the time Tomcat uses with the server OS system time, and we are looking for ways to prevent having to stop/start Tomcat.

Re: Tomcats warning message about APR library

2015-03-06 Thread Emir Ibrahimbegovic
Thanks Neven for your answer and the steps (Hvala puno!). Thanks everyone for your answers. @Christopher Schultz Both their answers were more than helpful, and I learned something new. No offense but your reply was kind of unnecessary, just because I learned nothing new. Thanks again guys! On F

Re: Tomcats warning message about APR library

2015-03-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Neven, On 3/6/15 8:13 AM, Neven Cvetkovic wrote: > Emir, > > The actual list of steps is at the link you mentioned earlier: > http://tomcat.apache.org/native-doc/ > > On Fri, Mar 6, 2015 at 7:30 AM, Neven Cvetkovic > wrote: > >> >> Let us know

Re: Connection leak Tomcat7 and Oracle

2015-03-06 Thread Red
On 02/27/2015 11:59 AM, Christopher Schultz wrote: > Red, > > On 2/27/15 11:04 AM, Red wrote: > > On 02/27/2015 06:58 AM, Антон Мацюк wrote: > >> 2015-02-27 1:36 GMT+02:00 Mark Thomas : > >>> On 26/02/2015 22:56, Christopher Schultz wrote: > >>> > The solution is to put your into your >

Tomcat Maven Plugin - Tomcat 8 support?

2015-03-06 Thread Timothy Astle
Hi all, I was wondering what the status of the Tomcat MavenPlugin wasand if the current plan is to have the next release support Tomcat 8? Tim

Re: Is org.apache.naming.resources package have been removed in tomcat 8.0.20?

2015-03-06 Thread Mark Thomas
On 06/03/2015 10:53, Thusitha Thilina Dayaratne wrote: > Hi, > > Is there an alternative method from some other class that I can use instead > of removed *protected URLConnection openConnection(URL u) *in Tomcat 8? I'll ask again. What are you trying to do? Read this: http://xyproblem.info/ befo

Re: Tomcats warning message about APR library

2015-03-06 Thread Neven Cvetkovic
Emir, The actual list of steps is at the link you mentioned earlier: http://tomcat.apache.org/native-doc/ On Fri, Mar 6, 2015 at 7:30 AM, Neven Cvetkovic wrote: > > Let us know if you need help compiling the native Tomcat connectors > (APR-based). > > There might be others that want to compile

Re: Tomcats warning message about APR library

2015-03-06 Thread Neven Cvetkovic
Hey Emir, I've done a little test on my Ubuntu VM. Read below my additional comments: On Fri, Mar 6, 2015 at 5:41 AM, Neven Cvetkovic wrote: > > You have two choices: > > 1) Find a specific package that includes the required packages, e.g. > apt-get install libapr1 libapr1-dev > apt-get install

Re: Tomcats warning message about APR library

2015-03-06 Thread Neven Cvetkovic
Thanks Konstantin for the clarification! On Fri, Mar 6, 2015 at 5:41 AM, Neven Cvetkovic wrote: > > It's exactly what the message says - the APR shared libraries are not > found on the java.library.path. > > I stand corrected: the message notifies that (APR-based) Tomcat Native library is not av

Re: Tomcats warning message about APR library

2015-03-06 Thread Konstantin Kolinko
2015-03-06 13:41 GMT+03:00 Neven Cvetkovic : > Hey Emir, > > On Thu, Mar 5, 2015 at 2:18 PM, Emir Ibrahimbegovic > wrote: > >> I've got this message when starting a tomcat server : >> >> org.apache.catalina.core.AprLifecycleListener.lifecycleEvent The APR >> based Apache Tomcat Native library whic

Re: Is org.apache.naming.resources package have been removed in tomcat 8.0.20?

2015-03-06 Thread Thusitha Thilina Dayaratne
Hi, Is there an alternative method from some other class that I can use instead of removed *protected URLConnection openConnection(URL u) *in Tomcat 8? Thanks Regards /Thusitha On Fri, Mar 6, 2015 at 2:57 PM, Thusitha Thilina Dayaratne < thusit...@wso2.com> wrote: > Hi Mark, > > Thanks for your

Re: Tomcats warning message about APR library

2015-03-06 Thread Neven Cvetkovic
Hey Emir, On Thu, Mar 5, 2015 at 2:18 PM, Emir Ibrahimbegovic wrote: > I've got this message when starting a tomcat server : > > org.apache.catalina.core.AprLifecycleListener.lifecycleEvent The APR > based Apache Tomcat Native library which allows optimal performance in > production environments

Re: Is org.apache.naming.resources package have been removed in tomcat 8.0.20?

2015-03-06 Thread Thusitha Thilina Dayaratne
Hi Mark, Thanks for your quick response. I'm extending that class and overriding the method openConnection(URL u)as a public method. So I can use it from somewhere else. Thanks Best Regards /Thusitha On Fri, Mar 6, 2015 at 2:53 PM, Mark Thomas wrote: > On 06/03/2015 09:15, Thusitha Thilina Day

Re: Is org.apache.naming.resources package have been removed in tomcat 8.0.20?

2015-03-06 Thread Mark Thomas
On 06/03/2015 09:15, Thusitha Thilina Dayaratne wrote: > Hi All, > > I'm working on migrating embedded tomcat 7 project to latest release of > *tomcat > 8.0.20* When compiling the project, I'm getting compilation errors saying > that *org.apache.naming.resources* package can't be found. (I'm usin

Is org.apache.naming.resources package have been removed in tomcat 8.0.20?

2015-03-06 Thread Thusitha Thilina Dayaratne
Hi All, I'm working on migrating embedded tomcat 7 project to latest release of *tomcat 8.0.20* When compiling the project, I'm getting compilation errors saying that *org.apache.naming.resources* package can't be found. (I'm using *DirContextURLStreamHandler* which was resided in above package in