<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.5921" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=147250209-14102010><FONT face=Arial
color=#0000ff size=2>Hi Geoffrey, Esteban,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=147250209-14102010><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=147250209-14102010><FONT face=Arial
color=#0000ff size=2>The Eclipse GWT Plugin in essence calls out
to GWT's com.google.gwt.dev.DevMode and does not use maven.
</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=147250209-14102010><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=147250209-14102010></SPAN><SPAN
class=147250209-14102010><FONT face=Arial color=#0000ff size=2>I think half the
problem could be the disjoint between the default paths used by maven compared
to the default paths used by gwt i.e. they are different: </FONT></SPAN><SPAN
class=147250209-14102010><FONT face=Arial color=#0000ff size=2>mvn uses
src/main/webapp by default whereas gwt prefers /war. It looks like you can
bring the two inline </FONT></SPAN><SPAN class=147250209-14102010><FONT
face=Arial color=#0000ff size=2><A
href="http://mojo.codehaus.org/gwt-maven-plugin/user-guide/war-folder.html">http://mojo.codehaus.org/gwt-maven-plugin/user-guide/war-folder.html</A> but
I haven't tried it. A warning to this effect is in the log you show "Your POM
<build><outputdirectory> does not match your hosted webapp
WEB-INF/classes folder for GWT Hosted browser to see your classes." I think the
classes are JIT'ed so you won't get any errors until launching your browser. I
also think the "target" folder
("/home/esteban/plugTree/trunkTMP/drools-guvnor/<STRONG>target</STRONG>/drools-guvnor")
is a GWT1.6 hang-over and wonder whether Guvnor is fully GWT2.x or a hybrid of
bits and pieces that wouldn't help matters.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=147250209-14102010><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=147250209-14102010><FONT face=Arial
color=#0000ff size=2>Not wanting to tread on toes.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=147250209-14102010><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=147250209-14102010><FONT face=Arial
color=#0000ff size=2>With kind regards,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=147250209-14102010><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=147250209-14102010><FONT face=Arial
color=#0000ff size=2>Mike</FONT></SPAN></DIV><BR>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> rules-dev-bounces@lists.jboss.org
[mailto:rules-dev-bounces@lists.jboss.org] <B>On Behalf Of
</B>esteban.aliverti@gmail.com<BR><B>Sent:</B> 14 October 2010
00:07<BR><B>To:</B> Rules Dev List<BR><B>Subject:</B> Re: [rules-dev] Guvnor
build changes summary<BR></FONT><BR></DIV>
<DIV></DIV>Geoffrey, again, great work!
<DIV>But I have a question for you. I'm trying to run/debug guvnor without
eclipse.</DIV>
<DIV>Thanks to your work, now I am able to execute <B>mvn gwt:compile</B>
without modify the pom.xml file! That is great.</DIV>
<DIV>Then I run Guvnor doing:<B> mvn
-Dgwt.module=org.drools.guvnor.Guvnor
-DrunTarget=org.drools.guvnor.Guvnor/Guvnor.html gwt:debug</B></DIV>
<DIV> </DIV>
<DIV>Everything seams to look right. I get this output:</DIV>
<DIV><BR></DIV>
<DIV><I>Preparing gwt:debug</I></DIV>
<DIV><I>[resources:resources]</I></DIV>
<DIV><I>Using 'UTF-8' encoding to copy filtered resources.</I></DIV>
<DIV><I>Copying 29 resources</I></DIV>
<DIV><I>[compiler:compile]</I></DIV>
<DIV><I>Nothing to compile - all classes are up to date</I></DIV>
<DIV><I>[gwt:debug]</I></DIV>
<DIV><I>starting debugger on port 8000 in suspend mode</I></DIV>
<DIV><I>You're project declares dependency on gwt-user 2.0.4. This plugin is
designed for version 2.1-20101001.MGWT219</I></DIV>
<DIV><I>create exploded Jetty webapp in
/home/esteban/plugTree/trunkTMP/drools-guvnor/target/drools-guvnor</I></DIV>
<DIV><I>Your POM <build><outputdirectory> does not match your
hosted webapp WEB-INF/classes folder for GWT Hosted browser to see your
classes.</I></DIV>
<DIV><I>Listening for transport dt_socket at address: 8000</I></DIV>
<DIV><BR></DIV>
<DIV>Now, when I try to attach a debugger (in my case, using Netbeans), I get
the following behavior:</DIV>
<DIV>
<OL>
<LI>The GWT Development Mode console appears
<LI>After a few seconds, the Startup URL appears in the combobox
<LI>At this point, I have some warnings in "Development Mode" and "Jetty"
tabs. (probably you are using tomcat, but should be the same)
<LI>When I try to enter Guvnor using firefox, a new tab appears in the GWT
Development Mode (which is the expected behavior), but a lot of errors
appear there. The errors are because the source code of ide.common packages
can't be found. </LI></OL>
<DIV><BR></DIV>
<DIV>I'm attaching a screenshot showing the error:</DIV>
<DIV><BR></DIV>
<DIV><IMG title=Screenshot.png alt=Screenshot.png
src="cid:147250209@14102010-330C"><BR></DIV>
<DIV><BR></DIV>
<DIV>The questions are: do you know how is eclipse running guvnor? Does it use
maven at all? Am I missing any argument when running gwt:debug goal?</DIV>
<DIV><BR></DIV>
<DIV>Best
Regards,</DIV><BR>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<BR><BR>Esteban
Aliverti<BR>- Developer @ <A href="http://www.plugtree.com"
target=_blank>http://www.plugtree.com </A><BR>- Blog @ <A
href="http://ilesteban.wordpress.com"
target=_blank>http://ilesteban.wordpress.com</A><BR><BR><BR>
<DIV class=gmail_quote>On Sat, Oct 9, 2010 at 7:53 AM, 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="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">No,
I no longer think we should "split up drools-guvnor into<BR>
<DIV class=im>drools-guvnor-gwtclient and
drools-guvnor-server",<BR></DIV>not at least until GWT supports separate
client vs server classpaths better.<BR>I will still look into moving
factconstraints module guvnor part to<BR>guvnor (and the rest might be
movable to drools-core/compiler?)?<BR>
<DIV class=im><BR>With kind regards,<BR>Geoffrey De Smet<BR><BR></DIV>Op
08-10-10 09:54, Anstis, Michael (M.) schreef:<BR>
<DIV class=im>> I'm not sure Geoffrey is planning on the split
anymore:<BR>>> I haven't split up drools-guvnor into
drools-guvnor-gwtclient and<BR>>> drools-guvnor-server, because
GWT simply doesn't really allow that (not<BR>>> without making
the solution worse than the problem at least...).<BR>><BR>>
------------------------------------------------------------------------<BR>>
*From:* <A
href="mailto:rules-dev-bounces@lists.jboss.org">rules-dev-bounces@lists.jboss.org</A><BR>>
[mailto:<A
href="mailto:rules-dev-bounces@lists.jboss.org">rules-dev-bounces@lists.jboss.org</A>]
*On Behalf Of *Michael Neale<BR>> *Sent:* 08 October 2010
03:34<BR>> *To:* Rules Dev List<BR>>
*Subject:* Re: [rules-dev] Guvnor build changes summary<BR>><BR>>
yes, that probably would make sense. Although, there would
have to<BR>> be maybe a 3rd for the common code. Or else
the server module<BR>> depends on the client
module?<BR>><BR>> On Fri, Oct 8, 2010 at 12:51 PM,
Jervis Liu <<A
href="mailto:jliu@redhat.com">jliu@redhat.com</A><BR></DIV>
<DIV>
<DIV></DIV>
<DIV class=h5>> <mailto:<A
href="mailto:jliu@redhat.com">jliu@redhat.com</A>>>
wrote:<BR>><BR>> Good job, Geoffrey! BTW,
what is this about: "split up drools-guvnor<BR>>
into drools-guvnor-gwtclient and drools-guvnor-server"
?<BR>><BR>> Thanks,<BR>>
Jervis<BR>><BR>> Geoffrey De
Smet wrote:<BR>> > Hi guys,<BR>>
><BR>>
> The Guvnor build has changed somewhat. Here's the
changes:<BR>> > - "mvn clean
compile" now compiles the GWT java sources to<BR>>
javascript<BR>> > with the
gwt-maven-plugin.<BR>> > -- So now,
to really clean build guvnor, you don't need to<BR>>
run the ANT<BR>> > script
separate no more<BR>> > -- The maven
plugin is about 50% faster than the ANT script.<BR>>
> -- This makes the entire drools build slower (as it now
gwt<BR>> compiles<BR>>
> too), but I am looking into improving that (for
example in a<BR>> development<BR>>
> mode profile, we can only gwt compile to
english and firefox)<BR>> > - The
generated GWT javascript files have been removed from<BR>>
subversion<BR>> > and
are now generated under the target/drools-guvnor directory<BR>>
> -- No more A43BF34D23567676DF.js files in
svn or tree<BR>> conflicts on those<BR>>
> directories<BR>>
><BR>> > I
haven't split up drools-guvnor into drools-guvnor-gwtclient and<BR>>
> drools-guvnor-server, because GWT
simply doesn't really allow<BR>> that
(not<BR>> > without making the
solution worse than the problem at least...).<BR>>
><BR>> > If you feel
any rough edges, let me know and I 'll take a<BR>>
look at it.<BR>> ><BR>>
> I 'll remove the old ANT script soon,
once the maven<BR>> filtering for the<BR>>
> version and revision is in
place.<BR>> ><BR>><BR>>
_______________________________________________<BR>>
rules-dev mailing list<BR></DIV></DIV>>
<A
href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</A>
<mailto:<A
href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</A>><BR>
<DIV class=im>> <A
href="https://lists.jboss.org/mailman/listinfo/rules-dev"
target=_blank>https://lists.jboss.org/mailman/listinfo/rules-dev</A><BR>><BR>><BR>><BR>><BR>>
--<BR>> Michael D Neale<BR></DIV>>
home: <A href="http://www.michaelneale.net"
target=_blank>www.michaelneale.net</A> <<A
href="http://www.michaelneale.net"
target=_blank>http://www.michaelneale.net</A>><BR>>
blog: <A href="http://michaelneale.blogspot.com"
target=_blank>michaelneale.blogspot.com</A> <<A
href="http://michaelneale.blogspot.com"
target=_blank>http://michaelneale.blogspot.com</A>><BR>
<DIV>
<DIV></DIV>
<DIV class=h5>><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>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></DIV></DIV></BLOCKQUOTE></DIV><BR></DIV></BLOCKQUOTE></BODY></HTML>