diff --git a/openid-connect-common/pom.xml b/openid-connect-common/pom.xml
index e9754d3dc..e912d8e7a 100644
--- a/openid-connect-common/pom.xml
+++ b/openid-connect-common/pom.xml
@@ -27,6 +27,96 @@
OpenID Connect Common modules
OpenID Connect Common
+
+ org.springframework
+ spring-webmvc
+ ${org.springframework-version}
+
+
+ org.springframework.security
+ spring-security-core
+ ${spring.security.version}
+
+
+ com.google.guava
+ guava
+ 14.0.1
+
+
+ org.apache.httpcomponents
+ httpclient
+ 4.2.3
+
+
+ org.springframework.security.oauth
+ 1.1.0.M1
+ spring-security-oauth2
+
+
+ com.nimbusds
+ nimbus-jose-jwt
+ 2.17.2
+
+
+ org.eclipse.persistence
+ javax.persistence
+ 2.0.3
+
+
+ com.google.code.gson
+ gson
+ 2.0
+
+
+
+
+ javax.servlet
+ servlet-api
+ 2.5
+ provided
+
+
+ javax.servlet.jsp
+ jsp-api
+ 2.1
+ provided
+
+
+ javax.servlet
+ jstl
+ 1.2
+
+
+
+
+
+ junit
+ junit
+ 4.7
+ test
+
+
+ org.easymock
+ easymock
+ 2.0
+ test
+
+
+ org.springframework
+ spring-test
+ ${org.springframework-version}
+ test
+
+
+
+
+
+ org.slf4j
+ slf4j-api
+ ${org.slf4j-version}
+
+
+
jar
@@ -67,4 +157,19 @@
+
+
+ org.eclipse.persistence
+ EclipseLink repository
+ http://download.eclipse.org/rt/eclipselink/maven.repo
+
+ true
+
+
+
+ spring-milestone
+ Spring Maven MILESTONE Repository
+ http://maven.springframework.org/milestone
+
+
diff --git a/openid-connect-common/src/main/java/org/mitre/oauth2/service/impl/DefaultClientUserDetailsService.java b/openid-connect-common/src/main/java/org/mitre/oauth2/service/impl/DefaultClientUserDetailsService.java
index 175e7e422..7640473db 100644
--- a/openid-connect-common/src/main/java/org/mitre/oauth2/service/impl/DefaultClientUserDetailsService.java
+++ b/openid-connect-common/src/main/java/org/mitre/oauth2/service/impl/DefaultClientUserDetailsService.java
@@ -20,7 +20,6 @@ import java.util.ArrayList;
import java.util.Collection;
import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.dao.DataAccessException;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.authority.SimpleGrantedAuthority;
import org.springframework.security.core.userdetails.User;
@@ -44,7 +43,7 @@ public class DefaultClientUserDetailsService implements UserDetailsService {
private ClientDetailsService clientDetailsService;
@Override
- public UserDetails loadUserByUsername(String clientId) throws UsernameNotFoundException, DataAccessException {
+ public UserDetails loadUserByUsername(String clientId) throws UsernameNotFoundException {
ClientDetails client = clientDetailsService.loadClientByClientId(clientId);
diff --git a/openid-connect-common/src/main/java/org/mitre/util/jpa/JpaUtil.java b/openid-connect-common/src/main/java/org/mitre/util/jpa/JpaUtil.java
index e5f17098f..5e66c5406 100644
--- a/openid-connect-common/src/main/java/org/mitre/util/jpa/JpaUtil.java
+++ b/openid-connect-common/src/main/java/org/mitre/util/jpa/JpaUtil.java
@@ -20,8 +20,6 @@ import java.util.List;
import javax.persistence.EntityManager;
-import org.springframework.dao.IncorrectResultSizeDataAccessException;
-
/**
* @author mfranklin
* Date: 4/28/11
@@ -35,7 +33,7 @@ public class JpaUtil {
case 1:
return list.get(0);
default:
- throw new IncorrectResultSizeDataAccessException(1);
+ throw new IllegalStateException("Expected single result, got " + list.size());
}
}