Re: [E] RE: Tomcat 8.5.23

2018-02-15 Thread Bauer, Margaret M (Peggy)
I am not using 8.5, but in older tomcat you must set the below in the
server.xml




On Thu, Feb 15, 2018 at 1:25 PM, Lawrence Lim 
wrote:

> Red Hat Enterprise Linux Server release 6.9 (Santiago)
>
> Yes. I did check the logs. It does not log anything when I deploy. But, it
> logs something when I undeploy.
>
> Lawrence Lim
> Software Developer
> -
>
> ENBRIDGE
> TEL: 780-969-6208
> 10175 101 St NW,  Edmonton, Alberta T5J 0H3
>
> enbridge.com
> Integrity. Safety. Respect.
>
> -Original Message-
> From: Satish Chhatpar 02 [mailto:chhatp...@cpwplc.com]
> Sent: Thursday, February 15, 2018 10:58 AM
> To: users@tomcat.apache.org
> Subject: [External] Re: Tomcat 8.5.23
>
> Which operating system?
> Did you check the logs?
>
> Sent using OWA for iPhone
> 
> From: Lawrence Lim 
> Sent: Thursday, February 15, 2018 11:09:54 PM
> To: users@tomcat.apache.org
> Subject: Tomcat 8.5.23
>
> Hi,
>
>
>
> I just installed tomcat 8.5.23. I am having problems deploying web apps
> via manager. To reproduce:
>
>
>
> 1.   Login to tomcat manager
>
>
>
> 2.   Go to " WAR file to deploy"
>
>
>
> 3.   Pick a war file
>
>
>
>
>
> Error message: FAIL - File upload failed, no file
>
>
>
>
>
> Workaround: Copy war file to the tomcat webapps directory
>
>
>
>
>
> I also tried using localhost:8080, same result. So, it's not some weird
> networking constraint.
>
>
> Lawrence Lim
> Software Developer
> -
>
> ENBRIDGE
> TEL: 780-969-6208
> 10175 101 St NW,  Edmonton, Alberta T5J 0H3
>
> enbridge.com
> Integrity. Safety. Respect.
>
> ::DISCLAIMER::
> 
> 
> Confidentiality Notice from Dixons Carphone plc (registered in England &
> Wales No.07105905) of 1 Portal Way, London, W3 6RS ("Dixons Carphone"). The
> information contained in this e-mail and any attachments may be legally
> privileged, proprietary and/or confidential. If you received this e-mail in
> error, please notify the sender by return, permanently delete the e-mail
> and destroy all hard copies immediately. No warranty is made as to the
> completeness or accuracy of the information contained in this e-mail.
> Opinions, conclusions and statements of intent in this e-mail are those of
> the sender and will not bind any Dixons Carphone group company (Dixons
> Carphone Group) unless confirmed by an authorised representative
> independently of this e-mail. We do not accept responsibility for viruses;
> you must scan for these. E-mails sent to and from Dixons Carphone Group are
> routinely monitored for record keeping, quality control, training purposes,
> to ensure regulatory compliance and to prevent viruses and unauthorised use
> of our computer systems. The Carphone Warehouse Limited (registered in
> England & Wales No.02142673) is a member of the Dixons Carphone Group and
> is authorised and regulated by the Financial Conduct Authority.
> 
> 
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


-- 
*Peggy Bauer*
CAO Production Support
214-770-1782


asgard tomcat application 404

2018-02-15 Thread Tim Dunphy
I'm trying to get Netflix Asgard tomcat app working. I'm using tomcat 9.
I'm using windows.

I can load up the tomcat management and other interfaces no problem.

But when I navigate to /asgard I get a 404 error:

HTTP Status 404 – Not Found
Type Status Report

Message /asgard/

Description The origin server did not find a current representation for
the target resource or is not willing to disclose that one exists.

Apache Tomcat/9.0.5

I have JAVA_HOME set to C:\Program Files\Java\jdk1.8.0_162

I placed the asgard.war file in the tomcat\webapps directory.

This is what I have in my catalina logs:

15-Feb-2018 15:59:30.048 INFO [main]
org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned
for TLDs yet contained no TLDs. Enable debug logging for this logger for a
complete list of JARs that were scanned but no TLDs were found in them.
Skipping unneeded JARs during scanning can improve startup time and JSP
compilation time.
15-Feb-2018 15:59:33.402 SEVERE [main]
org.apache.catalina.core.StandardContext.startInternal One or more
listeners failed to start. Full details will be found in the appropriate
container log file
15-Feb-2018 15:59:33.404 SEVERE [main]
org.apache.catalina.core.StandardContext.startInternal Context [/asgard]
startup failed due to previous errors

