急!!!请问一下下面的问题Shark.configure("conf/Shark.conf");老是出报错啊?谢谢!
急!!!请问一下下面的问题Shark.configure("conf/Shark.conf");老是出报错啊?谢谢!
email: guoyaowu@broadengate.com
QQ: 506781140
import org.enhydra.shark.*;
import org.enhydra.shark.api.*;
import org.enhydra.shark.api.client.*;
import org.enhydra.shark.api.client.wfmc.wapi.WMConnectInfo;
public class SharkTest {
public static void main(String[] args) throws Exception {
Shark.configure("conf/Shark.conf");
}
}
报错如下:
SharkEngineManager -> Shark engine is being initialized ...
2008-01-25 12:01:22,276: SharkEngineManager -> Working with 'org.enhydra.shark.CallbackUtil' implementation of core CallbackUtilities API
2008-01-25 12:01:22,276: SharkEngineManager -> Working with 'org.enhydra.shark.SharkObjectFactory' implementation of core SharkObjectFactory API
2008-01-25 12:01:22,276: SharkEngineManager -> Working with 'org.enhydra.shark.StandardToolActivityHandler' implementation of core ToolAgentManager API
2008-01-25 12:01:22,276: SharkEngineManager -> Working with 'org.enhydra.shark.logging.StandardLoggingManager' implementation of Logging API
Exception in thread "main"
java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.enhydra.shark.Shark._conf(Shark.java:127)
at org.enhydra.shark.Shark.configure(Shark.java:63)
at com.st.SharkTest.main(SharkTest.java:12)
Caused by:
java.lang.Error: Failed to make Standard Connection Allocator : com.lutris.appserver.server.sql.standard.StandardConnectionAllocator: null
at com.lutris.appserver.server.sql.standard.StandardLogicalDatabase.loadConnectionAllocator(StandardLogicalDatabase.java:540)
at com.lutris.appserver.server.sql.standard.StandardLogicalDatabase.initConf(StandardLogicalDatabase.java:273)
at com.lutris.appserver.server.sql.standard.StandardLogicalDatabase.init(StandardLogicalDatabase.java:185)
at com.lutris.appserver.server.sql.standard.StandardLogicalDatabase. <init> (StandardLogicalDatabase.java:170)
at com.lutris.appserver.server.sql.StandardDatabaseManager.loadLogicalDatabase(StandardDatabaseManager.java:560)
at com.lutris.appserver.server.sql.StandardDatabaseManager. <init> (StandardDatabaseManager.java:366)
at org.enhydra.shark.utilities.dods.DODSUtilities.init(DODSUtilities.java:262)
at org.enhydra.shark.usergroup.DODSUserGroupManagerAdmin.configure(DODSUserGroupManagerAdmin.java:52)
at org.enhydra.shark.assignment.StandardAssignmentManager.configure(StandardAssignmentManager.java:50)
at org.enhydra.shark.SharkEngineManager.init(SharkEngineManager.java:217)
at org.enhydra.shark.SharkEngineManager.init(SharkEngineManager.java:872)
at org.enhydra.shark.SharkEngineManager.configure(SharkEngineManager.java:595)
at org.enhydra.shark.SharkEngineManager.configure(SharkEngineManager.java:550)