2015-01-15 74 views
0

自從我開始嘗試在Openshift上部署香草jijster應用程序已經一個多星期了。我曾嘗試過Openshift以及我們的私人企業Openshift實例,但都沒有成功。在Openshift上部署香草jijster應用程序

我已經嘗試了幾種方法來做到這一點,使用生成器喲jhipster:openshift或手動與特定的鉤子。使用發電機 ,我已經做了:

yo jhipster (std app java 7 with H2/Mysql and maven) 

git init 

git add --all 

git commit -m "A stupid message ;)." 

yo jhipster:openshift 

請找到命令行啓動應用程序
[bienvenue-nomadys.kermit.rd.francetelecom.fr repo]\> java -server -jar target/bienvenue-0.0.1-SNAPSHOT.war --spring.profiles.active=prod --server.address=${OPENSHIFT_DIY_IP} --server.port=${OPENSHIFT_DIY_PORT} --spring.datasource.url=jdbc:mysql://${OPENSHIFT_MYSQL_DB_HOST}:${OPENSHIFT_MYSQL_DB_PORT}/${OPENSHIFT_APP_NAME} --spring.datasource.username=${OPENSHIFT_MYSQL_DB_USERNAME} --spring.datasource.password=${OPENSHIFT_MYSQL_DB_PASSWORD}

這是日誌: [INFO] com.orange.nomadis.Application - Starting Application on node1.kermit.rd.francetelecom.fr with PID 20787 (started by 54b7c9b8c3215e291500007e in /var/lib/openshift/54b7c9b8c3215e291500007e/app-root/runtime/repo) [DEBUG] com.orange.nomadis.Application - Running with Spring Boot v1.2.0.RELEASE, Spring v4.1.3.RELEASE [WARN] org.springframework.core.io.support.PathMatchingResourcePatternResolver - Skipping [/var/lib/openshift/54b7c9b8c3215e291500007e/app-root/runtime/repo/target/bienvenue-0.0.1-SNAPSHOT.war] because it does not denote a directory Processus arrêté

我不知道發生了什麼問題以及如何追蹤執行情況。 我沒有日誌,什麼都沒有。

[編輯]

改變構建actions_hook的執行模式中/deploy/openshift/.openshift/action_hooks後我有液體鹼和彈簧的誤差。

這是日誌:

