Hi Ge0ffrey,<br><br>>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>
<br>- It occurs when deploying to Tomcat (any Servlet Container?). <br>- The WAR <b>does</b> contain all "test" classes\resources. <br>- It does not occur in hosted mode (as I can remove "test" 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 "test" classes).<br> <br>So I'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"><<a href="mailto:ge0ffrey.spam@gmail.com">ge0ffrey.spam@gmail.com</a>></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">> Hi,<br>
><br>
> I tried building a WAR for Guvnor and found a couple of hick-ups<br>
> (although it was with my local copy of master taken a few months ago).<br>
><br>
> I mention them here in case they are unknown issues (feel free to beat<br>
> me up if I simply need to resync with master; which will happen as<br>
> part of my dtable commit...)<br>
><br>
> 1) In \drools-guvnor<br>
><br>
> mvn package -DskipTests=true -PfullProfile<br>
><br>
> Didn't build dependant drools-ide-common, as I'd expect and I had to<br>
> "mvn install" 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'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">><br>
> 2) In \drools-guvnor<br>
><br>
> mvn package -DskipTests=true -PfullProfile<br>
><br>
> Built the WAR however the test classes are also included, leading to a<br>
> Seam error when deploying:-<br>
><br>
> SEVERE: Exception sending context initialized event to listener<br>
> instance of class org.jboss.seam.servlet.SeamListener<br>
> java.lang.IllegalStateException: Two components with the same name and<br>
> precedence - component name:<br>
> org.drools.guvnor.server.security.RoleBasedPermissionStore, component<br>
> classes:<br>
> org.drools.guvnor.server.security.MockRoleBasedPermissionStore,<br>
> org.drools.guvnor.server.security.RoleBasedPermissionStore<br>
> at<br>
> org.jboss.seam.init.Initialization.addComponentDescriptor(Initialization.java:586)<br>
> at<br>
> org.jboss.seam.init.Initialization.installScannedComponentAndRoles(Initialization.java:927)<br>
> at<br>
> org.jboss.seam.init.Initialization.scanForComponents(Initialization.java:874)<br>
> at org.jboss.seam.init.Initialization.init(Initialization.java:687)<br>
><br>
> This traced back to "MockRoleBasedPermissionStore" in the test classes<br>
> and "RoleBasedPermissionStore" in the non-test classes.<br>
><br>
> 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">><br>
> 3) Alot of Guvnor tests failed, however I assume Toni Rikkola could<br>
> have fixed recently with his work in this area.<br>
<br>
</div>If they talk about a repository lock failing, it's cool and Toni's<br>
working on it.<br>
If it's something else, it's not cool.<br>
><br>
> Cheers,<br>
><br>
> Mike<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>
<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>