|
Anver,
On the server side, Cactus will use the class
loader used by the redirector to load any class (i.e. that classloader will use
any class in weblogic.classpath). From the stack trace you are showing, I don't
see how the problem relates to Cactus as :
- the weblogic.jdbcbase.jts.Driver class is not
loaded by Cactus but by your class under test
- there is no mention of Cactus anywhere in the
stack trace
-Vincent
----- Original Message -----
Sent: Tuesday, October 16, 2001 11:59
PM
Subject: Weblogic 5.1
I'm trying to use cactus to
test a servlet that makes a JDBC connection and it fails:
Testcase: testConnection took 1.503 sec
Caused an ERROR
weblogic/jdbc20/jts/Driver java.lang.NoClassDefFoundError:
weblogic/jdbcbase/jts/Driver
at java.lang.ClassLoader.defineClass0(Native Method) at
java.lang.ClassLoader.defineClass(ClassLoader.java:486) at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
at
java.net.URLClassLoader.defineClass(URLClassLoader.java:248) at
java.net.URLClassLoader.access$100(URLClassLoader.java:56) at
java.net.URLClassLoader$1.run(URLClassLoader.java:195) at
java.security.AccessController.doPrivileged(Native Method) at
java.net.URLClassLoader.findClass(URLClassLoader.java:188) at
java.lang.ClassLoader.loadClass(ClassLoader.java:297) at
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286) at
java.lang.ClassLoader.loadClass(ClassLoader.java:253) at
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
And problem is : I cannot put
/classes/weblogic in classpath because weblogic uses -Dweblogic.classpath variable for it's classpath
and if I try to put it in -classpath
weblogic just don't start
How can
I setup Cactus to use classpath from -Dweblogic.classpath instead of standard
classpath?
|