使用ClientDataSource驱动程序创建Derby Context Aware函数时出现类未找到错误

时间:2015-06-24 11:16:05

标签: java derby javadb

我在使用org.apache.derby.jdbc.ClientDataSource驱动程序的weblogic中使用derby作为数据源。我已使用${WL_HOME}/common/derby/bin/startNetworkServer.sh

启动了derby数据库

数据源正在正确创建,但在获取连接和创建上下文感知功能时,它会抛出class not found错误。

Caused by: java.sql.SQLSyntaxErrorException: The class 'test.vti.VTITest' does not exist or is inaccessible. This can happen if the class is not public.
    at org.apache.derby.client.am.SQLExceptionFactory40.getSQLException(Unknown Source)
    at org.apache.derby.client.am.SqlException.getSQLException(Unknown Source)
    at org.apache.derby.client.am.Statement.executeUpdate(Unknown Source)
    at weblogic.jdbc.wrapper.Statement.executeUpdate(Statement.java:530)
    at oracle.essbase.ds.manager.DataSourceManager.createDSView(DataSourceManager.java:340)
    at oracle.essbase.ds.manager.DataSourceManager.save(DataSourceManager.java:128)
    at test.DSDBTestWS.createDBDS(DSDBTestWS.java:290)
    at test.DSDBTestWS.saveDS(DSDBTestWS.java:104)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

如何在类路径中包含test.vti.VTITest以便ClientDataSource驱动程序可以找到它?

0 个答案:

没有答案