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

KonaKart StoreFront Portlet is not available as a Liferay App after deploying

Started by scout23DF, January 15, 2014, 08:03:33 pm

Previous topic - Next topic

scout23DF

I'm trying to make the KonaKart 7.1.1.1 - StoreFront portlet run in a Liferay 6.1.2 / JBoss 7.1 bundle. I'm using Linux Ubuntu 12.

I've installed KonaKart in a separated box on Tomcat and everything works well. The tables and demo data were created with no problem at my PostgreSQL 9.2.

But I need the webshop working inside my Liferay Portal. Then I've made the database connection changes at config files and generated the .war file successfully as said the docs. Then I deploy it to the Liferay bundle and It was deployed with no error. The console shows the messages below:

17:02:15,112 INFO  [stdout] (com.liferay.portal.kernel.deploy.auto.AutoDeployScanner) 17:02:15,111 INFO  [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][PortletAutoDeployListener:89] Portlets for /java/AmbDesLiferayNT/AppServers/BundlesLiferay-6.1.2-GA3/deploy/konakart.war copied successfully. Deployment will start in a few seconds.
17:02:18,191 INFO  [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 2) JBAS015003: Found konakart.war in deployment directory. To trigger deployment create a file called konakart.war.dodeploy
17:02:18,197 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-6) JBAS015876: Starting deployment of "konakart.war"
17:02:19,324 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry jsr173_1.0_api.jar in "/java/AmbDesLiferayNT/AppServers/BundlesLiferay-6.1.2-GA3/jboss-7.1.1/standalone/deployments/konakart.war/WEB-INF/lib/jaxb-impl.jar"  does not point to a valid jar for a Class-Path reference.
17:02:19,324 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry jaxb1-impl.jar in "/java/AmbDesLiferayNT/AppServers/BundlesLiferay-6.1.2-GA3/jboss-7.1.1/standalone/deployments/konakart.war/WEB-INF/lib/jaxb-impl.jar"  does not point to a valid jar for a Class-Path reference.
17:02:19,863 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-7) JBAS010404: Deploying non-JDBC-compliant driver class org.postgresql.Driver (version 9.2)
17:02:19,945 INFO  [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-1) Inicializando Mojarra 2.1.7-jbossorg-1 (20120227-1401) para o contexto '/konakart'
17:02:20,083 INFO  [com.konakart.al.KKAppEng] (MSC service thread 1-1) Initialising From Servlet
17:02:20,083 INFO  [com.konakart.al.KKAppEng] (MSC service thread 1-1) Single Store
17:02:20,084 INFO  [com.konakart.al.KKAppEng] (MSC service thread 1-1) kkAppEng using configuration file: vfs:/java/AmbDesLiferayNT/AppServers/BundlesLiferay-6.1.2-GA3/jboss-7.1.1/standalone/deployments/konakart.war/WEB-INF/classes/konakart_app.properties
17:02:20,861 INFO  [stdout] (MSC service thread 1-1)
17:02:20,861 INFO  [stdout] (MSC service thread 1-1) **********************************************************************************
17:02:20,861 INFO  [stdout] (MSC service thread 1-1) * KONAKART LICENSE AGREEMENT                                                     *
17:02:20,861 INFO  [stdout] (MSC service thread 1-1) * You may not use this software except in compliance with the licenses.          *
17:02:20,861 INFO  [stdout] (MSC service thread 1-1) * Please study the licenses on the KonaKart website  for the rights, obligations *
17:02:20,862 INFO  [stdout] (MSC service thread 1-1) * and limitations governing the use of this software.                            *
17:02:20,862 INFO  [stdout] (MSC service thread 1-1) * For users of the Community Edition of KonaKart see:                            *
17:02:20,862 INFO  [stdout] (MSC service thread 1-1) *         http://www.konakart.com/documents/COMMUNITY-LICENSE.txt                *
17:02:20,862 INFO  [stdout] (MSC service thread 1-1) * For users of the Enterprise Extensions of KonaKart see:                        *
17:02:20,862 INFO  [stdout] (MSC service thread 1-1) *         http://www.konakart.com/documents/ENTERPRISE-LICENSE.txt               *
17:02:20,862 INFO  [stdout] (MSC service thread 1-1) **********************************************************************************
17:02:20,863 INFO  [stdout] (MSC service thread 1-1) KonaKart V7.1.1.1-C built 5:53AM 12-Sep-2013 BST [DB: 7.1.1.0 PostgreSQL]
17:02:20,863 INFO  [stdout] (MSC service thread 1-1)
17:02:20,883 WARN  [com.konakart.al.KKAppEng] (MSC service thread 1-1) Thread Storefront-Cache-Updater - store1 not registered for shutdown - no kkContextListener found
17:02:20,883 WARN  [com.konakart.servlet.AppEngServlet] (MSC service thread 1-1) Thread KonaKartAppEngineServlet - com.konakart.servlet.AppEngServlet not registered for shutdown - no kkContextListener found
17:02:20,884 INFO  [org.jboss.web] (MSC service thread 1-1) JBAS018210: Registering web context: /konakart
17:02:21,115 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 1) JBAS018559: Deployed "konakart.war"


