{"action":"created","issue":{"url":"https://api.github.com/repos/kensiprell/grails-drools/issues/8","labels_url":"https://api.github.com/repos/kensiprell/grails-drools/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/kensiprell/grails-drools/issues/8/comments","events_url":"https://api.github.com/repos/kensiprell/grails-drools/issues/8/events","html_url":"https://github.com/kensiprell/grails-drools/issues/8","id":75991530,"number":8,"title":"Can't read DRL files once compiled in EAR format","user":{"login":"lvazquezt","id":12185900,"avatar_url":"https://avatars.githubusercontent.com/u/12185900?v=3","gravatar_id":"","url":"https://api.github.com/users/lvazquezt","html_url":"https://github.com/lvazquezt","followers_url":"https://api.github.com/users/lvazquezt/followers","following_url":"https://api.github.com/users/lvazquezt/following{/other_user}","gists_url":"https://api.github.com/users/lvazquezt/gists{/gist_id}","starred_url":"https://api.github.com/users/lvazquezt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lvazquezt/subscriptions","organizations_url":"https://api.github.com/users/lvazquezt/orgs","repos_url":"https://api.github.com/users/lvazquezt/repos","events_url":"https://api.github.com/users/lvazquezt/events{/privacy}","received_events_url":"https://api.github.com/users/lvazquezt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-05-13T13:52:41Z","updated_at":"2015-05-25T13:27:48Z","closed_at":null,"body":"Hi,\r\n\r\nI am using Grails 2.3.11 and 1.0.1 for the plugin. I haven't modified grails.plugin.drools.drlFileLocation and I have my rules in src/resources/rules/rules2012.\r\nIn DroolsConfig.groovy I have packages: \"rules2012\" (also tried packages: \"rules.rules2012\").\r\n\r\nWhen running in local from IntelliJ I have no problems and works perfectly fine. When I deploy to our dev environment I do not reach the DRL files. I know because I have this code.\r\n```groovy\r\nprivate countRules() {\r\n    logger.info(\"Calculating number of rules in this KieBase\")\r\n    Iterable<KiePackage> packages = kBase2012.getKiePackages();\r\n    for (KiePackage p : packages) {\r\n      Collection<Rule> allRules = p.getRules();\r\n      if (allRules.size() > 0)\r\n        logger.info(allRules.size() + \" rules loaded from package \" + p.getName());\r\n    }\r\n  }\r\n```\r\n\r\nWhen running in my local machine I log this:\r\nCalculating number of rules in this KieBase\r\n- 85 rules loaded from package sec.rules.rules2012\r\n\r\nWhen running in the server I log:\r\nCalculating number of rules in this KieBase\r\n\r\nMy DroolsConfig:\r\n```groovy\r\nkieBases = [\r\n        [\r\n                includeInConfig: true,\r\n                attributes     : [\r\n                        name    : \"kBase2012\",\r\n                        default : false,\r\n                        packages: \"rules2012\"\r\n                ],\r\n                kieSessions    : [\r\n                        [\r\n                                includeInConfig: true,\r\n                                attributes     : [\r\n                                        name   : \"statefulSession2012\",\r\n                                        default: false,\r\n                                        type   : \"stateful\"\r\n                                ],\r\n                                kieListeners   : [\r\n                                    [\r\n                                        includeInConfig: false,\r\n                                        type           : \"agendaEventListener\",\r\n                                        debug          : false,\r\n                                        //ref            : \"beanNameFromKieEventListenersList\",\r\n                                        nestedBeanClass: \"sec.project.CustomAgendaEventListener\"\r\n                                    ]\r\n                                ]\r\n                        ]\r\n                ]\r\n        ]\r\n```\r\n\r\nIn my ear file the DRL files end up in:\r\nmyProject\\WEB-INF\\classes\\rules\\rules2012\\\r\n\r\nIs the same if I compile it in a war package. \r\n\r\nAny ideas what am I doing wrong?\r\n\r\nThank you,\r\nLino"},"comment":{"url":"https://api.github.com/repos/kensiprell/grails-drools/issues/comments/105231336","html_url":"https://github.com/kensiprell/grails-drools/issues/8#issuecomment-105231336","issue_url":"https://api.github.com/repos/kensiprell/grails-drools/issues/8","id":105231336,"user":{"login":"majkelo","id":5007941,"avatar_url":"https://avatars.githubusercontent.com/u/5007941?v=3","gravatar_id":"","url":"https://api.github.com/users/majkelo","html_url":"https://github.com/majkelo","followers_url":"https://api.github.com/users/majkelo/followers","following_url":"https://api.github.com/users/majkelo/following{/other_user}","gists_url":"https://api.github.com/users/majkelo/gists{/gist_id}","starred_url":"https://api.github.com/users/majkelo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/majkelo/subscriptions","organizations_url":"https://api.github.com/users/majkelo/orgs","repos_url":"https://api.github.com/users/majkelo/repos","events_url":"https://api.github.com/users/majkelo/events{/privacy}","received_events_url":"https://api.github.com/users/majkelo/received_events","type":"User","site_admin":false},"created_at":"2015-05-25T13:27:48Z","updated_at":"2015-05-25T13:27:48Z","body":"@kensiprell I'm afraid I've received error connected with oauth2, too. Please check it out:\r\nhttp://stackoverflow.com/questions/30438819/drools-make-conflict-with-spring-security-oauth2-provider\r\nMike"}}