brian, try excluding freemarker from jboss tools in your pom.xml, then re-include the dependency with the version you want.<br><br><a href="http://maven.apache.org/guides/introduction/introduction-to-optional-and-excludes-dependencies.html">http://maven.apache.org/guides/introduction/introduction-to-optional-and-excludes-dependencies.html</a><br>
<br>~Lincoln<br><br><div class="gmail_quote">On Tue, Apr 26, 2011 at 6:11 PM, Max Rydahl Andersen <span dir="ltr">&lt;<a href="mailto:max.andersen@redhat.com">max.andersen@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
weird - never seen anything like that when running tests.<br>
<br>
Must be something causing havoc in the weld/forge setup ;(<br>
<br>
Anyway, updating hibernate tools pom.xml to .16 should be worth an attempt.<br>
<br>
If you get it to work let me know and ill merge it into hibernatetools and publish a new snapshot.<br>
<font color="#888888"><br>
/max<br>
</font><div><div></div><div class="h5"><br>
On Apr 26, 2011, at 23:24, brian wrote:<br>
<br>
&gt;<br>
&gt; without the more recent version i get<br>
&gt;<br>
&gt; Exception in thread &quot;Thread-16&quot; java.lang.NoClassDefFoundError:<br>
&gt; freemarker/ext/jdom/NodeListModel$JDOMXPathEx<br>
&gt;       at java.lang.Class.getDeclaringClass(Native Method)<br>
&gt;       at java.lang.Class.getEnclosingClass(Class.java:1085)<br>
&gt;       at java.lang.Class.getSimpleBinaryName(Class.java:1220)<br>
&gt;       at java.lang.Class.getSimpleName(Class.java:1112)<br>
&gt;       at java.lang.Class.isAnonymousClass(Class.java:1188)<br>
&gt;       at<br>
&gt; org.jboss.weld.introspector.jlr.WeldClassImpl.isAnonymousClass(WeldClassImpl.java:445)<br>
&gt;       at<br>
&gt; org.jboss.weld.bootstrap.AbstractBeanDeployer.isTypeManagedBeanOrDecoratorOrInterceptor(AbstractBeanDeployer.java:295)<br>
&gt;       at<br>
&gt; org.jboss.weld.bootstrap.BeanDeployer.createBeans(BeanDeployer.java:143)<br>
&gt;       at<br>
&gt; org.jboss.weld.bootstrap.BeanDeployment.deployBeans(BeanDeployment.java:216)<br>
&gt;       at<br>
&gt; org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:364)<br>
&gt;       at org.jboss.weld.environment.se.Weld.initialize(Weld.java:87)<br>
&gt;       at org.jboss.seam.forge.shell.Bootstrap$2.run(Bootstrap.java:89)<br>
&gt;       at java.lang.Thread.run(Thread.java:619)<br>
&gt;<br>
&gt; when i attempt to source hibernate-tools using the mods i made to let it<br>
&gt; read the persistence.xml file.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Tue, 2011-04-26 at 21:43 +0200, Max Rydahl Andersen wrote:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; note &quot;[INFO] Including freemarker:freemarker:jar:2.3.8 in the shaded<br>
&gt;&gt;&gt; jar.&quot;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; i need to get that 2.3.8 updated to 2.3.16, i think.<br>
&gt;&gt;&gt;<br>
&gt;&gt; Why?<br>
&gt;&gt;<br>
&gt;&gt; i.e. hibernatetools tests runs with 2.3.8 afaik?<br>
&gt;&gt;<br>
&gt;&gt; note, 2.3.16 should work too but haven&#39;t tried it.<br>
&gt;&gt; /max<br>
&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; On Mon, 2011-04-25 at 12:00 -0400, Lincoln Baxter, III wrote:<br>
&gt;&gt;&gt;&gt; It&#39;s possible that the shade include is too liberal, and things are<br>
&gt;&gt;&gt;&gt; getting overlapped just from that, but...<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; The first thing I would try is this:<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;       cd plugin-hibernate-tools/<br>
&gt;&gt;&gt;&gt;       mvn dependency:tree<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; That will tell maven to dump out a list of all dependencies and what<br>
&gt;&gt;&gt;&gt; included them. If you see multiple freemarker impls, then we can go<br>
&gt;&gt;&gt;&gt; from there. If not, it&#39;s possible the shade config is messing things<br>
&gt;&gt;&gt;&gt; up, in which case we will need to work on an alternative bundling<br>
&gt;&gt;&gt;&gt; strategy. Forge does not bundle Freemarker, so that shouldn&#39;t be the<br>
&gt;&gt;&gt;&gt; issue.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; ~Lincoln<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; On Mon, Apr 25, 2011 at 11:45 AM, brian &lt;<a href="mailto:brianx@vt.edu">brianx@vt.edu</a>&gt; wrote:<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;       dude i&#39;m stuck.  i don&#39;t know shade, and i&#39;m getting what<br>
&gt;&gt;&gt;&gt;       looks like<br>
&gt;&gt;&gt;&gt;       classloader issues with freemarker... looks like my plugin is<br>
&gt;&gt;&gt;&gt;       getting<br>
&gt;&gt;&gt;&gt;       freemarker 2.3.8 included from somewhere... and i&#39;ve added<br>
&gt;&gt;&gt;&gt;       (per<br>
&gt;&gt;&gt;&gt;       freemarker specs) 2.3.16 to the hibernate-tools plugin pom.<br>
&gt;&gt;&gt;&gt;        both build<br>
&gt;&gt;&gt;&gt;       clean when built separately but sourcing the hib-tools plugin<br>
&gt;&gt;&gt;&gt;       gives what<br>
&gt;&gt;&gt;&gt;       looks like a classloader problem:<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;       ***SUCCESS*** Build successful.<br>
&gt;&gt;&gt;&gt;       ***INFO*** Installing plugin artifact.<br>
&gt;&gt;&gt;&gt;       Wrote /home/brianx/.forge/plugins/<br>
&gt;&gt;&gt;&gt;       org.jboss.hibernate.forge<br>
&gt;&gt;&gt;&gt;       $hibernate-tools-plugin$1$1.0.0-SNAPSHOT.jar<br>
&gt;&gt;&gt;&gt;       ***SUCCESS*** Installed from<br>
&gt;&gt;&gt;&gt;       [brianxlong-plugin-hibernate-tools-2f38225]<br>
&gt;&gt;&gt;&gt;       successfully.<br>
&gt;&gt;&gt;&gt;       Exception in thread &quot;Thread-32&quot;<br>
&gt;&gt;&gt;&gt;       com.google.common.collect.ComputationException:<br>
&gt;&gt;&gt;&gt;       java.lang.IllegalAccessError: tried to access class<br>
&gt;&gt;&gt;&gt;       freemarker.ext.beans.MethodMap from class<br>
&gt;&gt;&gt;&gt;       freemarker.ext.beans.MethodMap<br>
&gt;&gt;&gt;&gt;       $ClassString<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;       ...the build from my new plugin says that it is excluding<br>
&gt;&gt;&gt;&gt;       freemarker<br>
&gt;&gt;&gt;&gt;       2.3.8 (means included somewhere else - i think in the base<br>
&gt;&gt;&gt;&gt;       forge<br>
&gt;&gt;&gt;&gt;       build)?<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;       so i need to rebuild forge?<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; --<br>
&gt;&gt;&gt;&gt; Lincoln Baxter, III<br>
&gt;&gt;&gt;&gt; <a href="http://ocpsoft.com" target="_blank">http://ocpsoft.com</a><br>
&gt;&gt;&gt;&gt; <a href="http://scrumshark.com" target="_blank">http://scrumshark.com</a><br>
&gt;&gt;&gt;&gt; &quot;Keep it Simple&quot;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;&gt; forge-dev mailing list<br>
&gt;&gt;&gt; <a href="mailto:forge-dev@lists.jboss.org">forge-dev@lists.jboss.org</a><br>
&gt;&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/forge-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/forge-dev</a><br>
&gt;&gt;<br>
&gt;&gt; /max<br>
&gt;&gt; <a href="http://about.me/maxandersen" target="_blank">http://about.me/maxandersen</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; forge-dev mailing list<br>
&gt;&gt; <a href="mailto:forge-dev@lists.jboss.org">forge-dev@lists.jboss.org</a><br>
&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/forge-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/forge-dev</a><br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; forge-dev mailing list<br>
&gt; <a href="mailto:forge-dev@lists.jboss.org">forge-dev@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/forge-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/forge-dev</a><br>
<br>
/max<br>
<a href="http://about.me/maxandersen" target="_blank">http://about.me/maxandersen</a><br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
forge-dev mailing list<br>
<a href="mailto:forge-dev@lists.jboss.org">forge-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/forge-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/forge-dev</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Lincoln Baxter, III<br><a href="http://ocpsoft.com">http://ocpsoft.com</a><br><a href="http://scrumshark.com">http://scrumshark.com</a><br>&quot;Keep it Simple&quot;<br>