{"action":"opened","issue":{"url":"https://api.github.com/repos/jbossdemocentral/brms-coolstore-demo/issues/56","repository_url":"https://api.github.com/repos/jbossdemocentral/brms-coolstore-demo","labels_url":"https://api.github.com/repos/jbossdemocentral/brms-coolstore-demo/issues/56/labels{/name}","comments_url":"https://api.github.com/repos/jbossdemocentral/brms-coolstore-demo/issues/56/comments","events_url":"https://api.github.com/repos/jbossdemocentral/brms-coolstore-demo/issues/56/events","html_url":"https://github.com/jbossdemocentral/brms-coolstore-demo/issues/56","id":163240135,"number":56,"title":"Duplicate rules in coolstore-2.0.0.jar in \"support/libs\"","user":{"login":"DuncanDoyle","id":875822,"avatar_url":"https://avatars.githubusercontent.com/u/875822?v=3","gravatar_id":"","url":"https://api.github.com/users/DuncanDoyle","html_url":"https://github.com/DuncanDoyle","followers_url":"https://api.github.com/users/DuncanDoyle/followers","following_url":"https://api.github.com/users/DuncanDoyle/following{/other_user}","gists_url":"https://api.github.com/users/DuncanDoyle/gists{/gist_id}","starred_url":"https://api.github.com/users/DuncanDoyle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DuncanDoyle/subscriptions","organizations_url":"https://api.github.com/users/DuncanDoyle/orgs","repos_url":"https://api.github.com/users/DuncanDoyle/repos","events_url":"https://api.github.com/users/DuncanDoyle/events{/privacy}","received_events_url":"https://api.github.com/users/DuncanDoyle/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-06-30T18:49:22Z","updated_at":"2016-06-30T18:49:22Z","closed_at":null,"body":"The \"support/libs\" directory contains a \"coolstore-2.0.0.jar\" KJAR file which gets put in the WEB-INF/lib folder of the \"brms-coolstore-demo.war\" app. The KJAR contains duplicate rules. It contains a decision table (ShippingRules), and the DRL representation of that decision table. This causes the following problem.\r\n\r\n```\r\nCaused by: java.lang.RuntimeException: Error while creating KieBase[Message [id=1, level=ERROR, path=Shipping%20Rules.gdst, line=5, column=0\r\n   text=Duplicate rule name: Row 1 Shipping Rules], Message [id=2, level=ERROR, path=Shipping%20Rules.gdst, line=17, column=0\r\n   text=Duplicate rule name: Row 2 Shipping Rules], Message [id=3, level=ERROR, path=Shipping%20Rules.gdst, line=29, column=0\r\n   text=Duplicate rule name: Row 3 Shipping Rules], Message [id=4, level=ERROR, path=Shipping%20Rules.gdst, line=41, column=0\r\n   text=Duplicate rule name: Row 4 Shipping Rules], Message [id=5, level=ERROR, path=Shipping%20Rules.gdst, line=53, column=0\r\n   text=Duplicate rule name: Row 5 Shipping Rules], Message [id=6, level=ERROR, path=Shipping%20Rules.gdst, line=10, column=0\r\n   text=Duplicate declaration for variable '$sc' in the rule 'Row 1 Shipping Rules'], Message [id=7, level=ERROR, path=Shipping%20Rules.gdst, line=22, column=0\r\n   text=Duplicate declaration for variable '$sc' in the rule 'Row 2 Shipping Rules'], Message [id=8, level=ERROR, path=Shipping%20Rules.gdst, line=34, column=0\r\n   text=Duplicate declaration for variable '$sc' in the rule 'Row 3 Shipping Rules'], Message [id=9, level=ERROR, path=Shipping%20Rules.gdst, line=46, column=0\r\n   text=Duplicate declaration for variable '$sc' in the rule 'Row 4 Shipping Rules'], Message [id=10, level=ERROR, path=Shipping%20Rules.gdst, line=58, column=0\r\n   text=Duplicate declaration for variable '$sc' in the rule 'Row 5 Shipping Rules']]\r\n\tat org.drools.compiler.kie.builder.impl.KieContainerImpl.getKieBase(KieContainerImpl.java:450) [drools-compiler-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]\r\n\tat org.drools.compiler.kie.builder.impl.KieContainerImpl.newKieSession(KieContainerImpl.java:604) [drools-compiler-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]\r\n\tat org.drools.compiler.kie.builder.impl.KieContainerImpl.newKieSession(KieContainerImpl.java:549) [drools-compiler-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]\r\n\tat org.drools.compiler.kie.builder.impl.KieContainerImpl.newKieSession(KieContainerImpl.java:531) [drools-compiler-6.4.0.Final-redhat-3.jar:6.4.0.Final-redhat-3]\r\n\tat com.redhat.coolstore.util.BRMSUtil.getStatefulSession(BRMSUtil.java:53) [classes:]\r\n\tat com.redhat.coolstore.service.ShoppingCartServiceImplBRMS.priceShoppingCart(ShoppingCartServiceImplBRMS.java:52) [classes:]\r\n```\r\n\r\nBest solution seems to remove that pre-build coolstore-2.0.0.jar KJAR and not package it with the web-app."}}
{"actor":{"display_login":"DuncanDoyle"}}