项目出现 The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path 解决方法...

1. The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path  

①项目右击-->build path -->添加libraries-->server runtime-->ok

 

②下图

 

 

2. JDBC连接Oracle:ORA-28009:connection as SYS should be as SYSDBA OR SYSOPER

    解决方案:用户名设置为user = "sys as sysdba",其他不变

3. 表和视图不存在!

我的原因是:就比如sys用户,如果是不时用sysdba的身份登陆,就会出现这种情况,如果使用dba的身份登陆就对了

4. Failed to execute goal org.codehaus.cargo:cargo-maven2-plugin:1.2.3:run (cargo-run) on project yycg: Execution cargo-run of goal org.codehaus.cargo:cargo-maven2-plugin:1.2.3:run failed: [e:/apache-tomcat-7.0.52] is not a directory. It must point to the container home directory. -> [Help 1]

 

如图:

 关键位置:run failed: [e:/apache-tomcat-7.0.52] is not a directory,

解决方案:tomcat配置错误,在pom.xml中修改插件配置中tomcat的路径

 

 

5. Could not write file: D:\JAVA_TOOLS\work-space\mars\sysconfig\.classpath. 

  build path时,出现,jre system library (unbound)

  解决方案:修改 D:\JAVA_TOOLS\work-space\mars\sysconfig\.classpath. 这个文件,改为不隐藏,

6.Exception in thread “main" java.lang.UnsupportedClassVersionError(Unsupported major. minor version 52.0(xxx))

这个错两种情况①:jdk版本太低  ②位数不对,32,64位,我出现这个错的原因是位数不对,我的是64位  改为32位就对了

 

7.java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket.

1433端口没有打开

 

8.java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]传入的表格格式数据流(TDS)远程过程调用(RPC)协议流不正确。参数 1 (""): 数据类型 0x38 未知。

驱动版本不对

 

9.No suitable driver found for jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=db_JXC;SelectMethod=Cursor

   这里将jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=db_JXC;SelectMethod=Cursor  改为jdbc:sqlserver://localhost:1433;DatabaseName=db_JXC;SelectMethod=Cursor 

也就是 将“microsoft” 去掉

转载于:https://www.cnblogs.com/an5211/p/6635607.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值