Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Can not create orm.xml using Teneo in Galileo SP1( I recently upgraded to Galileo SP1 from the original Galileo release and can no longer generate orm.xml files from my model (ecore) using Teneo)
Can not create orm.xml using Teneo in Galileo SP1 [message #488737] Wed, 30 September 2009 03:09 Go to next message
Matthew Fitzgerald is currently offline Matthew FitzgeraldFriend
Messages: 13
Registered: July 2009
Junior Member
I recently upgraded to Galileo SP1 from the original Galileo release and can no longer generate orm.xml files from my model (ecore) using Teneo. All was working fine before the upgrade. Anyone having the same problem? If so, I will enter a bug report.

I am using the Galileo Modeling package and have done additional testing on clean installs as follows. All works fine with the original Galileo Modeling distribution, but SP1 is the one failing. In my testing, I am using my own ecore model as well as the latest example (org.eclipse.emf.teneo.eclipselink.examples.library) from the CVS HEAD.

A. Using a clean install of the original Eclipse Galileo Modeling distribution (eclipse-modeling-galileo-incubation-win32.zip; build ID: 20090619-0625):

A.1 Add the current org.apache.commons.logging (1.1.1) to the plugins folder. This is now the required version (instead of 1.0.4) per the manifest.mf of the example.

A.2 Generated the orm.xml (Teneo->Generate ORM File) on the library.ecore.

A.3 All worked fine - no errors.

B. Using a clean install of the SP1 Eclipse Galileo Modeling distribution (eclipse-modeling-galileo-SR1-incubation-win32.zip; build ID: 20090920-1017):

B.1 No need to add the current org.apache.commons.logging (1.1.1) to the plugins folder - it is already included in the distribution.

B.2 Generated the orm.xml (Teneo->Generate ORM File) on the library.ecore.

B.3 Received the following error in the console:
java.lang.NoClassDefFoundError: org/eclipse/emf/teneo/TeneoException
Caused by: java.lang.ClassNotFoundException: org.eclipse.emf.teneo.TeneoException
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301 )
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320 )
Exception in thread "main"

Any thoughts would be appreciated.

Matthew

