Re: Liferay 4.2.0 and Geronimo 1.1.1 runing with mysql
Hi all After trying lots of alternatives to get Liferay 4.2.0 running in Geronimo 1.1.1 without getting a java.lang.OutOfMemoryError: PermGen space or other errors i finally got it up an running. The setup I ended up with was a slightly modify liferay-portal-geronimo-tomcat-4.2.0.car to match the mysql database pool settings by editing the geronimo-web.xml file in the car:s /WEB-INF/ dir. Obs! you do not need to do this modifications if you intend to use the derby database pool car file that are part of the liferay download files at http://www.liferay.com/web/guest/downloads the thing you may need to take a look at is the Memory settings section below. Setup Instruction ¨¨¨ The following is a short setup instruction that hopefully will help other Geronimo users to get Liferay up and running smoothly with a mysql database back end. Memory settings: ¨¨¨ This is the memory settings i found useful JAVA_OPTS=-Djava.awt.headless=true -XX:MaxPermSize=128m -Xms128M -Xmx1024M -server -Dfile.encoding=UTF8 -Duser.timezone=GMT The important part here is the -XX:MaxPermSize setting as the default 64m did not work (on my machine). Thanks Kevan for the hint, I though i had it right. Database setup: ¨¨ Download the liferay-portal-sql-4.2.0.zip extract and run the create-mysql.sql script it will create a database called lportal for you. For better performance you should also extract and run the indexes-mysql.sql file. Setting up the pool is easily done using the geronimo database pool wizard giving the pool the name LifrayPool and database type MySQL setting the (your preferred) user and password combo. This will create a J2EE connector with the following component name console.dbpool/LiferayPool/1.0/rar. Modifying geronimo-web.xml to match the db pool: ¨¨ Extract the /WEB-INF/geronimo-web.xml file from the liferay-portal-geronimo-tomcat-4.2.0.car and change the pool dependency settings to match your mysql pool from dependency groupIdliferay/groupId artifactIdliferay-pool/artifactId typecar/type /dependency to dependency groupIdconsole.dbpool/groupId artifactIdLiferayPool/artifactId typerar/type /dependency (note: don't miss the type change) * Replace the the files in the liferay-portal-geronimo-tomcat-4.2.0.car file with your changes. * Stop the geronimo welcome app. (as it is running at the root /). * deploy the modified liferay-portal-geronimo-tomcat-4.2.0.car file and you should be up and running. I hope these instructions comes in handy ;) Cheers Peter Peter Petersson skrev: My JAVA_OPTS is fine. I decided to try out the MySql setup using liferay-portal-4.2.0.war, liferay-portal-sql-4.2.0.zip, liferay-portal-dependencies-4.2.0.zip and roughly following the 4.0 install doc http://content.liferay.com/4.0.0/docs/install/ch01s01.html After modifying the geronomo-web.xml file to match my database pool settings i manage to load liferay into geronomo but when starting it i get the following error. ERROR [[/liferay]] Error configuring application listener of class com.liferay.portal.servlet.PortalSessionListener java.lang.NoClassDefFoundError: com/liferay/portal/PortalException : and yes looking in the portal-kernel-2.4.jar (and the other dependency jars) checking for the com.liferay.portal.servlet path it dose not exist, without looking at the source code the closest you get to the package path is com.liferay.portal.kernel.servlet It seems that ether the web.xml file or the portal-kernel-2.4.jar file has been packed wrongly. Dose anyone familiar with Liferay know whats going on? As I mentioned i modified the geronimo-web.xml file a bit as it assumed a dependency (and context root) as follows dependency groupIdliferay/groupId artifactIdliferay-pool/artifactId typecar/type /dependency context-root//context-root to the following using the geronimo database pool wizard to set up the mysql pool and changing the context root to /liferay so that it would not clash with the welcome app. dependency groupIdconsole.dbpool/groupId artifactIdLiferayPool/artifactId typerar/type /dependency context-root/liferay/context-root This worked find and geronimo accepted the plan and deployed the liferay app. Assuming I get hold of the right dependancy jar:s (or already have them) should they maybe be set up as dependency:s in the geronimo-web.xml file to make sure the classes get loaded? /Peter Kevan Miller skrev: On Dec 14, 2006, at 3:40 PM, Peter Petersson wrote: Well I found a 4.0 install doc http://content.liferay.com/4.0.0/docs/install/ch01s01.html about installing in Geronimo 1.1 using a MySql database i will try follow that guide when i get the time but feel free to point me to more of this stuff. /Peter Peter Petersson skrev: Hi all Liferay 4.1.0 just got public ;) (yesterday) but I'm having problem getting it
Re: Liferay 4.2.0 and Geronimo 1.1.1 runing with mysql
On Dec 29, 2006, at 7:10 AM, Peter Petersson wrote: Setup Instruction ¨¨¨ The following is a short setup instruction that hopefully will help other Geronimo users to get Liferay up and running smoothly with a mysql database back end. Peter, Thanks very much for posting these instructions! They look excellent. Glad to hear you're up and running... --kevan
Re: Liferay 4.2.0 and Geronimo 1.1.1 runing with mysql
A couple of things i forgot to mention * If you get a Sum file already exists error wile deploying remove the META-INF/config.ser.sh1 file from the liferay-portal-geronimo-tomcat-4.2.0.car * Correction: You don't need to run the mysql-index script as the index:s is already there. /Peter Peter Petersson skrev: Hi all After trying lots of alternatives to get Liferay 4.2.0 running in Geronimo 1.1.1 without getting a java.lang.OutOfMemoryError: PermGen space or other errors i finally got it up an running. The setup I ended up with was a slightly modify liferay-portal-geronimo-tomcat-4.2.0.car to match the mysql database pool settings by editing the geronimo-web.xml file in the car:s /WEB-INF/ dir. Obs! you do not need to do this modifications if you intend to use the derby database pool car file that are part of the liferay download files at http://www.liferay.com/web/guest/downloads the thing you may need to take a look at is the Memory settings section below. Setup Instruction ¨¨¨ The following is a short setup instruction that hopefully will help other Geronimo users to get Liferay up and running smoothly with a mysql database back end. Memory settings: ¨¨¨ This is the memory settings i found useful JAVA_OPTS=-Djava.awt.headless=true -XX:MaxPermSize=128m -Xms128M -Xmx1024M -server -Dfile.encoding=UTF8 -Duser.timezone=GMT The important part here is the -XX:MaxPermSize setting as the default 64m did not work (on my machine). Thanks Kevan for the hint, I though i had it right. Database setup: ¨¨ Download the liferay-portal-sql-4.2.0.zip extract and run the create-mysql.sql script it will create a database called lportal for you. For better performance you should also extract and run the indexes-mysql.sql file. Setting up the pool is easily done using the geronimo database pool wizard giving the pool the name LifrayPool and database type MySQL setting the (your preferred) user and password combo. This will create a J2EE connector with the following component name console.dbpool/LiferayPool/1.0/rar. Modifying geronimo-web.xml to match the db pool: ¨¨ Extract the /WEB-INF/geronimo-web.xml file from the liferay-portal-geronimo-tomcat-4.2.0.car and change the pool dependency settings to match your mysql pool from dependency groupIdliferay/groupId artifactIdliferay-pool/artifactId typecar/type /dependency to dependency groupIdconsole.dbpool/groupId artifactIdLiferayPool/artifactId typerar/type /dependency (note: don't miss the type change) * Replace the the files in the liferay-portal-geronimo-tomcat-4.2.0.car file with your changes. * Stop the geronimo welcome app. (as it is running at the root /). * deploy the modified liferay-portal-geronimo-tomcat-4.2.0.car file and you should be up and running. I hope these instructions comes in handy ;) Cheers Peter Peter Petersson skrev: My JAVA_OPTS is fine. I decided to try out the MySql setup using liferay-portal-4.2.0.war, liferay-portal-sql-4.2.0.zip, liferay-portal-dependencies-4.2.0.zip and roughly following the 4.0 install doc http://content.liferay.com/4.0.0/docs/install/ch01s01.html After modifying the geronomo-web.xml file to match my database pool settings i manage to load liferay into geronomo but when starting it i get the following error. ERROR [[/liferay]] Error configuring application listener of class com.liferay.portal.servlet.PortalSessionListener java.lang.NoClassDefFoundError: com/liferay/portal/PortalException : and yes looking in the portal-kernel-2.4.jar (and the other dependency jars) checking for the com.liferay.portal.servlet path it dose not exist, without looking at the source code the closest you get to the package path is com.liferay.portal.kernel.servlet It seems that ether the web.xml file or the portal-kernel-2.4.jar file has been packed wrongly. Dose anyone familiar with Liferay know whats going on? As I mentioned i modified the geronimo-web.xml file a bit as it assumed a dependency (and context root) as follows dependency groupIdliferay/groupId artifactIdliferay-pool/artifactId typecar/type /dependency context-root//context-root to the following using the geronimo database pool wizard to set up the mysql pool and changing the context root to /liferay so that it would not clash with the welcome app. dependency groupIdconsole.dbpool/groupId artifactIdLiferayPool/artifactId typerar/type /dependency context-root/liferay/context-root This worked find and geronimo accepted the plan and deployed the liferay app. Assuming I get hold of the right dependancy jar:s (or already have them) should they maybe be set up as dependency:s in the geronimo-web.xml file to make sure the classes get loaded? /Peter Kevan Miller skrev: On Dec 14, 2006, at 3:40 PM, Peter Petersson wrote: Well I found a 4.0 install doc
Re: Liferay 4.2.0 and Geronimo 1.1.1
My JAVA_OPTS is fine. I decided to try out the MySql setup using liferay-portal-4.2.0.war, liferay-portal-sql-4.2.0.zip, liferay-portal-dependencies-4.2.0.zip and roughly following the 4.0 install doc http://content.liferay.com/4.0.0/docs/install/ch01s01.html After modifying the geronomo-web.xml file to match my database pool settings i manage to load liferay into geronomo but when starting it i get the following error. ERROR [[/liferay]] Error configuring application listener of class com.liferay.portal.servlet.PortalSessionListener java.lang.NoClassDefFoundError: com/liferay/portal/PortalException : and yes looking in the portal-kernel-2.4.jar (and the other dependency jars) checking for the com.liferay.portal.servlet path it dose not exist, without looking at the source code the closest you get to the package path is com.liferay.portal.kernel.servlet It seems that ether the web.xml file or the portal-kernel-2.4.jar file has been packed wrongly. Dose anyone familiar with Liferay know whats going on? As I mentioned i modified the geronimo-web.xml file a bit as it assumed a dependency (and context root) as follows dependency groupIdliferay/groupId artifactIdliferay-pool/artifactId typecar/type /dependency context-root//context-root to the following using the geronimo database pool wizard to set up the mysql pool and changing the context root to /liferay so that it would not clash with the welcome app. dependency groupIdconsole.dbpool/groupId artifactIdLiferayPool/artifactId typerar/type /dependency context-root/liferay/context-root This worked find and geronimo accepted the plan and deployed the liferay app. Assuming I get hold of the right dependancy jar:s (or already have them) should they maybe be set up as dependency:s in the geronimo-web.xml file to make sure the classes get loaded? /Peter Kevan Miller skrev: On Dec 14, 2006, at 3:40 PM, Peter Petersson wrote: Well I found a 4.0 install doc http://content.liferay.com/4.0.0/docs/install/ch01s01.html about installing in Geronimo 1.1 using a MySql database i will try follow that guide when i get the time but feel free to point me to more of this stuff. /Peter Peter Petersson skrev: Hi all Liferay 4.1.0 just got public ;) (yesterday) but I'm having problem getting it running in Geronimo 1.1.1. I have tried both the liferay-portal-geronimo-tomcat-4.2.0.car plugin (with the dbpool liferay-portal-geronimo-derby-pool-4.2.0.car) and the Liferay Portal Enterprise 4.2.0 (Bundled with Geronimo+Tomcat) Using: java version 1.5.0_06 with Ubuntu Linux on a amd64 with 1G memory. Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05) Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_06-b05, mixed mode) I get 18:32:54,909 INFO [DynamicDialect] Determining dialect for Apache Derby 10 18:32:54,944 INFO [DynamicDialect] Using dialect org.hibernate.dialect.DerbyDialect 18:33:04,093 INFO [HotDeployUtil] Initializing hot deploy manager 1614911248 18:33:04,128 INFO [ServerDetector] Detected server geronimo 18:33:04,550 INFO [AutoDeployDir] Auto deploy scanner started for /home/liferay/deploy 18:51:26,144 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception java.lang.OutOfMemoryError: PermGen space Has anyone else got it up and running on G1.1.1? Anny ideas about what may be wrong here or pointers to something i may have missed? Hi Peter, I haven't tried deploying Liferay. If you haven't already, suggest you bump up your PermGen space with something like: export JAVA_OPTS=-XX:MaxPermSize=128m (if you're already setting JAVA_OPTS, adjust accordingly...) Let us know how things go... --kevan
Re: Liferay 4.2.0 and Geronimo 1.1.1
On Dec 14, 2006, at 3:40 PM, Peter Petersson wrote: Well I found a 4.0 install doc http://content.liferay.com/4.0.0/ docs/install/ch01s01.html about installing in Geronimo 1.1 using a MySql database i will try follow that guide when i get the time but feel free to point me to more of this stuff. /Peter Peter Petersson skrev: Hi all Liferay 4.1.0 just got public ;) (yesterday) but I'm having problem getting it running in Geronimo 1.1.1. I have tried both the liferay-portal-geronimo-tomcat-4.2.0.car plugin (with the dbpool liferay-portal-geronimo-derby-pool-4.2.0.car) and the Liferay Portal Enterprise 4.2.0 (Bundled with Geronimo+Tomcat) Using: java version 1.5.0_06 with Ubuntu Linux on a amd64 with 1G memory. Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05) Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_06-b05, mixed mode) I get 18:32:54,909 INFO [DynamicDialect] Determining dialect for Apache Derby 10 18:32:54,944 INFO [DynamicDialect] Using dialect org.hibernate.dialect.DerbyDialect 18:33:04,093 INFO [HotDeployUtil] Initializing hot deploy manager 1614911248 18:33:04,128 INFO [ServerDetector] Detected server geronimo 18:33:04,550 INFO [AutoDeployDir] Auto deploy scanner started for /home/liferay/deploy 18:51:26,144 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception java.lang.OutOfMemoryError: PermGen space Has anyone else got it up and running on G1.1.1? Anny ideas about what may be wrong here or pointers to something i may have missed? Hi Peter, I haven't tried deploying Liferay. If you haven't already, suggest you bump up your PermGen space with something like: export JAVA_OPTS=-XX:MaxPermSize=128m (if you're already setting JAVA_OPTS, adjust accordingly...) Let us know how things go... --kevan
Re: Liferay 4.2.0 and Geronimo 1.1.1
Well I found a 4.0 install doc http://content.liferay.com/4.0.0/docs/install/ch01s01.html about installing in Geronimo 1.1 using a MySql database i will try follow that guide when i get the time but feel free to point me to more of this stuff. /Peter Peter Petersson skrev: Hi all Liferay 4.1.0 just got public ;) (yesterday) but I'm having problem getting it running in Geronimo 1.1.1. I have tried both the liferay-portal-geronimo-tomcat-4.2.0.car plugin (with the dbpool liferay-portal-geronimo-derby-pool-4.2.0.car) and the Liferay Portal Enterprise 4.2.0 (Bundled with Geronimo+Tomcat) Using: java version 1.5.0_06 with Ubuntu Linux on a amd64 with 1G memory. Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05) Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_06-b05, mixed mode) I get 18:32:54,909 INFO [DynamicDialect] Determining dialect for Apache Derby 10 18:32:54,944 INFO [DynamicDialect] Using dialect org.hibernate.dialect.DerbyDialect 18:33:04,093 INFO [HotDeployUtil] Initializing hot deploy manager 1614911248 18:33:04,128 INFO [ServerDetector] Detected server geronimo 18:33:04,550 INFO [AutoDeployDir] Auto deploy scanner started for /home/liferay/deploy 18:51:26,144 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception java.lang.OutOfMemoryError: PermGen space Has anyone else got it up and running on G1.1.1? Anny ideas about what may be wrong here or pointers to something i may have missed? Cheers Peter