incubator-graffito-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Mora" <>
Subject Classloader problem
Date Wed, 19 Apr 2006 02:11:05 GMT
Hi all,
I am successfully integrating Graffito mapping tools into my J2EE CMS
environment. But now Im facing a classloader problem. The following code is
throwing a ClassCastException in (DefaultTipology) because
DefaultTipology.class.getClassLoader() !=
One is LocalClassLoader and the other is WebAppClassLoader.

          Filter filter = this.queryManager.createFilter(
          Query query = this.queryManager.createQuery(filter);
          Collection result = this.persistenceManager.getObjects(query);
          Iterator resultIter = result.iterator();
              DefaultTipology defTipo = (DefaultTipology);

Is there a way to set the classloader in graffito, in order to have only one
instance of a class?

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message