Have you tried including MVEL in your plugin as a Maven dependency?<br><br>That should resolve this problem.<br><br>By default, plugins are only provided the Forge APIs as dependencies, so you will need to treat your project as if it were a &quot;blank slate&quot;<br>
<br>Does that work?<br>~Lincoln<br><br><div class="gmail_quote">On Sun, Feb 12, 2012 at 7:04 PM, Thomas Frühbeck <span dir="ltr">&lt;<a href="mailto:fruehbeck@aon.at">fruehbeck@aon.at</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
while developing a plugin I found that I cannot access org.mvel classes.<br>
<br>
- if I install my plugin w/o specific dependency declaration I get:<br>
     java.lang.NoClassDefFoundError: org/mvel2/templates/CompiledTemplate<br>
<br>
- if I try to package my own org.mvel library via dependency declaration<br>
the module is imported with<br>
&lt;module xmlns=&quot;urn:jboss:module:1.0&quot;<br>
name=&quot;at.tfr.forge.plugin-faces-id-aware.dependencies&quot; slot=&quot;...&quot;&gt;<br>
&lt;resources&gt;<br>
&lt;resource-root path=&quot;metawidget-all-2.0.jar&quot;/&gt;<br>
&lt;resource-root path=&quot;mvel2-2.1.RC1.jar&quot;/&gt;<br>
<br>
great so far, but then I get:<br>
<br>
***ERROR*** [scaffold from-entity] loader constraint violation: loader<br>
(instance of org/jboss/modules/ModuleClassLoader) previously initiated<br>
loading for a different type with name<br>
&quot;org/mvel2/templates/CompiledTemplate&quot;<br>
<br>
So this is a dead end for me. There seems to be no other way to access<br>
the Mvel libraries than by using maven shade, but this seems to be overkill.<br>
<br>
Could you please rethink the visibility protection strategy or show an<br>
easy way to use common libraries forge already provides.<br>
<br>
Regards,<br>
Thomas<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>
</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>