I have same problem in 5.1.0-SNAPSHOT
Vào 05:30:00 UTC+7 Thứ Tư, ngày 16 tháng 11 năm 2016, satnam đã viết:
>
> Hello,
>
> we are trying to upgrade cas from 4.2.x to 5.0.x and getting error that
> -Djava.util.logging.config.file=C:\Projects\PASS5\trunk\test\apache-tomcat\cat_base\conf\logging.properties
>
> file not found. The logging.properties file does exist at location. Is
> there something we need to include?
>
>
>
> 2016-11-15 14:21:40,329 WARN
> [org.springframework.cloud.bootstrap.config.PropertySourceBootstrapConfiguration]
>
> - <Logging config file location
> '-Djava.util.logging.config.file="C:\Projects\PASS5\trunk\test\apache-tomcat\cat_base\conf\logging.properties"'
>
> cannot be opened and will be ignored>
>
> Caused by: java.lang.RuntimeException: java.io.FileNotFoundException:
> ServletContext resource
> [/-Djava.util.logging.config.file="C:/Projects/PASS5/trunk/test/apache-tomcat/cat_base/conf/logging.properties"]
>
> cannot be resolved to URL because it does not exist
> at com.google.common.base.Throwables.propagate(Throwables.java:160)
> at
> org.apereo.cas.web.report.LoggingConfigController.initialize(LoggingConfigController.java:85)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at
> org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:365)
> at
> org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:310)
> at
> org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133)
> ... 45 more
> Caused by: java.io.FileNotFoundException: ServletContext resource
> [/-Djava.util.logging.config.file="C:/Projects/PASS5/trunk/test/apache-tomcat/cat_base/conf/logging.properties"]
>
> cannot be resolved to URL because it does not exist
> at
> org.springframework.web.context.support.ServletContextResource.getURL(ServletContextResource.java:156)
> at
> org.springframework.core.io.AbstractResource.getURI(AbstractResource.java:99)
> at
> org.apereo.cas.web.report.LoggingConfigController.initialize(LoggingConfigController.java:81)
>
>
> Thanks for help
>
--
- CAS gitter chatroom: https://gitter.im/apereo/cas
- CAS mailing list guidelines: https://apereo.github.io/cas/Mailing-Lists.html
- CAS documentation website: https://apereo.github.io/cas
- CAS project website: https://github.com/apereo/cas
---
You received this message because you are subscribed to the Google Groups "CAS
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/a/apereo.org/d/msgid/cas-user/00762468-4cf9-4dd8-a4c0-1482fda8e764%40apereo.org.
2016-12-01 21:19:29,981 WARN
[org.springframework.cloud.bootstrap.config.PropertySourceBootstrapConfiguration]
- <Logging config file location
'-Djava.util.logging.config.file="D:\tomcat9\conf\logging.properties"' cannot
be opened and will be ignored>
2016-12-01 21:19:42,110 WARN
[org.apereo.cas.services.InMemoryServiceRegistryDaoImpl] - <Runtime memory is
used as the persistence storage for retrieving and persisting service
definitions. Changes that are made to service definitions during runtime WILL
be LOST upon container restarts.>
2016-12-01 21:20:18,419 WARN
[org.apereo.cas.config.CasSecurityContextConfiguration] - <[36m>
2016-12-01 21:20:18,430 WARN
[org.apereo.cas.config.CasSecurityContextConfiguration] - <
____ _____ ___ ____ _
/ ___| |_ _| / _ \ | _ \ | |
\___ \ | | | | | || |_) || |
___) | | | | |_| || __/ |_|
|____/ |_| \___/ |_| (_)
CAS is configured to accept a static list of credentials for authentication.
While this is generally useful for demo purposes, it is STRONGLY recommended
that you DISABLE this authentication method (by SETTING 'cas.authn.accept.users'
to a blank value) and switch to a mode that is more suitable for production.
>
2016-12-01 21:20:18,430 WARN
[org.apereo.cas.config.CasSecurityContextConfiguration] - <[0m>
2016-12-01 21:20:33,447 WARN
[org.apereo.cas.util.cipher.WebflowConversationStateCipherExecutor] - <Secret
key for signing is not defined. CAS will attempt to auto-generate the signing
key>
2016-12-01 21:20:33,465 WARN
[org.apereo.cas.util.cipher.WebflowConversationStateCipherExecutor] -
<Generated signing key
TEG8wacXrF7bCegeP-kyqnvTC9aBXtCNhRYmiiGTEZJ-W1_xGLh8qInWjhZeMxKge5qJbhQ4XqHEfCDFsEzYVg
of size 512. The generated key MUST be added to CAS settings.>
2016-12-01 21:20:33,466 WARN
[org.apereo.cas.util.cipher.WebflowConversationStateCipherExecutor] - <No
encryption key is defined. CAS will attempt to auto-generate keys>
2016-12-01 21:20:33,471 WARN
[org.apereo.cas.util.cipher.WebflowConversationStateCipherExecutor] -
<Generated encryption key uekMjnzvCVHhjtXH of size 16. The generated key MUST
be added to CAS settings.>
2016-12-01 21:20:33,596 WARN
[org.apereo.cas.util.cipher.TicketGrantingCookieCipherExecutor] - <Secret key
for encryption is not defined. CAS will attempt to auto-generate the encryption
key>
2016-12-01 21:20:33,596 WARN
[org.apereo.cas.util.cipher.TicketGrantingCookieCipherExecutor] - <Generated
encryption key hXefGllDX0QUX5w9ZGoMd91Q6M54v4rkQt6gZCUbA4Y of size 256. The
generated key MUST be added to CAS settings.>
2016-12-01 21:20:33,597 WARN
[org.apereo.cas.util.cipher.TicketGrantingCookieCipherExecutor] - <Secret key
for signing is not defined. CAS will attempt to auto-generate the signing key>
2016-12-01 21:20:33,600 WARN
[org.apereo.cas.util.cipher.TicketGrantingCookieCipherExecutor] - <Generated
signing key
ar2W7-W7yWAKF7YTvaD-rxTwLmxdfYGg3e-t2Vtb6Mu2XJ_Lph42oaWCUi2Q28rU6444iqsLBb4Swhzc5YSxWw
of size 512. The generated key MUST be added to CAS settings.>
2016-12-01 21:20:33,690 WARN
[org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext]
- <Exception encountered during context initialization - cancelling refresh
attempt: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'scopedTarget.loggingConfigController': Invocation of
init method failed; nested exception is java.lang.RuntimeException:
java.io.FileNotFoundException: ServletContext resource
[/-Djava.util.logging.config.file="D:/tomcat9/conf/logging.properties"] cannot
be resolved to URL because it does not exist>
2016-12-01 21:20:33,738 ERROR [org.springframework.boot.SpringApplication] -
<Application startup failed>
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'scopedTarget.loggingConfigController': Invocation of init method
failed; nested exception is java.lang.RuntimeException:
java.io.FileNotFoundException: ServletContext resource
[/-Djava.util.logging.config.file="D:/tomcat9/conf/logging.properties"] cannot
be resolved to URL because it does not exist
at
org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:137)
~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE]
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:408)
~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE]
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1575)
~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE]
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553)
~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE]
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE]
at
org.springframework.beans.factory.support.AbstractBeanFactory$2.getObject(AbstractBeanFactory.java:345)
~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE]
at
org.springframework.cloud.context.scope.GenericScope$BeanLifecycleWrapper.getBean(GenericScope.java:359)
~[spring-cloud-context-1.1.5.RELEASE.jar:1.1.5.RELEASE]
at
org.springframework.cloud.context.scope.GenericScope.get(GenericScope.java:176)
~[spring-cloud-context-1.1.5.RELEASE.jar:1.1.5.RELEASE]
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:340)
~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE]
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE]
at
org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1081)
~[spring-context-4.3.4.RELEASE.jar:4.3.4.RELEASE]
at
org.springframework.cloud.context.scope.refresh.RefreshScope.start(RefreshScope.java:121)
~[spring-cloud-context-1.1.5.RELEASE.jar:1.1.5.RELEASE]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
~[?:1.8.0_91]
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
~[?:1.8.0_91]
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
~[?:1.8.0_91]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_91]
at
org.springframework.context.event.ApplicationListenerMethodAdapter.doInvoke(ApplicationListenerMethodAdapter.java:253)
~[spring-context-4.3.4.RELEASE.jar:4.3.4.RELEASE]
at
org.springframework.context.event.ApplicationListenerMethodAdapter.processEvent(ApplicationListenerMethodAdapter.java:174)
~[spring-context-4.3.4.RELEASE.jar:4.3.4.RELEASE]
at
org.springframework.context.event.ApplicationListenerMethodAdapter.onApplicationEvent(ApplicationListenerMethodAdapter.java:137)
~[spring-context-4.3.4.RELEASE.jar:4.3.4.RELEASE]
at
org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:166)
~[spring-context-4.3.4.RELEASE.jar:4.3.4.RELEASE]
at
org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:138)
~[spring-context-4.3.4.RELEASE.jar:4.3.4.RELEASE]
at
org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:383)
~[spring-context-4.3.4.RELEASE.jar:4.3.4.RELEASE]
at
org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:337)
~[spring-context-4.3.4.RELEASE.jar:4.3.4.RELEASE]
at
org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:882)
~[spring-context-4.3.4.RELEASE.jar:4.3.4.RELEASE]
at
org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.finishRefresh(EmbeddedWebApplicationContext.java:144)
~[spring-boot-1.4.2.RELEASE.jar:1.4.2.RELEASE]
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:545)
~[spring-context-4.3.4.RELEASE.jar:4.3.4.RELEASE]
at
org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122)
~[spring-boot-1.4.2.RELEASE.jar:1.4.2.RELEASE]
at
org.springframework.boot.SpringApplication.refresh(SpringApplication.java:761)
~[spring-boot-1.4.2.RELEASE.jar:1.4.2.RELEASE]
at
org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:371)
~[spring-boot-1.4.2.RELEASE.jar:1.4.2.RELEASE]
at
org.springframework.boot.SpringApplication.run(SpringApplication.java:315)
~[spring-boot-1.4.2.RELEASE.jar:1.4.2.RELEASE]
at
org.springframework.boot.web.support.SpringBootServletInitializer.run(SpringBootServletInitializer.java:151)
~[spring-boot-1.4.2.RELEASE.jar:1.4.2.RELEASE]
at
org.springframework.boot.web.support.SpringBootServletInitializer.createRootApplicationContext(SpringBootServletInitializer.java:131)
~[spring-boot-1.4.2.RELEASE.jar:1.4.2.RELEASE]
at
org.springframework.boot.web.support.SpringBootServletInitializer.onStartup(SpringBootServletInitializer.java:86)
~[spring-boot-1.4.2.RELEASE.jar:1.4.2.RELEASE]
at
org.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:169)
~[spring-web-4.3.4.RELEASE.jar:4.3.4.RELEASE]
at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5168)
~[catalina.jar:9.0.0.M13]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
~[catalina.jar:9.0.0.M13]
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:752)
~[catalina.jar:9.0.0.M13]
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:728)
~[catalina.jar:9.0.0.M13]
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
~[catalina.jar:9.0.0.M13]
at
org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1107)
~[catalina.jar:9.0.0.M13]
at
org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1841)
~[catalina.jar:9.0.0.M13]
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
~[?:1.8.0_91]
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
~[?:1.8.0_91]
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
[?:1.8.0_91]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
[?:1.8.0_91]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_91]
Caused by: java.lang.RuntimeException: java.io.FileNotFoundException:
ServletContext resource
[/-Djava.util.logging.config.file="D:/tomcat9/conf/logging.properties"] cannot
be resolved to URL because it does not exist
at com.google.common.base.Throwables.propagate(Throwables.java:240)
~[guava-20.0.jar:?]
at
org.apereo.cas.web.report.LoggingConfigController.initialize(LoggingConfigController.java:85)
~[cas-server-support-reports-5.1.0-SNAPSHOT.jar:5.1.0-SNAPSHOT]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
~[?:1.8.0_91]
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
~[?:1.8.0_91]
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
~[?:1.8.0_91]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_91]
at
org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:366)
~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE]
at
org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:311)
~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE]
at
org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:134)
~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE]
... 45 more
Caused by: java.io.FileNotFoundException: ServletContext resource
[/-Djava.util.logging.config.file="D:/tomcat9/conf/logging.properties"] cannot
be resolved to URL because it does not exist
at
org.springframework.web.context.support.ServletContextResource.getURL(ServletContextResource.java:156)
~[spring-web-4.3.4.RELEASE.jar:4.3.4.RELEASE]
at
org.springframework.core.io.AbstractResource.getURI(AbstractResource.java:99)
~[spring-core-4.3.4.RELEASE.jar:4.3.4.RELEASE]
at
org.apereo.cas.web.report.LoggingConfigController.initialize(LoggingConfigController.java:81)
~[cas-server-support-reports-5.1.0-SNAPSHOT.jar:5.1.0-SNAPSHOT]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
~[?:1.8.0_91]
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
~[?:1.8.0_91]
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
~[?:1.8.0_91]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_91]
at
org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:366)
~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE]
at
org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:311)
~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE]
at
org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:134)
~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE]
... 45 more