title: java.lang.LinkageError: Failed to link freemarker/core/TemplateElement
body: <p>My problem is that i have an ejb which internally uses freemarker tool to generate a HTML page, built and deployed to JBoss EAP 6.4.10. When i try to access this functionality (which generates HTML code using freemarker tool), jboss throwing below errors:</p>
  
  <blockquote>
    <p>java.lang.LinkageError: Failed to link freemarker/core/TemplateElement
    Caused by: java.lang.NoClassDefFoundError: javax/swing/tree/TreeNode</p>
  </blockquote>
  
  <p>I added freemarker jar in my jboss modules and it's module.xml looks like this:</p>
  
  <pre><code>&lt;module xmlns="urn:jboss:module:1.1" name="org.freemarker"&gt;
  &lt;resources&gt;
      &lt;resource-root path="freemarker-2.3.25.jar"/&gt;
  &lt;/resources&gt;
  
  &lt;dependencies&gt;
  &lt;/dependencies&gt;
  &lt;/module&gt;
  </code></pre>