Skip to main content



      Home
Home » Archived » M2M (model-to-model transformation) » [QVTO] ClassNotFound in blackbox
[QVTO] ClassNotFound in blackbox [message #547742] Mon, 19 July 2010 09:58 Go to next message
Eclipse UserFriend
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 10:16 Go to previous messageGo to next message
Eclipse UserFriend
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 05:19 Go to previous message
Eclipse UserFriend
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: Mon Jul 07 15:48:39 EDT 2025

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

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

Back to the top