Foren

Default 5.2.3 doesn't work on Fedora 11

Christophe R FRAULE, geändert vor 14 Jahren.

Default 5.2.3 doesn't work on Fedora 11

New Member Beitrag: 1 Beitrittsdatum: 01.12.09 Neueste Beiträge
Hello,

I tried the easy path to get a Liferay server up and running for evaluation on Fedora 11.

Downloaded the bundle, unzipped as root. Did a chown 777 -R on the liferay install top directory, chdir to tomcat-6.0.18/bin and launched ./startup.sh.

[root@Fedix bin]# ./startup.sh
Using CATALINA_BASE: /opt/liferay-portal-5.2.3/tomcat-6.0.18
Using CATALINA_HOME: /opt/liferay-portal-5.2.3/tomcat-6.0.18
Using CATALINA_TMPDIR: /opt/liferay-portal-5.2.3/tomcat-6.0.18/temp
Using JRE_HOME: /usr


All looks good in catalina.out:

[root@Fedix logs]# tail -f catalina.out
Dec 1, 2009 12:54:56 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Dec 1, 2009 12:54:56 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
Loading jar:file:/opt/liferay-portal-5.2.3/tomcat-6.0.18/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/system.properties
Loading jar:file:/opt/liferay-portal-5.2.3/tomcat-6.0.18/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/portal.properties
00:55:11,810 INFO [DialectDetector:64] Determining dialect for HSQL Database Engine 1
00:55:11,816 WARN [DialectDetector:79] Liferay is configured to use Hypersonic as its database. Do NOT use Hypersonic in production. Hypersonic is an embedded database useful for development and demo'ing purposes. The database settings can be changed in portal.properties.
00:55:11,925 INFO [DialectDetector:97] Using dialect org.hibernate.dialect.HSQLDialect
Loading jar:file:/opt/liferay-portal-5.2.3/tomcat-6.0.18/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/captcha.properties
00:55:17,543 INFO [PortalImpl:252] Portal lib directory /opt/liferay-portal-5.2.3/tomcat-6.0.18/webapps/ROOT/WEB-INF/lib/
00:55:39,044 INFO [ServerDetector:104] Detected server tomcat
Starting Liferay Portal Standard Edition 5.2.3 (Augustine / Build 5203 / May 20, 2009)
00:55:43,278 INFO [DBUtil:498] Database supports case sensitive queries
00:55:46,966 INFO [HotDeployUtil:64] Initializing hot deploy manager 32638273
00:55:48,346 INFO [HotDeployEvent:108] Plugin sevencogs-hook requires google-maps-portlet, sevencogs-theme, web-form-portlet, wol-portlet
Dec 1, 2009 12:55:48 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Dec 1, 2009 12:55:48 AM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Dec 1, 2009 12:55:48 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/91 config=null
Dec 1, 2009 12:55:48 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 52083 ms


But then I try http://127.0.0.1:8080 with Firefox from the server I get:

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

java.lang.ArrayIndexOutOfBoundsException: 0
com.liferay.portal.util.PortalInstances._getDefaultCompanyId(PortalInstances.java:232)
com.liferay.portal.util.PortalInstances._getCompanyId(PortalInstances.java:189)
com.liferay.portal.util.PortalInstances.getCompanyId(PortalInstances.java:71)
com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.doFilter(VirtualHostFilter.java:110)
com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
com.liferay.portal.servlet.filters.threadlocalcache.ThreadLocalCacheFilter.processFilter(ThreadLocalCacheFilter.java:55)
com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:91)
com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:94)
org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:738)


And not a single additional line into catalina.out.

What's wrong here ?

Many thanks for your help,

Christobald
thumbnail
Lisa Simpson, geändert vor 14 Jahren.

RE: Default 5.2.3 doesn't work on Fedora 11

Liferay Legend Beiträge: 2034 Beitrittsdatum: 05.03.09 Neueste Beiträge
There are some dependencies to install. In order to make sure that you have them all, install tomcat from YUM and then deploy the Liferay war. See if that works for you.

If that works, then you can uninstall it, see what it removes, and try the bundle again. I'm guessing that something hasn't been met.
thumbnail
Olaf Kock, geändert vor 14 Jahren.

RE: Default 5.2.3 doesn't work on Fedora 11

Liferay Legend Beiträge: 6403 Beitrittsdatum: 23.09.08 Neueste Beiträge
This is a mysterious one that I had but can't remember how I got rid of it then. See this thread for some possible ideas on how to tackle the problem. Please report what solution (if any) worked for you.

Regarding the permissions, I'd rather unzip the bundle as the user you intend to run it as and chmod +x $LIFERAY_TOMCAT/bin/*.sh instead of setting everything everywhere to 777.

You also might want to delete everything in $LIFERAY_TOMCAT/work/ and $LIFERAY_TOMCAT/temp (keep these directories, but have them empty) and verify what java version you use.