Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 419205 - Acceleo Plugin Application Runner doesn't work in Luna
Summary: Acceleo Plugin Application Runner doesn't work in Luna
Status: CLOSED FIXED
Alias: None
Product: Acceleo
Classification: Modeling
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 blocker
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-11 05:01 EDT by Laurent Goubet CLA
Modified: 2015-05-27 08:54 EDT (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Laurent Goubet CLA 2013-10-11 05:01:43 EDT
This bug affects all versions of Acceleo, on all released versions of Luna.

Though standalone generations will still function as expected, all other uses will run into unspecified exceptions since some of the eclipse-specific code itself does not compile.

What no longer compiles are the accesses to restricted code documented on bug 271761. There still is no open API to properly deploy (and uninstall) workspace projects in the current Eclipse instance.

Acceleo needs to alter the project's classpath at deployment time so that the corresponding deployed bundle knows that its classes are located in the java output folders ("bin" by default). This cannot be done by modifying the MANIFEST.MF on disk, and there is no longer a means, even restricted, to change it transparently before deployment.
Comment 1 Yvan Lussaud CLA 2014-06-06 04:33:51 EDT
- set the standalone launch by default
- add an error message on Luna and newer when the plugin launch is selected
 
see https://git.eclipse.org/r/28098
Comment 2 Cedric Brun CLA 2014-06-11 05:33:51 EDT
Validated with Build 3.5.0.201406101309
Comment 3 Matt Potter CLA 2014-08-31 20:35:22 EDT
(In reply to Laurent Goubet from comment #0)
> This bug affects all versions of Acceleo, on all released versions of Luna.
> 

The problem seems to be with Acceleo 3.5.0, not specific to Luna.  I'm experiencing this bug affecting Acceleo 3.5.0 on Kepler and Juno as well.  I follow these steps:
1. Fresh install of Luna, Kepler or Juno
2. Install Acceleo 3.5.0
3. Install UML2 Extender SDK
4. Create new Acceleo project
5. Create new UML Example model
6. Select Runner: Acceleo Plugin Application
7. Run...

Results:
On Luna I confirm I see the error message Yvan cites on the run configuration
On Eclipse Juno, Kepler and Luna I get exactly the same 3 error/warning messages when I launch the Acceleo Plugin Application runner:

- Couldn't load class org.eclipse.acceleo.module.sample.main.Generate from project org.eclipse.acceleo.module.sample
- Couldn't load class org.eclipse.acceleo.module.sample.main.Generate. Check that its containing package is exported.
- The activator org.eclipse.acceleo.module.sample.Activator for bundle org.eclipse.acceleo.module.sample is invalid

Environment is MacOs/JDK-1.6.
Comment 4 Stephane Begaudeau CLA 2014-09-01 03:56:41 EDT
(In reply to Matt Potter from comment #3)
> (In reply to Laurent Goubet from comment #0)
> > This bug affects all versions of Acceleo, on all released versions of Luna.
> > 
> 
> The problem seems to be with Acceleo 3.5.0, not specific to Luna.  I'm
> experiencing this bug affecting Acceleo 3.5.0 on Kepler and Juno as well.  I
> follow these steps:
> 1. Fresh install of Luna, Kepler or Juno
> 2. Install Acceleo 3.5.0
> 3. Install UML2 Extender SDK
> 4. Create new Acceleo project
> 5. Create new UML Example model
> 6. Select Runner: Acceleo Plugin Application
> 7. Run...
> 
> Results:
> On Luna I confirm I see the error message Yvan cites on the run configuration
> On Eclipse Juno, Kepler and Luna I get exactly the same 3 error/warning
> messages when I launch the Acceleo Plugin Application runner:
> 
> - Couldn't load class org.eclipse.acceleo.module.sample.main.Generate from
> project org.eclipse.acceleo.module.sample
> - Couldn't load class org.eclipse.acceleo.module.sample.main.Generate. Check
> that its containing package is exported.
> - The activator org.eclipse.acceleo.module.sample.Activator for bundle
> org.eclipse.acceleo.module.sample is invalid
> 
> Environment is MacOs/JDK-1.6.

The issue that you are reporting is a different one. Your issues is known, the problem comes from the fact that we can't find the classloader of your plugin. Try to clean your project, close it and reopn it, or re-import it in Eclipse.
Comment 5 Matt Potter CLA 2014-09-03 12:06:57 EDT
(In reply to Stephane Begaudeau from comment #4)
> (In reply to Matt Potter from comment #3)
> > (In reply to Laurent Goubet from comment #0)
> > > This bug affects all versions of Acceleo, on all released versions of Luna.
> > > 
> > 
> > The problem seems to be with Acceleo 3.5.0, not specific to Luna.  I'm
> > experiencing this bug affecting Acceleo 3.5.0 on Kepler and Juno as well.  I
> > follow these steps:
> > 1. Fresh install of Luna, Kepler or Juno
> > 2. Install Acceleo 3.5.0
> > 3. Install UML2 Extender SDK
> > 4. Create new Acceleo project
> > 5. Create new UML Example model
> > 6. Select Runner: Acceleo Plugin Application
> > 7. Run...
> > 
> > Results:
> > On Luna I confirm I see the error message Yvan cites on the run configuration
> > On Eclipse Juno, Kepler and Luna I get exactly the same 3 error/warning
> > messages when I launch the Acceleo Plugin Application runner:
> > 
> > - Couldn't load class org.eclipse.acceleo.module.sample.main.Generate from
> > project org.eclipse.acceleo.module.sample
> > - Couldn't load class org.eclipse.acceleo.module.sample.main.Generate. Check
> > that its containing package is exported.
> > - The activator org.eclipse.acceleo.module.sample.Activator for bundle
> > org.eclipse.acceleo.module.sample is invalid
> > 
> > Environment is MacOs/JDK-1.6.
> 
> The issue that you are reporting is a different one. Your issues is known,
> the problem comes from the fact that we can't find the classloader of your
> plugin. Try to clean your project, close it and reopn it, or re-import it in
> Eclipse.

Confirmed.  It looks exactly like this issue.  Here's what worked:
Using fresh install of Kepler w/Acceleo 3.5.0
- Clean (no change)
- Close all files and projects & reopen (no change)
- Startup Eclipse in a fresh workspace and import projects into it (WORKED!, no errors)
Comment 6 Matt Potter CLA 2014-09-03 12:48:42 EDT
(In reply to Matt Potter from comment #5)
> (In reply to Stephane Begaudeau from comment #4)
> > (In reply to Matt Potter from comment #3)
> > > (In reply to Laurent Goubet from comment #0)
> > > > This bug affects all versions of Acceleo, on all released versions of Luna.
> > > > 
> > > 
> > > The problem seems to be with Acceleo 3.5.0, not specific to Luna.  I'm
> > > experiencing this bug affecting Acceleo 3.5.0 on Kepler and Juno as well.  I
> > > follow these steps:
> > > 1. Fresh install of Luna, Kepler or Juno
> > > 2. Install Acceleo 3.5.0
> > > 3. Install UML2 Extender SDK
> > > 4. Create new Acceleo project
> > > 5. Create new UML Example model
> > > 6. Select Runner: Acceleo Plugin Application
> > > 7. Run...
> > > 
> > > Results:
> > > On Luna I confirm I see the error message Yvan cites on the run configuration
> > > On Eclipse Juno, Kepler and Luna I get exactly the same 3 error/warning
> > > messages when I launch the Acceleo Plugin Application runner:
> > > 
> > > - Couldn't load class org.eclipse.acceleo.module.sample.main.Generate from
> > > project org.eclipse.acceleo.module.sample
> > > - Couldn't load class org.eclipse.acceleo.module.sample.main.Generate. Check
> > > that its containing package is exported.
> > > - The activator org.eclipse.acceleo.module.sample.Activator for bundle
> > > org.eclipse.acceleo.module.sample is invalid
> > > 
> > > Environment is MacOs/JDK-1.6.
> > 
> > The issue that you are reporting is a different one. Your issues is known,
> > the problem comes from the fact that we can't find the classloader of your
> > plugin. Try to clean your project, close it and reopn it, or re-import it in
> > Eclipse.
> 
> Confirmed.  It looks exactly like this issue.  Here's what worked:
> Using fresh install of Kepler w/Acceleo 3.5.0
> - Clean (no change)
> - Close all files and projects & reopen (no change)
> - Startup Eclipse in a fresh workspace and import projects into it (WORKED!,
> no errors)

I failed to noticed that Acceleo 3.5.0 defaulted to 'Java Application' instead of 'Acceleo Plugin Application' when I did my experiment so my results posted above are invalid.  Since you are telling me this issue is known and different from the bug here, I'll take this up in the appropriate forum/bug thread and try to find a way to use 3.5.0 under Kepler.  Thanks.
Comment 7 Laurent Goubet CLA 2015-05-27 08:54:48 EDT
Closing resolved bugs