JmxRemoteLifecycleListener with SSL doesn't work on Centos

2014-10-26 Thread Mихаил С .
Hello I'm using Apache Tomcat 7.0.56 + JmxRemoteLifecycleListener with SSL on CentOS 6.5, results in the following error on startup: окт 24, 2014 6:00:17 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1313 ms окт 24, 2014 6:00:17 PM org.apache.catalina.mbeans.JmxRe

INFO: TLD skipped Messages in logs

2014-10-26 Thread Kiran Badi
Hi, I am getting below messages in the logs, Oct 26, 2014 4:05:46 PM org.apache.catalina.startup.TaglibUriRule body INFO: TLD skipped. URI: http://java.sun.com/jstl/xml_rt is already defined Oct 26, 2014 4:05:46 PM org.apache.catalina.startup.TaglibUriRule body INFO: TLD skipped. URI: http://jav

Re: Tomcat 7 JDBC Connection Pool - question about usage from Java code

2014-10-26 Thread Neven Cvetkovic
Hey Ric, Here's another thing you could do: http://stackoverflow.com/questions/7195556/how-to-manage-connections-to-dynamically-created-databases If your databases are all on the same db instance, but different schema/database name, you could avoid connecting to the specific database name, but ra

Re: HTTPS / URLs with no port number / Tomcat only

2014-10-26 Thread Hassan Schroeder
On Sun, Oct 26, 2014 at 9:04 AM, Léa Massiot wrote: > Now, in all possible cases, I would like to have this URL instead: > https://localhost/my_webapp/a_page.jsp > (which doesn't work presently). > > Can this be achieved with Tomcat ONLY? And how? Configure your https connector to use port 443 a

RE: Tomcat 7 JDBC Connection Pool - question about usage from Java code

2014-10-26 Thread Ric Bernat
Thanks, Nevin. I certainly appreciate your deep treatment of my question/issue! I would like to ask for clarification about a point in your #2: > (2) CONTAINER-MANAGED CONNECTION POOL. > (a) using container injection > > @Resource(name="") > private DataSource datasource > > (b) tradition

HTTPS / URLs with no port number / Tomcat only

2014-10-26 Thread Léa Massiot
Hello and thank you for reading my post. I was willing to run only a Tomcat server and not a Tomcat server + an Apache HTTP server. Mostly because: - an article like this one: http://www.tomcatexpert.com/blog/2011/11/02/best-practices-securing-apache-tomcat-7 says, if I understand properly, that

Re: tomcat websocket communication with external java program

2014-10-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Jason, On 10/25/14 3:41 PM, Jason Ricles wrote: > I have a tomcat webpage with a websocket server written in java to > communicate with the webpage. I want this websocket server to be > able to communicate with an external java program without an >

Re: Tomcat 7 JDBC Connection Pool - question about usage from Java code

2014-10-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Ric, On 10/25/14 9:06 PM, Ric Bernat wrote: > Thanks. That makes sense. Pooling for the duration of that single > web service call is not our main goal. However, JAX-RS allows me > to persist objects in memory across web service calls, so I can > ke

Re: Tomcat 7 JDBC Connection Pool - question about usage from Java code

2014-10-26 Thread Neven Cvetkovic
Hey Ric, Thanks for asking these questions. Hopefully, this discussion will benefit many on this list. Here's the summary of your options obtaining connections in your application. As you suggested, database connections are typically obtained through a javax.sql.DataSource object (wrapped pool o