Hello,
I'm a really beginner. I try to compil CAS 3.3.5 but I have 2 failures and I
really don't understand the errors messages.
I have tried this command :
mvn compil => ok
mvn test-compil => ok
mvn test => KO
mvn package => KO....
I join the output messages in log.txt.
Best regards.
--
You are currently subscribed to [email protected] as:
[email protected]
To unsubscribe, change settings or access archives, see
http://www.ja-sig.org/wiki/display/JSG/cas-user
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO] Jasig Central Authentication Service
[INFO] JA-SIG CAS Core
[INFO] JA-SIG CAS Generic Support
[INFO] JA-SIG CAS JDBC Support
[INFO] JA-SIG CAS LDAP Support
[INFO] JA-SIG CAS Legacy Support
[INFO] JA-SIG CAS OpenId Support
[INFO] JA-SIG CAS RADIUS Support
[INFO] JA-SIG CAS SPNEGO/NTLM Support
[INFO] JA-SIG CAS Trusted User Support
[INFO] JA-SIG CAS X.509 Client Certificate Support
[INFO] JA-SIG CAS JBoss Cache Integration
[INFO] JA-SIG CAS BerkeleyDB Integration
[INFO] JA-SIG CAS Memcached Integration
[INFO] JA-SIG CAS Restlet Integration
[INFO] JA-SIG CAS Web Application
[INFO] ------------------------------------------------------------------------
[INFO] Building Jasig Central Authentication Service
[INFO] task-segment: [test]
[INFO] ------------------------------------------------------------------------
[INFO] [enforcer:enforce {execution: enforce-versions}]
[INFO] ------------------------------------------------------------------------
[INFO] Building JA-SIG CAS Core
[INFO] task-segment: [test]
[INFO] ------------------------------------------------------------------------
Downloading:
http://developer.ja-sig.org/maven2/org/opensaml/opensaml/1.1b/opensaml-1.1b.pom
[INFO] Unable to find resource 'org.opensaml:opensaml:pom:1.1b' in repository
jasig-repository (http://developer.ja-sig.org/maven2)
Downloading:
http://repo1.maven.org/maven2/org/opensaml/opensaml/1.1b/opensaml-1.1b.pom
[INFO] Unable to find resource 'org.opensaml:opensaml:pom:1.1b' in repository
central (http://repo1.maven.org/maven2)
[INFO] [enforcer:enforce {execution: enforce-versions}]
[INFO] [resources:resources {execution: default-resources}]
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources,
i.e. build is platform dependent!
[INFO] Copying 1 resource
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources {execution: default-testResources}]
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources,
i.e. build is platform dependent!
[INFO] Copying 4 resources
[INFO] [compiler:testCompile {execution: default-testCompile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [surefire:test {execution: default-test}]
[INFO] Surefire report directory:
/root/cas/cas-server-core/target/surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running org.jasig.cas.web.ProxyControllerTests
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.378 sec
Running org.jasig.cas.ticket.TicketGrantingTicketImplTests
Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.007 sec
Running
org.jasig.cas.authentication.principal.RememberMeUsernamePasswordCredentialsTests
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.004 sec
Running org.jasig.cas.authentication.SamlAuthenticationMetaDataPopulatorTests
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.01 sec
Running org.jasig.cas.web.init.SafeDispatcherServletTests
SafeDispatcherServlet:
The Spring DispatcherServlet we wrap threw on init.
But for our having caught this error, the servlet would not have initialized.
org.springframework.beans.factory.BeanDefinitionStoreException: IOException
parsing XML document from ServletContext resource [/WEB-INF/-servlet.xml];
nested exception is java.io.FileNotFoundException: Could not open
ServletContext resource [/WEB-INF/-servlet.xml]
at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:349)
at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310)
at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)
at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)
at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)
at
org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:124)
at
org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:92)
at
org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:123)
at
org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:422)
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
at
org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:402)
at
org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:316)
at
org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:282)
at
org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:126)
at javax.servlet.GenericServlet.init(GenericServlet.java:211)
at
org.jasig.cas.web.init.SafeDispatcherServlet.init(SafeDispatcherServlet.java:64)
at
org.jasig.cas.web.init.SafeDispatcherServletTests.testInitServletConfig(SafeDispatcherServletTests.java:65)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
Caused by: java.io.FileNotFoundException: Could not open ServletContext
resource [/WEB-INF/-servlet.xml]
at
org.springframework.web.context.support.ServletContextResource.getInputStream(ServletContextResource.java:117)
at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:336)
... 42 more
SafeDispatcherServlet:
The Spring DispatcherServlet we wrap threw on init.
But for our having caught this error, the servlet would not have initialized.
org.springframework.beans.factory.BeanDefinitionStoreException: IOException
parsing XML document from ServletContext resource [/WEB-INF/-servlet.xml];
nested exception is java.io.FileNotFoundException: Could not open
ServletContext resource [/WEB-INF/-servlet.xml]
at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:349)
at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310)
at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)
at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)
at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)
at
org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:124)
at
org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:92)
at
org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:123)
at
org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:422)
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
at
org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:402)
at
org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:316)
at
org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:282)
at
org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:126)
at javax.servlet.GenericServlet.init(GenericServlet.java:211)
at
org.jasig.cas.web.init.SafeDispatcherServlet.init(SafeDispatcherServlet.java:64)
at
org.jasig.cas.web.init.SafeDispatcherServletTests.testService(SafeDispatcherServletTests.java:85)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
Caused by: java.io.FileNotFoundException: Could not open ServletContext
resource [/WEB-INF/-servlet.xml]
at
org.springframework.web.context.support.ServletContextResource.getInputStream(ServletContextResource.java:117)
at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:336)
... 42 more
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.076 sec
Running org.jasig.cas.validation.AssertionImplTests
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec
Running
org.jasig.cas.authentication.handler.BlockedCredentialsAuthenticationExceptionTests
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec
Running org.jasig.cas.authentication.handler.PlainTextPasswordEncoderTests
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec
Running org.jasig.cas.authentication.MutableAuthenticationTests
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec
Running org.jasig.cas.ticket.registry.DefaultTicketRegistryTests
Tests run: 14, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.007 sec
Running org.jasig.cas.web.view.Saml10FailureResponseViewTests
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.188 sec
Running org.jasig.cas.services.RegisteredServiceImplTests
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.006 sec
Running org.jasig.cas.web.support.CookieRetrievingCookieGeneratorTests
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.005 sec
Running org.jasig.cas.ticket.support.TimeoutExpirationPolicyTests
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 5.429 sec
Running org.jasig.cas.web.flow.DynamicRedirectViewSelectorTests
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.044 sec
Running org.jasig.cas.web.flow.AuthenticationViaFormActionTests
Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.057 sec
Running org.jasig.cas.services.web.ServiceThemeResolverTests
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec
Running org.jasig.cas.web.flow.InitialFlowSetupActionTests
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec
Running org.jasig.cas.services.web.RegisteredServiceSimpleFormControllerTests
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.02 sec
Running org.jasig.cas.authentication.principal.GoogleAccountsServiceTests
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.006 sec <<<
FAILURE!
Running org.jasig.cas.web.NoSuchFlowExecutionExceptionResolverTests
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.006 sec
Running org.jasig.cas.ticket.support.MultiTimeUseOrTimeoutExpirationPolicyTests
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 5.484 sec
Running org.jasig.cas.authentication.handler.DefaultPasswordEncoderTests
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.036 sec
Running org.jasig.cas.authentication.AuthenticationManagerImplTests
Tests run: 5, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.714 sec <<<
FAILURE!
Running org.jasig.cas.web.view.Saml10SuccessResponseViewTests
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.019 sec
Running
org.jasig.cas.authentication.handler.UnknownUsernameAuthenticationExceptionTests
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec
Running
org.jasig.cas.authentication.handler.BadCredentialsAuthenticationExceptionTests
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec
Running org.jasig.cas.ticket.TicketValidationExceptionTests
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec
Running org.jasig.cas.validation.UsernamePasswordCredentialsValidatorTests
Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec
Running org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleanerTests
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.008 sec
Running
org.jasig.cas.authentication.handler.support.HttpBasedServiceCredentialsAuthenticationHandlerTests
Tests run: 8, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.473 sec <<<
FAILURE!
Running org.jasig.cas.validation.Cas20ProtocolValidationSpecificationTests
Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec
Running org.jasig.cas.services.UnauthorizedServiceExceptionTests
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec
Running
org.jasig.cas.authentication.principal.SimpleWebApplicationServiceImplTests
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec
Running org.jasig.cas.ticket.proxy.support.Cas10ProxyHandlerTests
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec
Running org.jasig.cas.ticket.support.RememberMeDelegatingExpirationPolicyTests
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec
Running org.jasig.cas.services.UnauthorizedProxyingExceptionTests
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec
Running org.jasig.cas.web.flow.SendTicketGrantingTicketActionTests
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.008 sec
Running
org.jasig.cas.authentication.handler.support.SimpleTestUsernamePasswordHandlerTests
Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.006 sec
Running org.jasig.cas.util.DefaultUniqueTicketIdGeneratorTests
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec
Running org.jasig.cas.services.DefaultServicesManagerImplTests
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec
Running org.jasig.cas.authentication.SimpleServiceTests
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec
Running org.jasig.cas.util.DefaultLongNumericGeneratorTests
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec
Running
org.jasig.cas.authentication.principal.UsernamePasswordCredentialsToPrincipalResolverTests
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.004 sec
Running org.jasig.cas.ticket.InvalidTicketExceptionTests
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec
Running
org.jasig.cas.authentication.handler.support.JaasAuthenticationHandlerTests
Tests run: 4, Failures: 0, Errors: 4, Skipped: 0, Time elapsed: 0.008 sec <<<
FAILURE!
Running
org.jasig.cas.authentication.principal.RememberMeAuthenticationMetaDataPopulatorTests
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec
Running org.jasig.cas.validation.Cas10ProtocolValidationSpecificationTests
Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec
Running org.jasig.cas.authentication.ImmutableAuthenticationTests
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec
Running org.jasig.cas.ticket.TicketCreationExceptionTests
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec
Running org.jasig.cas.authentication.principal.SimplePrincipalTests
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec
Running
org.jasig.cas.authentication.handler.BadPasswordAuthenticationExceptionTests
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec
Running org.jasig.cas.util.DefaultRandomStringGeneratorTests
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.009 sec
Running org.jasig.cas.services.UnauthorizedSsoServiceExceptionTests
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec
Running org.jasig.cas.CentralAuthenticationServiceImplTests
Tests run: 19, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.476 sec <<<
FAILURE!
Running
org.jasig.cas.services.web.ManageRegisteredServicesMultiActionControllerTests
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.01 sec
Running org.jasig.cas.web.support.GoogleAccountsArgumentExtractorTests
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.002 sec <<<
FAILURE!
Running org.jasig.cas.ticket.ServiceTicketImplTests
Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.007 sec
Running
org.jasig.cas.authentication.handler.UnsupportedCredentialsExceptionTests
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec
Running org.jasig.cas.web.flow.GenerateServiceTicketActionTests
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.013 sec
Running org.jasig.cas.authentication.principal.UsernamePasswordCredentialsTests
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec
Running org.jasig.cas.services.JpaServiceRegistryDaoImplTests
Hibernate: insert into RegisteredServiceImpl (id, allowedToProxy,
anonymousAccess, description, enabled, evaluation_order, ignoreAttributes,
name, serviceId, ssoEnabled, theme) values (null, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Hibernate: call identity()
Hibernate: insert into RegisteredServiceImpl (id, allowedToProxy,
anonymousAccess, description, enabled, evaluation_order, ignoreAttributes,
name, serviceId, ssoEnabled, theme) values (null, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Hibernate: call identity()
Hibernate: insert into RegisteredServiceImpl (id, allowedToProxy,
anonymousAccess, description, enabled, evaluation_order, ignoreAttributes,
name, serviceId, ssoEnabled, theme) values (null, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Hibernate: call identity()
Hibernate: select registered0_.id as id0_, registered0_.allowedToProxy as
allowedT2_0_, registered0_.anonymousAccess as anonymou3_0_,
registered0_.description as descript4_0_, registered0_.enabled as enabled0_,
registered0_.evaluation_order as evaluation6_0_, registered0_.ignoreAttributes
as ignoreAt7_0_, registered0_.name as name0_, registered0_.serviceId as
serviceId0_, registered0_.ssoEnabled as ssoEnabled0_, registered0_.theme as
theme0_ from RegisteredServiceImpl registered0_
Hibernate: insert into RegisteredServiceImpl (id, allowedToProxy,
anonymousAccess, description, enabled, evaluation_order, ignoreAttributes,
name, serviceId, ssoEnabled, theme) values (null, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Hibernate: call identity()
Hibernate: select registered0_.id as id0_, registered0_.allowedToProxy as
allowedT2_0_, registered0_.anonymousAccess as anonymou3_0_,
registered0_.description as descript4_0_, registered0_.enabled as enabled0_,
registered0_.evaluation_order as evaluation6_0_, registered0_.ignoreAttributes
as ignoreAt7_0_, registered0_.name as name0_, registered0_.serviceId as
serviceId0_, registered0_.ssoEnabled as ssoEnabled0_, registered0_.theme as
theme0_ from RegisteredServiceImpl registered0_
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.345 sec
Running org.jasig.cas.authentication.principal.HttpBasedServiceCredentialsTests
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec
Running org.jasig.cas.authentication.DirectMappingAuthenticationManagerImplTests
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec
Running org.jasig.cas.util.HttpClientTests
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.043 sec
Running
org.jasig.cas.validation.Cas20WithoutProxyingValidationSpecificationTests
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec
Running
org.jasig.cas.web.support.ThrottledSubmissionByIpAddressHandlerInterceptorAdapterTests
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.004 sec
Running
org.jasig.cas.authentication.principal.ShibbolethCompatiblePersistentIdGeneratorTests
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.005 sec
Running
org.jasig.cas.authentication.principal.HttpBasedServiceCredentialsToPrincipalResolverTests
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec
Running org.jasig.cas.services.web.support.RegisteredServiceValidatorTests
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec
Running org.jasig.cas.web.support.SamlArgumentExtractorTests
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec
Running org.jasig.cas.ticket.support.ThrottledUseAndTimeoutExpirationPolicyTests
Tests run: 4, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 10.588 sec <<<
FAILURE!
Running org.jasig.cas.web.ServiceValidateControllerTests
Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.062 sec
Running org.jasig.cas.remoting.server.RemoteCentralAuthenticationServiceTests
Tests run: 11, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.245 sec <<<
FAILURE!
Running org.jasig.cas.ticket.proxy.support.Cas20ProxyHandlerTests
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 5.99 sec
Running org.jasig.cas.web.support.WebUtilTests
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec
Running org.jasig.cas.web.view.Cas10ResponseViewTests
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec
Running
org.jasig.cas.authentication.handler.BadUsernameOrPasswordAuthenticationExceptionTests
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec
Running org.jasig.cas.web.init.SafeContextLoaderListenerTests
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.005 sec
Running org.jasig.cas.ticket.registry.DistributedTicketRegistryTests
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.006 sec
Running org.jasig.cas.authentication.principal.SamlServiceTests
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec
Running org.jasig.cas.web.LogoutControllerTests
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.009 sec
Results :
Failed tests:
testAcceptsProperCertificateCredentials(org.jasig.cas.authentication.handler.support.HttpBasedServiceCredentialsAuthenticationHandlerTests)
testTicketUsedButWithTimeout(org.jasig.cas.ticket.support.ThrottledUseAndTimeoutExpirationPolicyTests)
Tests in error:
testResponse(org.jasig.cas.authentication.principal.GoogleAccountsServiceTests)
testNoResolverFound(org.jasig.cas.authentication.AuthenticationManagerImplTests)
testWithAlternativeRealm(org.jasig.cas.authentication.handler.support.JaasAuthenticationHandlerTests)
testWithAlternativeRealmAndValidCredentials(org.jasig.cas.authentication.handler.support.JaasAuthenticationHandlerTests)
testWithValidCredenials(org.jasig.cas.authentication.handler.support.JaasAuthenticationHandlerTests)
testWithInvalidCredentials(org.jasig.cas.authentication.handler.support.JaasAuthenticationHandlerTests)
testDelegateTicketGrantingTicketWithProperParams(org.jasig.cas.CentralAuthenticationServiceImplTests)
testNoService(org.jasig.cas.web.support.GoogleAccountsArgumentExtractorTests)
testDelegateTicketGrantingTicketWithValidCredentials(org.jasig.cas.remoting.server.RemoteCentralAuthenticationServiceTests)
Tests run: 355, Failures: 2, Errors: 9, Skipped: 0
SafeContextLoaderListener:
The Spring ContextLoaderListener we wrap threw on contextInitialized.
But for our having caught this error, the web application context would not
have initialized.
org.springframework.beans.factory.BeanDefinitionStoreException: IOException
parsing XML document from ServletContext resource
[/WEB-INF/applicationContext.xml]; nested exception is
java.io.FileNotFoundException: Could not open ServletContext resource
[/WEB-INF/applicationContext.xml]
at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:349)
at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310)
at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)
at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)
at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)
at
org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:124)
at
org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:92)
at
org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:123)
at
org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:422)
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
at
org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
at
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
at
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
at
org.jasig.cas.web.init.SafeContextLoaderListener.contextInitialized(SafeContextLoaderListener.java:62)
at
org.jasig.cas.web.init.SafeContextLoaderListenerTests.testContextInitialized(SafeContextLoaderListenerTests.java:49)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
Caused by: java.io.FileNotFoundException: Could not open ServletContext
resource [/WEB-INF/applicationContext.xml]
at
org.springframework.web.context.support.ServletContextResource.getInputStream(ServletContextResource.java:117)
at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:336)
... 39 more
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] There are test failures.
Please refer to /root/cas/cas-server-core/target/surefire-reports for the
individual test results.
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 38 seconds
[INFO] Finished at: Wed Mar 24 17:01:32 CET 2010
[INFO] Final Memory: 18M/43M
[INFO] ------------------------------------------------------------------------