Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » EMFT JET Transformation Project Error: Could not load JET template loader
EMFT JET Transformation Project Error: Could not load JET template loader [message #13399] Sun, 29 April 2007 22:08 Go to next message
Apls Bsaim is currently offline Apls Bsaim
Messages: 8
Registered: July 2009
Junior Member
Hello all,

I have read the following tutorial at
http://www-128.ibm.com/developerworks/opensource/library/os- ecl-jet/

and followed it step by step. Everything works as written under Eclipse 3.2,
EMF 2.2, JET 0.7.2, and EMFT JET 0.7.2

However, the same exact example does not work under my Eclipse 3.3M6, EMF
2.3, JET 0.8.0 and EMFT JET 0.7.2.
As a simple example, in eclipse 3.3, I create a new EMFT JET Transformation
Project.
The project comes with a very simple example - with the files "main.jet",
"dump.jet", "sample.xml".
To run it, I run "main.jet" as a JET Transformation with the Transformation
Input as "sample.xml".

This works fine in eclipse 3.2 and generates "dump.xml".
In my eclipse 3.3, it outputs the following in the console.
"Could not load JET template loader"

Under problems, it says "Referenced class
'org.eclipse.jet.compiled._jet_transformation' in attribute
'templateLoaderClass' is not on the plug-in classpath"


I searched the newsgroup and saw one post related to this problem but that
seemed to have been caused by something different than what I am
experiencing.

If anybody could offer any help I would greatly appreciate it.
Thank you.
Re: EMFT JET Transformation Project Error: Could not load JET template loader [message #13426 is a reply to message #13399] Mon, 30 April 2007 09:01 Go to previous messageGo to next message
Paul Elder is currently offline Paul Elder
Messages: 849
Registered: July 2009
Senior Member
Hi:

Not finding 'org.eclipse.jet.compiled._jet_transformation' (a Java class
generated by the JET compiler), suggests that there may be a problem with
the JET builder. Some things to do and check:

1) In the Package Explorer, click the little white triangle, and from the
menu that appears, click Filters. In the dialog, check "Java elements from
JET Transformation projects". This will reveal the Java source folder
(usually jet2java) into which the JET compiler writes generated Java
classes. Take a look, and see if any classes are there.

2) Select the project, and click Projects > Clean.... Ensure your JET
project is checked, and do the clean.. Then re-check the jet2java folder to
see whether anything has shown up. If you don't have automatic builds
enabled, you'll have to manually build the project by clicking Project >
Build Project.

3) If none of the above helps, take a look at the Error Log view. Look for
errors from the JET builder. If you find one, please submit a bugzilla, and
attach the stack trace from the error log. Here's a link for creating a new
JET bugzilla:

https://bugs.eclipse.org/bugs/enter_bug.cgi?product=M2T& version=unspecified&component=Jet&rep_platform=PC&am p;op_sys=Windows%20XP&priority=P3&bug_severity=norma l&bug_status=NEW&bug_file_loc=http%3A%2F%2F&shor t_desc=&comment=&commentprivacy=0&keywords=& dependson=&blocked=&maketemplate=Remember%20values%2 0as%20bookmarkable%20template&form_name=enter_bug&as signed_to=m2t.jet-inbox%40eclipse.org&qa_contact=

Thanks for giving JET a try,

Paul
Re: EMFT JET Transformation Project Error: Could not load JET template loader [message #14400 is a reply to message #13426] Mon, 30 April 2007 09:10 Go to previous messageGo to next message
Apls Bsaim is currently offline Apls Bsaim
Messages: 8
Registered: July 2009
Junior Member
Thanks for the reply.
I did check the two things you mentioned and the class files are not in the
folder jet2java when using eclipse 3.3.

Can you get JET working in your configuration of eclipse 3.3 or have you
only been using eclipse 3.2?
(Is JET confirmed to be working properly under eclipse 3.3?)

The error log shows multiple errors, one of them which is

"java.lang.IllegalArgumentException encountered while running JET Template
Builder."

java.lang.IllegalArgumentException
at java.net.URI.create(Unknown Source)
at
org.eclipse.jet.internal.parser.resources.WorkspaceTemplateR esolverHelperFactory.getWorkspaceContainer(WorkspaceTemplate ResolverHelperFactory.java:65)
at
org.eclipse.jet.internal.parser.resources.WorkspaceTemplateR esolverHelperFactory.getTemplateResolverHelper(WorkspaceTemp lateResolverHelperFactory.java:53)
at
org.eclipse.jet.core.parser.DefaultTemplateResolver.getTempl ateResolverHelper(DefaultTemplateResolver.java:132)
at
org.eclipse.jet.core.parser.DefaultTemplateResolver.<init>(DefaultTemplateResolver.java:123)
at
org.eclipse.jet.core.parser.DefaultTemplateResolver.<init>(DefaultTemplateResolver.java:118)
at
org.eclipse.jet.core.parser.DefaultTemplateResolver$Builder. build(DefaultTemplateResolver.java:111)
at
org.eclipse.jet.internal.parser.resources.WorkspaceTemplateR esolverBuilder.build(WorkspaceTemplateResolverBuilder.java:6 5)
at
org.eclipse.jet.internal.builder.WorkspaceCompiler.buildTemp lateResolver(WorkspaceCompiler.java:123)
at
org.eclipse.jet.internal.builder.WorkspaceCompiler.<init>(WorkspaceCompiler.java:88)
at
org.eclipse.jet.internal.builder.JET2Builder.getCompiler(JET 2Builder.java:272)
at org.eclipse.jet.internal.builder.JET2Builder.clean(JET2Build er.java:89)
at org.eclipse.jet.internal.builder.JET2Builder.build(JET2Build er.java:112)
at
org.eclipse.core.internal.events.BuildManager$2.run(BuildMan ager.java:621)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at
org.eclipse.core.internal.events.BuildManager.basicBuild(Bui ldManager.java:163)
at
org.eclipse.core.internal.events.BuildManager.basicBuild(Bui ldManager.java:194)
at
org.eclipse.core.internal.events.BuildManager$1.run(BuildMan ager.java:243)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at
org.eclipse.core.internal.events.BuildManager.basicBuild(Bui ldManager.java:246)
at
org.eclipse.core.internal.events.BuildManager.basicBuildLoop (BuildManager.java:299)
at
org.eclipse.core.internal.events.BuildManager.build(BuildMan ager.java:331)
at
org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBu ildJob.java:158)
at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJ ob.java:224)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
Caused by: java.net.URISyntaxException: Illegal character in opaque part at
index 17: file:C:/Documents and
Settings/Absolute/Desktop/eclipse3.3M5/workspace/jkg
at java.net.URI$Parser.fail(Unknown Source)
at java.net.URI$Parser.checkChars(Unknown Source)
at java.net.URI$Parser.parse(Unknown Source)
at java.net.URI.<init>(Unknown Source)
.... 25 more





