用数据库连接bean 改为 用bean连接数据库如果我直接在jsp页面中连接数据库又不会出现问题

解决方案 »

  1.   

    是不是你的java文件放的位置不对啊!好像是没有找到类的感觉!
      

  2.   

    也像是找不到class
    有时候没有class时,出此错。
    有时候又显示的为classNotFound
      

  3.   

    我又重装了一下,还一样,照现在看来是找不到class我的虚拟路径:
    <Context path="/jsp" docBase="G:\java" debug="0"></Context>class: G:\java\WEB-INF\class\web.xml:
    <?xml version="1.0" encoding="ISO-8859-1"?><!DOCTYPE web-app
        PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
        "http://java.sun.com/dtd/web-app_2_3.dtd"><web-app>
      <display-name>Welcome to Tomcat</display-name>
      <description>
         Welcome to Tomcat
      </description><!-- JSPC servlet mappings start --><!-- JSPC servlet mappings end --></web-app>就算我在../ROOT/ 下都出如此错误。急哪!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      

  4.   

    自己搞定了,是配置的问题找不到class