WebSphere Application Server - How can I get the class preference in emf class my sharedlibry

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Application Server > October 2006 > How can I get the class preference in emf class my sharedlibry





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author How can I get the class preference in emf class my sharedlibry

2006-10-28, 1:41 pm

Hi All,
I have been using EMF 2.0.1 and recently migrated to EMF 2.2.1.
Our application is deployed and run on WebSphere (IBM WebSphere Application Server, 6.0.2.5). The issue is though my shared libry contains the ecore-2.2.1.jar file (org.eclipse.emf.ecore_2.2.1.v200609141116.jar) , it complains of misiing method as follows
;

"java.lang.NoSuchMethodError: org.eclipse.emf.ecore.EPackage$Registry: method getEFactory(Ljava/lang/StringLorg/eclipse/emf/ecore/EFactory; not found"

I found that with websphere installation there is emf.jar file in WAS_HOME\AppServer\lib folder which is a older emf.jar file that come with WebSphere. EPackage$Registry class this jar file the getEFactory method is missing. (getEFactory method is availab
le in ecore-2.2.1.jar file in my shared libry.).

So the issue my application uses older emf.jar in WAS_HOME\AppServer\lib to load EPackage$Registry class.

How can I get around this isuue?

I tried with "Parent Last" option without luck.
How can get prefernce to emf-2.2.1.jar in my sharedlib over emf.jar in WAS_HOME\AppServer\lib

Regards,
Nalaka
http://javatouch.googlepages.com

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com