zoukankan      html  css  js  c++  java
  • 项目出现 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_TOOLSwork-spacemarssysconfig.classpath. 

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

      解决方案:修改 D:JAVA_TOOLSwork-spacemarssysconfig.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” 去掉

  • 相关阅读:
    超级庄家吕梁和中国股市第一案
    汉唐的丧钟
    最牛营业部——国信泰然九路揭秘
    PMBOK
    挣值管理(PV、EV、AC、SV、CV、SPI、CPI)
    没有理智的欲望会走向毁灭,没有欲望的理智会永守清贫
    安信证券行业分析师离职风波评论
    知名证券分析师
    【Python】排列组合itertools & 集合set
    测试&标准说明文章
  • 原文地址:https://www.cnblogs.com/an5211/p/6635607.html
Copyright © 2011-2022 走看看