I have this in the asgard.log file:



   [2018-02-15 15:59:33,389] [main]
springframework.web.context.ContextLoaderContext initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'pluginManager' defined in ServletContext resource
[/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested
exception is java.lang.NullPointerException: Cannot invoke method getAt()
on null object
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at
java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:112)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at
java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)
Caused by: java.lang.NullPointerException: Cannot invoke method getAt()
on null object
... 5 more
[2018-02-15 15:59:33,397] [main]
grails.web.context.GrailsContextLoaderError initializing the
application: Error creating bean with name 'pluginManager' defined in
ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of
init method failed; nested exception is java.lang.NullPointerException:
Cannot invoke method getAt() on null object
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'pluginManager' defined in ServletContext resource
[/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested
exception is java.lang.NullPointerException: Cannot invoke method getAt()
on null object
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at
java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:112)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at
java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)
Caused by: java.lang.NullPointerException: Cannot invoke method getAt()
on null object
... 5 more
[2018-02-15 15:59:33,401] [main]
grails.web.context.GrailsContextLoaderError initializing Grails: Error
creating bean with name 'pluginManager' defined in ServletContext resource
[/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested
exception is java.lang.NullPointerException: Cannot invoke method getAt()
on null object
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'pluginManager' defined in ServletContext resource
[/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested
exception is java.lang.NullPointerException: Cannot invoke method getAt()
on null object
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at
java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:112)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at
java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)
Caused by: java.lang.NullPointerException: Cannot invoke method getAt()
on null object

And this is what I have in the localhost log:

15-Feb-2018 15:59:30.077 INFO [main]
org.apache.catalina.core.ApplicationContext.log No Spring
WebApplicationInitializer types detected on classpath
15-Feb-2018 15:59:31.319 INFO [main]
org.apache.catalina.core.ApplicationContext.log Initializing Spring root
WebApplicationContext
15-Feb-2018 15:59:33.402 SEVERE [main]

RE: Tomcat 8.5.23

2018-02-15 Thread Lawrence Lim
Red Hat Enterprise Linux Server release 6.9 (Santiago)

Yes. I did check the logs. It does not log anything when I deploy. But, it logs 
something when I undeploy. 

Lawrence Lim  
Software Developer
-

ENBRIDGE
TEL: 780-969-6208
10175 101 St NW,  Edmonton, Alberta T5J 0H3

enbridge.com
Integrity. Safety. Respect.

-Original Message-
From: Satish Chhatpar 02 [mailto:chhatp...@cpwplc.com] 
Sent: Thursday, February 15, 2018 10:58 AM
To: users@tomcat.apache.org
Subject: [External] Re: Tomcat 8.5.23

Which operating system?
Did you check the logs?

Sent using OWA for iPhone

From: Lawrence Lim 
Sent: Thursday, February 15, 2018 11:09:54 PM
To: users@tomcat.apache.org
Subject: Tomcat 8.5.23

Hi,



I just installed tomcat 8.5.23. I am having problems deploying web apps via 
manager. To reproduce:



1.   Login to tomcat manager



2.   Go to " WAR file to deploy"



3.   Pick a war file





Error message: FAIL - File upload failed, no file





Workaround: Copy war file to the tomcat webapps directory





I also tried using localhost:8080, same result. So, it's not some weird 
networking constraint.


Lawrence Lim
Software Developer
-

ENBRIDGE
TEL: 780-969-6208
10175 101 St NW,  Edmonton, Alberta T5J 0H3

enbridge.com
Integrity. Safety. Respect.

::DISCLAIMER::

Confidentiality Notice from Dixons Carphone plc (registered in England & Wales 
No.07105905) of 1 Portal Way, London, W3 6RS ("Dixons Carphone"). The 
information contained in this e-mail and any attachments may be legally 
privileged, proprietary and/or confidential. If you received this e-mail in 
error, please notify the sender by return, permanently delete the e-mail and 
destroy all hard copies immediately. No warranty is made as to the completeness 
or accuracy of the information contained in this e-mail. Opinions, conclusions 
and statements of intent in this e-mail are those of the sender and will not 
bind any Dixons Carphone group company (Dixons Carphone Group) unless confirmed 
by an authorised representative independently of this e-mail. We do not accept 
responsibility for viruses; you must scan for these. E-mails sent to and from 
Dixons Carphone Group are routinely monitored for record keeping, quality 
control, training purposes, to ensure regulatory compliance and to prevent 
viruses and unauthorised use of our computer systems. The Carphone Warehouse 
Limited (registered in England & Wales No.02142673) is a member of the Dixons 
Carphone Group and is authorised and regulated by the Financial Conduct 
Authority.


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



Re: Tomcat 8.5.23

2018-02-15 Thread Satish Chhatpar 02
Which operating system?
Did you check the logs?

Sent using OWA for iPhone

From: Lawrence Lim 
Sent: Thursday, February 15, 2018 11:09:54 PM
To: users@tomcat.apache.org
Subject: Tomcat 8.5.23

Hi,



I just installed tomcat 8.5.23. I am having problems deploying web apps via 
manager. To reproduce:



1.   Login to tomcat manager



2.   Go to " WAR file to deploy"



3.   Pick a war file





Error message: FAIL - File upload failed, no file





Workaround: Copy war file to the tomcat webapps directory





I also tried using localhost:8080, same result. So, it's not some weird 
networking constraint.


Lawrence Lim
Software Developer
-

ENBRIDGE
TEL: 780-969-6208
10175 101 St NW,  Edmonton, Alberta T5J 0H3

enbridge.com
Integrity. Safety. Respect.

::DISCLAIMER::

Confidentiality Notice from Dixons Carphone plc (registered in England & Wales 
No.07105905) of 1 Portal Way, London, W3 6RS ("Dixons Carphone"). The 
information contained in this e-mail and any attachments may be legally 
privileged, proprietary and/or confidential. If you received this e-mail in 
error, please notify the sender by return, permanently delete the e-mail and 
destroy all hard copies immediately. No warranty is made as to the completeness 
or accuracy of the information contained in this e-mail. Opinions, conclusions 
and statements of intent in this e-mail are those of the sender and will not 
bind any Dixons Carphone group company (Dixons Carphone Group) unless confirmed 
by an authorised representative independently of this e-mail. We do not accept 
responsibility for viruses; you must scan for these. E-mails sent to and from 
Dixons Carphone Group are routinely monitored for record keeping, quality 
control, training purposes, to ensure regulatory compliance and to prevent 
viruses and unauthorised use of our computer systems. The Carphone Warehouse 
Limited (registered in England & Wales No.02142673) is a member of the Dixons 
Carphone Group and is authorised and regulated by the Financial Conduct 
Authority.



Tomcat 8.5.23

2018-02-15 Thread Lawrence Lim
Hi,



I just installed tomcat 8.5.23. I am having problems deploying web apps via 
manager. To reproduce:



1.   Login to tomcat manager



2.   Go to " WAR file to deploy"



3.   Pick a war file





Error message: FAIL - File upload failed, no file





Workaround: Copy war file to the tomcat webapps directory





I also tried using localhost:8080, same result. So, it's not some weird 
networking constraint.


Lawrence Lim
Software Developer
-

ENBRIDGE
TEL: 780-969-6208
10175 101 St NW,  Edmonton, Alberta T5J 0H3

enbridge.com
Integrity. Safety. Respect.



Re: OOM Issues with Tomcat/8.5.20 and JRE/1.8.0_144-b01

2018-02-15 Thread Coty Sutherland
On Thu, Feb 15, 2018 at 10:02 AM, Kanduri, Rakesh Kumar X. -ND
 wrote:
> Hi All,
>
> We are facing Out Of Memory issue in our Tomcat Server v8.5.20 as shown in 
> the below logs.
> Note: Though the error message says insufficient memory, we checked for the 
> available physical memory on the server and there is sufficient amount of 
> free memory available at the time of this Error.
> The same set of applications are working fine without any issues on 
> TC/7.0.35.B.RELEASE; JRE/1.7.0_17-b02
> Hence any insights and recommendations to fix this issue will be very 
> helpful. Thank you.
>
> Error:
> Exception in thread "JMX server connection timeout 16183" Hibernate: update 
> ONAIRAUTOMATION.IMAGINE_SCHEDULES_AUDIT_TBL set TIME_STARTED=?, TIME_ENDED=?, 
> FILENAME=?, SCHEDULES_COUNT=?, SCHEDULE_ELEMENTS_COUNT=?, AS_RUN_COUNT=?, 
> STATUS=?, ERROR_MESSAGE=? where AUDIT_ID=?
> java.lang.OutOfMemoryError: Metaspace
> Exception in thread "RMI TCP Connection(idle)" java.lang.OutOfMemoryError: 
> Metaspace

You're running out of space in the JVM's Metaspace region (where class
metadata is stored), not system memory.  Metaspace is roughly
equivalent to PermGen from Java 7 and prior versions. The exception
means that you have more classes being loaded in the JVM than will fit
in your currently defined Metaspace. My first suggestion would be to
try increasing the size of Metaspace via the JVM argument
MaxMetaSpaceSize. I'd also suggest reading up on the exception in the
Oracle documentation for Java 8, here
https://docs.oracle.com/javase/8/docs/technotes/guides/troubleshoot/memleaks002.html
(search for Metaspace).

> #
> # There is insufficient memory for the Java Runtime Environment to continue.
> # Native memory allocation (malloc) failed to allocate 1380048 bytes for 
> Chunk::new
> # An error report file with more information is saved as:
> # /tmp/hs_err_pid11058.log
>
> Regards,
> Rakesh Kumar Kanduri
> Disney ABC Television Group
> Cognizant Technology Solutions Ltd. | 
> www.cognizant.com
> US Dial: +1 973 368 9600 Ext 670002
> Offshore Direct: +91-40-66690-002 | Cell: +91 9985429546
> DATG IT ESB On Call # +1 818 869 2690
> Email - 
> datg.dl-esb.infrastruct...@disney.com
>

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



OOM Issues with Tomcat/8.5.20 and JRE/1.8.0_144-b01

2018-02-15 Thread Kanduri, Rakesh Kumar X. -ND
Hi All,

We are facing Out Of Memory issue in our Tomcat Server v8.5.20 as shown in the 
below logs.
Note: Though the error message says insufficient memory, we checked for the 
available physical memory on the server and there is sufficient amount of free 
memory available at the time of this Error.
The same set of applications are working fine without any issues on 
TC/7.0.35.B.RELEASE; JRE/1.7.0_17-b02
Hence any insights and recommendations to fix this issue will be very helpful. 
Thank you.

Error:
Exception in thread "JMX server connection timeout 16183" Hibernate: update 
ONAIRAUTOMATION.IMAGINE_SCHEDULES_AUDIT_TBL set TIME_STARTED=?, TIME_ENDED=?, 
FILENAME=?, SCHEDULES_COUNT=?, SCHEDULE_ELEMENTS_COUNT=?, AS_RUN_COUNT=?, 
STATUS=?, ERROR_MESSAGE=? where AUDIT_ID=?
java.lang.OutOfMemoryError: Metaspace
Exception in thread "RMI TCP Connection(idle)" java.lang.OutOfMemoryError: 
Metaspace
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (malloc) failed to allocate 1380048 bytes for 
Chunk::new
# An error report file with more information is saved as:
# /tmp/hs_err_pid11058.log

Regards,
Rakesh Kumar Kanduri
Disney ABC Television Group
Cognizant Technology Solutions Ltd. | 
www.cognizant.com
US Dial: +1 973 368 9600 Ext 670002
Offshore Direct: +91-40-66690-002 | Cell: +91 9985429546
DATG IT ESB On Call # +1 818 869 2690
Email - 
datg.dl-esb.infrastruct...@disney.com



RE: Cannot get a connection, pool error Timeout waiting for ideal object

2018-02-15 Thread Halder, Arpan [ITSUS Non J]
Hi Mark,

Thank you for your reply!!

It seems mentioned parameter is already set in jdbc-pool.html (see below) - 
could you please let us know which log to check for abandoned connection:

And here is an example on how to configure a resource for JNDI lookups
Resource name="jdbc/TestDB"
  auth="Container"
  type="javax.sql.DataSource"
  factory="org.apache.tomcat.jdbc.pool.DataSourceFactory"
  testWhileIdle="true"
  testOnBorrow="true"
  testOnReturn="false"
  validationQuery="SELECT 1"
  validationInterval="3"
  timeBetweenEvictionRunsMillis="3"
  maxActive="100"
  minIdle="10"
  maxWait="1"
  initialSize="10"
  removeAbandonedTimeout="60"
  removeAbandoned="true"
  logAbandoned="true"
  minEvictableIdleTimeMillis="3"
  jmxEnabled="true"
  
