Groups > IBM > WebSphere Studio Workbench > ClassNotFoundExcetion while running Headless ANT in WSAD v 5.1




ClassNotFoundExcetion while running Headless ANT in WSAD v
5.1

ClassNotFoundExcetion while running Headless ANT in WSAD v 5.1
Thu, 12 Oct 2006 09:51:20 EDT
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(RDBConnectio
nAPI.java:202)
	at
com.ibm.etools.rdblib.RDBConnectionAPI.getAvailableDrivers(RDBConnectionAPI.java
:192)
	at
com.ibm.etools.websphere.tools.internal.util.Db2LocationFinder.getInstalledDB2Dr
iverLocation(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:7
36)
	at
org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:100
6)
	at
org.eclipse.core.internal.plugins.PluginDescriptor.internalDoPluginActivation(Pl
uginDescriptor.java:748)
	at
org.eclipse.core.internal.plugins.PluginDescriptor.doPluginActivation(PluginDesc
riptor.java:188)
	at
org.eclipse.core.internal.plugins.PluginClassLoader.activatePlugin(PluginClassLo
ader.java:112)
	at
org.eclipse.core.internal.plugins.PluginClassLoader.internalFindClassParentsSelf
(PluginClassLoader.java(Compiled Code))
	at
org.eclipse.core.internal.boot.DelegatingURLClassLoader.findClassParentsSelf(Del
egatingURLClassLoader.java(Compiled Code))
	at
org.eclipse.core.internal.boot.DelegatingURLClassLoader.loadClass(DelegatingURLC
lassLoader.java(Inlined Compiled Code))
	at
org.eclipse.core.internal.boot.DelegatingURLClassLoader.access$0(DelegatingURLCl
assLoader.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(D
elegatingURLClassLoader.java(Compiled Code))
	at
org.eclipse.core.internal.boot.DelegatingURLClassLoader.loadClass(DelegatingURLC
lassLoader.java(Compiled Code))
	at
org.eclipse.core.internal.boot.DelegatingURLClassLoader.loadClass(DelegatingURLC
lassLoader.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.

Post Reply
about | contact