Getting "Authentication error:" warning message by using "LATEST" in KieScanner for JBoss B*MS 6.0.x

Solution Verified - Updated -

Environment

  • Red Hat JBoss Business Process Management Suite (BPM Suite) 6.0.x
  • Red Hat JBoss Enterprise Business Rule Management System (BRMS) 6.0.x

Issue

When using the parameter LATEST instead of a specific version and a custom maven settings, the following warn message is shown on console every X seconds, where X is the polling interval:

16:10:04,042 WARN [org.apache.http.impl.client.DefaultHttpClient] (pool-26-thread-1) Authentication error: Unable to respond to any of these challenges: {}

Resolution

The issue might be fixed by commenting out the following snippet in business-central's web.xml:

   <url-pattern>/maven2/*</url-pattern>

Also the KieScanner should work properly even when the warn message is logged. You could check that by printing the version to verify if KieModule gets updated as follow:

   kScanner.start(5000L);
   for (int i = 0; i < 10; i++) {
       System.out.println("version:" + kContainer.getReleaseId().getVersion());
       try {
         Thread.sleep(6000);
       } catch (InterruptedException e) {
         e.printStackTrace();
       }
   }

So you could simply let it run for the first iteration, then re-build the project with a higher version, and observe if the version in the output correctly changed. Also, make sure that you have included kie-ci on classpath.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments