項目出現 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” 去掉


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM