Re: [rules-users] Guvnor guided editor problem - add more options
I have now managed to fix this problem, following advice here: https://issues.jboss.org/browse/GUVNOR-1341 The workaround is to remove the GuvnorApplication.class from guvnor-5.2.0.Final-jboss-as-6.0.war (removed this file \WEB-INF\classes\org\drools\guvnor\server\jaxrs\GuvnorApplication.class) - I used 7Zip to open the .war file and then remove the class from it. The deployment of the .war file onto JBocc AS 6.0 then works. Also found that the original problem in adding formula to the rule now works. - -- Best Regards Marros -- View this message in context: http://drools.46999.n3.nabble.com/Guvnor-guided-editor-problem-add-more-options-tp3087495p3112746.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Guvnor guided editor problem - add more options
Hi Mike, Ok so now I have downloaded guvnor-distribution-5.2.0.final.zip Again I trashed everything I had set up and started again. I extracted the jboss-as-distribution-6.0.0.final.zip to a folder called c:\software\jboss on my pc. I have also created environment variables for JAVA_HOME and JBOSS_HOME and made sure they are included in the PATH statement (oout of interest I have installed the JDK1.6.0_26 release) I can then launch the AS from here (by running the run.bat file from the \bin folder) and I am able to open a browser to the home page on http://localhost:8080 I then extracted the guvnor-distribution-5.2.0.final.zip to a seperate folder. Then went to the binaries folder and before copying I renamed guvnor-5.2.0.Final-jboss-as-6.0.war file to just guvnor.war (The Guvnor manual recommends this for a nicer URL) I then copied this file into c:\software\jboss\jboss-6.0.0.final\server\default\deploy folder Again I can see the AS trying to deploy the guvnor.war file. the first thing that happens is an error stating Failed to add deployment: vfs:///c:/software/jboss/jboss-6.0.0.fnal/server/default/deploy/guvnor.war: org.jboss.deployers.spi.DeploymentException: Failed to mount archive: /c/software/jboss/jboss-6.0.0.fnal/server/default/deploy/guvnor.war I then get lthe following: http://drools.46999.n3.nabble.com/file/n3103179/jbaserr.jpg I have followed the install instructions contained in the Guvnor Manual for users administrators for 5.2.0.Final (which was downloaded with the distribution at the begginning of this message). I know am a complete newbie and I am not really a programmer, but I need to be looking at Drools and and am just trying to get it installed and running - -- Best Regards Marros -- View this message in context: http://drools.46999.n3.nabble.com/Guvnor-guided-editor-problem-add-more-options-tp3087495p3103179.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Guvnor guided editor problem - add more options
Hi Mike, Yes can confirm: JBoss AS 6.0.0 JDK 1.6.0_26 Guvnor 5.2 Many Thanks - -- Best Regards Marros -- View this message in context: http://drools.46999.n3.nabble.com/Guvnor-guided-editor-problem-add-more-options-tp3087495p3103675.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Guvnor guided editor problem - add more options
HI Mike, Sorry I did not reply yesterd (I was out of work on holiday) I decided to start again from scratch: 1. I downloaded (from www.jboss.org/jboss/downloads) jboss-as-distribution-6.0.0.Final.zip. Unzipped it and am able to run this version of the AS without a problem. 2. I then downloaded (from www.jboss.org/drools/downloads) drools-5.1.1-guvnor.war. I then copied this to the deploy folder for the AS server. I have attached a screenshot of what happens next. http://drools.46999.n3.nabble.com/file/n3099330/AS_Screen.jpg The AS then just sits at this screen. If I then try to access http://localhost:8080/drools-guvnor I get a http 404 error. At this point I tried stopping and restarting the AS. Part way through the start up I get an error stating DEPLOYMENTS MISSING DEPENDENCIES, as in this next screen shot: http://drools.46999.n3.nabble.com/file/n3099330/as_screen2.jpg Any advice woudl be much appreciated. - -- Best Regards Marros -- View this message in context: http://drools.46999.n3.nabble.com/Guvnor-guided-editor-problem-add-more-options-tp3087495p3099330.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Guvnor guided editor problem - add more options
I am also having the same problem and wousl also appreciate any advice -- Best Regards, Marros -- View this message in context: http://drools.46999.n3.nabble.com/Guvnor-guided-editor-problem-add-more-options-tp3087495p3089865.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Guvnor guided editor problem - add more options
The book is the PAKT Publishing book JBoss Drools Business Rules by Paul Browne. Am using Drools 5.1 and Guvnor 5.0.0.SNAPSHOT 25673M Using the guided editor to create a rule that states if a sale has a value of over 100 then discount it by 10. Have partly created a rule as exactly how the book says as follows: 1. Create a new rule and add a condition using a sales fact (This has been done OK.) 2. When adding the first constraint, enter a variable name (mySales) (this has been doen OK) 3. Select GREATER THAN OR EQUAL TO in the PLEASE CHOOSE drop-down box, and use the pencil icon to enter the value (100) - (this has been done OK) 4. On the second line of the newly created rule, click on the green arrow above SALES. An option to bind the actual sales total to a variable is shown. In this dialog box, assign it to salesValue (this has been done OK) 5. In the guided editor, The Add new Action dialog box now has additonal options. Click on the green + sign whcih is next to THEN to make these options appear. In this dialog box choose to modify the mySales fact (This has been done OK) The next bit is the bit that I cannot get to work: Back in the guided editor, click on the pencil icon and enter the formula (=salesValue-10) What happens is that when you click to add the formula - you do not get that option, you only get an option to ADD A FIELD and it shows a list of available fields I have gone upt to step 5 and viewed the source which is as follows: 1. rule SalesDiscount 2. no-loop true 3. dialect mvel 4. when 5. mySales : Sales( salesvalues : sales = 100 ) 6. then 7. update( mySales ); 8. end Which is as it should be up to step 5 (according to the book) What it should look like after adding the formula is: rule SalesDiscount no-loop true dialect mvel when mySales : Sales( salesvalues : sales = 100 ) then mySales:setSales( salesValue-10) update( mySales ); end Hope this explains - I am also very new to Drools and trying to learn Many Tanks -- Best Regards Marros -- View this message in context: http://drools.46999.n3.nabble.com/Guvnor-guided-editor-problem-add-more-options-tp3087495p3090032.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Guvnor guided editor problem - add more options
Hi Mike, Thnaks for your help. Still a problem I am afraid. I have done what you sugested (up to step 5) I have clicked the pencil icon and added the sales field nad as you say the sales is shown with another pencil icon. HOwever when you try to click on the new pencil icon - nothing happens at all. It's as if you cannot edit it. Brgds, Martin - -- Best Regards Marros -- View this message in context: http://drools.46999.n3.nabble.com/Guvnor-guided-editor-problem-add-more-options-tp3087495p3090186.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Guvnor guided editor problem - add more options
Hi again Mike, If it helps here is a creenshot of how it looks in the guided editor: http://drools.46999.n3.nabble.com/file/n3090196/jboss.jpg - -- Best Regards Marros -- View this message in context: http://drools.46999.n3.nabble.com/Guvnor-guided-editor-problem-add-more-options-tp3087495p3090196.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Guvnor guided editor problem - add more options
Hi Mike, Thanks for your advice. I have downloaded drools-5.1.1-guvnor.war and then copied it to the Jboss Deploy directory On the JBoss server screen I saw it attempting to deploy but then it failed with Deplyment Exception: invalid block type; - nested throwable: (java.util.zip.Zipexception: invalid block type) at org.jboss.web.AbstractWebContainer.init(AbstractWebContainer.java:374) Now I cannot restart Drools - -- Best Regards Marros -- View this message in context: http://drools.46999.n3.nabble.com/Guvnor-guided-editor-problem-add-more-options-tp3087495p3090362.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users