Hybris Commerce Build在Azure VM上初始化失败

时间:2016-06-07 13:14:32

标签: initialization hybris

我想在Azure VM(Windows Server 2012,D13配置)上安装Hybris Commerce 5.7进行测试。 install.bat -r b2c_acc命令构建成功,但在install.bat -r b2c_acc 初始化时出现以下错误:

     [java] ERROR [main] [DefaultSolrServerService] de.hybris.platform.solrserver.SolrServerException: Error while executing Solr start command for instance: [name: default, port:
8983]
     [java] WARN  [main] [CloseAwareApplicationContext] Exception encountered during context initialization - cancelling refresh attempt
     [java] org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultSolrServerService' defined in class path resource [global-solrserver-spri
ng.xml]: Invocation of init method failed; nested exception is de.hybris.platform.solrserver.SolrServerException: Error while executing Solr start command for instance: [name: defa
ult, port: 8983]
     [java]     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1574)
     [java]     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539)
     [java]     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
     [java]     at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)
     [java]     at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
     [java]     at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)
     [java]     at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
     [java]     at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:755)
     [java]     at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:757)
     [java]     at org.springframework.context.support.AbstractApplicationContext.refresh(AbsttApplicationContext.java:480)
     [java]     at de.hybris.platform.core.HybrisContextFactory.refreshContext(HybrisContextFactory.java:98)
     [java]     at de.hybris.platform.core.HybrisContextFactory$GlobalContextFactory.build(HybrisContextFactory.java:176)
     [java]     at de.hybris.platform.core.HybrisContextHolder.getGlobalInstanceCached(HybrisContextHolder.java:134)
     [java]     at de.hybris.platform.core.HybrisContextHolder.getGlobalInstance(HybrisContextHolder.java:113)
     [java]     at de.hybris.platform.core.Registry.getSingletonGlobalApplicationContext(Registry.java:1059)
     [java]     at de.hybris.platform.cache.impl.RegionCacheAdapter.getController(RegionCacheAdapter.java:76)
     [java]     at de.hybris.platform.cache.impl.RegionCacheAdapter.getOrAddUnit(RegionCacheAdapter.java:206)
     [java]     at de.hybris.platform.cache.AbstractCacheUnit.get(AbstractCacheUnit.java:180)
     [java]     at de.hybris.platform.persistence.type.ComposedType_HJMPWrapper$FindByCodeExact1FinderResult.getFinderResult(ComposedType_HJMPWrapper.java:1727)
     [java]     at de.hybris.platform.persistence.type.ComposedType_HJMPWrapper.ejbFindByCodeExact(ComposedType_HJMPWrapper.java:1786)
     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
     [java]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
     [java]     at java.lang.reflect.Method.invoke(Unknown Source)
     [java]     at de.hybris.platform.util.Utilities.callMethod(Utilities.java:1069)
     [java]     at de.hybris.platform.util.Utilities.callMethod(Utilities.java:1059)
     [java]     at de.hybris.platform.persistence.framework.HomeInvocationHandler.invoke(HomeInvocationHandler.java:93)
     [java]     at com.sun.proxy.$Proxy3.findByCodeExact(Unknown Source)
     [java]     at de.hybris.platform.persistence.type.TypeManagerEJB.findByCodeExact(TypeManagerEJB.java:271)
     [java]     at de.hybris.platform.persistence.type.TypeManagerEJB.getComposedType(TypeManagJB.java:459)
     [java]     at de.hybris.platform.util.migration.DeploymentMigrationUtil.migrateSelectedDeployments(DeploymentMigrationUtil.java:458)
     [java]     at de.hybris.platform.core.AbstractTenant.migrateCoreTypes(AbstractTenant.java:910)
     [java]     at de.hybris.platform.core.AbstractTenant.doStartupSafe(AbstractTenant.java:716)
     [java]     at de.hybris.platform.core.AbstractTenant.doStartUp(AbstractTenant.java:658)
     [java]     at de.hybris.platform.core.Registry.assureTenantStarted(Registry.java:639)
     [java]     at de.hybris.platform.core.Registry.activateTenant(Registry.java:700)
     [java]     at de.hybris.platform.core.Registry.setCurrentTenant(Registry.java:544)
     [java]     at de.hybris.platform.core.Registry.activateMasterTenantForInit(Registry.java:616)
     [java]     at de.hybris.platform.util.ClientExecuter.execute(ClientExecuter.java:36)
     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
     [java]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
     [java]     at java.lang.reflect.Method.invoke(Unknown Source)
     [java]     at de.hybris.bootstrap.loader.Loader.execute(Loader.java:145)
     [java]     at de.hybris.bootstrap.loader.Loader.main(Loader.java:121)

我将8983端口添加到VM的端点,但这没有帮助。

知道导致此错误的原因是什么?

2 个答案:

答案 0 :(得分:1)

我很确定你有使用你的端口8983的东西,我会说它可能是另一个Solr实例。尝试访问

http://localhost:8983/solr

如果您能够访问solr服务器,那就是您的问题。您可以停止从hybris / bin / platform运行此命令:

ant stopSolrServer

为了避免这种情况发生,每当你停止你的hybris实例时,你应该等待Solr优雅地完成,而不是试图多次杀死该进程。

答案 1 :(得分:0)

找到解决方案:使用Azure管理员用户预先安装的初始化过程很好。不知道为什么它不适用于我的其他帐户,该帐户设置为admin。