I take that back. I&#39;ll have to do more digging. After adding log4j to the module.xml, I receive the same error that you did.<br><br><div class="gmail_quote">On Tue, Dec 20, 2011 at 9:31 PM, Lincoln Baxter, III <span dir="ltr">&lt;<a href="mailto:lincolnbaxter@gmail.com">lincolnbaxter@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Ok well, once I turned on logging I was able to figure out the root cause, but I don&#39;t know exactly why yet. I&#39;m assuming that the stack trace is fairly obvious. The question is. &quot;What is the correct way to resolve it?&quot;<br>

<br>Side note: I really need to add a logging toggle in Forge itself, but it would 
need to go into the launcher, just haven&#39;t gotten around to it yet. Currently, one needs to edit the build to enable logging *gulp* (Search for &quot;LOGGING&quot;) in the source and you&#39;ll see what I mean :/ That might be my tomorrow (in addition to working on this.) I&#39;m going to be cutting a Beta5 very soon because of some issues in the recent Beta4.<br>

<br>Dec 20, 2011 9:25:43 PM org.jboss.weld.util.ServiceLoader prepareInstance<br>WARNING: Could not instantiate service class org.switchyard.component.bean.SwitchYardCDIServiceDiscovery<br>java.lang.NoClassDefFoundError: org/apache/log4j/Logger<br>

    at org.switchyard.component.bean.SwitchYardCDIServiceDiscovery.&lt;clinit&gt;(SwitchYardCDIServiceDiscovery.java:59)<br>    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)<br>    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)<br>

    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)<br>    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)<br>    at org.jboss.weld.util.ServiceLoader.prepareInstance(ServiceLoader.java:273)<br>

    at org.jboss.weld.util.ServiceLoader.loadService(ServiceLoader.java:238)<br>    at org.jboss.weld.util.ServiceLoader.loadServiceFile(ServiceLoader.java:194)<br>    at org.jboss.weld.util.ServiceLoader.reload(ServiceLoader.java:157)<br>

    at org.jboss.weld.util.ServiceLoader.iterator(ServiceLoader.java:346)<br>    at org.jboss.weld.bootstrap.ExtensionBeanDeployer.addExtensions(ExtensionBeanDeployer.java:93)<br>    at org.jboss.weld.bootstrap.WeldBootstrap.startInitialization(WeldBootstrap.java:340)<br>

    at org.jboss.weld.environment.se.Weld.initialize(Weld.java:91)<br>    at org.jboss.forge.shell.Bootstrap$1.run(Bootstrap.java:90)<br>    at java.lang.Thread.run(Thread.java:680)<br>Caused by: java.lang.ClassNotFoundException: org.apache.log4j.Logger from [Module &quot;org.switchyard.switchyard-forge-plugin:0.3.0.Final&quot; from local module loader @6de1dadb (roots: /Users/lbaxter/dev/forge/modules,/Users/lbaxter/.forge/plugins)]<br>

    at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:191)<br>    at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:361)<br>    at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:333)<br>

    at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:310)<br>    at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:103)<br>    ... 15 more<div class="HOEnZb">
<div class="h5"><br><br><br><div class="gmail_quote">
On Tue, Dec 20, 2011 at 5:50 PM, Tom Cunningham <span dir="ltr">&lt;<a href="mailto:tcunning@redhat.com" target="_blank">tcunning@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<br>
Here&#39;s the steps to reproduce (there&#39;s quite a few, sorry for that, we<br>
should have this down to two in the next release) :<br>
<br>
Download<br>
<a href="http://downloads.jboss.org/switchyard/releases/v0.3/switchyard-installer-0.3.0.Final.zip" target="_blank">http://downloads.jboss.org/switchyard/releases/v0.3/switchyard-installer-0.3.0.Final.zip</a><br>
unzip switchyard-installer-0.3.0.Final.zip<br>
cd switchyard-installer-0.3<br>
unzip a jboss-as-7.0.2 somewhere to install into, give that location to<br>
the installer<br>
Answer (y) that you would like to install the SwitchYard Forge plugin<br>
If you have FORGE_HOME set to forge-1.0.0.Beta4 or SNAPSHOT, it may<br>
error out on trying to write to the ~/.forge/plugins/installed.xml<br>
because JARs have moved around - in this case add the following line to<br>
installed.xml :<br>
<br>
&lt;installed&gt;<br>
&lt;plugin name=&quot;org.switchyard.switchyard-forge-plugin&quot; slot=&quot;0.3.0.Final&quot;/&gt;<br>
&lt;/installed&gt;<br>
<br>
Change FORGE_HOME to forge-1.0.0.Beta4 or SNAPSHOT<br>
<br>
Edit<br>
~/.forge/plugins/org/switchyard/switchyard-forge-plugin/0.3.0.Final/module.xml<br>
Change &lt;module name=&quot;javax.enterprise.cdi-api&quot;/&gt;<br>
to &lt;module name=&quot;javax.enterprise.api&quot;/&gt;<br>
Change &lt;module name=&quot;org.jboss.forge.shell-api&quot;/&gt;<br>
to &lt;module name=&quot;org.jboss.forge.shell.api&quot;/&gt;<br>
<br>
forge<br>
<div><div><br>
<br>
<br>
<br>
<br>
On 12/20/2011 12:44 PM, Lincoln Baxter wrote:<br>
&gt; Hey Tom,<br>
&gt;<br>
&gt; (cc&#39;ing dev list)<br>
&gt;<br>
&gt; I&#39;m not exactly sure why this is happening. As long as the plugins are distributed as a single module, all resource-roots in that module should have classloader visibility between one another. They should also prefer their local classes over classes in other classloaders if there is duplication.<br>


&gt;<br>
&gt; Where can I try this out?<br>
&gt;<br>
&gt; ~Lincoln<br>
&gt;<br>
&gt; ----- Original Message -----<br>
&gt; From: &quot;Tom Cunningham&quot;&lt;<a href="mailto:tcunning@redhat.com" target="_blank">tcunning@redhat.com</a>&gt;<br>
&gt; To: &quot;Lincoln Baxter&quot;&lt;<a href="mailto:lbaxter@redhat.com" target="_blank">lbaxter@redhat.com</a>&gt;<br>
&gt; Sent: Saturday, December 17, 2011 1:24:57 AM<br>
&gt; Subject: Weird error again....<br>
&gt;<br>
&gt; Lincoln,<br>
&gt;<br>
&gt; I&#39;m seeing a weird error on SNAPSHOT again that I think I&#39;ve seen<br>
&gt; before.      We managed to remove the shading and got our plugins to<br>
&gt; work with 1.0.0-Beta3, but when I go to SNAPSHOT I&#39;m seeing the<br>
&gt; exception at the bottom of this email when it tries to find<br>
&gt; &quot;org.switchyard.tools.forge.plugin.SwitchYardFacet&quot;.     We&#39;ve put a<br>
&gt; number of different plugins inside a common module, and SwitchYardFacet<br>
&gt; is in switchyard.forge-plugin-0.4.0-SNAPSHOT.jar.      Can a facet in<br>
&gt; one of the other plugin JARs refer to that one?     Do I need to go back<br>
&gt; to shading?<br>
&gt;<br>
&gt; Example - this Facet is in switchyard-camel-plugin-0.4.0-SNAPSHOT.jar<br>
&gt; but refers to  SwitchYardFacet which is in another resource-root :<br>
&gt; switchyard-forge-plugin-0.4.0-SNAPSHOT.jar.<br>
&gt;<br>
&gt; import org.switchyard.tools.forge.plugin.SwitchYardFacet;<br>
&gt;<br>
&gt; /**<br>
&gt;    * Forge facet for Camel bindings and services.<br>
&gt;    */<br>
&gt; @Alias(&quot;switchyard.camel&quot;)<br>
&gt; @RequiresFacet({ DependencyFacet.class, PackagingFacet.class,<br>
&gt; SwitchYardFacet.class })<br>
&gt; @RequiresPackagingType(PackagingType.JAR)<br>
&gt; public class CamelFacet extends AbstractFacet {<br>
&gt;<br>
&gt;<br>
&gt; module.xml :<br>
&gt;<br>
&gt; &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;<br>
&gt; &lt;module xmlns=&quot;urn:jboss:module:1.0&quot;<br>
&gt; name=&quot;org.switchyard.switchyard-forge-plugin&quot; slot=&quot;0.4.0-SNAPSHOT&quot;&gt;<br>
&gt; &lt;resources&gt;<br>
&gt; &lt;!-- plugin dependencies that must be local to this module --&gt;<br>
&gt; &lt;resource-root path=&quot;switchyard-forge-common-0.4.0-SNAPSHOT.jar&quot;/&gt;<br>
&gt; &lt;resource-root path=&quot;switchyard-component-common-rules-0.4.0-SNAPSHOT.jar&quot;/&gt;<br>
&gt; &lt;!-- core and component plugins --&gt;<br>
&gt; &lt;resource-root path=&quot;switchyard-forge-plugin-0.4.0-SNAPSHOT.jar&quot;/&gt;<br>
&gt; &lt;resource-root path=&quot;switchyard-forge-bean-plugin-0.4.0-SNAPSHOT.jar&quot;/&gt;<br>
&gt; &lt;resource-root path=&quot;switchyard-forge-soap-plugin-0.4.0-SNAPSHOT.jar&quot;/&gt;<br>
&gt; &lt;resource-root path=&quot;switchyard-forge-rules-plugin-0.4.0-SNAPSHOT.jar&quot;/&gt;<br>
&gt; &lt;resource-root path=&quot;switchyard-forge-bpm-plugin-0.4.0-SNAPSHOT.jar&quot;/&gt;<br>
&gt; &lt;resource-root path=&quot;switchyard-forge-camel-plugin-0.4.0-SNAPSHOT.jar&quot;/&gt;<br>
&gt; &lt;/resources&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Error - the missing Type seems to be SwitchYardFacet :<br>
&gt;<br>
&gt; tcunning@localhost:tmp]$ forge<br>
&gt; Listening for transport dt_socket at address: 8787<br>
&gt; Plugin system disabled due to failure while loading one or more plugins;<br>
&gt; try removing offending plugins with &quot;forge remove-plugin&lt;TAB&gt;&quot;.<br>
&gt; com.google.common.collect.ComputationException:<br>
&gt; java.lang.ArrayStoreException:<br>
&gt; sun.reflect.annotation.TypeNotPresentExceptionProxy<br>
&gt;       at<br>
&gt; com.google.common.collect.ComputingConcurrentHashMap.compute(ComputingConcurrentHashMap.java:218)<br>
&gt;       at<br>
&gt; com.google.common.collect.ComputingConcurrentHashMap.apply(ComputingConcurrentHashMap.java:100)<br>
&gt;       at<br>
&gt; com.google.common.collect.MapMaker$ComputingMapAdapter.get(MapMaker.java:515)<br>
&gt;       at<br>
&gt; org.jboss.weld.resources.ClassTransformer.loadClass(ClassTransformer.java:183)<br>
&gt;       at org.jboss.weld.bootstrap.BeanDeployer.addClass(BeanDeployer.java:95)<br>
&gt;       at<br>
&gt; org.jboss.weld.bootstrap.BeanDeployer.addClasses(BeanDeployer.java:134)<br>
&gt;       at<br>
&gt; org.jboss.weld.bootstrap.BeanDeployment.createBeans(BeanDeployment.java:191)<br>
&gt;       at<br>
&gt; org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:368)<br>
&gt;       at org.jboss.weld.environment.se.Weld.initialize(Weld.java:92)<br>
&gt;       at org.jboss.forge.shell.Bootstrap$1.run(Bootstrap.java:87)<br>
&gt;       at java.lang.Thread.run(Thread.java:662)<br>
&gt; Caused by: java.lang.ArrayStoreException:<br>
&gt; sun.reflect.annotation.TypeNotPresentExceptionProxy<br>
&gt;       at<br>
&gt; sun.reflect.annotation.AnnotationParser.parseClassArray(AnnotationParser.java:653)<br>
&gt;       at<br>
&gt; sun.reflect.annotation.AnnotationParser.parseArray(AnnotationParser.java:460)<br>
&gt;       at<br>
&gt; sun.reflect.annotation.AnnotationParser.parseMemberValue(AnnotationParser.java:286)<br>
&gt;       at<br>
&gt; sun.reflect.annotation.AnnotationParser.parseAnnotation(AnnotationParser.java:222)<br>
&gt;       at<br>
&gt; sun.reflect.annotation.AnnotationParser.parseAnnotations2(AnnotationParser.java:69)<br>
&gt;       at<br>
&gt; sun.reflect.annotation.AnnotationParser.parseAnnotations(AnnotationParser.java:52)<br>
&gt;       at java.lang.Class.initAnnotationsIfNecessary(Class.java:3070)<br>
&gt;       at java.lang.Class.getAnnotations(Class.java:3050)<br>
&gt;       at<br>
&gt; org.jboss.weld.introspector.jlr.WeldClassImpl.of(WeldClassImpl.java:98)<br>
&gt;       at<br>
&gt; org.jboss.weld.resources.ClassTransformer$TransformTypeToWeldClass.apply(ClassTransformer.java:54)<br>
&gt;       at<br>
&gt; org.jboss.weld.resources.ClassTransformer$TransformTypeToWeldClass.apply(ClassTransformer.java:42)<br>
&gt;       at<br>
&gt; com.google.common.collect.ComputingConcurrentHashMap.compute(ComputingConcurrentHashMap.java:206)<br>
&gt;       ... 10 more<br>
&gt;       _____<br>
&gt;<br>
<br>
_______________________________________________<br>
forge-dev mailing list<br>
<a href="mailto:forge-dev@lists.jboss.org" target="_blank">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></div></div><span class="HOEnZb"><font color="#888888">-- <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>
&quot;Keep it Simple&quot;<br>

</font></span></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>