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