Hello Esteban,

I am facing a problem in using your samples available at http://ilesteban.wordpress.com/2010/11/23/guvnor-embed-assets-editor-in-your-application/

Steps:
1. Deployed the guvnor war from the location: http://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/
2. Modified the form action URL to
        http://127.0.0.1:8080/drools-guvnor/org.drools.guvnor.Guvnor/standaloneEditorServlet?gwt.codesvr=127.0.0.1:9997
3. Opened the newAssetEditor.htm page in browser & changed the rule name to "Bankruptcy history". This rule is available in the mortgage package in the repository.
4. Click Submit. Opens a new page with error : HTTP Status 404 - /drools-guvnor/org.drools.guvnor.Guvnor/standaloneEditorServlet

I checked that web.xml has no url pattern for standaloneEditorServlet and hence no servlet is invoked.

Modification & Review
1. Updated web.xml by adding
     <servlet>
        <servlet-name>standaloneEditorService</servlet-name>
        <servlet-class>org.drools.guvnor.server.StandaloneEditorServiceImplementation</servlet-class>
    </servlet>
    <servlet>
        <servlet-name>standaloneEditorServlet</servlet-name>
        <servlet-class>org.drools.guvnor.server.StandaloneEditorServlet</servlet-class>
    </servlet>   
     <servlet-mapping>
        <servlet-name>standaloneEditorService</servlet-name>
        <url-pattern>/org.drools.guvnor.Guvnor/standaloneEditorService</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>standaloneEditorServlet</servlet-name>
        <url-pattern>/org.drools.guvnor.Guvnor/standaloneEditorServlet</url-pattern>
    </servlet-mapping>
After this change it worked....

2.
In the guvnor war, I observed hat Guvnor.gwt.xml file is missing. Is this OK? (I think new GWT version allows service mapping in web.xml. Is this the reason that Guvnor.gwt.xml file is missing?)

Now I am going to do more analysis as the setup is working & will update you.

Thanks for the samples.
Harshit

On Tue, Dec 14, 2010 at 9:12 PM, Harshit Bapna <hrbapna@gmail.com> wrote:
Hello Esteban,

I have read your post and was excited about it.
I am new to GWT so still learning the Guvnor internal strategy.

I will test it & give you my feedback.

--harshit

2010/12/14 Esteban Aliverti <esteban.aliverti@gmail.com>

You can use the last snapshot if you want to start testing it: http://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/
Did you read my post about this topic already? http://ilesteban.wordpress.com/2010/11/23/guvnor-embed-assets-editor-in-your-application/

Please test it if you have time and give us some feedback.

Best Regards,

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Esteban Aliverti
- Developer @ http://www.plugtree.com
- Blog @ http://ilesteban.wordpress.com


2010/12/14 Harshit Bapna <hrbapna@gmail.com>

Thanks Mark for the clarification.

2010/12/14 Mark Proctor <mproctor@codehaus.org>

On 14/12/2010 12:00, Harshit Bapna wrote:
Hello All,
 
Few questions:
1. What is the release date of Guvnor 5.2 ? (Couldn't find it from the site of the documentation)
    I am interested in the functionality to add the guvnor editors in another app for rule editing. i.e. StandaloneEditorServlet
There is no release date yet.

   
2. Which SVN TAG of the Guvnor (which has standalone editor functionality) should I use ?
We will be doing a milestone release within the next week or so, if things go weel, you can use that tag.

Mark
   
Note: On trunk I have observed that the war contains a folder guvnor where as guvnor 5.1 war contained folder org.drools.guvnor.Guvnor
Also the web.xml in the trunk has the following url pattern <url-pattern>/org.drools.guvnor.Guvnor/feed/*</url-pattern>
This url pattern would never be matched as the Guvnor.html is under guvnor/Guvnor.html. To make it work I had to update the url patterns in the web.xml

Is there anything that I am doing wrong ? (mvn clean install -Dmaven.test.failure.ignore=true)
IMO, the trunk has partial changes checked in. Hence it is not stable.

 
Thanks

_______________________________________________ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users


_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users



_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users



_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users