ElasticRay on Liferay 6.2EE - Context initialization failed

39 views
Skip to first unread message

soo...@gmail.com

unread,
Jul 7, 2019, 9:51:50 PM7/7/19
to elasticray
name=ElasticRay
module-group-id=Search
module-incremental-version=1.2.0.0
tags=elastic search, search, webs
short-description=Elastic search plugin for liferay
change-log=
author=Rknowsys Technologies
licenses=LGPL
portal-dependency-jars=\
    commons-lang.jar,\
    util-slf4j.jar
long-description=
liferay-versions=6.1.2,6.2.1+,6.2.10+

java -version
java version "1.8.0_191"
Java(TM) SE Runtime Environment (build 1.8.0_191-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.191-b12, mixed mode)


File Upload (LPKG or WAR File)

13:13:38,651 INFO  [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][AutoDeployDir:204] Processing Elasticray (Elasticsearch plugin for liferay).lpkg
13:13:38,652 INFO  [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][LiferayPackageAutoDeployListener:51] Extracting Liferay package for /www/liferay/deploy/Elasticray (Elasticsearch plugin for liferay).lpkg
13:13:38,652 INFO  [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][LiferayPackageAutoDeployer:80] Extracting elasticray-web-1.2.0.0.war from Elasticray (Elasticsearch plugin for liferay).lpkg
13:13:38,691 INFO  [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][LiferayPackageAutoDeployer:80] Extracting liferay-marketplace.properties from Elasticray (Elasticsearch plugin for liferay).lpkg
13:13:38,692 INFO  [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][LiferayPackageAutoDeployListener:57] Liferay package for /www/liferay/deploy/Elasticray (Elasticsearch plugin for liferay).lpkg extracted successfully. Deployment will start in a few seconds.
13:13:41,487 WARN  [http-bio-443-exec-26][SecurityPortletContainerWrapper:630] Reject process action for https://dev.achievementnz.ac.nz/web/guest/home on 49
13:13:48,697 INFO  [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][AutoDeployDir:204] Processing elasticray-web-1.2.0.0.war
13:13:48,698 INFO  [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][WebAutoDeployListener:50] Copying web plugin for /www/liferay/deploy/elasticray-web-1.2.0.0.war
13:13:48,710 INFO  [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][BaseDeployer:863] Deploying elasticray-web-1.2.0.0.war
  Expanding: /www/liferay/deploy/elasticray-web-1.2.0.0.war into /www/bundles/tomcat/liferay-portal-6.2-ee-sp8/tomcat-7.0.42/temp/20190708131348711
  Copying 1 file to /www/bundles/tomcat/liferay-portal-6.2-ee-sp8/tomcat-7.0.42/temp/20190708131348711/WEB-INF
  Copying 1 file to /www/bundles/tomcat/liferay-portal-6.2-ee-sp8/tomcat-7.0.42/temp/20190708131348711/WEB-INF/classes
  Copying 1 file to /www/bundles/tomcat/liferay-portal-6.2-ee-sp8/tomcat-7.0.42/temp/20190708131348711/WEB-INF/classes
13:13:49,256 INFO  [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][BaseDeployer:2391] Modifying Servlet 2.4 /www/bundles/tomcat/liferay-portal-6.2-ee-sp8/tomcat-7.0.42/temp/20190708131348711/WEB-INF/web.xml
  Copying 51 files to /www/bundles/tomcat/liferay-portal-6.2-ee-sp8/tomcat-7.0.42/webapps/elasticray-web
  Copying 1 file to /www/bundles/tomcat/liferay-portal-6.2-ee-sp8/tomcat-7.0.42/webapps/elasticray-web
  Deleting directory /www/bundles/tomcat/liferay-portal-6.2-ee-sp8/tomcat-7.0.42/temp/20190708131348711
13:13:49,340 INFO  [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][WebAutoDeployListener:56] Web plugin for /www/liferay/deploy/elasticray-web-1.2.0.0.war copied successfully. Deployment will start in a few seconds.
Jul 08, 2019 1:13:51 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /www/bundles/tomcat/liferay-portal-6.2-ee-sp8/tomcat-7.0.42/webapps/elasticray-web
13:13:53,285 INFO  [localhost-startStop-3][HotDeployEvent:145] Plugin elasticray-web requires marketplace-portlet
13:13:53,285 INFO  [localhost-startStop-3][HotDeployImpl:217] Deploying elasticray-web from queue
13:13:53,285 INFO  [localhost-startStop-3][PluginPackageUtil:1016] Reading plugin package for elasticray-web
Jul 08, 2019 1:13:54 PM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
13:13:54,660 INFO  [plugins:150] [Knickknack] loaded [], sites []
13:13:55,343 ERROR [localhost-startStop-3][ContextLoader:206] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.rknowsys.portal.search.elastic.client.ClientFactory' defined in ServletContext resource [/WEB-INF/classes/META-INF/elasticsearch-spring.xml]: Invocation of init method failed; nested exception is org.elasticsearch.client.transport.NoNodeAvailableException: None of the configured nodes are available: []
Caused by: org.elasticsearch.client.transport.NoNodeAvailableException: None of the configured nodes are available: []
13:13:55,345 ERROR [localhost-startStop-3][HotDeployImpl:230] com.liferay.portal.kernel.deploy.hot.HotDeployException: Error initializing Spring for elasticray-webelasticray-web
com.liferay.portal.kernel.deploy.hot.HotDeployException: Error initializing Spring for elasticray-webelasticray-web

soo...@gmail.com

unread,
Jul 7, 2019, 10:57:47 PM7/7/19
to elasticray
 Plugin elasticray-web requires marketplace-portlet  ? 

KC

unread,
Jul 8, 2019, 1:04:09 AM7/8/19
to elasticray
The error indicates that you are not running elastic server. Elasticray is a connector between Liferay and Elastic. You need to have Elastic running for elasticray to work. Please note that elasticray is supported for specific versions.

Please read the documentation to get the correct versions of Java, Liferay and Elastic: https://github.com/R-Knowsys/elasticray/wiki

KC

unread,
Jul 8, 2019, 1:05:24 AM7/8/19
to elasticray
Elasticray don't use it nor does it need it but Liferay mandates it I suppose.
Reply all
Reply to author
Forward
0 new messages