The project appears 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

① Right-click the project –>build path –>Add libraries–>server runtime–>ok

 

②The picture below

 

 

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

Solution: The user name is set to user = “sys as sysdba”, the others remain unchanged

3. The table and view do not exist!

My reason is: For example, sys users, if they log in as sysdba from time to time, this will happen. If they log in as dba, it’s the right thing to do.

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]

 

As shown in the figure:

Key location: run failed: [e:/apache-tomcat-7.0.52] is not a directory,

Solution: tomcat configuration error, modify the path of tomcat in the plug-in configuration in pom.xml

 

 

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

In the build path, jre system library (unbound) appears

Solution: modify the file D:\JAVA_TOOLS\work-space\mars\sysconfig\.classpath. to not hide it.

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

There are two situations for this error: ①: The jdk version is too low. ②The number of bits is wrong, 32 or 64 bits. The reason for this error is that the number of bits is wrong. Mine is 64 bits. It is right to change to 32 bits.

 

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

Port 1433 is not open

 

8.java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer] The incoming tabular data stream (TDS) remote procedure call (RPC) protocol stream is incorrect. Parameter 1 (“”): The data type 0x38 is unknown.

Incorrect driver version

 

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

Here change jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=db_JXC;SelectMethod=Cursor to jdbc:sqlserver://localhost:1433;DatabaseName=db_JXC;SelectMethod=Cursor

That is to remove “microsoft”

Similar Posts: