Hi Ge0ffrey,<br><br>&gt;Does it occur in hosted mode in Eclipse/IntelliJ?<br>
&gt;Looks like the test classes are also copied into the war?!?<br>
&gt;Tihomir might know more about the whole role based stuff.<br>
<br>- It occurs when deploying to Tomcat (any Servlet Container?). <br>- The WAR <b>does</b> contain all &quot;test&quot; classes\resources. <br>- It does not occur in hosted mode (as I can remove &quot;test&quot; classes\resources from the classpath).<br>
- Seam is correct in reporting the error (as two classes are declared as being the same component, because of the inclusion of &quot;test&quot; classes).<br> <br>So I&#39;d surmise a compile problem with maven (but it could be old news)?<br>
<br>With kind regards,<br><br>Mike<br><br><div class="gmail_quote">On 20 January 2011 07:56, Geoffrey De Smet <span dir="ltr">&lt;<a href="mailto:ge0ffrey.spam@gmail.com">ge0ffrey.spam@gmail.com</a>&gt;</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;">
<br>
<br>
Op 19-01-11 22:33, Michael Anstis schreef:<br>
<div class="im">&gt; Hi,<br>
&gt;<br>
&gt; I tried building a WAR for Guvnor and found a couple of hick-ups<br>
&gt; (although it was with my local copy of master taken a few months ago).<br>
&gt;<br>
&gt; I mention them here in case they are unknown issues (feel free to beat<br>
&gt; me up if I simply need to resync with master; which will happen as<br>
&gt; part of my dtable commit...)<br>
&gt;<br>
&gt; 1) In \drools-guvnor<br>
&gt;<br>
&gt; mvn package -DskipTests=true -PfullProfile<br>
&gt;<br>
&gt; Didn&#39;t build dependant drools-ide-common, as I&#39;d expect and I had to<br>
&gt; &quot;mvn install&quot; this first.<br>
</div>This is partially normal...<br>
mvn install = mvn package (=make the jar) + copy the jar in the local<br>
repository<br>
mvn package = mvn compile + ... + make the jar<br>
<br>
But for normal java apps, mvn compile is enough even in a multi-module,<br>
because it doesn&#39;t need to create a jar (or copy that in the local repo)<br>
as it justs reuses drools-ide-common/target/classes in the classpath of<br>
drools-guvnor.<br>
Just like your Eclipse/IntelliJ does (because if were to build a jar<br>
each time it would take as long as the maven build).<br>
However, that might not work for GWT compilation,<br>
so the safest bet it to do mvn install...<br>
<div class="im">&gt;<br>
&gt; 2) In \drools-guvnor<br>
&gt;<br>
&gt; mvn package -DskipTests=true -PfullProfile<br>
&gt;<br>
&gt; Built the WAR however the test classes are also included, leading to a<br>
&gt; Seam error when deploying:-<br>
&gt;<br>
&gt; SEVERE: Exception sending context initialized event to listener<br>
&gt; instance of class org.jboss.seam.servlet.SeamListener<br>
&gt; java.lang.IllegalStateException: Two components with the same name and<br>
&gt; precedence - component name:<br>
&gt; org.drools.guvnor.server.security.RoleBasedPermissionStore, component<br>
&gt; classes:<br>
&gt; org.drools.guvnor.server.security.MockRoleBasedPermissionStore,<br>
&gt; org.drools.guvnor.server.security.RoleBasedPermissionStore<br>
&gt;     at<br>
&gt; org.jboss.seam.init.Initialization.addComponentDescriptor(Initialization.java:586)<br>
&gt;     at<br>
&gt; org.jboss.seam.init.Initialization.installScannedComponentAndRoles(Initialization.java:927)<br>
&gt;     at<br>
&gt; org.jboss.seam.init.Initialization.scanForComponents(Initialization.java:874)<br>
&gt;     at org.jboss.seam.init.Initialization.init(Initialization.java:687)<br>
&gt;<br>
&gt; This traced back to &quot;MockRoleBasedPermissionStore&quot; in the test classes<br>
&gt; and &quot;RoleBasedPermissionStore&quot; in the non-test classes.<br>
&gt;<br>
&gt; Tomcat 6.x.<br>
<br>
</div>Does it occur in hosted mode in Eclipse/IntelliJ?<br>
Looks like the test classes are also copied into the war?!?<br>
Tihomir might know more about the whole role based stuff.<br>
<div class="im">&gt;<br>
&gt; 3) Alot of Guvnor tests failed, however I assume Toni Rikkola could<br>
&gt; have fixed recently with his work in this area.<br>
<br>
</div>If they talk about a repository lock failing, it&#39;s cool and Toni&#39;s<br>
working on it.<br>
If it&#39;s something else, it&#39;s not cool.<br>
&gt;<br>
&gt; Cheers,<br>
&gt;<br>
&gt; Mike<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; rules-dev mailing list<br>
&gt; <a href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-dev</a><br>
<br>
--<br>
With kind regards,<br>
Geoffrey De Smet<br>
<br>
<br>
_______________________________________________<br>
rules-dev mailing list<br>
<a href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-dev</a><br>
</blockquote></div><br>