Re: migrating to ojb 1.0.4 NoSuchMethodError

mananthakris <[email protected]>
Newsgroups gmane.comp.jakarta.ojb.user
Message-ID <[email protected]>
I see that OJB.getInstance() is different and the jndi lookup should still be
accessible.

Can i still use ODMGFactory for jndi lookup? we are using it with jboss.
Does the latest distribution not include the class ODMGFactory?

mananthakris wrote:
> 
> Hi,
> Migrating to ojb 1.0.4 from ojb.1.0.rc4 gives error while trying to get
> Implementation class for odmg-api.
> 
> Does ODMGFactory no longer exist? We use to write an mbean in
> jboss-service.xml and use jndi lookup in ejb create to get the
> Implementation. 
> this was our code before and does not work because of compilation error
> class ODMGFactory not found. Tried using ODMGJ2EEFactory instead. Does not
> work (gives OJB<init> noclassdeffounderror)
> ODMGFactory factory = (ODMGFactory)  ctx.lookup("java:/ojb/defaultODMG");
> 
> Now the document suggests use OJB.getInstance() but this gives error 
> NoSuchMethodError:
> org.apache.ojb.odmg.OJB.getInstance()Lorg/odmg/Implementation; 
> 
> What is the right way to get the Implementation instance?
> 
> 

-- 
View this message in context: http://www.nabble.com/migrating-to-ojb-1.0.4-NoSuchMethodError-tf2817734.html#a7865765
Sent from the Apache DB - ObjectRelationalBridge Users mailing list archive at Nabble.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.