Could not load Jdbc Driver net.sourceforge.jtds.jdbc.Driver

今天在做Mondrian连接SQLSERVE数据库的实验的时候,开始的时候报了如下的错误

org.apache.jasper.JasperException: /busy.jsp(10,45) According to TLD or attribute directive in tag file, attribute value does not accept any expressions
 org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
 org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
 org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:148)
 org.apache.jasper.compiler.Validator$ValidateVisitor.checkXmlAttributes(Validator.java:952)
 org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:706)
 org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1442)
 org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2166)
 org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2216)
 org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2222)
 org.apache.jasper.compiler.Node$Root.accept(Node.java:457)
 org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2166)
 org.apache.jasper.compiler.Validator.validate(Validator.java:1484)
 org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:167)
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:296)
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:277)
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:265)
 org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:302)
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
是由于我的工程的JSTL的标准标签用的1.1的版本,而JSP中的标签的链接是1.0的,所以做如下的修改:
把http://java.sun.com/jstl/core" %>
修改为:
http://java.sun.com/jsp/jstl/core" %>
 
第二个错误就是Could not load Jdbc Driver net.sourceforge.jtds.jdbc.Driver
从sourceforge下载jtds-1.2.4-dist.zip压缩包,取出其中的jtds-1.2.4.jar ,放到$tomcate_home$\apache-tomcat-5.5.27\common\lib目录下面,重新启动tomcat,问题解决

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/21263850/viewspace-617488/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/21263850/viewspace-617488/

你可能感兴趣的:(java,数据库)