Ryan, how did you get around this?<br><br>Thomas, perhaps you could try including seam-render instead of MVEL? Make sure you use the same version that Forge Shell uses as a temporary workaround.<br><br>~Lincoln<br><br><div class="gmail_quote">
On Mon, Feb 13, 2012 at 5:33 PM, Thomas Frühbeck <span dir="ltr"><<a href="mailto:fruehbeck@aon.at">fruehbeck@aon.at</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Ryan, Lincoln<br>
<div class="im"><br>
> I ran into similar problems with my own plugin development. Including<br>
> MVEL as a Maven dependency in your pom.xml should resolve this issue.<br>
<br>
</div>this is exactly what I have tried to do. This will really look ugly :/<br>
I will write it as clear as possible:<br>
<br>
in pom.xml I added:<br>
<dependency><br>
<groupId>org.mvel</groupId><br>
<artifactId>mvel2</artifactId><br>
<scope>compile</scope><br>
</dependency><br>
<br>
On forge install-plugin ~/blabla/ I get:<br>
***SUCCESS*** Installed from [plugin-faces-idaware] successfully.<br>
Wrote /home/thomas/.forge/plugins/at/tfr/forge/plugin-faces-id-aware<br>
Wrote /home/thomas/.forge/plugins/at/tfr/forge/plugin-faces-id-aware/1.0.0-SNAPSHOT-6c38c8fd-45f4-4736-ad0a-467dc9154a11<br>
Wrote /home/thomas/.forge/plugins/at/tfr/forge/plugin-faces-id-aware/1.0.0-SNAPSHOT-6c38c8fd-45f4-4736-ad0a-467dc9154a11/plugin-faces-id-aware.jar<br>
Wrote /home/thomas/.forge/plugins/at/tfr/forge/plugin-faces-id-aware/1.0.0-SNAPSHOT-6c38c8fd-45f4-4736-ad0a-467dc9154a11/module.xml<br>
Wrote /home/thomas/.forge/plugins/at/tfr/forge/plugin-faces-id-aware/dependencies<br>
Wrote /home/thomas/.forge/plugins/at/tfr/forge/plugin-faces-id-aware/dependencies/1.0.0-SNAPSHOT-6c38c8fd-45f4-4736-ad0a-467dc9154a11<br>
Wrote /home/thomas/.forge/plugins/at/tfr/forge/plugin-faces-id-aware/dependencies/1.0.0-SNAPSHOT-6c38c8fd-45f4-4736-ad0a-467dc9154a11/metawidget-all-2.0.jar<br>
Wrote /home/thomas/.forge/plugins/at/tfr/forge/plugin-faces-id-aware/dependencies/1.0.0-SNAPSHOT-6c38c8fd-45f4-4736-ad0a-467dc9154a11/mvel2-2.1.Beta7.jar<br>
Wrote /home/thomas/.forge/plugins/at/tfr/forge/plugin-faces-id-aware/dependencies/1.0.0-SNAPSHOT-6c38c8fd-45f4-4736-ad0a-467dc9154a11/module.xml<br>
<br>
So to me it is clear, that I was successful, integration of Mvel libraries is done.<br>
But when I invoke my plugin, I get _a LoaderConstraintViolation_!!<br>
<br>
[myidaware] myidaware $ set VERBOSE true<br>
[myidaware] myidaware $ scaffold from-entity at.tfr.test.model.* --scaffoldType idaware<br>
Use which scaffold provider?<br>
<br>
1 - [idaware]<br>
2 - [faces]*<br>
<br>
? Choose an option by typing the number of the selection [*-default] [0] 1<br>
<div class="im">***ERROR*** [scaffold from-entity] loader constraint violation: loader (instance of org/jboss/modules/ModuleClassLoader) previously initiated loading for a different type with name "org/mvel2/templates/CompiledTemplate"<br>
</div>org.jboss.forge.shell.exceptions.CommandExecutionException: loader constraint violation: loader (instance of org/jboss/modules/ModuleClassLoader) previously initiated loading for a different type with name "org/mvel2/templates/CompiledTemplate"<br>
<br>
Caused by: java.lang.LinkageError: loader constraint violation: loader (instance of org/jboss/modules/ModuleClassLoader) previously initiated loading for a different type with name "org/mvel2/templates/CompiledTemplate"<br>
<br>
<br>
So for me it is evident, that I brought my own Mvel jar, but the module loader will not let me use it!<br>
<div class="HOEnZb"><div class="h5"><br>
Regards,<br>
Thomas<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>