Questions tagged «geoserver»

16
臭名昭著的java.sql.SQLException:找不到合适的驱动程序
我正在尝试将启用数据库的JSP添加到现有的Tomcat 5.5应用程序(GeoServer 2.0.0,如果有帮助的话)。 该应用程序本身与Postgres可以很好地进行通信,因此我知道数据库已启动,用户可以访问它,所有这些好东西。我正在尝试做的是添加的JSP中的数据库查询。我已经在开箱即用的Tomcat数据源示例中使用了config示例。必需的标记库位于正确的位置-如果我只有标记库引用,则不会发生任何错误,因此它将查找那些JAR。postgres jdbc驱动程序postgresql-8.4.701.jdbc3.jar位于$ CATALINA_HOME / common / lib中。 这是JSP的顶部: <%@ taglib uri="http://java.sun.com/jsp/jstl/sql" prefix="sql" %> <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> <sql:query var="rs" dataSource="jdbc/mmas"> select current_validstart as ValidTime from runoff_forecast_valid_time </sql:query> 来自$ CATALINA_HOME / conf / server.xml的相关部分,其内部<Host>依次是<Engine>: <Context path="/gs2" allowLinking="true"> <Resource name="jdbc/mmas" type="javax.sql.Datasource" auth="Container" driverClassName="org.postgresql.Driver" maxActive="100" maxIdle="30" maxWait="10000" username="mmas" password="very_secure_yess_precious!" …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.