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

NullPointerException Konakart on LifeRay Geronimo CE 6.0.6 bundle with MySQL

Started by mw00066, August 11, 2011, 07:57:45 pm

Previous topic - Next topic

mw00066

Running LifeRay Geronimo CE 6.0.6 bundle with MySQL
Konakart, as you may know is a struts component and takes advantage of com.liferay.util.bridges.struts.LiferayPortletServlet
We have konakart running on LifeRay 6.0.6/Tomcat bundle fine

However on Geronimo 2.2.0 /Liferay CE 6.0.6 bundle we are getting java.lang.NullPointerException when deploying konakart via liferay console or copying to LifeRay autodeploy dir:

04:34:39,104 INFO [AutoDeployDir:105] Auto deploy scanner started for /export/opt/LifeRay/liferay-portal-6.0.6/deploy
04:38:19,244 INFO [AutoDeployDir:167] Processing konakart.war
04:38:19,247 INFO [PortletAutoDeployListener:71] Copying portlets for /export/opt/LifeRay/liferay-portal-6.0.6/deploy/konakart.war
Expanding: /export/opt/LifeRay/liferay-portal-6.0.6/deploy/konakart.war into /export/opt/LifeRay/liferay-portal-6.0.6/geronimo-2.2.0/var/temp/20110811043819251
Copying 1 file to /export/opt/LifeRay/liferay-portal-6.0.6/geronimo-2.2.0/var/temp/20110811043819251/WEB-INF/classes
java.lang.NullPointerException
at com.liferay.portal.tools.deploy.BaseDeployer.updateGeronimoWebXml(BaseDeployer.java:1375)
at com.liferay.portal.tools.deploy.BaseDeployer.deployDirectory(BaseDeployer.java:489)
at com.liferay.portal.tools.deploy.BaseDeployer.deployFile(BaseDeployer.java:828)
at com.liferay.portal.tools.deploy.BaseDeployer.deployFile(BaseDeployer.java:765)
at com.liferay.portal.tools.deploy.BaseDeployer.deploy(BaseDeployer.java:454)
at com.liferay.portal.deploy.auto.PortletAutoDeployer.autoDeploy(PortletAutoDeployer.java:92)
at com.liferay.portal.deploy.auto.PortletAutoDeployListener.deploy(PortletAutoDeployListener.java:78)
at com.liferay.portal.kernel.deploy.auto.AutoDeployDir.processFile(AutoDeployDir.java:180)
at com.liferay.portal.kernel.deploy.auto.AutoDeployDir.scanDirectory(AutoDeployDir.java:221)
at com.liferay.portal.kernel.deploy.auto.AutoDeployScanner.run(AutoDeployScanner.java:49)
04:38:21,844 INFO [PortletAutoDeployListener:81] Portlets for /export/opt/LifeRay/liferay-portal-6.0.6/deploy/konakart.war copied successfully. Deployment will start in a few seconds.

I have very simple geronimo-web.xml
<?xml version="1.0" encoding="UTF-8"?>

<web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-1.1">;
<environment>
<moduleId>
<groupId>liferay</groupId>
<artifactId>konakart</artifactId>
<version>6.0.6.1</version>
<type>car</type>
</moduleId>
<dependencies>
<dependency>
<artifactId>sharedlib</artifactId>
</dependency>
</dependencies>
<!--<inverse-classloading />-->
</environment>
</web-app>

I also added util-bridges.jar to Geronimo shared lib which I shouldn't really need to do as it is in liferay-portal.war

[clouduser@XXXX lib]$ ls
hsql.jar jtds.jar mysql.jar portal-service.jar portlet.jar postgresql.jar util-bridges.jar
[clouduser@XXXXXX lib]$ pwd
/export/opt/LifeRay/liferay-portal-6.0.6/geronimo-2.2.0/var/shared/lib