• Welcome to KonaKart Community Forum. Please login or sign up.
 

Installing konakart admin console in liferay

Started by ganesh6806@gmail.com, March 13, 2015, 11:07:06 am

Previous topic - Next topic

ganesh6806@gmail.com

We are using liferay 6.2 EE GA1 version. we were trying to integrate konakart with liferay. we followed the instruction manual.

http://www.konakart.com/docs/LiferayPortletInstallation.pdf

First we downloaded Konakart storefront from liferay market place and installed in liferay, the portlet installed successfully, the link suggest to install admin console to setupthe store.

We are able to extract the admin war for LifeRay 6.2 EE GA1 version but we are facing some error to start the component.

Any one please suggest us how it can be done to set up the store.

Please find the below Trace:
SEVERE: ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/konakartadmin]]
          at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
          at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
          at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
          at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
          at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1113)
          at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1671)
          at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
          at java.util.concurrent.FutureTask.run(FutureTask.java:262)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
          at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NoClassDefFoundError: Lorg/apache/commons/logging/Log;
          at java.lang.Class.getDeclaredFields0(Native Method)
          at java.lang.Class.privateGetDeclaredFields(Class.java:2436)
          at java.lang.Class.getDeclaredFields(Class.java:1806)
          at org.apache.catalina.util.Introspection.getDeclaredFields(Introspection.java:106)
          at org.apache.catalina.startup.WebAnnotationSet.loadFieldsAnnotation(WebAnnotationSet.java:263)
          at org.apache.catalina.startup.WebAnnotationSet.loadApplicationServletAnnotations(WebAnnotationSet.java:142)
          at org.apache.catalina.startup.WebAnnotationSet.loadApplicationAnnotations(WebAnnotationSet.java:67)
          at org.apache.catalina.startup.ContextConfig.applicationAnnotationsConfig(ContextConfig.java:405)
          at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:881)
          at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:376)
          at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
          at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
          at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5322)
          at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
          ... 10 more
Caused by: java.lang.ClassNotFoundException: org.apache.commons.logging.Log
          at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714)
          at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)
          ... 24 more

Feb 05, 2015 12:28:07 PM org.apache.catalina.startup.HostConfig deployDirectory
SEVERE: Error deploying web application directory /L01/liferay-portal-6.2-ee-sp9/tomcat-7.0.42/webapps/konakartadmin
java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/konakartadmin]]
          at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:904)
          at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
          at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
          at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1113)
          at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1671)
          at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
          at java.util.concurrent.FutureTask.run(FutureTask.java:262)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
          at java.lang.Thread.run(Thread.java:745)

ming

Liferay 6.2 EE GA1 is one of the platforms we test on automatically so you should be able to get it installed.

Perhaps you didn't create the portlet WAR with the right switches for the ANT task?

What did you use?


ganesh6806@gmail.com

Thank you for your reply. :)

The following ant command is used for created the konakart admin portlet war.

D:\liferay\KonaKart\custom>.\bin\ant make_liferay_portlet_war
make_admin_liferay_portlet_war
-DnoAXIS=true
-DLR605=true

Kindly suggest what is the right way for liferay 6.2 EE GA1 version.

Thank You

ming

For some reason you have used -D605   (that's for Liferay 6.0.5 - not the version of Liferay you're using).

You should use -DLR6210=true

ganesh6806@gmail.com

I have used the following ant command.

.\bin\ant make_liferay_portlet_war make_admin_liferay_portlet_war -DnoAXIS=true -DLR6210=true

Tried to deploy the admin war in liferay.

we are able to view the store front and we also able to place admin portlet.

but it shows "KonaKart Administration is temporarily unavailable."

Also ,we have got the below log trace.

Mar 16, 2015 5:00:37 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /L01/liferay-portal-6.2-ee-sp9/tomcat-7.0.42/webapps/konakart-portlet
05:00:39,300 INFO  [localhost-startStop-3][HotDeployEvent:145] Plugin konakart-portlet requires marketplace-portlet
05:00:39,301 INFO  [localhost-startStop-3][HotDeployImpl:217] Deploying konakart-portlet from queue
05:00:39,301 INFO  [localhost-startStop-3][PluginPackageUtil:1016] Reading plugin package for konakart-portlet
Mar 16, 2015 5:00:40 AM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
05:00:40,135 INFO  [localhost-startStop-3][PortletHotDeployListener:343] Registering portlets for konakart-portlet
05:00:41,109 INFO  [localhost-startStop-3][PortletHotDeployListener:490] 1 portlet for konakart-portlet is available for use
java.net.UnknownHostException: www.konakart.com
   at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:178)
   at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
   at java.net.Socket.connect(Socket.java:579)
   at java.net.Socket.connect(Socket.java:528)
   at sun.net.NetworkClient.doConnect(NetworkClient.java:180)
   at sun.net.www.http.HttpClient.openServer(HttpClient.java:432)
   at sun.net.www.http.HttpClient.openServer(HttpClient.java:527)
   at sun.net.www.http.HttpClient.<init>(HttpClient.java:211)
   at sun.net.www.http.HttpClient.New(HttpClient.java:308)
   at sun.net.www.http.HttpClient.New(HttpClient.java:326)
   at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:996)
   at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:932)
   at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:850)
   at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1091)
   at com.konakart.json.KKJSONEngBase.postRequest(Unknown Source)
   at com.konakart.json.KKJSONEng.getStoreIds(Unknown Source)
   at com.konakart.al.KKAppEng.initFromServlet(Unknown Source)
   at com.konakart.al.KKAppEng.<init>(Unknown Source)
   at com.konakart.servlet.AppEngServlet.init(Unknown Source)
   at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1280)
   at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1193)
   at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1088)
   at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5176)
   at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5460)
   at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
   at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
   at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
   at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
   at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1113)
   at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1671)
   at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
   at java.util.concurrent.FutureTask.run(FutureTask.java:262)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
   at java.lang.Thread.run(Thread.java:745)
16-Mar 05:00:41 ERROR (?:init:?) Exception attempting to start the KonaKart Client Engine from a servlet
com.konakart.app.KKException: Unexpected Exception (java.net.UnknownHostException) caught in getStoreIds : www.konakart.com
   at com.konakart.json.KKJSONEngBase.handleThrowable(Unknown Source)
   at com.konakart.json.KKJSONEng.getStoreIds(Unknown Source)
   at com.konakart.al.KKAppEng.initFromServlet(Unknown Source)
   at com.konakart.al.KKAppEng.<init>(Unknown Source)
   at com.konakart.servlet.AppEngServlet.init(Unknown Source)
   at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1280)
   at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1193)
   at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1088)
   at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5176)
   at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5460)
   at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
   at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
   at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
   at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
   at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1113)
   at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1671)
   at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
   at java.util.concurrent.FutureTask.run(FutureTask.java:262)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
   at java.lang.Thread.run(Thread.java:745)

Kindly suggest.

ming

It looks like you're trying to use JSON from your storefront portlet with the Community Edition (which doesn't support JSON).   Instead you would need to generate a portlet from your downloaded Community Edition and install that.  You should not be trying to connect to the KonaKart engine using JSON in that version.   Could it be that you've mixed up the portlet you downloaded from the Liferay Marketplace with the one you generated from the downloaded Community Edition?