jdbcInterceptors="org.apache.tomcat.jdbc.pool.interceptor.ConnectionState;
org.apache.tomcat.jdbc.pool.interceptor.StatementFinalizer"
  username="root"
  password="password"
  driverClassName="com.mysql.jdbc.Driver"
  url="jdbc:mysql://localhost:3306/mysql"/


Thanks and Regards,
Arpan

Arpan Halder 
Tata Consultancy Services providing services to:
Global Data and Analytics
Application Support / ITAS
Route 22 West▪NJ 08876 ▪ USA
Mobile: +1 (908) 392 2947 


-Original Message-
From: Mark Thomas [mailto:ma...@apache.org] 
Sent: Thursday, February 15, 2018 6:03 AM
To: Tomcat Users List ; Halder, Arpan [ITSUS Non J] 

Cc: DL-MD-R 
Subject: [EXTERNAL] Re: Cannot get a connection, pool error Timeout waiting for 
ideal object

On 15/02/18 00:35, Halder, Arpan [ITSUS Non J] wrote:
> Hi All,
> 
> Need urgent help. We are using apache tomcat version -7.0.67  and 
> sporadically facing issue that application become unresponsive and below 
> error message encountered in Catalina.out log:
> 
> ExceptionCannot get a connection, pool error Timeout waiting for idle 
> object Exception in 
> detailorg.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot get a 
> connection, pool error Timeout waiting for idle object within doFilter 
> of Session Filter url :/SPECTRA/login Chain.doFilter()..
> Inside Login Method.
> 
> We had to restart tomcat service every time and issue gets resolved for the 
> time being and again reappears sporadically. Could you please advise if we 
> need to change any tomcat setting to mitigate this issue from happening in 
> future.
> 
> Please let us know if you need anything else from my side in this regards. 
> Thank you in advance.

It sounds like you have a connection leak in your application. Enable abandoned 
connection logging to find out where the leaked connections are being created.

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: [E] Re: Cannot get a connection, pool error Timeout waiting for ideal object

2018-02-15 Thread Halder, Arpan [ITSUS Non J]
Hi Margaret,

Thank you for your reply!!

We have already setup below parameters in jdbc-pool.html (see below) – could 
you please advise if we need to modify/add anything else here:

And here is an example on how to configure a resource for JNDI lookups
Resource name="jdbc/TestDB"
  auth="Container"
  type="javax.sql.DataSource"
  factory="org.apache.tomcat.jdbc.pool.DataSourceFactory"
  testWhileIdle="true"
  testOnBorrow="true"
  testOnReturn="false"
  validationQuery="SELECT 1"
  validationInterval="3"
  timeBetweenEvictionRunsMillis="3"
  maxActive="100"
  minIdle="10"
  maxWait="1"
  initialSize="10"
 removeAbandonedTimeout="60"
  removeAbandoned="true"
  logAbandoned="true"
  minEvictableIdleTimeMillis="3"
  jmxEnabled="true"
  
jdbcInterceptors="org.apache.tomcat.jdbc.pool.interceptor.ConnectionState;
org.apache.tomcat.jdbc.pool.interceptor.StatementFinalizer"
  username="root"
  password="password"
  driverClassName="com.mysql.jdbc.Driver"
  url="jdbc:mysql://localhost:3306/mysql"/


Thanks and Regards,
Arpan

Arpan Halder
Tata Consultancy Services providing services to:
Global Data and Analytics
Application Support / ITAS
Route 22 West▪NJ 08876 ▪ USA
Mobile: +1 (908) 392 2947


From: Bauer, Margaret M (Peggy) [mailto:margaret.m.ba...@verizon.com]
Sent: Thursday, February 15, 2018 8:15 AM
To: Tomcat Users List 
Cc: Halder, Arpan [ITSUS Non J] ; DL-MD-R 

Subject: [EXTERNAL] Re: [E] Re: Cannot get a connection, pool error Timeout 
waiting for ideal object

Verify your max connection is set high enough for the amount of traffic you see 
in your access logs that would be making a call to the DB.  Possible code is 
not properly closing DB connections.  Remove abandoned connections.



add to your data source config





