Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Dali » ClassLoader, GlassFish for Java SE and Eclipse-RichClient
ClassLoader, GlassFish for Java SE and Eclipse-RichClient [message #578099] Wed, 29 March 2006 14:56
Eclipse UserFriend
Originally posted by: traykov.yahoo.com

Hi,
My question is "Do I need in Daly a personal ClassLoader if i use it from
within an Eclipse plugin and how is solved this specification issue in
Dali?

I know here is not the place for such question but I am already desparate
after two days of trying.
I am trying to use the glassfish-implementation for an Eclipse RichClient
application and I get always the same ClassCast exception (given at the
end of this posting). From a TestCase in the same directory it works
(within eclipse). I have debugged the application with the source code
from glassfish (class Persistence : line 88) and I really dont understand
why I cannot cast the returned (not null) object from type
EntityManagerFactoryProvider to the PersistenceProvider :

providers.add((PersistenceProvider)loader.loadClass(s).newIn stance());

I tried to start the application also without the LazyStart option and
also by setting the default class loader to the one which eclipse (current
thread) uses (also loading with it the EntityManagerFactoryProvider).
Didn't help. It has in my opinion to do with the runtime-properties of the
project, so I will really appreciate an opinion about the meaning of this
exception.

java.lang.ClassCastException:
oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvi der
at javax.persistence.Persistence.findAllProviders(Persistence.j ava:88)
at
javax.persistence.Persistence.createEntityManagerFactory(Per sistence.java:55)
at
javax.persistence.Persistence.createEntityManagerFactory(Per sistence.java:48)
...
Previous Topic:Questions about M1, I2 drop of Dali
Next Topic:Mising Persistence Class
Goto Forum:
  


Current Time: Fri Apr 26 22:30:09 GMT 2024

Powered by FUDForum. Page generated in 0.02814 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top