I have configured a JDBC Direct Connection Svc using
the Oracle this driver and the ojdbc14.jar. I use these
same settings in the model editor to import from the
DBMS and it works fine in the model editor. But I
get "Failed to connect to:" in the service config gui
when I press the Test Connection button and the
following stack trace in the console.
Note that ojdbc14.jar is set on my app environment in
the service configuration GUI and
oracle.jdbc.OracleDriver is in that zip. As well, there are
no errors (red marks) in my configuration of the JDBC
Direct Connection Svc. I've attached the service config
file if that helps. Once again, here's the stack trace
C:\dev\bin>runsvcconfig
C:\dev\bin>REM $Revision: 1.4 $
C:\dev\bin>REM $Author: ddepinet $
C:\dev\bin>REM
C:\dev\bin>REM
C:\dev\bin>Rem Set environment variables
C:\dev\bin>if "c:\dev" == "" goto error
C:\dev\bin>call c:\dev\bin\setEnv.cmd
C:\dev\bin>REM
C:\dev\bin>REM CLASSPATH setup for JewelBox
C:\dev\bin>REM
C:\dev\bin>Rem Run app
C:\dev\bin>java -DJewelBox.Home=c:\dev
org.jewelbox.editor.svcconfig.SvcConfigMa
in
org.jewelbox.service.connect.ConnectionException:
Failed to connect to:
at
org.jewelbox.service.connect.jdbc.direct.JDBCDirectConn
ectionSvc.getC
onnection(JDBCDirectConnectionSvc.java:157)
at sun.reflect.NativeMethodAccessorImpl.invoke0
(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke
(Method.java:324)
at bsh.Reflect.invokeOnMethod(Unknown Source)
at bsh.Reflect.invokeObjectMethod(Unknown
Source)
at bsh.Name.invokeMethod(Unknown Source)
at bsh.BSHMethodInvocation.eval(Unknown
Source)
at bsh.BSHPrimaryExpression.eval(Unknown Source)
at bsh.BSHPrimaryExpression.eval(Unknown Source)
at bsh.BSHBlock.evalBlock(Unknown Source)
at bsh.BSHBlock.eval(Unknown Source)
at bsh.BSHBlock.eval(Unknown Source)
at bsh.BSHTryStatement.eval(Unknown Source)
at bsh.BSHBlock.evalBlock(Unknown Source)
at bsh.BSHBlock.eval(Unknown Source)
at bsh.BshMethod.invokeImpl(Unknown Source)
at bsh.BshMethod.invoke(Unknown Source)
at bsh.BshMethod.invoke(Unknown Source)
at bsh.Name.invokeLocalMethod(Unknown Source)
at bsh.Name.invokeMethod(Unknown Source)
at bsh.BSHMethodInvocation.eval(Unknown
Source)
at bsh.BSHPrimaryExpression.eval(Unknown Source)
at bsh.BSHPrimaryExpression.eval(Unknown Source)
at bsh.Interpreter.eval(Unknown Source)
at bsh.Interpreter.eval(Unknown Source)
at bsh.Interpreter.eval(Unknown Source)
at
org.jewelbox.service.scriptengine.beanshell.BeanShellAda
pter.evaluate
(BeanShellAdapter.java:224)
at
org.jewelbox.service.editor.swing.control.ScriptControl.ex
ecute(Scrip
tControl.java:110)
at
org.jewelbox.service.editor.swing.control.ScriptControl.ac
tionPerform
ed(ScriptControl.java:128)
at javax.swing.AbstractButton.fireActionPerformed
(AbstractButton.java:17
86)
at
javax.swing.AbstractButton$ForwardActionEvents.actionP
erformed(Abstra
ctButton.java:1839)
at
javax.swing.DefaultButtonModel.fireActionPerformed
(DefaultButtonModel
.java:420)
at javax.swing.DefaultButtonModel.setPressed
(DefaultButtonModel.java:258
)
at
javax.swing.plaf.basic.BasicButtonListener.mouseReleased
(BasicButtonL
istener.java:245)
at java.awt.AWTEventMulticaster.mouseReleased
(AWTEventMulticaster.java:2
31)
at java.awt.Component.processMouseEvent
(Component.java:5100)
at java.awt.Component.processEvent
(Component.java:4897)
at java.awt.Container.processEvent
(Container.java:1569)
at java.awt.Component.dispatchEventImpl
(Component.java:3615)
at java.awt.Container.dispatchEventImpl
(Container.java:1627)
at java.awt.Component.dispatchEvent
(Component.java:3477)
at
java.awt.LightweightDispatcher.retargetMouseEvent
(Container.java:3483
)
at
java.awt.LightweightDispatcher.processMouseEvent
(Container.java:3198)
at java.awt.LightweightDispatcher.dispatchEvent
(Container.java:3128)
at java.awt.Container.dispatchEventImpl
(Container.java:1613)
at java.awt.Window.dispatchEventImpl
(Window.java:1606)
at java.awt.Component.dispatchEvent
(Component.java:3477)
at java.awt.EventQueue.dispatchEvent
(EventQueue.java:456)
at
java.awt.EventDispatchThread.pumpOneEventForHierarch
y(EventDispatchTh
read.java:201)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy
(EventDispatchThre
ad.java:151)
at java.awt.EventDispatchThread.pumpEvents
(EventDispatchThread.java:145)
at java.awt.EventDispatchThread.pumpEvents
(EventDispatchThread.java:137)
at java.awt.EventDispatchThread.run
(EventDispatchThread.java:100)
Caused by: java.lang.ClassNotFoundException:
oracle.jdbc.OracleDriver
at java.net.URLClassLoader$1.run
(URLClassLoader.java:199)
at java.security.AccessController.doPrivileged
(Native Method)
at java.net.URLClassLoader.findClass
(URLClassLoader.java:187)
at java.lang.ClassLoader.loadClass
(ClassLoader.java:289)
at java.lang.ClassLoader.loadClass
(ClassLoader.java:235)
at java.lang.ClassLoader.loadClassInternal
(ClassLoader.java:302)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:219)
at
org.jewelbox.service.connect.jdbc.direct.JDBCDirectConn
ectionSvc.getC
onnection(JDBCDirectConnectionSvc.java:134)
... 54 more
service configuration file