Topic
  • No replies
SystemAdmin
SystemAdmin
1479 Posts

Pinned topic ClassNotFoundExcetion while running Headless ANT in WSAD v 5.1

‏2006-10-12T13:51:20Z |
Hi,
I'am trying to run WSAD v 5.1 Headless ANT using the runtime from <WSAD_INSTALL_PATH>\Application Developer\v5.1\runtimes\base_v51\java\jre\bin.
It is giving me a java.lang.ClassNotFoundException: com.ibm.etools.rdblib.dcm.DriverConnectionManager. Here is the stack.
java.lang.ClassNotFoundException: com.ibm.etools.rdblib.dcm.DriverConnectionManager
at java.net.URLClassLoader.findClass(URLClassLoader.java(Compiled Code))
at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code))
at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code))
at at com.ibm.etools.rdblib.AvailableDrivers.<clinit>(AvailableDrivers.java:223).null(Unknown Source)
at com.ibm.etools.rdblib.RDBConnectionAPI.getAvailableDriversSingleton(RDBConnectionAPI.java:202)
at com.ibm.etools.rdblib.RDBConnectionAPI.getAvailableDrivers(RDBConnectionAPI.java:192)
at com.ibm.etools.websphere.tools.internal.util.Db2LocationFinder.getInstalledDB2DriverLocation(Db2LocationFinder.java:53)
at com.ibm.etools.websphere.tools.WebSpherePlugin.startup(WebSpherePlugin.java:575)
at org.eclipse.core.internal.plugins.PluginDescriptor$1.run(PluginDescriptor.java:736)
at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1006)
at org.eclipse.core.internal.plugins.PluginDescriptor.internalDoPluginActivation(PluginDescriptor.java:748)
at org.eclipse.core.internal.plugins.PluginDescriptor.doPluginActivation(PluginDescriptor.java:188)
at org.eclipse.core.internal.plugins.PluginClassLoader.activatePlugin(PluginClassLoader.java:112)
at org.eclipse.core.internal.plugins.PluginClassLoader.internalFindClassParentsSelf(PluginClassLoader.java(Compiled Code))
at org.eclipse.core.internal.boot.DelegatingURLClassLoader.findClassParentsSelf(DelegatingURLClassLoader.java(Compiled Code))
at org.eclipse.core.internal.boot.DelegatingURLClassLoader.loadClass(DelegatingURLClassLoader.java(Inlined Compiled Code))
at org.eclipse.core.internal.boot.DelegatingURLClassLoader.access$0(DelegatingURLClassLoader.java(Inlined Compiled Code))
at org.eclipse.core.internal.boot.DelegatingURLClassLoader$DelegateLoader.loadClass(DelegatingURLClassLoader.java(Inlined Compiled Code))
at org.eclipse.core.internal.boot.DelegatingURLClassLoader.findClassPrerequisites(DelegatingURLClassLoader.java(Compiled Code))
at org.eclipse.core.internal.boot.DelegatingURLClassLoader.loadClass(DelegatingURLClassLoader.java(Compiled Code))
at org.eclipse.core.internal.boot.DelegatingURLClassLoader.loadClass(DelegatingURLClassLoader.java(Compiled Code))
at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code))

The same exact script runs fine when I run it with in WSAD.
I even included the jar containing this class in the runtime classpath extension of the plugin.
Extract from plugin.xml of com.ibm.etools.rdblib_5.1.2 plugin.

<!-- Extra Classpath -->
<extension point="org.eclipse.ant.core.extraClasspathEntries">
<extraClasspathEntry library="runtime/dcm.jar"/>
</extension>

If anyone has any idea of what it could be I will really appreciate it.

Thanks for taking time to read my post.

Sowjanya Janga