Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [QVTO] ClassNotFound in blackbox
[QVTO] ClassNotFound in blackbox [message #547742] Mon, 19 July 2010 13:58 Go to next message
Christophe Bouhier is currently offline Christophe BouhierFriend
Messages: 937
Registered: July 2009
Senior Member
Hi,

I get an error with QVTO tries to load my utility library.

Errors running builder 'QVT Operational Builder' on project
'com.netxforge.x.m2m.xls'.


It tries to load one of the defined methods which returns a custom ECore
Package. (NetworksPackage).

java.lang.NoClassDefFoundError: com/netxforge/d/networks/NetworksPackage
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
at java.lang.Class.getDeclaredMethods(Class.java:1791)

How do I instruct QVTO to recognize this package?
(The plugin, exposing the package is actually loaded in the platform).

Thx Christophe
Re: [QVTO] ClassNotFound in blackbox [message #547752 is a reply to message #547742] Mon, 19 July 2010 14:16 Go to previous messageGo to next message
Sergey Boyko is currently offline Sergey BoykoFriend
Messages: 171
Registered: July 2009
Senior Member
Hi Christophe,

Remember to declare used metamodels in library's definition. I.e.
something like follows (note that separate <metamodel> tag should
reference your metamodel where NetworksPackage is declared):

<extension point="org.eclipse.m2m.qvt.oml.javaBlackboxUnits">
<unit name="Foo" namespace="org.bar">
<library name="FooJavaLib"
class="org.eclipse.m2m.tests.qvt.oml.bbox.AnnotatedJavaLibrary ">
<metamodel
nsURI=" http://www.eclipse.org/qvt/1.0.0/Operational/examples/simple uml"/>

<metamodel nsURI="http://www.eclipse.org/emf/2002/Ecore"/>
<metamodel nsURI="http://www.eclipse.org/uml2/3.0.0/UML"/>
<metamodel
nsURI="http://www.eclipse.org/qvt/1.0.0/Operational/Expressions"/>
</library>
</unit>
</extension>


Regards,
Sergey.


Christophe Bouhier wrote:
> Hi,
>
> I get an error with QVTO tries to load my utility library.
>
> Errors running builder 'QVT Operational Builder' on project
> 'com.netxforge.x.m2m.xls'.
>
>
> It tries to load one of the defined methods which returns a custom ECore
> Package. (NetworksPackage).
>
> java.lang.NoClassDefFoundError: com/netxforge/d/networks/NetworksPackage
> at java.lang.Class.getDeclaredMethods0(Native Method)
> at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
> at java.lang.Class.getDeclaredMethods(Class.java:1791)
>
> How do I instruct QVTO to recognize this package?
> (The plugin, exposing the package is actually loaded in the platform).
>
> Thx Christophe
Re: [QVTO] ClassNotFound in blackbox [message #547952 is a reply to message #547752] Tue, 20 July 2010 09:19 Go to previous message
Christophe Bouhier is currently offline Christophe BouhierFriend
Messages: 937
Registered: July 2009
Senior Member
Ah.. of course.
.......Still trying to grasp all of this, and the platform wasn't
reloading my exported packages containing the metamodel declaration in
/dropins.... (sight).


Cheers Christophe


Sergey Boyko wrote:
> Hi Christophe,
>
> Remember to declare used metamodels in library's definition. I.e.
> something like follows (note that separate <metamodel> tag should
> reference your metamodel where NetworksPackage is declared):
>
> <extension point="org.eclipse.m2m.qvt.oml.javaBlackboxUnits">
> <unit name="Foo" namespace="org.bar">
> <library name="FooJavaLib"
> class="org.eclipse.m2m.tests.qvt.oml.bbox.AnnotatedJavaLibrary ">
> <metamodel
> nsURI=" http://www.eclipse.org/qvt/1.0.0/Operational/examples/simple uml"/>
>
> <metamodel nsURI="http://www.eclipse.org/emf/2002/Ecore"/>
> <metamodel nsURI="http://www.eclipse.org/uml2/3.0.0/UML"/>
> <metamodel
> nsURI="http://www.eclipse.org/qvt/1.0.0/Operational/Expressions"/>
>
> </library>
> </unit>
> </extension>
>
>
> Regards,
> Sergey.
>
>
> Christophe Bouhier wrote:
>> Hi,
>>
>> I get an error with QVTO tries to load my utility library.
>>
>> Errors running builder 'QVT Operational Builder' on project
>> 'com.netxforge.x.m2m.xls'.
>>
>>
>> It tries to load one of the defined methods which returns a custom
>> ECore Package. (NetworksPackage).
>>
>> java.lang.NoClassDefFoundError: com/netxforge/d/networks/NetworksPackage
>> at java.lang.Class.getDeclaredMethods0(Native Method)
>> at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
>> at java.lang.Class.getDeclaredMethods(Class.java:1791)
>>
>> How do I instruct QVTO to recognize this package?
>> (The plugin, exposing the package is actually loaded in the platform).
>>
>> Thx Christophe
Previous Topic:[ATL] EEnum to EClass
Next Topic:[QVTO] object creation, using EMF reflection API.
Goto Forum:
  


Current Time: Tue Dec 03 05:42:16 GMT 2024

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

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

Back to the top