From: Tom W. <to...@ss...> - 2001-08-09 22:36:24
|
I've run into a situation where I want to: from visad.data.mcidas import PointData and there is an object named "visad.Data" which is confusing the class loader somewhere along the line (big stack trace follows...sorry). I cannot change the names in this library, so I'm hoping someone has a suggestion as to how I can work around this. I've tried some permutations, but nothing seems to work via Jython. I'm running Windoz and Jython 2.0. Sorry if this has been answered before, but a bit of searching did not turn up anything... Thanks... tom ============== D:\src\visad\python>jy profiler.py Traceback (innermost last): File "profiler.py", line 4, in ? java.lang.NoClassDefFoundError: visad/data (wrong name: visad/Data) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:486) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:11 1) 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) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:120) at org.python.core.SyspathJavaLoader.loadClass(SyspathJavaLoader.java:57 ) at java.lang.ClassLoader.loadClass(ClassLoader.java:253) at org.python.core.Py.findClassEx(Py.java:607) at org.python.core.SysPackageManager.findClass(SysPackageManager.java:91 ) at org.python.core.PackageManager.findClass(PackageManager.java:19) at org.python.core.SysPackageManager.findClass(SysPackageManager.java:83 ) at org.python.core.PyJavaPackage.__findattr__(PyJavaPackage.java:128) at org.python.core.PyObject.impAttr(PyObject.java:633) at org.python.core.imp.dottedFind(imp.java:412) at org.python.core.imp.importName(imp.java:436) at org.python.core.imp.importName(imp.java:509) at org.python.core.ImportFunction.load(__builtin__.java:967) at org.python.core.ImportFunction.__call__(__builtin__.java:961) at org.python.core.PyObject.__call__(PyObject.java:250) at org.python.core.__builtin__.__import__(__builtin__.java:921) at org.python.core.imp.importAll(imp.java:592) at org.python.pycode._pyx0.f$0(profiler.py) at org.python.pycode._pyx0.call_function(profiler.py) at org.python.core.PyTableCode.call(PyTableCode.java:155) at org.python.core.Py.runCode(Py.java:1055) at org.python.core.__builtin__.execfile(__builtin__.java:288) at org.python.core.__builtin__.execfile(__builtin__.java:292) at org.python.util.PythonInterpreter.execfile(PythonInterpreter.java:155 ) at org.python.util.jython.main(jython.java:159) java.lang.NoClassDefFoundError: java.lang.NoClassDefFoundError: visad/data (wron g name: visad/Data) ==================== -- Tom Whittaker (to...@ss...) University of Wisconsin-Madison Space Science and Engineering Center Phone/VoiceMail: 608/262-2759 Fax: 608/262-5974 |