專案出現 The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path 解決方法
- The superclass “javax.servlet.http.HttpServlet” was not found on the Java Build Path
①專案右擊–>build path -->新增libraries–>server runtime–>ok
②下圖
-
JDBC連線Oracle:ORA-28009:connection as SYS should be as SYSDBA OR SYSOPER
解決方案:使用者名稱設定為user = “sys as sysdba”,其他不變
-
表和檢視不存在!
我的原因是:就比如sys使用者,如果是不時用sysdba的身份登陸,就會出現這種情況,如果使用dba的身份登陸就對了
- 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的路徑
- 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” 去掉