[INFO] com.mycompany.myapp.Application - 啓動對ex-std-node511.prod.rhcloud.com應用與PID 439180(由54c2066a4382ec19ee0000bb在/ var開始/ lib目錄/ openshift/54c2066a4382ec19ee0000bb/diy) [DEBUG] com.mycompany.myapp.Application - 使用Spring Boot運行v1.2.0.RELEASE,Spring v4.1.3.RELEASE [WARN] org.springframework.core.io.support.PathMatchingResourcePatternResolver - 跳過[/var/lib/openshift/54c2066a4382ec19ee0000bb/app-root/runtime/repo/target/jhipster-0.0.1-SNAPSHOT.war],因爲它不表示目錄 [DEBUG] org.jboss.logging - 日誌記錄提供者:org.jboss.logging.Slf4jLoggerProvider [DEBUG] com.mycompany.myapp.config.AsyncConfiguration - 創建異步任務執行程序 [DEBUG] com.mycompany.myapp.config.MetricsConfiguration - 註冊JVM計量器 [INFO] com.mycompany.myapp.config.MetricsConfiguration - 初始化度量標準JMX報告 [DEBUG] com.mycompany.myapp.config.DatabaseConfiguration - 配置數據源 [錯誤] org.springframework.boot.context.embedded.tomcat.ServletContextInitializerLifecycleListener - 啓動Tomcat上下文時出錯:org.springframework.beans.factory。 BeanCreationException [WARN] org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext - 上下文初始化期間遇到的異常 - 取消刷新嘗試 org.springframework.context.ApplicationContextException:無法啓動嵌入的Contai NER;嵌套異常是org.springframework.boot.context.embedded.EmbeddedServletContainerException:無法啓動嵌入式Tomcat at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.onRefresh(EmbeddedWebApplicationContext.java:124)[spring-boot-1.2.0 .RELEASE.jar!/:1.2.0.RELEASE] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:474)〜[spring-context-4.1.3.RELEASE.jar!/:4.1 .3.RELEASE] at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:109)[spring-boot-1.2.0.RELEASE.jar!/:1.2.0.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:691)[spring-boot-1.2.0.RELEASE.jar!/:1.2.0.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication .J ava:321)[spring-boot-1.2.0.RELEASE.jar!/:1.2.0.RELEASE] at com。my.myapp.Application.main(Application.java:56)[classes!/:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)〜[na:1.7.0_75] at sun.reflect.NativeMethodAccessorImpl。調用(NativeMethodAccessorImpl.java:57)〜[na:1.7.0_75] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)〜[na:1.7.0_75] at java.lang.reflect.Method。 invoke(Method.java:606)〜[na:1.7.0_75] at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:53)[jhipster-0.0.1-SNAPSHOT.war:na] 在java.lang.Thread.run(Thread.java:745)[na:1.7.0_75] 引起:org.springframework.boot.context.embedded.EmbeddedServletContainerException:無法在org.springframework.boot啓動嵌入式Tomcat .conte xt.embedded.tomcat.TomcatEmbeddedServletContainer.initialize(TomcatEmbeddedServletContainer.java:97)〜[spring-boot-1.2.0.RELEASE.jar!/:1.2.0.RELEASE] at org.springframework.boot.context.embedded。 tomcat.TomcatEmbeddedServletContainer。(TomcatEmbeddedServletContainer.java:74)〜[spring-boot-1.2.0.RELEASE.jar!/:1.2.0.RELEASE] at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainerFactory.getTomcatEmbeddedServletContainer (TomcatEmbeddedServletContainerFactory.java:374)〜[spring-boot-1.2.0.RELEASE.jar!/:1.2.0.RELEASE] at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainerFactory.getEmbeddedServletContainer(TomcatEmbeddedServletContainerFactory.java :150)〜[spring-boot-1.2.0.RELEASE.jar!/:1.2.0.RELEASE] at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.createEmbeddedServletContainer(Emb eddedWebApplicationContext.java:148)[spring-boot-1.2.0.RELEASE.jar!/:1.2.0.RELEASE] at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.onRefresh(EmbeddedWebApplicationContext.java:121)[ spring-boot-1.2.0.RELEASE.jar!/:1.2.0.RELEASE] ... 11個常用框架被忽略 引起:org.springframework.beans.factory.BeanCreationException:創建名爲org的bean時出錯。 springframework.security.config.annotation.web.configuration.WebSecurityConfiguration':注入自動裝配依賴失敗;嵌套異常是org.springframework.beans.factory.BeanCreationException:無法自動裝配方法:public void org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration.setFilterChainProxySecurityConfigurer(org.springframework.security.config.annotation.ObjectPostProcessor, java.util.List)拋出java.lang.Exception;嵌套異常是org.springframework.beans.factory.BeanExpressionException:表達式解析失敗;嵌套異常是org.springframework.beans.factory.BeanCreationException:創建名爲'securityConfiguration'的bean時出錯:注入自動裝配依賴失敗;嵌套異常是org.springframework.beans.factory.BeanCreationException:無法自動裝入字段:private org.springframework.security.core.userdetails.UserDetailsS​​ervice com.mycompany.myapp.config.SecurityConfiguration.userDetailsS​​ervice;嵌套異常是org.springframework.beans.factory.BeanCreationException:創建名爲'userDetailsS​​ervice'的bean時出錯:注入自動裝配依賴失敗;嵌套異常是org.springframework.beans.factory.BeanCreationException:無法自動裝入字段:private com.mycompany.myapp.repository.UserRepository com.mycompany.myapp.security.UserDetailsS​​ervice.userRepository;嵌套異常是org.springframework.beans.factory.BeanCreationException:創建名爲'userRepository'的bean時出錯:無法在設置bean時創建類型爲[org.springframework.orm.jpa.SharedEntityManagerCreator]的內部bean'(內部bean)#2e100c'屬性'entityManager';嵌套異常是org.springframework.beans.factory.BeanCreationException:創建名稱爲'(內部bean)#2e100c'的bean時出錯:設置構造函數參數時無法解析對bean'entityManagerFactory'的引用;嵌套異常是org.springframework.beans.factory.BeanCreationException:在類路徑資源[com/mycompany/myapp/config/DatabaseConfiguration.class]中定義名稱爲'liquibase'的bean時出錯:通過工廠方法的Bean實例化失敗;嵌套異常是org.springframework.beans.BeanInstantiationException:未能實例化[liquibase.integration.spring.SpringLiquibase]:工廠方法'liquibase'拋出異常;嵌套異常是liquibase.exception.ServiceNotFoundException:liquibase.exception.ServiceNotFoundException:liquibase.exception。ServiceNotFoundException:無法在org.springframework.beans.factory.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334)〜[spring-beans-4.1.3.RELEASE.jar!/中找到liquibase.logging.Logger 的實現: 4.1.3.RELEASE] 在org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1202)〜[彈簧豆-4.1.3.RELEASE.jar /:4.1.3.RELEASE] at org.springframework。org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537)〜[spring-beans-4.1.3.RELEASE.jar!/:4.1.3.RELEASE] 。 beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)〜[spring-beans-4.1.3.RELEASE.jar!/:4.1.3.RELEASE] 在org.springframework.beans.factory.support.AbstractBeanFactory $ 1.getObject(AbstractBeanFactory.java:302)〜[彈簧豆-4.1.3.RELEASE.jar /:4.1.3.RELEASE] 在org.springframework .beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)〜[彈簧豆-4.1.3.RELEASE.jar /:4.1.3.RELEASE] 在org.springframework.beans.factory.support .BeginFactory.doGetBean(AbstractBeanFactory.java:298)〜[spring-beans-4.1.3.RELEASE.jar!/:4.1.3.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory .java:193)〜[spring-beans-4.1.3.RELEASE.jar!/:4.1.3.RELEASE] at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:371)〜 [spring-beans-4.1.3.RELEASE.jar!/:4.1.3.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1111)〜[spring-beans-4.1.3.RELEASE.jar!/:4.1.3.RELEASE] at org.springframework.beans .factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1006)〜[spring-beans-4.1.3.RELEASE.jar!/:4.1.3.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory .doCreateBean(AbstractAutowireCapableBeanFactory.java:504)〜[spring-beans-4.1.3.RELEASE.jar!/:4.1.3.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java :476)〜[spring-beans-4.1.3.RELEASE.jar!/:4.1.3.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory $ 1.getObject(AbstractBeanFac tory.java:302)〜[spring-beans-4.1.3.RELEASE.jar!/:4.1.3.RELEASE] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) 〜[spring-beans-4.1.3.RELEASE.jar!/:4.1.3.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)〜[spring-beans- 4.1.3.RELEASE.jar!/:4.1.3.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:198)〜[spring-beans-4.1.3.RELEASE。 JAR /:4.1.3.RELEASE] 在org.springframework.boot.context.embedded.ServletContextInitializerBeans.getOrderedBeansOfType(ServletContextInitializerBeans.java:176)〜[彈簧引導1.2.0.RELEASE.jar /:1.2。 0.RELEASE] at org.springframework.boot.context.embedded.ServletContextInitializerBeans.addAsRegistrationBean( ServletContextInitializerBeans.java:141)〜[spring-boot-1.2.0.RELEASE.jar!/:1.2.0.RELEASE] at org.springframework.boot.context.embedded.ServletContextInitializerBeans.addAsRegistrationBean(ServletContextInitializerBeans.java:136) 〜[彈簧引導1.2.0.RELEASE.jar /:1.2.0.RELEASE] 在org.springframework.boot.context.embedded.ServletContextInitializerBeans.addAdaptableBeans(ServletContextInitializerBeans.java:119)〜[彈簧boot- 1.2.0.RELEASE.jar!/:1.2.0.RELEASE] at org.springframework.boot.context.embedded.ServletContextInitializerBeans。(ServletContextInitializerBeans.java:69)〜[spring-boot-1.2.0.RELEASE.jar !/:1.2.0.RELEASE] 在org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.getServletContextInitializerBeans(EmbeddedWebApplicationContext.java:216)[彈簧引導1.2.0.RELEASE.jar /:1.2.0。 RELEASE] at org。springframework.boot.context.embedded.EmbeddedWebApplicationContext $ 1.onStartup(EmbeddedWebApplicationContext.java:202)〜[spring-boot-1.2.0.RELEASE.jar!/:1.2.0.RELEASE] at org.springframework.boot.context .embedded.tomcat.ServletContextInitializerLifecycleListener.lifecycleEvent(ServletContextInitializerLifecycleListener.java:64)〜[spring-boot-1.2.0.RELEASE.jar!/:1.2.0.RELEASE] at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent (LifecycleSupport.java:117)〜[tomcat-embed-core-8.0.15.jar!/:8.0.15] at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)〜[tomcat -embed-core-8.0.15.jar!/:8.0.15] at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5095)〜[tomcat-embed-core-8.0.15.jar !/:8.0.15] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) 〜[tomcat-embed-core-8.0.15.jar!/:8.0.15] at org.apache.catalina.core.ContainerBase $ StartChild.call(ContainerBase.java:1409)〜[tomcat-embed-core- 8.0.15.jar!/:8.0.15] at org.apache.catalina.core.ContainerBase $ StartChild.call(ContainerBase.java:1399)〜[tomcat-embed-core-8.0.15.jar!/: 8.0.15] at java.util.concurrent.FutureTask.run(FutureTask.java:262)〜[na:1.7.0_75] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)〜[ na:1.7.0_75] at java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:615)〜[na:1.7.0_75] ... 1常見幀遺漏 引起人:org.springframework。 beans.factory.BeanCreationException:無法自動裝載方法:public void org.springframework.security.config.annotation.web.configuration.WebSecurit yConfiguration.setFilterChainProxySecurityConfigurer(org.springframework.security.config.annotation.ObjectPostProcessor,java.util.List)拋出java.lang.Exception;嵌套異常是org.springframework.beans.factory.BeanExpressionException:表達式解析失敗;嵌套異常是org.springframework.beans.factory.BeanCreationException:創建名爲'securityConfiguration'的bean時出錯:注入自動裝配依賴失敗;嵌套異常是org.springframework.beans.factory.BeanCreationException:無法自動裝入字段:private org.springframework.security.core.userdetails.UserDetailsS​​ervice com.mycompany.myapp.config.SecurityConfiguration.userDetailsS​​ervice;嵌套異常是org.springframework.beans.factory.BeanCreationException:創建名爲'userDetailsS​​ervice'的bean時出錯:注入自動裝配依賴失敗;嵌套異常是org.springframework.beans.factory.BeanCreationException:無法自動裝入字段:private com.mycompany.myapp.repository.UserRepository com.mycompany.myapp.security.UserDetailsS​​ervice.userRepository;嵌套異常是org.springframework.beans.factory.BeanCreationException:創建名爲'userRepository'的bean時出錯:無法在設置bean時創建類型爲[org.springframework.orm.jpa.SharedEntityManagerCreator]的內部bean'(內部bean)#2e100c'屬性'entityManager';嵌套異常是org.springframework.beans.factory.BeanCreationException:創建名稱爲'(內部bean)#2e100c'的bean時出錯:設置構造函數參數時無法解析對bean'entityManagerFactory'的引用;嵌套異常是org.springframework.beans.factory.BeanCreationException:在類路徑資源[com/mycompany/myapp/config/DatabaseConfiguration.class]中定義名稱爲'liquibase'的bean時出錯:通過工廠方法的Bean實例化失敗;嵌套異常是org.springframework.beans.BeanInstantiationException:無法實例化[liquibase.integration.spring.SpringLiquibase]:工廠方法'liquibase'拋出異常;嵌套的例外是liquibase.exception.ServiceNotFoundException:liquibase.exception.ServiceNotFoundException:liquibase.exception.ServiceNotFoundException:無法在org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor $ AutowiredMethodElement.inject找到實現liquibase.logging.Logger 的(AutowiredAnnotationBeanPostProcessor .java:646)〜[spring-beans-4.1.3.RELEASE.jar!/:4.1.3.RELEASE] at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87)〜 [spring-beans-4.1.3.RELEASE.jar!/:4.1.3.RELEASE] at org.springframework.beans.factory.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:331)〜[spring-beans-4.1 .3.RELEASE.jar!/:4.1.3.RELEASE] ...刪除了34個常見幀 引起:org.springframework.beans.factory.BeanExpressionException:表達式解析失敗;嵌套異常是org.springframework.beans.factory.BeanCreationException:創建名爲'securityConfiguration'的bean時出錯:注入自動裝配依賴失敗;嵌套異常是org.springframework.beans.factory.BeanCreationException:無法自動裝入字段:private org.springframework.security.core.userdetails.UserDetailsS​​ervice com.mycompany.myapp.config.SecurityConfiguration.userDetailsS​​ervice;嵌套異常是org.springframework.beans.factory.BeanCreationException:創建名爲'userDetailsS​​ervice'的bean時出錯:注入自動裝配依賴失敗;嵌套異常是org.springframework.beans.factory.BeanCreationException:無法自動裝入字段:private com.mycompany.myapp.repository.UserRepository com.mycompany.myapp.security.UserDetailsS​​ervice.userRepository;嵌套異常是org.springframework.beans.factory.BeanCreationException:創建名爲'userRepository'的bean時出錯:無法在設置bean時創建類型爲[org.springframework.orm.jpa.SharedEntityManagerCreator]的內部bean'(內部bean)#2e100c'屬性'entityManager';嵌套異常是org.springframework.beans.factory.BeanCreationException:創建名稱爲'(內部bean)#2e100c'的bean時出錯:設置構造函數參數時無法解析對bean'entityManagerFactory'的引用;嵌套異常是org.springframework.beans.factory.BeanCreationException:在類路徑資源[com/mycompany/myapp/config/DatabaseConfiguration.class]中定義名稱爲'liquibase'的bean時出錯:通過工廠方法的Bean實例化失敗;嵌套異常是org.springframework.beans.BeanInstantiationException:無法實例化[liquibase.integration.spring.SpringLiquibase]:工廠方法'liquibase'拋出異常;嵌套異常是liquibase.exception.ServiceNotFoundException:liquibase.exception.ServiceNotFoundException:liquibase.exception.ServiceNotFoundException:找不到執行liquibase.logging.Logger at org.springframework.context.expression.StandardBeanExpressionResolver.evaluate(StandardBeanExpressionResolver.java:164 )〜[spring-context-4.1.3.RELEASE.jar!/:4.1.3.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.evaluateBeanDefinitionString(AbstractBeanFactory.java:1354)〜[spring-beans -4.1.3.RELEASE.jar!/:4.1.3.RELEASE] at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:964)〜[spring-beans-4.1.3.RELEASE .jar!/:4.1.3.RELEASE] at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:9 (AutowiredAnnotationBeanPostProcessor.java:603)〜[ !春天豆-4.1.3.RELEASE.jar /:4.1.3.RELEASE] ... 36個共同框架省略

