Hi ,
I am getting the following errors while starting up uaa :
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /home/kumara/cloudfoundry/vcap/uaa/common/src/main/java/org/
cloudfoundry/identity/uaa/oauth/JwtTokenServices.java:[24,57] cannot
find symbol
symbol : class RandomValueTokenServices
location: package org.springframework.security.oauth2.provider.token
[ERROR] /home/kumara/cloudfoundry/vcap/uaa/common/src/main/java/org/
cloudfoundry/identity/uaa/oauth/JwtTokenServices.java:[35,38] cannot
find symbol
symbol: class RandomValueTokenServices
public class JwtTokenServices extends RandomValueTokenServices {
[ERROR] /home/kumara/cloudfoundry/vcap/uaa/common/src/main/java/org/
cloudfoundry/identity/uaa/oauth/JwtTokenServices.java:[63,2] cannot
find symbol
symbol : variable super
location: class org.cloudfoundry.identity.uaa.oauth.JwtTokenServices
[ERROR] /home/kumara/cloudfoundry/vcap/uaa/common/src/main/java/org/
cloudfoundry/identity/uaa/oauth/JwtTokenServices.java:[61,1] method
does not override or implement a method from a supertype
[ERROR] /home/kumara/cloudfoundry/vcap/uaa/common/src/main/java/org/
cloudfoundry/identity/uaa/oauth/JwtTokenServices.java:[69,34] cannot
find symbol
symbol : variable super
location: class org.cloudfoundry.identity.uaa.oauth.JwtTokenServices
[ERROR] /home/kumara/cloudfoundry/vcap/uaa/common/src/main/java/org/
cloudfoundry/identity/uaa/oauth/JwtTokenServices.java:[71,13] cannot
find symbol
symbol : method
setAdditionalInformation(java.util.Map<java.lang.String,java.lang.Object>)
location: interface
org.springframework.security.oauth2.common.OAuth2AccessToken
[ERROR] /home/kumara/cloudfoundry/vcap/uaa/common/src/main/java/org/
cloudfoundry/identity/uaa/oauth/JwtTokenServices.java:[81,29]
org.springframework.security.oauth2.common.OAuth2AccessToken is
abstract; cannot be instantiated
[ERROR] /home/kumara/cloudfoundry/vcap/uaa/common/src/main/java/org/
cloudfoundry/identity/uaa/oauth/JwtTokenServices.java:[82,8] cannot
find symbol
symbol : method setScope(java.util.Set<java.lang.String>)
location: interface
org.springframework.security.oauth2.common.OAuth2AccessToken
[ERROR] /home/kumara/cloudfoundry/vcap/uaa/common/src/main/java/org/
cloudfoundry/identity/uaa/oauth/JwtTokenServices.java:[83,8] cannot
find symbol
symbol : method setExpiration(java.util.Date)
location: interface
org.springframework.security.oauth2.common.OAuth2AccessToken
[ERROR] /home/kumara/cloudfoundry/vcap/uaa/common/src/main/java/org/
cloudfoundry/identity/uaa/oauth/JwtTokenServices.java:[84,8] cannot
find symbol
symbol : method
setRefreshToken(org.springframework.security.oauth2.common.OAuth2RefreshToken)
location: interface
org.springframework.security.oauth2.common.OAuth2AccessToken
[ERROR] /home/kumara/cloudfoundry/vcap/uaa/common/src/main/java/org/
cloudfoundry/identity/uaa/oauth/JwtTokenServices.java:[66,1] method
does not override or implement a method from a supertype
[ERROR] /home/kumara/cloudfoundry/vcap/uaa/common/src/main/java/org/
cloudfoundry/identity/uaa/oauth/TokenAdminEndpoints.java:[117,8]
cannot find symbol
symbol : method
setAdditionalInformation(java.util.Map<java.lang.String,java.lang.Object>)
location: interface
org.springframework.security.oauth2.common.OAuth2AccessToken
[INFO] 12 errors
[INFO] -------------------------------------------------------------
[INFO]
------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] CloudFoundry Identity - Parent .................... SUCCESS
[1.807s]
[INFO] CloudFoundry Identity Common Jar .................. FAILURE
[12.132s]
[INFO] User Account and Authentication Service ........... SKIPPED
[INFO] CloudFoundry Identity - Samples ................... SKIPPED
[INFO] Sample resource server for Cloudfoundry Identity Services
SKIPPED
[INFO] Sample user webapp for Cloudfoundry Identity Services SKIPPED
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 18.334s
[INFO] Finished at: Tue Apr 24 13:57:04 CEST 2012
[INFO] Final Memory: 18M/121M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-
plugin:2.3.2:compile (default-compile) on project cloudfoundry-
identity-common: Compilation failure: Compilation failure:
[ERROR] /home/kumara/cloudfoundry/vcap/uaa/common/src/main/java/org/
cloudfoundry/identity/uaa/oauth/JwtTokenServices.java:[24,57] cannot
find symbol
[ERROR] symbol : class RandomValueTokenServices
[ERROR] location: package
org.springframework.security.oauth2.provider.token
[ERROR] /home/kumara/cloudfoundry/vcap/uaa/common/src/main/java/org/
cloudfoundry/identity/uaa/oauth/JwtTokenServices.java:[35,38] cannot
find symbol
[ERROR] symbol: class RandomValueTokenServices
[ERROR] public class JwtTokenServices extends RandomValueTokenServices
{
[ERROR] /home/kumara/cloudfoundry/vcap/uaa/common/src/main/java/org/
cloudfoundry/identity/uaa/oauth/JwtTokenServices.java:[63,2] cannot
find symbol
[ERROR] symbol : variable super
[ERROR] location: class
org.cloudfoundry.identity.uaa.oauth.JwtTokenServices
[ERROR] /home/kumara/cloudfoundry/vcap/uaa/common/src/main/java/org/
cloudfoundry/identity/uaa/oauth/JwtTokenServices.java:[61,1] method
does not override or implement a method from a supertype
[ERROR] /home/kumara/cloudfoundry/vcap/uaa/common/src/main/java/org/
cloudfoundry/identity/uaa/oauth/JwtTokenServices.java:[69,34] cannot
find symbol
[ERROR] symbol : variable super
[ERROR] location: class
org.cloudfoundry.identity.uaa.oauth.JwtTokenServices
[ERROR] /home/kumara/cloudfoundry/vcap/uaa/common/src/main/java/org/
cloudfoundry/identity/uaa/oauth/JwtTokenServices.java:[71,13] cannot
find symbol
[ERROR] symbol : method
setAdditionalInformation(java.util.Map<java.lang.String,java.lang.Object>)
[ERROR] location: interface
org.springframework.security.oauth2.common.OAuth2AccessToken
[ERROR] /home/kumara/cloudfoundry/vcap/uaa/common/src/main/java/org/
cloudfoundry/identity/uaa/oauth/JwtTokenServices.java:[81,29]
org.springframework.security.oauth2.common.OAuth2AccessToken is
abstract; cannot be instantiated
[ERROR] /home/kumara/cloudfoundry/vcap/uaa/common/src/main/java/org/
cloudfoundry/identity/uaa/oauth/JwtTokenServices.java:[82,8] cannot
find symbol
[ERROR] symbol : method setScope(java.util.Set<java.lang.String>)
[ERROR] location: interface
org.springframework.security.oauth2.common.OAuth2AccessToken
[ERROR] /home/kumara/cloudfoundry/vcap/uaa/common/src/main/java/org/
cloudfoundry/identity/uaa/oauth/JwtTokenServices.java:[83,8] cannot
find symbol
[ERROR] symbol : method setExpiration(java.util.Date)
[ERROR] location: interface
org.springframework.security.oauth2.common.OAuth2AccessToken
[ERROR] /home/kumara/cloudfoundry/vcap/uaa/common/src/main/java/org/
cloudfoundry/identity/uaa/oauth/JwtTokenServices.java:[84,8] cannot
find symbol
[ERROR] symbol : method
setRefreshToken(org.springframework.security.oauth2.common.OAuth2RefreshToken)
[ERROR] location: interface
org.springframework.security.oauth2.common.OAuth2AccessToken
[ERROR] /home/kumara/cloudfoundry/vcap/uaa/common/src/main/java/org/
cloudfoundry/identity/uaa/oauth/JwtTokenServices.java:[66,1] method
does not override or implement a method from a supertype
[ERROR] /home/kumara/cloudfoundry/vcap/uaa/common/src/main/java/org/
cloudfoundry/identity/uaa/oauth/TokenAdminEndpoints.java:[117,8]
cannot find symbol
[ERROR] symbol : method
setAdditionalInformation(java.util.Map<java.lang.String,java.lang.Object>)
[ERROR] location: interface
org.springframework.security.oauth2.common.OAuth2AccessToken
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with
the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with
the command
[ERROR] mvn <goals> -rf :cloudfoundry-identity-common
By looking at the error it seems that the oauth jar is not the correct
one. I saw in the .m2 repository and the version is 1.0.0.BUILD-
SNAPSHOT.
Does anyone know how i can get rid of this error?
Anuj