我需要将表类型数组从Java传递给oracle过程,为此,我已经取消了对 OracleConnection 的连接,并且该过程一直有效,直到我重新部署应用程序为止(不重新启动tomcat)。但热部署。
但是在重新部署之后,展开语句
let userSchema = new mongoose.Schema({
lname: String,
fname:String,
username: String,
email: String,
password: String,
registrationDate: {
type: Date,
default: function(){return Date.now()}
},
referedBy: {
type:String,
default: ''
},
referalEnd: {
type: Date,
default: function(){ return Date.now() + 5*365*24*60*60*1000}
},
userRefererId: {
type:String,
default: uniqid()
}
});
抛出异常
OracleConnection oracon = con.unwrap(OracleConnection.class);
Tomcat版本:8.0.36
Ojdbc版本:8
还将ojdbc8.jar和orai18n添加到WEB-INF / lib 中,而不是添加到TOMCAT / lib
中下面是ServletContextListener中的代码:contextDestroyed
java.sql.SQLException: Object does not wrap anything with requested interface
这可能出什么问题?