On Thu, Feb 15, 2018 at 6:03 AM, Mark Thomas 
> wrote:
On 15/02/18 00:35, Halder, Arpan [ITSUS Non J] wrote:
> Hi All,
>
> Need urgent help. We are using apache tomcat version -7.0.67  and 
> sporadically facing issue that application become unresponsive and below 
> error message encountered in Catalina.out log:
>
> ExceptionCannot get a connection, pool error Timeout waiting for idle object
> Exception in detailorg.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot get 
> a connection, pool error Timeout waiting for idle object
> within doFilter of Session Filter
> url :/SPECTRA/login
> Chain.doFilter()..
> Inside Login Method.
>
> We had to restart tomcat service every time and issue gets resolved for the 
> time being and again reappears sporadically. Could you please advise if we 
> need to change any tomcat setting to mitigate this issue from happening in 
> future.
>
> Please let us know if you need anything else from my side in this regards. 
> Thank you in advance.

It sounds like you have a connection leak in your application. Enable
abandoned connection logging to find out where the leaked connections
are being created.

Mark


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



--
Peggy Bauer
CAO Production Support
214-770-1782


Re: [E] Re: Cannot get a connection, pool error Timeout waiting for ideal object

2018-02-15 Thread Bauer, Margaret M (Peggy)
Verify your max connection is set high enough for the amount of traffic you
see in your access logs that would be making a call to the DB.  Possible
code is not properly closing DB connections.  Remove abandoned connections.


add to your data source config





On Thu, Feb 15, 2018 at 6:03 AM, Mark Thomas  wrote:

> On 15/02/18 00:35, Halder, Arpan [ITSUS Non J] wrote:
> > Hi All,
> >
> > Need urgent help. We are using apache tomcat version -7.0.67  and
> sporadically facing issue that application become unresponsive and below
> error message encountered in Catalina.out log:
> >
> > ExceptionCannot get a connection, pool error Timeout waiting for idle
> object
> > Exception in detailorg.apache.tomcat.dbcp.dbcp.SQLNestedException:
> Cannot get a connection, pool error Timeout waiting for idle object
> > within doFilter of Session Filter
> > url :/SPECTRA/login
> > Chain.doFilter()..
> > Inside Login Method.
> >
> > We had to restart tomcat service every time and issue gets resolved for
> the time being and again reappears sporadically. Could you please advise if
> we need to change any tomcat setting to mitigate this issue from happening
> in future.
> >
> > Please let us know if you need anything else from my side in this
> regards. Thank you in advance.
>
> It sounds like you have a connection leak in your application. Enable
> abandoned connection logging to find out where the leaked connections
> are being created.
>
> Mark
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


-- 
*Peggy Bauer*
CAO Production Support
214-770-1782


Re: Cannot get a connection, pool error Timeout waiting for ideal object

2018-02-15 Thread Mark Thomas
On 15/02/18 00:35, Halder, Arpan [ITSUS Non J] wrote:
> Hi All,
> 
> Need urgent help. We are using apache tomcat version -7.0.67  and 
> sporadically facing issue that application become unresponsive and below 
> error message encountered in Catalina.out log:
> 
> ExceptionCannot get a connection, pool error Timeout waiting for idle object
> Exception in detailorg.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot get 
> a connection, pool error Timeout waiting for idle object
> within doFilter of Session Filter
> url :/SPECTRA/login
> Chain.doFilter()..
> Inside Login Method.
> 
> We had to restart tomcat service every time and issue gets resolved for the 
> time being and again reappears sporadically. Could you please advise if we 
> need to change any tomcat setting to mitigate this issue from happening in 
> future.
> 
> Please let us know if you need anything else from my side in this regards. 
> Thank you in advance.

It sounds like you have a connection leak in your application. Enable
abandoned connection logging to find out where the leaked connections
are being created.

Mark


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



Re: Switch to in-memory key store in tomcat 8.5.23 fails application to load

