oracle.jdbc.driver.T4CConnection cannot be cast to com.sun.corba.se.pept.transport.Connection
java.lang.ClassCastException: oracle.jdbc.driver.T4CConnection cannot be cast to com.sun.corba.se.pept.transport.Connection
at com.angong.drp.sysmgr.manager.UserManager.addUser(UserManager.java:46)
at org.apache.jsp.sysmgr.user_005fadd_jsp._jspService(user_005fadd_jsp.java:68)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:619)
这个错误不知道怎么改 我用的oracle也没问题的!
写的一个JSP连接数据库出的错误!!
答案:1 悬赏:30 手机版
解决时间 2021-04-25 06:00
- 提问者网友:欲劫无渡
- 2021-04-24 06:47
最佳答案
- 五星知识达人网友:不如潦草
- 2021-04-24 07:04
oracle.jdbc.driver.T4CConnection cannot be cast to com.sun.corba.se.pept.transport.Connection
你的程序中使用的Connection导入的包错误了,不是com.sun.corba.se.pept.transport.Connection这个类
导入这个包java.sql
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