title: KieRespository instance giving null pointer exception when Jar running in Docker Environment
body: <p>When running our Java Spring Boot app (Fat Jar) on Docker Environment we are getting below error:</p>
  <pre><code>Error: Failed to instantiate [org.kie.api.builder.KieModule]: Factory method 'kieModule' threw an exception; nested exception is java.lang.NullPointerException
  </code></pre>
  <p>Method in our Drools Config class:</p>
  <pre><code>@Bean(KieModule)
  public KieModule kieModule() {
     KieServices kservice = KieServices.Factory.get();
     final KieRepository kr = kservice.getRepository(); //failing here
     KieModule kieModule = new KieModule() {
          public ReleaseId getReleaseId(){ return releaseId.getDefaultReleaseId();}
  };
  
  kieRepository.addKieModule(kieModule);
  return kieModule;
  
  }
     
  }
  </code></pre>
  <p>build.gradle has following dependencies</p>
  <pre><code>implementation 'org.kie:kie-spring:7.30.0:Final'
  implementation 'org.drools:drools-core:7.30.0:Final'
  implementation 'org.drools:drools-compiler:7.30.0:Final'
  </code></pre>
  <p>The functionality works fine in JVM and other servers but when deployed in internal Docker container it breaks at KieRepository instance and gives null pointer exception</p>