2018-02-15 Thread Mark Thomas
On 15/02/18 07:52, Emil John wrote:
> Context
> ---
> 
> Exact tomcat version, Operating Systems, other configurations-
> 
> Current Tomcat version - 8.5.15
> Operating Systems - Windows/ Linux
> Upgrading to tomcat version - 8.5.23
> Application - Java Application.
> 
> I have an application with tomcat, say fooapp. I also have a custom
> keystore type, say DKS (Java by default has the JKS keystore). During start
> of my application, it loads the DKS keystore to get the certificate for the
> application. This is done using the following changes in server.xml
> 
>  sslImplementationName="com.vmware.identity.tomcat.GKSAwareImpl"
> store="CERT_STORE"
> port="${bio-ssl-localhost.https.port}"
> protocol="com.vmware.identity.tomcat. GKSAwareHttp11NioProtocol"
> redirectPort="${bio-ssl-localhost.https.port}"
> scheme="https"
> secure="true"
> maxHttpHeaderSize="16384">
>  
> 
> Problem
> ---
> 
> The new version of tomcat has a changed code that is causing my application
> from not able to load the GKS keystore.
> 
> In Tomcat 8.5.15,
> getKeyManagers() method - if ks is not null, it simply proceeds further
> doing the ks.isKeyEntry() etc..
> 
> In Tomcat 8.5.23,
> getKeyManagers() method - if ks is initialized as before and create a new
> reference -
> KeyStore ks = certificate.getCertificateKeystore();
> KeyStore ksUsed = ks;
> 
> After the below code, the ksUsed is getting back to JKS and fails to load
> my custom keystore type "GKS"
> 
> // Switch to in-memory key store String provider =
> certificate.getCertificateKeystoreProvider(); if (provider == null) {
> ksUsed = KeyStore.getInstance(certificate.getCertificateKeystoreType()); }
> else { ksUsed =
> KeyStore.getInstance(certificate.getCertificateKeystoreType(), provider); }
> ksUsed.load(null, null); --> throws unimplmented method
> 
> I am setting the provider type properly in java.security which is also used
> while loading the application.
> 
> Has anybody faced similar problem?

You should try 8.5.24 or later since there was a further change in
8.5.24 in this area.

You might want to talk to VMware support about the unimplemented method
as I'd expect any custom KeyStore to support that usage.

Mark

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



Re: Switch to in-memory key store in tomcat 8.5.23 fails application to load

2018-02-15 Thread Nitkalya Wiriyanuparb (Ing)
Emil,

On 15 Feb 2018, 8:52 PM +1300, Emil John , wrote:
> Context
> ---
>
> Exact tomcat version, Operating Systems, other configurations-
>
> Current Tomcat version - 8.5.15
> Operating Systems - Windows/ Linux
> Upgrading to tomcat version - 8.5.23
> Application - Java Application.
>
> I have an application with tomcat, say fooapp. I also have a custom
> keystore type, say DKS (Java by default has the JKS keystore). During start
> of my application, it loads the DKS keystore to get the certificate for the
> application. This is done using the following changes in server.xml
>
>  sslImplementationName="com.vmware.identity.tomcat.GKSAwareImpl"
> store="CERT_STORE"
> port="${bio-ssl-localhost.https.port}"
> protocol="com.vmware.identity.tomcat. GKSAwareHttp11NioProtocol"
> redirectPort="${bio-ssl-localhost.https.port}"
> scheme="https"
> secure="true"
> maxHttpHeaderSize="16384"
> 
>
> Problem
> ---
>
> The new version of tomcat has a changed code that is causing my application
> from not able to load the GKS keystore.
>
> In Tomcat 8.5.15,
> getKeyManagers() method - if ks is not null, it simply proceeds further
> doing the ks.isKeyEntry() etc..
>
> In Tomcat 8.5.23,
> getKeyManagers() method - if ks is initialized as before and create a new
> reference -
> KeyStore ks = certificate.getCertificateKeystore();
> KeyStore ksUsed = ks;
>
> After the below code, the ksUsed is getting back to JKS and fails to load
> my custom keystore type "GKS"
>
> // Switch to in-memory key store String provider =
> certificate.getCertificateKeystoreProvider(); if (provider == null) {
> ksUsed = KeyStore.getInstance(certificate.getCertificateKeystoreType()); }
> else { ksUsed =
> KeyStore.getInstance(certificate.getCertificateKeystoreType(), provider); }
> ksUsed.load(null, null); --> throws unimplmented method
>
> I am setting the provider type properly in java.security which is also used
> while loading the application.
>
> Has anybody faced similar problem?

I had a similar problem – not quite the same but close enough. I ended up 
creating another key store type that wraps around my existing types. See my 
threads here http://markmail.org/message/5vus3jpsp5secm44

Cheers,
Ing
>
> Thanks,
> Emil