点击此处---> 群内免费提供SAP练习系统(在群公告中)加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)我们正尝试建立从Datahub到...
点击此处---> 群内免费提供SAP练习系统(在群公告中)加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)我们正尝试建立从Datahub到...
加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)
我们正尝试建立从Datahub到s/4 hana的连接,并且日志中出现以下错误。 请帮助
2018-05-23 12:32:52,652 [WARN] [chdsExtensionEnabledXmlWebApplicationContext]在上下文初始化期间遇到异常-取消刷新尝试:o rg.springframework.beans.factory.UnsatisfiedDependencyException:创建定义名称为'entityManagerFactory'的bean时出错 在类路径资源[com/hybris/data hub/persistence/jpa/config/HibernateJpaConfig.class]中:通过方法'entityManagerFactory'参数0表示的依赖关系未满足; 嵌套的异常是org.spr ingframework.beans.factory.BeanCreationException:在类路径资源[com/hybris/datahub/persistence/jpa/confi g/DataSourceConfig.class]中创建名称为" dataSource"的bean时出错:通过工厂实例化Bean 方法失败; 嵌套的异常是org.springframework.beans.BeanInstantiationException:无法实例化[javax.sql.DataSource]:工厂方法'dataSource'引发了异常; 嵌套的异常是java.lang.RuntimeException:无法加载驱动程序类com.sap.db.jdbc。 HikariConfig类加载器或Thread上下文类加载器中的驱动程序相关原因:org.springframework.beans.factory.BeanCreationException:在类路径资源中定义名称为" org.springframework.beans.factory.config.MethodInvokingFactory Bean#2"的bean创建时出错 [META-INF/datahub-service-spring.xml]:使用键[0]设置bean属性'argumen ts'时无法解析对bean'dataItemService'的引用; 嵌套的异常是org.springframework.beans.factory.BeanCreationException:创建在路径资源[META-INF/datahub-service-spring.xml]中定义的名称为'defaultDataItemService'的bean时出错:在以下情况下无法解析对bean'rawItemRepository'的引用 设置bean属性'rawItemRepository'; 嵌套的接收是org.springframework.beans.factory.BeanCreationException:创建名称为'jpaRawItemRepository'的bean时出错:持久性依赖项注入失败; 嵌套异常是org.springframework.beans.factory.BeanCurrentlyInCreationException:创建名称为'entityManagerFactory'的bean时出错:正在创建请求的bean:是否存在不可解析的循环引用? 2018-05-23 12:32:52,652 [INFO] [osceEhCacheManagerFactoryBean]关闭EhCache CacheManager 2018-05-23 12:32:52,785 [INFO] [osscThreadPoolTaskExecutor]关闭ExecutorService 2018-05-23 12:32: 52,801 [错误] [oswcContextLoader]上下文初始化失败org.springframework.beans.factory.UnsatisfiedDependencyException:创建在类路径资源[com/hybris/dat ahub/persistence/jpa/config/HibernateJpaConfig中定义的名称为'entityManagerFactory'的bean时出错。 类]:通过方法'entityManagerFactory'参数0表示的不满足的依赖关系; 嵌套异常是org.sp ringframework.beans.factory.BeanCreationException:在类路径资源[com/hybris/datahub/persistence/jpa/conf ig/DataSourceConfig.class]中创建名称为" dataSource"的bean时出错:通过工厂实例化Bean 方法失败; 嵌套的异常是org.springframework.beans.BeanInstantiationException:无法立即实例化[javax.sql.DataSource]:工厂方法'dataSource'引发了异常; 嵌套异常是java.lang.RuntimeException:无法在org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver。的HikariConfig类加载器或Thread上下文类加载器中加载驱动程序类com.sap.db.jdbc .Driver。 java:749)位于org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:467)位于org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.org:org.java:1173) org.springframework.beans.factors.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:513)上的.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1067)在org.springframework.beans.beans.factory.support.AbstractAutowireCapableBean org.springfra上的.createBean(AbstractAutowireCapableBeanFactory.java:483) 在org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)处的mework.beans.factory.support.AbstractBeanFactory $ 1.getObject(AbstractBeanFactory.java:306)在org.springframework.beans.factory.support处 org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)的org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1078的.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) )在org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:857)在org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543)在org.springframework.web.context.ContextLoader。 org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:325)处的configureAndRefreshWebApplicationContext(ContextLoader.java:443)在o rg.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)在org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5157)在org.apache.catalina.core.StandardContext.startInternal( 在org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)在org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:1017)在org.apache.catalina的StandardContext.java:5680) org.apache.catalina.core.Standard.Host.addChild(StandardHost.java:652)的org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:712)的.core.ContainerBase.addChild(ContainerBase.java:993) )在java.util.concurrent.Executors $ RunnableAdapter.call(Executors.java:511)在org.apache.catalina.startup.HostConfig $ DeployDescriptor.run(HostConfig.java:2003)在java.util.concurrent.FutureTask。 在java.util.concurrent.ThreadPoolExecu处运行(FutureTask.java:266)在java.util.concurrent.ThreadPoolExecu处运行(ThreadPoolExecutor.java:1149) java.lang.Thread.run(Thread.java:748)上的tor $ Worker.run(ThreadPoolExecutor.java:624)原因:org.springframework.beans.factory.BeanCreationException:创建名称定义为'dataSource'的bean时出错 类路径资源[com/hybris/datahub/per sistence/jpa/config/DataSourceConfig.class]:通过工厂方法实例化Bean失败; 嵌套的异常是org.springframework.beans.BeanInstantiationException:无法实例化[javax.sql.DataSource]:工厂方法'dataSource'引发了异常; 嵌套的异常是java.lang.RuntimeException:无法在HikariConfig类加载器或Thread上下文类加载器中的org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver)的HikariConfig类加载器中加载驱动程序clas com.sap.db.jdbc.Driver .java:599)(位于org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1173),位于org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1067)。 org.springframework.beans.factory.support上的springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:513)在org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)在org.springframework.beans.factory.support。 org.springframework.b上的AbstractBeanFactory $ 1.getObject(AbstractBeanFactory.java:306) eans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)在org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)在org.springframework.beans.factory.support.AbstractBeanFactory。 org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:208)的org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1138)的getBean(AbstractBeanFactory.java:202) 在org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1066)在org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:835)在org.springframework.beans.factory .support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:741)...省略了28个常见框架造成原因:org.springframework.beans.BeanInstantiationE xception:无法实例化[javax.sql.DataSource]:工厂方法'dataSource'引发异常; 嵌套的例外是java.lang.RuntimeException:无法在HikariConfig类加载器或Thread上下文类加载器中的org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategyy)中加载驱动程序类com.sap.db.jdbc.Driver .java:189),位于org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:588)...省略了41个常见框架原因:java.lang.RuntimeException:无法加载驱动程序类com.sap HikariConfig类加载器或Thread上下文类加载器中的.db.jdbc.Driver,位于com.hybris.datahub.persistence.jpa.config.DataSourceConfig.setDriverClass(com.zaxxer.hikari.HikariConfig.setDriverClassName(HikariConfig.java:340)处 DataSourceConfig.java:138)(com.hybris.datahub.persistence.jpa.config.DataSourceConfig.dataSource(DataSourceConfig.java:96),位于com.hybris.datahub.persistence.jpa.config.DataSourceConfig $$ EnhancerBySpringCGLIB $$ bf391616。 CGLIB $ dataSource $ 1() 在com.hybris.datahub.persistence.jpa.config.DataSourceConfig $$ EnhancerBySpringCGLIB $$ bf391616 $$ FastClassBySpringCGLIB $$ 8d3eee35.invoke()在org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228) org.springframework.context.annotation.ConfigurationClassEnhancer $ BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:358)在com.hybris.datahub.persistence.jpa.config.DataSourceConfig $$ EnhancerBySpringCGLIB $$ bf391616.dataSource()在sun.reflect.NativeMethodAccessorImpl 在sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)的.invoke0(本机方法)在java.lang.reflect.Method.invoke(Method.java)处的sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)的invoke(NativeMethodAccessorImpl.java:43) :498)
下面是datahub local.properties
dataSource.className = com.sap.db.jdbcext.DataSourceSAP dataSource.jdbcUrl = jdbc:sap://54.163.226.95:30015/?reconnect = true dataSource.username = dataSource.password =
atahub.extension.exportURL = <一个rel =" nofollow" hraf=" https://localhost:9002/datahubadapter"> https://localhost:9002/datahubadapter datahub.extension.userName = admin datahub.extension.password = nimda
datahub.server.url = http \://localhost \:8080/datahub-webapp/v1 targetsystem.hybriscore.url = https \://localhost \:9002/datahubadapter targetsystem.hybriscore.url = <相关 =" nofollow" hraf=" https://localhost:9002/datahubadapter"> https://localhost:9002/datahubadapter targetsystem.hybriscore.username = admin targetsystem.hybriscore.password = nimda
apcoreconfiguration.autocompose.pools = GLOBAL,SAPCONFIGURATION_POOL,SAPCUSTOMER_INBOUND_POOL,SAPCONSUMER_INBOUND_POOL,SAPCONSUMER_OUTBOUND_POOL,SAPORDER_INBOUND_POOL,SAPORDER_OUTBOUND_POOL sapcoreconfiguration.autopublish.targetsystemsbypools = GLOBAL.HybrisCore,GLOBAL.SapErpSystem,SAPCUSTOMER_INBOUND_POOL.HybrisCore,SAPCONSUMER_INBOUND_POOL.HybrisCore,SAPCONSUMER_OUTBOUND_POOL.SapErpSystem,SAPORDER_OUTBOUND_POOL。 SapErpSystem,SAPORDER_INBOUND_POOL.HybrisCore sapcoreconfiguration.autopublish.sleeptime:5000 sapcoreconfiguration.autopublish.initialsleeptime:5000 sapcoreconfiguration.pool = SAPCONFIGURATION_POOL sapcustomer.language = zh-CN sapidocoutboundadapter.senderclient = 000
dataSource.driverClass = com.sap.db.jdbc.Driver
一周热门 更多>