Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » [Acceleo] Service class not found in the bundle containing module emtl
[Acceleo] Service class not found in the bundle containing module emtl [message #671568] Wed, 18 May 2011 10:52 Go to next message
Lorenzo Bettini is currently offline Lorenzo Bettini
Messages: 1355
Registered: July 2009
Senior Member
Hi

I've just started using Acceleo using
http://wiki.eclipse.org/Acceleo/Getting_Started to write a generator for
the model of a language implemented in xtext; I followed the tutorial to
create a service and a service module (I also export all the plugins,
including the one containing the service java class), but when I run the
generator (with the acceleo ui menu generated using the wizard), the
generator does not seem to find the class of the service

MESSAGE ERROR in (visitOperationCallExp): (Class
org.eclipse.acceleo.module.sample.services.GreetingService Couldn't be
found in the classpath of the bundle containing module
greetingservice.emtl.)
!STACK 0
org.eclipse.acceleo.engine.AcceleoEvaluationException: Class
org.eclipse.acceleo.module.sample.services.GreetingService Couldn't be
found in the classpath of the bundle containing module greetingservice.emtl.

any clue please?

many thanks in advance
Lorenzo

--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
ICQ# lbetto, 16080134 (GNU/Linux User # 158233)
HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com
http://www.myspace.com/supertrouperabba
BLOGS: http://tronprog.blogspot.com http://longlivemusic.blogspot.com
http://www.gnu.org/software/src-highlite
http://www.gnu.org/software/gengetopt
http://www.gnu.org/software/gengen http://doublecpp.sourceforge.net
Re: [Acceleo] Service class not found in the bundle containing module emtl [message #675148 is a reply to message #671568] Mon, 30 May 2011 12:30 Go to previous messageGo to next message
Stephane Begaudeau is currently offline Stephane Begaudeau
Messages: 406
Registered: April 2010
Location: Nantes (France)
Senior Member

Hi,

Do you have a dependency with the project containing the Java service ? Does the package containing the Java service has been exported ? (Manifest.MF -> runtime -> add exported package).

Stephane Begaudeau, Obeo
--
Twitter: @sbegaudeau
Acceleo wiki: http://wiki.eclipse.org/Acceleo
Blogs: http://stephanebegaudeau.tumblr.com & http://sbegaudeau.tumblr.com



Re: [Acceleo] Service class not found in the bundle containing module emtl [message #677007 is a reply to message #675148] Tue, 07 June 2011 09:56 Go to previous messageGo to next message
Lorenzo Bettini is currently offline Lorenzo Bettini
Messages: 1355
Registered: July 2009
Senior Member
On 05/30/2011 02:30 PM, Stephane Begaudeau wrote:
> Hi,
>
> Do you have a dependency with the project containing the Java service ?
> Does the package containing the Java service has been exported ?
> (Manifest.MF -> runtime -> add exported package).

yes, everything was exported... indeed, switching to acceleo 3.0.4 seems
to have fixed the problem, so I guess it was a bug in the previous
version...

cheers
Lorenzo

--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
ICQ# lbetto, 16080134 (GNU/Linux User # 158233)
HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com
http://www.myspace.com/supertrouperabba
BLOGS: http://tronprog.blogspot.com http://longlivemusic.blogspot.com
http://www.gnu.org/software/src-highlite
http://www.gnu.org/software/gengetopt
http://www.gnu.org/software/gengen http://doublecpp.sourceforge.net
Re: [Acceleo] Service class not found in the bundle containing module emtl [message #677338 is a reply to message #677007] Wed, 08 June 2011 08:33 Go to previous messageGo to next message
Stephane Begaudeau is currently offline Stephane Begaudeau
Messages: 406
Registered: April 2010
Location: Nantes (France)
Senior Member

Hi Lorenzeo,

Now that you tell me about it, that was indeed the main bug fixed by 3.0.4
I forgot about this problem. Anyway, I'm glad to hear that everything works fine for you now.

Stephane Begaudeau, Obeo
--
Twitter: @sbegaudeau
Blog: http://stephanebegaudeau.tumblr.com
Acceleo Documentation: http://docs.obeonetwork.com/acceleo




Re: [Acceleo] Service class not found in the bundle containing module emtl [message #696385 is a reply to message #677338] Wed, 13 July 2011 20:42 Go to previous messageGo to next message
David Sauter is currently offline David Sauter
Messages: 6
Registered: July 2011
Junior Member
I'm getting this same error:

ERROR in (visitOperationCallExp): (Class mil.mobile.framework.pim.ecore.gen.java.service.DotPathHelper Couldn't be found in the classpath of the bundle containing module dotPathHelper.emtl.)

The package is exported and it is all one project. What else could be causing this?
Re: [Acceleo] Service class not found in the bundle containing module emtl [message #698286 is a reply to message #696385] Tue, 19 July 2011 08:06 Go to previous message
Laurent Goubet is currently offline Laurent Goubet
Messages: 1625
Registered: July 2009
Senior Member
David,

I've answered this on your thread at http://www.eclipse.org/forums/index.php/t/220923/ .

Laurent Goubet
Obeo
Previous Topic:[Acceleo] Java Service Wrapper issues
Next Topic:[Acceleo/Papyrus] Problem with FlowPort direction
Goto Forum:
  


Current Time: Fri Sep 19 08:02:19 GMT 2014

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

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