......... 很多例外的從這裏到那裏 .........

原因:org.springframework.beans.factory.BeanCreationException:在類路徑資源[com/mycompany/myapp/config/DatabaseConfiguration中定義的名稱爲'liquibase'的bean中創建時出錯。類]:通過工廠方法的Bean實例化失敗;嵌套異常是org.springframework.beans.BeanInstantiationException:無法實例化[liquibase.integration.spring.SpringLiquibase]:工廠方法'liquibase'拋出異常;嵌套異常是liquibase.exception.ServiceNotFoundException:liquibase.exception.ServiceNotFoundException:liquibase.exception.ServiceNotFoundException:找不到執行liquibase.logging.Logger at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java :602) 在org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1111) 在org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1006) 在有機.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory。Java的:504) 在org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476) 在org.springframework.beans.factory.support.AbstractBeanFactory $ 1.getObject(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298) at org.springframework.beans .factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292) at org.springframework.beans.factory.support.AbstractBeanFactory .getBean(分區:Abst org.springframework.beans.BeanInstantiationException:ractBeanFactory.java:193) 在org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:351) ... 98更 致無法實例[ liquibase.integration.spring.SpringLiquibase]:工廠方法'liquibase'拋出異常;嵌套異常是liquibase.exception.ServiceNotFoundException:liquibase.exception.ServiceNotFoundException:liquibase.exception.ServiceNotFoundException:找不到實施liquibase.logging.Logger at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java :189) 在org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:591) ... 109多個 產生的原因:liquibase.exception.ServiceNotFoundException:liquibase.exception.ServiceNotFoundException:liquibase.exception .ServiceNotFoundException:在liquibase.logging.LogLog.logLog.LogFactory.getLog(LogFactory.java:46) liquibase.logging.Logger(LogFactory.java:37)找不到liquibase.logging.Logger 的實現) at liquibase.integration.spring.SpringLiquibase。(SpringLiquibase.java:134) at com.mycompany.myapp.config.DatabaseConfiguration.liquibase(DatabaseConfiguration.java:87) at com.mycompany.myapp.config.DatabaseConfiguration $ $ EnhancerBySpringCGLIB $$ 7370c48f.CGLIB $ liquibase $ 1() at com.mycompany.myapp.config.DatabaseConfiguration $$ EnhancerBySpringCGLIB $$ 7370c48f $$ FastClassBySpringCGLIB $$ cd6ab8fb.invoke() at org.springframework.cglib.proxy.MethodProxy .invokeSuper(MethodProxy.java:228) at org.springframework.context.annotation.ConfigurationClassEnhancer $ BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:309) at com.mycompany.myapp.config.DatabaseConfiguration $$ EnhancerBySpringCGLIB $$ 7370c48f.liquibase () at sun.reflect.Na tiveMethodAccessorImpl.invoke0(本機方法) 在sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 在sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 在java.lang.reflect.Method.invoke (Method.java:606) at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:162) ... 110 more 導致:liquibase.exception.ServiceNotFoundException:liquibase.exception.ServiceNotFoundException :找不到liquibase.logging.Logger liquibase.servicelocator.ServiceLocator.newInstance(ServiceLocator.java:188) liquibase.logging.LogFactory.getLog(LogFactory.java:44) 的執行情況... 123更多 引起者:liquibase.exception.ServiceNotFoundException:無法找到liquibase.logging.Logger的實現at liquibase.servicelocator.ServiceLocator.findClass(ServiceLocator.java:154) at liquibase.servicelocator.ServiceLocator.newInstance (ServiceLocator.java:186) ...124更多

回答

0

看來問題是由於構建鉤子沒有正確執行而引起的。有時我已經獲得了構建鉤子腳本的權限問題。如果是這種情況執行以下內容

chmod +x .openshift/action_hooks/build 
git push 
+0

是的,至少你錯過了/deploy/openshift/.openshift/actions_hooks/中構建動作鉤子上的一個chmod。 –

+0

即使我更改構建執行模式,它不起作用。在應用程序部署期間,我有液體基礎(記錄器不可用?)和spring bean的例外情況。詳情見下文。 –

+0

你可以以某種方式分享完整的日誌嗎?,幾個星期前我收到類似的問題,並在大量類似的日誌條目後面有一個「由NullPointerException引起的」條目或與setUrl –

0

在我看來像maven正試圖autoConfigure你的liquibase插件。我也有這個錯誤。我不想被自動配置liquibase,所以我說這只是我上面的main()的類聲明:

@EnableAutoConfiguration(exclude={LiquibaseAutoConfiguration.class}) 

這擺脫了我的錯誤。

相關問題