Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 330166 - GenerateJsp.emtl transformation does not generate any jsp file.
Summary: GenerateJsp.emtl transformation does not generate any jsp file.
Status: CLOSED WORKSFORME
Alias: None
Product: MoDisco
Classification: Modeling
Component: Technologies (show other bugs)
Version: 0.9.0   Edit
Hardware: PC Windows XP
: P2 normal (vote)
Target Milestone: ---   Edit
Assignee: Nicolas Guyomar CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-13 05:24 EST by Toñi Reina CLA
Modified: 2011-01-11 05:19 EST (History)
4 users (show)

See Also:


Attachments
.jspxmi file to test the GenerateJsp.emtl template. (51.44 KB, text/plain)
2010-11-13 05:24 EST, Toñi Reina CLA
no flags Details
ScreenShot of JSP Generation Configuration (51.73 KB, image/png)
2010-11-15 03:46 EST, Nicolas Guyomar CLA
no flags Details
My screencast with the run configuration (96.45 KB, image/png)
2010-11-15 11:26 EST, Toñi Reina CLA
no flags Details
My screencast while running the configuration (82.85 KB, image/png)
2010-11-15 11:27 EST, Toñi Reina CLA
no flags Details
Screenshot of Modisco plugin installation. (31.56 KB, image/png)
2010-11-16 11:17 EST, Toñi Reina CLA
no flags Details
Modisco Popup Menu (51.44 KB, image/png)
2010-11-16 11:35 EST, Toñi Reina CLA
no flags Details
Eclipse Configuration File (363.50 KB, text/plain)
2010-11-17 12:38 EST, Toñi Reina CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toñi Reina CLA 2010-11-13 05:24:11 EST
Created attachment 183075 [details]
.jspxmi file to test the GenerateJsp.emtl template.

When I run the generateJSP.emtl using the file I have attached as input, no output is generated.

The input file has been generated previously with the jsp discoverer plugin.
Comment 1 Nicolas Guyomar CLA 2010-11-15 03:45:20 EST
Hi Toñi,

I generated 8 JSP files from your .jspxmi model (from exit.jsp to user_login.jsp)

In order to do so, I created a new project in which I copied your model

I did a check out on our jsp generation plugin (http://dev.eclipse.org/svnroot/modeling/org.eclipse.mdt.modisco)

I created an Acceleo Application Run Configuration using the model you gave use and everything seems to work fine. 

I enclose a screenshot of this configuration for you to compare with your work.

Please let us know if this works for you, or if you are using our plugin in a different way

Regards

Nicolas Guyomar
Comment 2 Nicolas Guyomar CLA 2010-11-15 03:46:55 EST
Created attachment 183109 [details]
ScreenShot of JSP Generation Configuration
Comment 3 Toñi Reina CLA 2010-11-15 11:26:24 EST
Created attachment 183135 [details]
My screencast with the run configuration
Comment 4 Toñi Reina CLA 2010-11-15 11:27:08 EST
Created attachment 183136 [details]
My screencast while running the configuration
Comment 5 Toñi Reina CLA 2010-11-15 11:29:30 EST
Hi Niclolas,

I have attached two screencasts, one with my run configuration and other one capture while running the configuration. I have cloned your project and run the configuration, but, the problem remains the same. 

I really don't know where the problem can be.
Comment 6 Nicolas Guyomar CLA 2010-11-15 11:56:48 EST
Hi Toñi,

Based on your screenshots I assume you already have a version of MoDisco installed in your Eclipse, which version of MoDisco are you using?

Sometimes, having both installed plugins in Eclipse and plugins in your workspace lead to some troubles with generation, but I have tested your model having MoDisco installed and all the JSP plugins in my workspace and it still works.

You may try to close all jsp related plugins in your workspace, launch an Eclipse runtime and checkout the generation plugin in the runtime workspace to see if it solves the problem

Regards

Nicolas
Comment 7 Toñi Reina CLA 2010-11-16 11:17:34 EST
Created attachment 183237 [details]
Screenshot of Modisco plugin installation.

Hi Nicolas,

I have installed MoDisco SDK (Incubation) 0.9.0.v201009291601. You can see in the screenshot I have attached the components I have installed.

I suppose the jsp generation is included in the Modisco JEE feature.
Comment 8 Toñi Reina CLA 2010-11-16 11:35:10 EST
Created attachment 183239 [details]
Modisco Popup Menu

Hi again Nicolas,

as you proposed in your previous comment I have closed all the projects except the project created to debug the bug (the one that is a clone of yours). However, I cannot find any option in the Modisco popup menu to generate the jsp code. It seems that the discoverer is correctly installed, but I cannot launch the generator. Is there something more I have to install?

Thanks,

Toñi
Comment 9 Nicolas Guyomar CLA 2010-11-17 05:20:06 EST
Hi Toñi,

Unfortunately there is no pop up menu to generate code from jsp model, this action is planned for future version of MoDisco. For now you have to use an Acceleo launch configuration to generate source code from your model.

Could you please attached to this bug a copy of your Eclipse Configuration, which is located in the tab "Configuration" of your "Eclipse Installation Details".

Regards

Nicolas Guyomar
Comment 10 Toñi Reina CLA 2010-11-17 12:38:19 EST
Created attachment 183322 [details]
Eclipse Configuration File

Hi Nicolas,

 I have attached the configuration file, as you asked.

Thanks,
    Toñi
Comment 11 Nicolas Guyomar CLA 2010-11-18 05:08:51 EST
Hi Toñi,

I have cloned your Eclipse Installation and was able to generate your jsp files.

The only problem I found appears if I have org.eclipse.modisco.jee.jsp.generation in my first Eclipse workspace as well as in my Runtime workspace. To fix this problem I just close the project in my first Eclipse.

Could you try installing an Eclipse Indigo 3.7 M3 with Acceleo and MoDisco from the Indigo Release Repository. Then checkout our org.eclipse.modisco.jee.jsp.generation project and use it on your model.

You do not need to use an Eclipse Runtime Application

Regards

Nicolas Guyomar
Comment 12 Toñi Reina CLA 2010-11-19 06:14:37 EST
Hi Nicolas,

   finally, it worked!! The only difference I have found between the Eclipse + Modisco installation that doesn't work and the one that works is the Milestone. While in the first one I have Eclipse 3.7M3 and Modisco0.9.0M3, in the second one I have Eclipse 3.7M2 and Modisco0.9.0M2.

   The installation procedure has been the same in both cases. I have downloaded Eclipse Indigo from http://download.eclipse.org/eclipse/downloads/drops/S-3.7M3-201010281441/index.php, and then I have downloaded the Modisco 0.9.0 zip from 
http://www.eclipse.org/MoDisco/downloads/. After that, I have installed modisco from the zip following the steps :

- click "Help > Install New Software" 
- click Add... 
- select "Archive..." 
- choose your zip
Comment 13 Nicolas Guyomar CLA 2010-11-19 07:49:55 EST
Hi Toñi,

I'm glad this works.


Regards

Nicolas
Comment 14 Hugo Bruneliere CLA 2011-01-11 05:19:11 EST
Not a bug in latest versions.