org.jasig.cas.validation.AssertionImplTests

Apereo Issues | Charles Munat | 7 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Hope I'm posting this in the right place... ------------------------------------------------------- T E S T S ------------------------------------------------------- Running org.jasig.cas.web.ProxyControllerTests Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.412 sec Running org.jasig.cas.ticket.TicketGrantingTicketImplTests Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.009 sec Running org.jasig.cas.authentication.principal.RememberMeUsernamePasswordCredentialsTests Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.006 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.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) Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.14 sec Running org.jasig.cas.validation.AssertionImplTests 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:338) at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:997) 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.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:338) at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:997) 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: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.021 sec Running org.jasig.cas.authentication.handler.BlockedCredentialsAuthenticationExceptionTests Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.004 sec Running org.jasig.cas.authentication.handler.PlainTextPasswordEncoderTests Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.004 sec Running org.jasig.cas.web.view.Saml10FailureResponseViewTests Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.212 sec Running org.jasig.cas.authentication.MutableAuthenticationTests Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec Running org.jasig.cas.ticket.registry.DefaultTicketRegistryTests Tests run: 14, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.009 sec Running org.jasig.cas.web.support.CookieRetrievingCookieGeneratorTests Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.012 sec Running org.jasig.cas.ticket.support.TimeoutExpirationPolicyTests Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 5.014 sec Running org.jasig.cas.services.RegisteredServiceImplTests Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.004 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.086 sec Running org.jasig.cas.web.flow.InitialFlowSetupActionTests Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.005 sec Running org.jasig.cas.services.web.ServiceThemeResolverTests Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.004 sec Running org.jasig.cas.web.NoSuchFlowExecutionExceptionResolverTests Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.006 sec Running org.jasig.cas.authentication.principal.GoogleAccountsServiceTests Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.008 sec <<< FAILURE! Running org.jasig.cas.services.web.RegisteredServiceSimpleFormControllerTests Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.022 sec Running org.jasig.cas.authentication.handler.DefaultPasswordEncoderTests Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.039 sec Running org.jasig.cas.ticket.support.MultiTimeUseOrTimeoutExpirationPolicyTests Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 5.104 sec Running org.jasig.cas.authentication.AuthenticationManagerImplTests Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.391 sec 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.003 sec Running org.jasig.cas.authentication.handler.BadCredentialsAuthenticationExceptionTests Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec Running org.jasig.cas.ticket.TicketValidationExceptionTests Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.006 sec Running org.jasig.cas.validation.UsernamePasswordCredentialsValidatorTests Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.004 sec Running org.jasig.cas.authentication.handler.support.HttpBasedServiceCredentialsAuthenticationHandlerTests Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.325 sec Running org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleanerTests Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.005 sec Running org.jasig.cas.validation.Cas20ProtocolValidationSpecificationTests Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.004 sec Running org.jasig.cas.services.UnauthorizedServiceExceptionTests Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec Running org.jasig.cas.authentication.principal.SimpleWebApplicationServiceImplTests Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec Running org.jasig.cas.ticket.proxy.support.Cas10ProxyHandlerTests Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.007 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.web.flow.SendTicketGrantingTicketActionTests Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.011 sec Running org.jasig.cas.authentication.handler.support.SimpleTestUsernamePasswordHandlerTests Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.005 sec Running org.jasig.cas.services.UnauthorizedProxyingExceptionTests Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec Running org.jasig.cas.util.DefaultUniqueTicketIdGeneratorTests Tests run: 2, 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.01 sec Running org.jasig.cas.services.DefaultServicesManagerImplTests Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.006 sec Running org.jasig.cas.util.DefaultLongNumericGeneratorTests Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec Running org.jasig.cas.authentication.principal.UsernamePasswordCredentialsToPrincipalResolverTests Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.006 sec Running org.jasig.cas.ticket.InvalidTicketExceptionTests Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec Running org.jasig.cas.authentication.handler.support.JaasAuthenticationHandlerTests Tests run: 4, Failures: 0, Errors: 4, Skipped: 0, Time elapsed: 0.01 sec <<< FAILURE! Running org.jasig.cas.authentication.principal.RememberMeAuthenticationMetaDataPopulatorTests Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec Running org.jasig.cas.validation.Cas10ProtocolValidationSpecificationTests Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.008 sec Running org.jasig.cas.authentication.ImmutableAuthenticationTests Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec Running org.jasig.cas.ticket.TicketCreationExceptionTests Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec Running org.jasig.cas.authentication.principal.SimplePrincipalTests Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 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.003 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: 0, Skipped: 0, Time elapsed: 0.296 sec Running org.jasig.cas.web.support.GoogleAccountsArgumentExtractorTests Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.004 sec <<< FAILURE! Running org.jasig.cas.services.web.ManageRegisteredServicesMultiActionControllerTests Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.041 sec Running org.jasig.cas.authentication.handler.UnsupportedCredentialsExceptionTests Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.007 sec Running org.jasig.cas.ticket.ServiceTicketImplTests Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.006 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.002 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.266 sec Running org.jasig.cas.authentication.principal.HttpBasedServiceCredentialsTests Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 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: 0.89 sec Running org.jasig.cas.validation.Cas20WithoutProxyingValidationSpecificationTests Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.004 sec Running org.jasig.cas.web.support.ThrottledSubmissionByIpAddressHandlerInterceptorAdapterTests Tests run: 4, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 4.009 sec <<< FAILURE! Running org.jasig.cas.authentication.principal.ShibbolethCompatiblePersistentIdGeneratorTests Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec Running org.jasig.cas.authentication.principal.HttpBasedServiceCredentialsToPrincipalResolverTests Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec Running org.jasig.cas.services.web.support.RegisteredServiceValidatorTests Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.004 sec Running org.jasig.cas.web.support.SamlArgumentExtractorTests Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec Running org.jasig.cas.ticket.support.ThrottledUseAndTimeoutExpirationPolicyTests Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 10.016 sec Running org.jasig.cas.web.ServiceValidateControllerTests Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.663 sec Running org.jasig.cas.remoting.server.RemoteCentralAuthenticationServiceTests Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.418 sec Running org.jasig.cas.ticket.proxy.support.Cas20ProxyHandlerTests Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.128 sec Running org.jasig.cas.web.support.WebUtilTests Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec Running org.jasig.cas.web.view.Cas10ResponseViewTests Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec Running org.jasig.cas.authentication.handler.BadUsernameOrPasswordAuthenticationExceptionTests Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec Running org.jasig.cas.web.init.SafeContextLoaderListenerTests Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.008 sec 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:338) at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:997) 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 Running org.jasig.cas.ticket.registry.DistributedTicketRegistryTests Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.01 sec Running org.jasig.cas.web.LogoutControllerTests Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.011 sec Running org.jasig.cas.authentication.principal.SamlServiceTests Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec Results : Failed tests: testFailuresThenSuccess(org.jasig.cas.web.support.ThrottledSubmissionByIpAddressHandlerInterceptorAdapterTests) Tests in error: testResponse(org.jasig.cas.authentication.principal.GoogleAccountsServiceTests) 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) testNoService(org.jasig.cas.web.support.GoogleAccountsArgumentExtractorTests) Tests run: 355, Failures: 1, Errors: 6, Skipped: 0 [INFO] ------------------------------------------------------------------------ [ERROR] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] There are test failures. Please refer to /private/var/www/cas/cas-server-3.3.3/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: 4 minutes 8 seconds [INFO] Finished at: Sat Sep 05 15:15:19 PDT 2009 [INFO] Final Memory: 40M/81M [INFO] ------------------------------------------------------------------------

    Apereo Issues | 7 years ago | Charles Munat
    org.jasig.cas.validation.AssertionImplTests
  2. 0

    Hope I'm posting this in the right place... ------------------------------------------------------- T E S T S ------------------------------------------------------- Running org.jasig.cas.web.ProxyControllerTests Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.412 sec Running org.jasig.cas.ticket.TicketGrantingTicketImplTests Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.009 sec Running org.jasig.cas.authentication.principal.RememberMeUsernamePasswordCredentialsTests Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.006 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.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) Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.14 sec Running org.jasig.cas.validation.AssertionImplTests 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:338) at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:997) 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.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:338) at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:997) 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: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.021 sec Running org.jasig.cas.authentication.handler.BlockedCredentialsAuthenticationExceptionTests Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.004 sec Running org.jasig.cas.authentication.handler.PlainTextPasswordEncoderTests Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.004 sec Running org.jasig.cas.web.view.Saml10FailureResponseViewTests Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.212 sec Running org.jasig.cas.authentication.MutableAuthenticationTests Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec Running org.jasig.cas.ticket.registry.DefaultTicketRegistryTests Tests run: 14, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.009 sec Running org.jasig.cas.web.support.CookieRetrievingCookieGeneratorTests Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.012 sec Running org.jasig.cas.ticket.support.TimeoutExpirationPolicyTests Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 5.014 sec Running org.jasig.cas.services.RegisteredServiceImplTests Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.004 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.086 sec Running org.jasig.cas.web.flow.InitialFlowSetupActionTests Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.005 sec Running org.jasig.cas.services.web.ServiceThemeResolverTests Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.004 sec Running org.jasig.cas.web.NoSuchFlowExecutionExceptionResolverTests Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.006 sec Running org.jasig.cas.authentication.principal.GoogleAccountsServiceTests Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.008 sec <<< FAILURE! Running org.jasig.cas.services.web.RegisteredServiceSimpleFormControllerTests Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.022 sec Running org.jasig.cas.authentication.handler.DefaultPasswordEncoderTests Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.039 sec Running org.jasig.cas.ticket.support.MultiTimeUseOrTimeoutExpirationPolicyTests Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 5.104 sec Running org.jasig.cas.authentication.AuthenticationManagerImplTests Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.391 sec 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.003 sec Running org.jasig.cas.authentication.handler.BadCredentialsAuthenticationExceptionTests Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec Running org.jasig.cas.ticket.TicketValidationExceptionTests Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.006 sec Running org.jasig.cas.validation.UsernamePasswordCredentialsValidatorTests Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.004 sec Running org.jasig.cas.authentication.handler.support.HttpBasedServiceCredentialsAuthenticationHandlerTests Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.325 sec Running org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleanerTests Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.005 sec Running org.jasig.cas.validation.Cas20ProtocolValidationSpecificationTests Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.004 sec Running org.jasig.cas.services.UnauthorizedServiceExceptionTests Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec Running org.jasig.cas.authentication.principal.SimpleWebApplicationServiceImplTests Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec Running org.jasig.cas.ticket.proxy.support.Cas10ProxyHandlerTests Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.007 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.web.flow.SendTicketGrantingTicketActionTests Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.011 sec Running org.jasig.cas.authentication.handler.support.SimpleTestUsernamePasswordHandlerTests Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.005 sec Running org.jasig.cas.services.UnauthorizedProxyingExceptionTests Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec Running org.jasig.cas.util.DefaultUniqueTicketIdGeneratorTests Tests run: 2, 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.01 sec Running org.jasig.cas.services.DefaultServicesManagerImplTests Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.006 sec Running org.jasig.cas.util.DefaultLongNumericGeneratorTests Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec Running org.jasig.cas.authentication.principal.UsernamePasswordCredentialsToPrincipalResolverTests Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.006 sec Running org.jasig.cas.ticket.InvalidTicketExceptionTests Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec Running org.jasig.cas.authentication.handler.support.JaasAuthenticationHandlerTests Tests run: 4, Failures: 0, Errors: 4, Skipped: 0, Time elapsed: 0.01 sec <<< FAILURE! Running org.jasig.cas.authentication.principal.RememberMeAuthenticationMetaDataPopulatorTests Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec Running org.jasig.cas.validation.Cas10ProtocolValidationSpecificationTests Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.008 sec Running org.jasig.cas.authentication.ImmutableAuthenticationTests Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec Running org.jasig.cas.ticket.TicketCreationExceptionTests Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec Running org.jasig.cas.authentication.principal.SimplePrincipalTests Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 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.003 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: 0, Skipped: 0, Time elapsed: 0.296 sec Running org.jasig.cas.web.support.GoogleAccountsArgumentExtractorTests Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.004 sec <<< FAILURE! Running org.jasig.cas.services.web.ManageRegisteredServicesMultiActionControllerTests Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.041 sec Running org.jasig.cas.authentication.handler.UnsupportedCredentialsExceptionTests Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.007 sec Running org.jasig.cas.ticket.ServiceTicketImplTests Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.006 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.002 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.266 sec Running org.jasig.cas.authentication.principal.HttpBasedServiceCredentialsTests Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 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: 0.89 sec Running org.jasig.cas.validation.Cas20WithoutProxyingValidationSpecificationTests Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.004 sec Running org.jasig.cas.web.support.ThrottledSubmissionByIpAddressHandlerInterceptorAdapterTests Tests run: 4, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 4.009 sec <<< FAILURE! Running org.jasig.cas.authentication.principal.ShibbolethCompatiblePersistentIdGeneratorTests Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec Running org.jasig.cas.authentication.principal.HttpBasedServiceCredentialsToPrincipalResolverTests Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec Running org.jasig.cas.services.web.support.RegisteredServiceValidatorTests Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.004 sec Running org.jasig.cas.web.support.SamlArgumentExtractorTests Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec Running org.jasig.cas.ticket.support.ThrottledUseAndTimeoutExpirationPolicyTests Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 10.016 sec Running org.jasig.cas.web.ServiceValidateControllerTests Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.663 sec Running org.jasig.cas.remoting.server.RemoteCentralAuthenticationServiceTests Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.418 sec Running org.jasig.cas.ticket.proxy.support.Cas20ProxyHandlerTests Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.128 sec Running org.jasig.cas.web.support.WebUtilTests Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec Running org.jasig.cas.web.view.Cas10ResponseViewTests Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec Running org.jasig.cas.authentication.handler.BadUsernameOrPasswordAuthenticationExceptionTests Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec Running org.jasig.cas.web.init.SafeContextLoaderListenerTests Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.008 sec 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:338) at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:997) 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 Running org.jasig.cas.ticket.registry.DistributedTicketRegistryTests Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.01 sec Running org.jasig.cas.web.LogoutControllerTests Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.011 sec Running org.jasig.cas.authentication.principal.SamlServiceTests Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec Results : Failed tests: testFailuresThenSuccess(org.jasig.cas.web.support.ThrottledSubmissionByIpAddressHandlerInterceptorAdapterTests) Tests in error: testResponse(org.jasig.cas.authentication.principal.GoogleAccountsServiceTests) 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) testNoService(org.jasig.cas.web.support.GoogleAccountsArgumentExtractorTests) Tests run: 355, Failures: 1, Errors: 6, Skipped: 0 [INFO] ------------------------------------------------------------------------ [ERROR] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] There are test failures. Please refer to /private/var/www/cas/cas-server-3.3.3/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: 4 minutes 8 seconds [INFO] Finished at: Sat Sep 05 15:15:19 PDT 2009 [INFO] Final Memory: 40M/81M [INFO] ------------------------------------------------------------------------

    Apereo Issues | 7 years ago | Charles Munat
    org.jasig.cas.validation.AssertionImplTests
  3. 0

    struts2和spring整合时,报异常 - 爱悠闲,快乐工作,悠闲生活!

    aiuxian.com | 1 year ago
    java.io.FileNotFoundException: Could not open ServletContext resource [/WEB-INF/applicationContext.xml]</span>
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    ContextLoaderListener in JBoss/Tomcat

    springframework | 1 decade ago | javidjamae
    java.io.FileNotFoundException: Could not open resource \[/WEB-INF/spring.xml\] of ServletContext
  6. 0

    2005-01-31 13:58:49 StandardContext[/kls2]Loading root WebApplicationContext 2005-01-31 13:58:49 StandardContext[/kls2]Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from ServletContext resource [/WEB-INF/classpath:/database.beans.xml]; nested exception is java.io.FileNotFoundException: Could not open ServletContext resource [/WEB-INF/classpath:/database.beans.xml] java.io.FileNotFoundException: Could not open ServletContext resource [/WEB-INF/classpath:/database.beans.xml] at org.springframework.web.context.support.ServletContextResource.getInputStream(ServletContextResource.java:89) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:127) at org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.importBeanDefinitionResource(DefaultXmlBeanDefinitionParser.java:226) at org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.registerBeanDefinitions(DefaultXmlBeanDefinitionParser.java:180) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:170) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:129) at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:144) at org.springframework.context.support.AbstractXmlApplicationContext.refreshBeanFactory(AbstractXmlApplicationContext.java:79) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:249) at org.springframework.web.context.support.XmlWebApplicationContext.refresh(XmlWebApplicationContext.java:131) at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:167) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:101) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:48) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4343) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595) at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:277) at org.apache.catalina.core.StandardHost.install(StandardHost.java:832) at org.apache.catalina.manager.ManagerServlet.deploy(ManagerServlet.java:922) at org.apache.catalina.manager.HTMLManagerServlet.deployInternal(HTMLManagerServlet.java:271) at org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:95) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:540) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:374) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) at java.lang.Thread.run(Thread.java:534)

    Spring JIRA | 1 decade ago | Tim Schafer
    java.io.FileNotFoundException: Could not open ServletContext resource [/WEB-INF/classpath:/database.beans.xml]

  1. treefolk 7 times, last 2 months ago
  2. thiago.santos 1 times, last 10 months ago
  3. Kawada 8 times, last 11 months ago
10 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.io.FileNotFoundException

    Could not open ServletContext resource [/WEB-INF/-servlet.xml]

    at org.springframework.web.context.support.ServletContextResource.getInputStream()
  2. Spring
    ServletContextResource.getInputStream
    1. org.springframework.web.context.support.ServletContextResource.getInputStream(ServletContextResource.java:117)
    1 frame
  3. Spring Beans
    XmlBeanDefinitionReader.loadBeanDefinitions
    1. org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:336)
    1 frame
  4. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    3. java.lang.reflect.Method.invoke(Method.java:597)
    3 frames
  5. org.apache.maven
    JUnitTestSet.execute
    1. org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
    1 frame
  6. SureFire
    Surefire.run
    1. org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
    2. org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
    3. org.apache.maven.surefire.Surefire.run(Surefire.java:177)
    3 frames
  7. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:597)
    4 frames
  8. SureFire
    SurefireBooter.main
    1. org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:338)
    2. org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:997)
    2 frames