Getting all JDBC configs from the context

2018-03-27 Thread Shawn Heisey
This is what the code in our application looks like that gets a datasource object from the context:   Context initContext = new InitialContext();   Context envContext  = (Context)initContext.lookup("java:/comp/env");   DataSource ds = (DataSource)envContext.lookup("jdbc/REDACTED"); I would like t

RE: Thread state differences according to Tomcat 7, 8 version.

2018-03-27 Thread 이의준
Test sequence and inquiry contents 1. In the local test, the same load (hp-jmeter) for tomcat 7, 8 5 minutes, 2. Thread dump generated after 5 minutes of load termination 3. Thread in Tomcat 7 is in TIME_WAITING state (normally OK) 4. Thread in Tomcat 8 mostly RUNNABLE state (estimated to be abnorm

Re: Trying to chase down "too many connection" problems with DB

2018-03-27 Thread Shawn Heisey
On 3/27/2018 11:03 AM, Phil Steitz wrote: > Not exactly, if what you are using is the DBCP pool.  To see the The factory in use right now is "org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory".  Information gathered previously in this thread told me that this is DBCP code, repackaged into the tom

Re: Granting permission to a single application-supplied JAR

2018-03-27 Thread George S.
Chris, One thing that has bitten me is that the entire stack/call chain is examined, not just permissions on a specific piece of code as you would expect. This comes into play when you're trying to make calls into trusted code from a JSP. My experience has been that JSPs are not trusted. So,

Re: HOME user folder change & tomcat HOME

2018-03-27 Thread George S.
Did you edit /etc/passwd and change the home directory for your user xnat? On 3/27/2018 9:27 AM, Jérôme Redouté wrote: Hello, I've installed tomcat8 on Debian 9, to run a web App (XNAT) I've a proble concerning the HOME directory of my user "xnat". Before the HOME was, as expected, in /home/

Re: database pool and minIdle support in 8

2018-03-27 Thread Pawel Veselov
Apologies for reviving a zombie. On Sat, Feb 3, 2018 at 8:43 AM, Pawel Veselov wrote: What is the problem with failures during pool initialization? >>> ConnectionPool.init() attempts to borrow initialSize worth of >>> connections. Imagine your database server is having problems at >>> this t

How to offer a link correction for the Tomcat docs?

2018-03-27 Thread charlie arehart
Greetings. I’m a new list member, though a fairly long-time Tomcat user. I found a broken link in the Tomcat User Guide (8 and 7), on its left nav bar. How would I best go about reporting such a broken link in the Tomcat docs? To be clear, while there is a comments section at the bottom of the

Re: Tomcat 8.0.38 to 9.0.6 -- Default Class Loader and Naming InitialContext

2018-03-27 Thread Behrooz Nobakht
Managed to narrow down to a regression: https://bz.apache.org/bugzilla/show_bug.cgi?id=62224 On Tue, Mar 27, 2018 at 2:09 PM, Behrooz Nobakht wrote: > Hi Chris, > > Thanks for the reply. Comments inline: > > On Tue, Mar 27, 2018 at 4:31 AM, Christopher Schultz < > ch...@christopherschultz.net> w

Re: Trying to chase down "too many connection" problems with DB

2018-03-27 Thread Phil Steitz
On 3/26/18 10:28 AM, Christopher Schultz wrote: > Shawn, > > On 3/25/18 12:17 AM, Shawn Heisey wrote: > > On 3/24/2018 5:04 PM, Mark Thomas wrote: > >> Regarding your configuration: >> auth="Container" > >> factory="org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory" > >> driverClassName="com.mysq

Re: HOME user folder change & tomcat HOME

2018-03-27 Thread Coty Sutherland
Hi, This sounds like a problem specific to the distribution's tomcat package, which is usually better served by the distribution's community rather than Tomcat's (they repackage what we provide). You may want to ask on their users list/support forum/etc, but I will try and help though :) On Tue,

HOME user folder change & tomcat HOME

2018-03-27 Thread Jérôme Redouté
Hello, I've installed tomcat8 on Debian 9, to run a web App (XNAT) I've a proble concerning the HOME directory of my user "xnat". Before the HOME was, as expected, in /home/xnat but now (after deploying XNAT app), it moved to /var/lib/tomcat8 and I can't reverse back the the original HOME. I

tomcat Realm formatting

2018-03-27 Thread Frank, Jon
Hi I need to encrypt the password for tomcat console access.. I've encrypted it using the digest.sh script, and I've added it to the tomcat-users.xml file. See below...I've X'd out the actual password. I also need to edit the Realm tag in the server.xml file but there is already a Realm for Loc

Re: Thread state differences according to Tomcat 7, 8 version.

2018-03-27 Thread 이의준
Thank you for answer. ​ As a further explanation, after a certain amount of time has elapsed after applying the same load to both groups, all threads in the tomcat7 group are in the TIME-WAITING state, and TOMCAT8 is in the RUNNABLE state. So I guess there is a difference in THREAD behavior betwe

Re: Thread state differences according to Tomcat 7, 8 version.

2018-03-27 Thread Rainer Jung
See below Am 27.03.2018 um 07:50 schrieb 이의준: Hi ! English is not my native language; please excuse typing errors. Why is Tomcat not handling requests with 8 versions, but in the RUNNABLE state, not the TIME_WAITING state of the Tomcat 7 version? Please confirm that this operation works norma

Re: Trying to chase down "too many connection" problems with DB

2018-03-27 Thread tomcat
On 26.03.2018 23:36, Shawn Heisey wrote: On 3/26/2018 2:39 PM, André Warnier (tomcat) wrote: Just a question, more to satisfy my curiosity : when you have these hundreds of "pending" connections, in what state are they, TCP/IP-wise ? Not sure where you got "pending". I don't recall mentioning