Re: Can not create orm.xml using Teneo in Galileo SP1 [message #488740 is a reply to message #488737] Wed, 30 September 2009 05:32 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Matthew,
I can try to reproduce this. To do that, what are the plugin dependencies set in the Manifest.MF in which you try to
generate the orm.xml?

gr. Martin

Matthew Fitzgerald wrote:
> I recently upgraded to Galileo SP1 from the original Galileo release
> and can no longer generate orm.xml files from my model (ecore) using
> Teneo. All was working fine before the upgrade. Anyone having the same
> problem? If so, I will enter a bug report.
>
> I am using the Galileo Modeling package and have done additional
> testing on clean installs as follows. All works fine with the original
> Galileo Modeling distribution, but SP1 is the one failing. In my
> testing, I am using my own ecore model as well as the latest example
> (org.eclipse.emf.teneo.eclipselink.examples.library) from the CVS HEAD.
>
> A. Using a clean install of the original Eclipse Galileo Modeling
> distribution (eclipse-modeling-galileo-incubation-win32.zip; build ID:
> 20090619-0625):
>
> A.1 Add the current org.apache.commons.logging (1.1.1) to the
> plugins folder. This is now the required version (instead of 1.0.4) per
> the manifest.mf of the example.
>
> A.2 Generated the orm.xml (Teneo->Generate ORM File) on the
> library.ecore.
>
> A.3 All worked fine - no errors.
>
> B. Using a clean install of the SP1 Eclipse Galileo Modeling
> distribution (eclipse-modeling-galileo-SR1-incubation-win32.zip; build
> ID: 20090920-1017):
>
> B.1 No need to add the current org.apache.commons.logging (1.1.1)
> to the plugins folder - it is already included in the distribution.
>
> B.2 Generated the orm.xml (Teneo->Generate ORM File) on the
> library.ecore.
>
> B.3 Received the following error in the console:
> java.lang.NoClassDefFoundError: org/eclipse/emf/teneo/TeneoException
> Caused by: java.lang.ClassNotFoundException:
> org.eclipse.emf.teneo.TeneoException
> at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301 )
> at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320 )
> Exception in thread "main"
> Any thoughts would be appreciated.
>
> Matthew
>
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: Can not create orm.xml using Teneo in Galileo SP1 [message #488752 is a reply to message #488740] Wed, 30 September 2009 06:51 Go to previous messageGo to next message
Matthew Fitzgerald is currently offline Matthew FitzgeraldFriend
Messages: 13
Registered: July 2009
Junior Member
Martin,

Thanks! I can get it to fail using the example from the eclipse CVS at org.eclipse.emf.teneo.eclipselink.examples.library exactly as the current HEAD reads - no modifications by me. The manifest.mf CVS revision is 1.7 and reads as follows:

Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-SymbolicName: org.eclipse.emf.teneo.eclipselink.examples.library;singleton :=true
Bundle-Version: 1.0.0.qualifier
Bundle-ClassPath: .
Bundle-Activator: org.eclipse.emf.teneo.eclipselink.examples.library.Activator $Implementation
Bundle-Vendor: %providerName
Bundle-Localization: plugin
Bundle-RequiredExecutionEnvironment: J2SE-1.5
Export-Package: META-INF,
org.eclipse.emf.teneo.eclipselink.examples.library,
org.eclipse.emf.teneo.eclipselink.examples.library.forum,
org.eclipse.emf.teneo.eclipselink.examples.library.forum.imp l,
org.eclipse.emf.teneo.eclipselink.examples.library.forum.uti l,
org.eclipse.emf.teneo.eclipselink.examples.library.impl,
org.eclipse.emf.teneo.eclipselink.examples.library.util
Require-Bundle: org.eclipse.core.runtime,
org.eclipse.emf.ecore;visibility:=reexport,
org.eclipse.emf.teneo.eclipselink,
org.apache.derby;bundle-version="10.1.2",
org.apache.commons.logging;bundle-version="1.1.1",
org.eclipse.emf.teneo.orm;bundle-version="1.0.0"
Bundle-ActivationPolicy: lazy


I can also get it to fail with my model. My manifest.mf reads as follows:

Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-SymbolicName: org.mfitzgerald.cms.data.model;singleton:=true
Bundle-Version: 1.0.0
Bundle-ClassPath: .
Bundle-Vendor: %providerName
Bundle-Localization: plugin
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Export-Package: META-INF,
org.mfitzgerald.cms.data,
org.mfitzgerald.cms.data.impl,
org.mfitzgerald.cms.data.util
Require-Bundle: org.eclipse.core.runtime,
org.eclipse.emf.ecore;visibility:=reexport,
org.apache.commons.logging;bundle-version="1.1.1",
org.eclipse.emf.teneo.orm;bundle-version="1.0.0"
Bundle-ActivationPolicy: lazy


If you can reproduce the error, I can submit a bug report.

Matthew
Re: Can not create orm.xml using Teneo in Galileo SP1 [message #490729 is a reply to message #488752] Fri, 09 October 2009 21:09 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Matthew,
Not even sure that you are even watching this thread anymore.... It is quite old but here is an answer:
For now you need to add this dependency to the model plugin:
org.eclipse.emf.teneo;bundle-version="1.1.1"

I will repair this in a new build of teneo.

gr. Martin

Matthew Fitzgerald wrote:
> Martin,
>
> Thanks! I can get it to fail using the example from the eclipse CVS at
> org.eclipse.emf.teneo.eclipselink.examples.library exactly as the
> current HEAD reads - no modifications by me. The manifest.mf CVS
> revision is 1.7 and reads as follows:
>
> Manifest-Version: 1.0
> Bundle-ManifestVersion: 2
> Bundle-Name: %pluginName
> Bundle-SymbolicName:
> org.eclipse.emf.teneo.eclipselink.examples.library;singleton :=true
> Bundle-Version: 1.0.0.qualifier
> Bundle-ClassPath: .
> Bundle-Activator:
> org.eclipse.emf.teneo.eclipselink.examples.library.Activator
> $Implementation
> Bundle-Vendor: %providerName
> Bundle-Localization: plugin
> Bundle-RequiredExecutionEnvironment: J2SE-1.5
> Export-Package: META-INF,
> org.eclipse.emf.teneo.eclipselink.examples.library,
> org.eclipse.emf.teneo.eclipselink.examples.library.forum,
> org.eclipse.emf.teneo.eclipselink.examples.library.forum.imp l,
> org.eclipse.emf.teneo.eclipselink.examples.library.forum.uti l,
> org.eclipse.emf.teneo.eclipselink.examples.library.impl,
> org.eclipse.emf.teneo.eclipselink.examples.library.util
> Require-Bundle: org.eclipse.core.runtime,
> org.eclipse.emf.ecore;visibility:=reexport,
> org.eclipse.emf.teneo.eclipselink,
> org.apache.derby;bundle-version="10.1.2",
> org.apache.commons.logging;bundle-version="1.1.1",
> org.eclipse.emf.teneo.orm;bundle-version="1.0.0"
> Bundle-ActivationPolicy: lazy
>
>
> I can also get it to fail with my model. My manifest.mf reads as follows:
>
> Manifest-Version: 1.0
> Bundle-ManifestVersion: 2
> Bundle-Name: %pluginName
> Bundle-SymbolicName: org.mfitzgerald.cms.data.model;singleton:=true
> Bundle-Version: 1.0.0
> Bundle-ClassPath: .
> Bundle-Vendor: %providerName
> Bundle-Localization: plugin
> Bundle-RequiredExecutionEnvironment: JavaSE-1.6
> Export-Package: META-INF,
> org.mfitzgerald.cms.data,
> org.mfitzgerald.cms.data.impl,
> org.mfitzgerald.cms.data.util
> Require-Bundle: org.eclipse.core.runtime,
> org.eclipse.emf.ecore;visibility:=reexport,
> org.apache.commons.logging;bundle-version="1.1.1",
> org.eclipse.emf.teneo.orm;bundle-version="1.0.0"
> Bundle-ActivationPolicy: lazy
>
>
> If you can reproduce the error, I can submit a bug report.
>
> Matthew
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: Can not create orm.xml using Teneo in Galileo SP1 [message #490734 is a reply to message #490729] Fri, 09 October 2009 22:13 Go to previous message
Matthew Fitzgerald is currently offline Matthew FitzgeraldFriend
Messages: 13
Registered: July 2009
Junior Member
Martin taal wrote on Fri, 09 October 2009 17:09
Hi Matthew,
Not even sure that you are even watching this thread anymore.... It is quite old but here is an answer:
For now you need to add this dependency to the model plugin:
org.eclipse.emf.teneo;bundle-version="1.1.1"

I will repair this in a new build of teneo.



Martin,

Thanks for taking a look at this and for the pending fix in a future release. I gave the work around a try on both test cases, but it produced a new error:

Exception in thread "main" java.lang.NoClassDefFoundError: org/eclipse/emf/teneo/annotations/pamodel/PAnnotatedEAttribute
	at org.eclipse.emf.teneo.jpa.GenerateORM.createORMapperFile(GenerateORM.java:104)
	at org.eclipse.emf.teneo.jpa.GenerateORM.main(GenerateORM.java:78)
Caused by: java.lang.ClassNotFoundException: org.eclipse.emf.teneo.annotations.pamodel.PAnnotatedEAttribute
	at java.net.URLClassLoader$1.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader.loadClassInternal(Unknown Source)
	... 2 more


I was able to fix this by adding the annotations dependancy to both test cases and all now works. Manifest now reads:

org.eclipse.emf.teneo;bundle-version="1.1.1",
org.eclipse.emf.teneo.annotations;bundle-version="1.1.0"


I have entered a bug:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=291965

Thanks and Regards,

Matthew
Previous Topic:How does find the actual filesystem path for a URI created with URI.createPlatformResourceURI
Next Topic:Removing objects from bi-directional references without notification
Goto Forum:
  


Current Time: Tue Sep 24 01:19:21 GMT 2024

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

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

Back to the top