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"><<a href="mailto:max.andersen@redhat.com">max.andersen@redhat.com</a>></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>
><br>
> without the more recent version i get<br>
><br>
> Exception in thread "Thread-16" java.lang.NoClassDefFoundError:<br>
> freemarker/ext/jdom/NodeListModel$JDOMXPathEx<br>
> at java.lang.Class.getDeclaringClass(Native Method)<br>
> at java.lang.Class.getEnclosingClass(Class.java:1085)<br>
> at java.lang.Class.getSimpleBinaryName(Class.java:1220)<br>
> at java.lang.Class.getSimpleName(Class.java:1112)<br>
> at java.lang.Class.isAnonymousClass(Class.java:1188)<br>
> at<br>
> org.jboss.weld.introspector.jlr.WeldClassImpl.isAnonymousClass(WeldClassImpl.java:445)<br>
> at<br>
> org.jboss.weld.bootstrap.AbstractBeanDeployer.isTypeManagedBeanOrDecoratorOrInterceptor(AbstractBeanDeployer.java:295)<br>
> at<br>
> org.jboss.weld.bootstrap.BeanDeployer.createBeans(BeanDeployer.java:143)<br>
> at<br>
> org.jboss.weld.bootstrap.BeanDeployment.deployBeans(BeanDeployment.java:216)<br>
> at<br>
> org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:364)<br>
> at org.jboss.weld.environment.se.Weld.initialize(Weld.java:87)<br>
> at org.jboss.seam.forge.shell.Bootstrap$2.run(Bootstrap.java:89)<br>
> at java.lang.Thread.run(Thread.java:619)<br>
><br>
> when i attempt to source hibernate-tools using the mods i made to let it<br>
> read the persistence.xml file.<br>
><br>
><br>
><br>
><br>
> On Tue, 2011-04-26 at 21:43 +0200, Max Rydahl Andersen wrote:<br>
>>><br>
>>> note "[INFO] Including freemarker:freemarker:jar:2.3.8 in the shaded<br>
>>> jar."<br>
>>><br>
>>> i need to get that 2.3.8 updated to 2.3.16, i think.<br>
>>><br>
>> Why?<br>
>><br>
>> i.e. hibernatetools tests runs with 2.3.8 afaik?<br>
>><br>
>> note, 2.3.16 should work too but haven't tried it.<br>
>> /max<br>
>><br>
>>><br>
>>><br>
>>> On Mon, 2011-04-25 at 12:00 -0400, Lincoln Baxter, III wrote:<br>
>>>> It's possible that the shade include is too liberal, and things are<br>
>>>> getting overlapped just from that, but...<br>
>>>><br>
>>>> The first thing I would try is this:<br>
>>>><br>
>>>> cd plugin-hibernate-tools/<br>
>>>> mvn dependency:tree<br>
>>>><br>
>>>> That will tell maven to dump out a list of all dependencies and what<br>
>>>> included them. If you see multiple freemarker impls, then we can go<br>
>>>> from there. If not, it's possible the shade config is messing things<br>
>>>> up, in which case we will need to work on an alternative bundling<br>
>>>> strategy. Forge does not bundle Freemarker, so that shouldn't be the<br>
>>>> issue.<br>
>>>><br>
>>>> ~Lincoln<br>
>>>><br>
>>>><br>
>>>><br>
>>>> On Mon, Apr 25, 2011 at 11:45 AM, brian <<a href="mailto:brianx@vt.edu">brianx@vt.edu</a>> wrote:<br>
>>>><br>
>>>> dude i'm stuck. i don't know shade, and i'm getting what<br>
>>>> looks like<br>
>>>> classloader issues with freemarker... looks like my plugin is<br>
>>>> getting<br>
>>>> freemarker 2.3.8 included from somewhere... and i've added<br>
>>>> (per<br>
>>>> freemarker specs) 2.3.16 to the hibernate-tools plugin pom.<br>
>>>> both build<br>
>>>> clean when built separately but sourcing the hib-tools plugin<br>
>>>> gives what<br>
>>>> looks like a classloader problem:<br>
>>>><br>
>>>> ***SUCCESS*** Build successful.<br>
>>>> ***INFO*** Installing plugin artifact.<br>
>>>> Wrote /home/brianx/.forge/plugins/<br>
>>>> org.jboss.hibernate.forge<br>
>>>> $hibernate-tools-plugin$1$1.0.0-SNAPSHOT.jar<br>
>>>> ***SUCCESS*** Installed from<br>
>>>> [brianxlong-plugin-hibernate-tools-2f38225]<br>
>>>> successfully.<br>
>>>> Exception in thread "Thread-32"<br>
>>>> com.google.common.collect.ComputationException:<br>
>>>> java.lang.IllegalAccessError: tried to access class<br>
>>>> freemarker.ext.beans.MethodMap from class<br>
>>>> freemarker.ext.beans.MethodMap<br>
>>>> $ClassString<br>
>>>><br>
>>>> ...the build from my new plugin says that it is excluding<br>
>>>> freemarker<br>
>>>> 2.3.8 (means included somewhere else - i think in the base<br>
>>>> forge<br>
>>>> build)?<br>
>>>><br>
>>>> so i need to rebuild forge?<br>
>>>><br>
>>>><br>
>>>> --<br>
>>>> Lincoln Baxter, III<br>
>>>> <a href="http://ocpsoft.com" target="_blank">http://ocpsoft.com</a><br>
>>>> <a href="http://scrumshark.com" target="_blank">http://scrumshark.com</a><br>
>>>> "Keep it Simple"<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>
>><br>
>> /max<br>
>> <a href="http://about.me/maxandersen" target="_blank">http://about.me/maxandersen</a><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>
><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>
<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>"Keep it Simple"<br>