java - Maven BasicDataSource Errors on Tomcat 8 -
we started converting large webapp maven, , seemed working great, no matter do, maven doesn't recognize tomcat-dbcp.jar file on tomcat server. in dependencies, have set following:
<dependency> <groupid>org.apache.tomcat</groupid> <artifactid>tomcat-dbcp</artifactid> <version>8.0.26</version> <scope>provided</scope> </dependency>
but following stacktrace:
error: javax.servlet.jsp.jspexception: java.lang.abstractmethoderror: oracle.jdbc.driver.t4cconnection.isvalid(i)z uri: /as/checkreport error message: oracle.jdbc.driver.t4cconnection.isvalid(i)z status code: 500 org.apache.tomcat.dbcp.dbcp2.delegatingconnection.isvalid(delegatingconnection.java:913) org.apache.tomcat.dbcp.dbcp2.poolableconnection.validate(poolableconnection.java:226) org.apache.tomcat.dbcp.dbcp2.poolableconnectionfactory.validateconnection(poolableconnectionfactory.java:302) org.apache.tomcat.dbcp.dbcp2.basicdatasource.validateconnectionfactory(basicdatasource.java:2208) org.apache.tomcat.dbcp.dbcp2.basicdatasource.createpoolableconnectionfactory(basicdatasource.java:2191) org.apache.tomcat.dbcp.dbcp2.basicdatasource.createdatasource(basicdatasource.java:1945) org.apache.tomcat.dbcp.dbcp2.basicdatasource.getconnection(basicdatasource.java:1412) com.networkfleet.sre.common.db.resource.getdbconnectiondev(resource.java:75) com.networkfleet.sre.app.checkreport.checkreportsrv.doget(checkreportsrv.java:63) javax.servlet.http.httpservlet.service(httpservlet.java:622) javax.servlet.http.httpservlet.service(httpservlet.java:729) org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfilterchain.java:291) org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain.java:206) org.apache.tomcat.websocket.server.wsfilter.dofilter(wsfilter.java:52) org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfilterchain.java:239) org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain.java:206) org.apache.catalina.core.standardwrappervalve.invoke(standardwrappervalve.java:219) org.apache.catalina.core.standardcontextvalve.invoke(standardcontextvalve.java:106) org.apache.catalina.authenticator.authenticatorbase.invoke(authenticatorbase.java:614) org.apache.catalina.core.standardhostvalve.invoke(standardhostvalve.java:142) org.apache.catalina.valves.errorreportvalve.invoke(errorreportvalve.java:79) org.apache.catalina.valves.abstractaccesslogvalve.invoke(abstractaccesslogvalve.java:617) org.apache.catalina.core.standardenginevalve.invoke(standardenginevalve.java:88) org.apache.catalina.connector.coyoteadapter.service(coyoteadapter.java:518) org.apache.coyote.http11.abstracthttp11processor.process(abstracthttp11processor.java:1091) org.apache.coyote.abstractprotocol$abstractconnectionhandler.process(abstractprotocol.java:668) org.apache.tomcat.util.net.aprendpoint$socketprocessor.dorun(aprendpoint.java:2463) org.apache.tomcat.util.net.aprendpoint$socketprocessor.run(aprendpoint.java:2452) java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1145) java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:615) org.apache.tomcat.util.threads.taskthread$wrappingrunnable.run(taskthread.java:61) java.lang.thread.run(thread.java:745)
i should point out never problem before maven, , haven't made server side changes should cause this.
i'm using odjbc7.jar driver, date , has been installed through maven, appears in repository in correct location, , included in app via system scope. identical driver file being used in non-maven build, error not appear.
Comments
Post a Comment