Re: ClassNotFoundException: org.apache.tomcat.dbcp.dbcp2.BasicDataSourceFactory starting in 7.0.86

2018-04-19 Thread Konstantin Kolinko
2018-04-17 22:18 GMT+03:00 Shawn Heisey : > ... > > You should be able to work around the problem by defining a factory in > your pools set to "org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory" > so that the default is not used. This addition should only be made on > configs for Tomcat 7. > The

Re: ClassNotFoundException: org.apache.tomcat.dbcp.dbcp2.BasicDataSourceFactory starting in 7.0.86

2018-04-17 Thread Shawn Heisey
On 4/17/2018 10:25 AM, Adam Rauch wrote: > According to the tomcat70 GitHub mirror, a recent change to > Constants.java switched DBCP_DATASOURCE_FACTORY to > "org.apache.tomcat.dbcp.dbcp2.BasicDataSourceFactory", which seems > suspicious. See > https://github.com/apache/tomcat70/commit/08b7ca0fae77

Re: ClassNotFoundException: org.apache.tomcat.dbcp.dbcp2.BasicDataSourceFactory starting in 7.0.86

2018-04-17 Thread Mark Thomas
On 17/04/18 17:25, Adam Rauch wrote: > Our code retrieves DataSources using JNDI, with code similar to this: > >     new InitialContext().lookup("java:comp/env/jdbc/labkeyDataSource"); > > With a simple DataSource definition that doesn't specify a "factory" > attribute, this code now throws in To

ClassNotFoundException: org.apache.tomcat.dbcp.dbcp2.BasicDataSourceFactory starting in 7.0.86

2018-04-17 Thread Adam Rauch
Our code retrieves DataSources using JNDI, with code similar to this:     new InitialContext().lookup("java:comp/env/jdbc/labkeyDataSource"); With a simple DataSource definition that doesn't specify a "factory" attribute, this code now throws in Tomcat 7.0.86. (It works in 7.0.85, 8.0.50, 8.5.