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” 去掉