将 sql 驱动程序添加到 JasperReports Server Pro

Adding sql driver to JasperReports Server Pro

我想在 JasperReports Server Pro 中使用 ms sql 服务器驱动程序。驱动未安装,教程中JDBC右侧有一个selectdriver按钮:Driver.但是在我的服务器(6.2 pro)中没有这样的按钮来添加驱动程序。如何安装新驱动程序?

我的服务器的屏幕关闭就像你在图片上看到的那样。

首先,确保您手边有正确的库。 MSSQL驱动可以获取from here.

之后执行此操作:

Now you need to copy the driver (the .jar file) to the classpath of your application server to enable JasperServer to find it.

In general it's best to copy the driver to the application server's shared library location. Refer to your application server documentation for exact locations.

Sample locations:

Tomcat5: \common\lib (for example in a JapserServer Bundle install on windows this is located at: C:/Program Files (x86)/jasperreports-server-4.0/apache-tomcat/lib )

Tomcat6: \lib (for example: /var/lib/tomcat6/lib)

JBoss5: \server\all\lib

现在重启你的服务器。根据您使用的操作系统,这可以通过多种方式完成。驱动程序现在应该可用。

Source