Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » JET error
JET error [message #600520] Wed, 03 January 2007 08:41
Eclipse UserFriend
Originally posted by: rtv222.gmail.com

Hi,

I am using JET to generate code from an EMF model.
I have done the following steps on my JET transformation project and I have
a ecore model
created by importing the example library.xsd
a.. Open the plugin.xml file in the root of the JET transformation
project.
b.. Switch to the 'Extensions' tab.
c.. Find the 'org.eclipse.jet.transform' extension in the 'All Extensions'
tree, and expand it to reveal the 'transform' child element.
d.. Select the 'transform' element, and enter org.eclipse.jet.xml in the
'modelLoader' field.
However, on attempting to run a simple JET template

<%@taglib prefix="c" id="org.eclipse.jet.controlTags" %>
<c:load url="library.xml" var="pluginXML"/>
package org.book;
class <c:get select="$library/books/@title" />Person {
public String getTitle() {
return "<c:get select="$library/books/@title" />";
}
public String getAuthor() {
return "<c:get select="$library/books/@author" />";
}
}

I get the following error.

Exception in thread "main" java.lang.NullPointerException
at
org.eclipse.jet.taglib.TagLibraryManager.getTagLibrary(TagLi braryManager.java:89)
at
org.eclipse.jet.internal.runtime.TagFactoryImpl.createRuntim eTag(TagFactoryImpl.java:61)
at jet2java.Transform$1.createRuntimeTag(Transform.java:33)
at org.eclipse.jet.compiled._jet_test.generate(_jet_test.java:5 4)
at jet2java.Transform.main(Transform.java:149)


Pls let me know what I could be doing wrong.

Rgds,
Rajesh
Previous Topic:teneo - @OrderBy not processed?
Next Topic:Using JET on xsd compliant xml
Goto Forum:
  


Current Time: Tue Apr 23 17:45:29 GMT 2024

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

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

Back to the top