But when I go to the Liferay Control Panel, at "Plugins Installation" I could not see the KonaKart StoreFront portlet available. I don't get to add the KonaKart portlet to any page, because It's not shown at the Applications list.

It happens too with Liferay 6.2.0, even after I've made the changes said at this topic: http://www.konakart.com/forum/index.php/topic,1889.msg7350.html#msg7350

Could anyone help me with this mistery?

Thanks a lot.

ming

You should be able to load these portlets ok in those LR versions.  We include those in our standard test suites.

How exactly are you creating your portlets?

scout23DF

I'm building both storefront and admin portlets as described at "LiferayPortletInstallation.pdf" file. The steps were:

1) I'm using PostgreSQL 9.2, then I removed from "konakart\webapps\konakart\WEB-INF\lib" the jdbc drivers that won't be used (MySQL, MS SQL Server, Oracle);
2) I've edited the config file "konakart\webapps\konakart\WEB-INF\classes\konakart.properties" with my right database connection settings;
3) I typed the command: "[Drive]\KonaKart\custom>.\bin\kkant make_liferay_portlet_war -DLR6120=true -Djboss=true -Djbossliferay=true" ;
4) I extracted the "konakart.war" generated and included the following jars at "\WEB-INF\lib":
   - portal-service-6.1.2.jar
   - portlet.jar
   - util-taglib.jar
5) I've checked the liferay-portlet config files: "liferay-plugin-package.xml", "liferay-plugin-package.properties", "portlet.xml";
6) I've zipped my directory and make a new "konakart.war";
6) I started my Liferay 6.1.2-GA3 JBossAS 7.1.1 Bundle:
7) I deployed the "konakart.war" at the right directory. The Liferay starts and finishes the deploy successfully;
8) I go to the Control Panel and I cannot see the "KonaKart Storefront" portlet available for use.

My environment is:
  - Linux Ubuntu 12;
  - Oracle JDK 6.0;
  - Apache Ant 7;
  - KonaKart-7.1.1.1  (I've downloaded the "KonaKart-7.1.1.1.zip" file);
  - Liferay 6.1.2-GA3  (And I've tested with Liferay 6.2.0-GA1 too);
  - PostgreSQL 9.2;

Can you see any wrong step?

Please, help me. I need to make this work fine until next wednesday, january, 22.

Thanks.

ming


You should probably set some logging in Liferay to see why your portlets aren't being deployed successfully.

One thing I would try first is to eliminate AXIS from the portlets by adding -DnoAXIS=true

You should be OK on those versions.   I agree it can be frustrating as the error reporting from Liferay when portlets don't deploy correctly isn't at all helpful.

Invariably the problems are to do with incompatible jars.  However, it's not always easy to figure out which are incompatible with each version and app server type.