"Paul Elder" <pelder@ca.ibm.com> wrote in message
news:f14pc1$4bk$1@build.eclipse.org...
> Hi:
>
> Not finding 'org.eclipse.jet.compiled._jet_transformation' (a Java class
> generated by the JET compiler), suggests that there may be a problem with
> the JET builder. Some things to do and check:
>
> 1) In the Package Explorer, click the little white triangle, and from the
> menu that appears, click Filters. In the dialog, check "Java elements from
> JET Transformation projects". This will reveal the Java source folder
> (usually jet2java) into which the JET compiler writes generated Java
> classes. Take a look, and see if any classes are there.
>
> 2) Select the project, and click Projects > Clean.... Ensure your JET
> project is checked, and do the clean.. Then re-check the jet2java folder
> to see whether anything has shown up. If you don't have automatic builds
> enabled, you'll have to manually build the project by clicking Project >
> Build Project.
>
> 3) If none of the above helps, take a look at the Error Log view. Look for
> errors from the JET builder. If you find one, please submit a bugzilla,
> and attach the stack trace from the error log. Here's a link for creating
> a new JET bugzilla:
>
> https://bugs.eclipse.org/bugs/enter_bug.cgi?product=M2T& version=unspecified&component=Jet&rep_platform=PC&am p;op_sys=Windows%20XP&priority=P3&bug_severity=norma l&bug_status=NEW&bug_file_loc=http%3A%2F%2F&shor t_desc=&comment=&commentprivacy=0&keywords=& dependson=&blocked=&maketemplate=Remember%20values%2 0as%20bookmarkable%20template&form_name=enter_bug&as signed_to=m2t.jet-inbox%40eclipse.org&qa_contact=
>
> Thanks for giving JET a try,
>
> Paul
>
>
Re: EMFT JET Transformation Project Error: Could not load JET template loader [message #14487 is a reply to message #14400] Tue, 01 May 2007 08:44 Go to previous messageGo to next message
Paul Elder is currently offline Paul Elder
Messages: 849
Registered: July 2009
Senior Member
Thanks for taking the time to investigate this. This is definitely a bug. I
have submitted bug 14846
(https://bugs.eclipse.org/bugs/show_bug.cgi?id=184846).

In the meantime, I suspect that if you use a workspace location whose path
does not contain spaces, you'll be able to get things working.

With any luck, the fix will be in this week's integration build.

Paul
Re: EMFT JET Transformation Project Error: Could not load JET template loader [message #987322 is a reply to message #13399] Mon, 26 November 2012 01:05 Go to previous message
Phillip Drew is currently offline Phillip Drew
Messages: 72
Registered: October 2012
Member
I'm getting the same problem

Referenced class 'org.eclipse.jet.compiled._jet_transformation' in attribute 'templateLoaderClass' is not on the plug-in classpath

Any attempt to run a transform is met with the supremely unhelpful error message

'Could not load JET template loader'

The compiled java files are being generated and there are no errors in my Error Log.

I'm using Java 7 and Spring Tool Suite - any history of problems with either of those?

Any help you can give me would be incredibly helpful since I'm getting absolutely nothing from error messages etc.
Previous Topic:How to use generic types with for sequence?
Next Topic:[Acceleo] Metamodel URIs are not resolved by creating a new Acceleo generation file
Goto Forum:
  


Current Time: Wed Jul 30 19:29:35 EDT 2014

Powered by FUDForum. Page generated in 0.01737 seconds