BuildOn UI Authentication Failure
Problem
Unable to login to BuildOn UI due to DB connection issue
Cause
08-May-2018 11:48:45.572 SEVERE [http-nio-8080-exec-3] org.apache.catalina.core.StandardWrapperValve.invoke Servlet.service() for servlet [com.cognizant.buildon.controller.AuthenticationWebController] in context with path [/buildon] threw exception [Servlet execution threw an exception] with root cause
 java.lang.NoSuchMethodError: com.mchange.v2.cfg.BasicMultiPropertiesConfig.<init>([Ljava/lang/String;Ljava/util/List;)V
There may be an authentication failure due to invalid postgres DB credentials configured in buildon.properties. Update correct values for DB properties in buildon.properties and persistence.xml
Fix
hibernate-c3p0 jar conflicts with com.mchange c3p0 jar. Excluded com.mchange.c3p0 jar in pom.xml as shown below.Â
<dependency>
     <groupId>org.hibernate</groupId>
     <artifactId>hibernate-c3p0</artifactId>
     <version>5.2.10.Final</version>
         <exclusions>
            <exclusion>
             <groupId>com.mchange</groupId>
             <artifactId>c3p0</artifactId>
           </exclusion>
        </exclusions>
</dependency>