Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Ademar Sousa Gomes
Problems trying to put liferay 5.2 + tomcat 6 to work as a windows service
October 30, 2009 9:56 AM
Answer

Ademar Sousa Gomes

Rank: New Member

Posts: 9

Join Date: March 26, 2009

Recent Posts

Hey Guys,

I've read a post about how to run liferay as a windows service here:

http://www.liferay.com/web/guest/community/wiki/-/wiki/Main/Starting+Liferay+as+a+Windows+Service

The problem is that I did everything with the tomcat 5 in a test computer and it worked fine.

Then in the client, who has tomcat 6, i made the procedure and i didnt get any error, however when i try to run the portal, nothing happens and in the log i got the following erros:

In the stdout_20091028 log file i got:

.
.
.
21:07:24,663 INFO [PluginPackageUtil:1153] Reloading repositories
21:07:25,569 ERROR [JobRunShell:211] Job DEFAULT.com.liferay.portlet.admin.job.CheckRemoteRepositoriesJob@30396448 threw an unhandled Exception:
java.lang.OutOfMemoryError: PermGen space
21:07:26,663 ERROR [ErrorLogger:2156] Job (DEFAULT.com.liferay.portlet.admin.job.CheckRemoteRepositoriesJob@30396448 threw an exception.
org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: java.lang.OutOfMemoryError: PermGen space]
at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529)
Caused by: java.lang.OutOfMemoryError: PermGen space
Exception in thread "http-8085-1" java.lang.NullPointerException
at java.util.concurrent.ConcurrentLinkedQueue.offer(Unknown Source)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler$1.offer(Http11Protocol.java:532)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler$1.offer(Http11Protocol.java:549)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:613)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Unknown Source)
Exception in thread "http-8085-2" java.lang.NullPointerException
at java.util.concurrent.ConcurrentLinkedQueue.offer(Unknown Source)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler$1.offer(Http11Protocol.java:532)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler$1.offer(Http11Protocol.java:549)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:613)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Unknown Source)
Exception in thread "org.springframework.scheduling.quartz.SchedulerFactoryBean#151b0a5_QuartzSchedulerThread" java.lang.OutOfMemoryError: PermGen space
Loading jar:file:/C:/liferay-portal-tomcat-6.0-5.2.3/liferay-portal-5.2.3/tomcat-6.0.18/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/system.properties
Loading jar:file:/C:/liferay-portal-tomcat-6.0-5.2.3/liferay-portal-5.2.3/tomcat-6.0.18/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/portal.properties
21:13:54,013 INFO [DialectDetector:64] Determining dialect for HSQL Database Engine 1
21:13:54,013 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.
21:13:54,232 INFO [DialectDetector:97] Using dialect org.hibernate.dialect.HSQLDialect
Loading jar:file:/C:/liferay-portal-tomcat-6.0-5.2.3/liferay-portal-5.2.3/tomcat-6.0.18/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/captcha.properties
21:13:56,341 INFO [PortalImpl:252] Portal lib directory /C:/liferay-portal-tomcat-6.0-5.2.3/liferay-portal-5.2.3/tomcat-6.0.18/webapps/ROOT/WEB-INF/lib/
21:14:04,342 INFO [ServerDetector:104] Detected server tomcat
Starting Liferay Portal Standard Edition 5.2.3 (Augustine / Build 5203 / May 20, 2009)
21:14:06,248 INFO [DBUtil:498] Database supports case sensitive queries
21:14:09,717 INFO [HotDeployUtil:64] Initializing hot deploy manager 14094934
21:14:09,983 INFO [AutoDeployDir:108] Auto deploy scanner started for C:\liferay-portal-tomcat-6.0-5.2.3\liferay-portal-5.2.3\deploy
21:14:10,514 INFO [ThemeHotDeployListener:90] Registering themes for orinfo-theme
21:14:12,405 INFO [ThemeHotDeployListener:114] 1 theme for orinfo-theme is available for use
21:14:15,249 INFO [PortletHotDeployListener:227] Registering portlets for web-form-portlet
21:14:17,124 ERROR [HotDeployUtil:111] com.liferay.portal.kernel.deploy.hot.HotDeployException: Error registering portlets for web-form-portlet
com.liferay.portal.kernel.deploy.hot.HotDeployException: Error registering portlets for web-form-portlet
at com.liferay.portal.deploy.hot.BaseHotDeployListener.throwHotDeployException(BaseHotDeployListener.java:58)
at com.liferay.portal.deploy.hot.PortletHotDeployListener.invokeDeploy(PortletHotDeployListener.java:130)
at com.liferay.portal.kernel.deploy.hot.HotDeployUtil._doFireDeployEvent(HotDeployUtil.java:108)
at com.liferay.portal.kernel.deploy.hot.HotDeployUtil._fireDeployEvent(HotDeployUtil.java:153)
at com.liferay.portal.kernel.deploy.hot.HotDeployUtil.fireDeployEvent(HotDeployUtil.java:43)
at com.liferay.portal.kernel.servlet.PortletContextListener.portalInit(PortletContextListener.java:113)
at com.liferay.portal.kernel.util.PortalInitableUtil.init(PortalInitableUtil.java:48)
at com.liferay.portal.kernel.servlet.PortletContextListener.contextInitialized(PortletContextListener.java:109)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:926)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:889)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: java.lang.OutOfMemoryError: PermGen space
21:15:09,675 INFO [PluginPackageUtil:1153] Reloading repositories
21:15:10,628 ERROR [JobRunShell:211] Job DEFAULT.com.liferay.portlet.admin.job.CheckRemoteRepositoriesJob@19171776 threw an unhandled Exception:
java.lang.OutOfMemoryError: PermGen space
21:15:11,753 ERROR [ErrorLogger:2156] Job (DEFAULT.com.liferay.portlet.admin.job.CheckRemoteRepositoriesJob@19171776 threw an exception.
org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: java.lang.OutOfMemoryError: PermGen space]
at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529)
Caused by: java.lang.OutOfMemoryError: PermGen space

In the catalina 2009-10-28 log file i got:

Oct 28, 2009 9:06:02 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\liferay-portal-tomcat-6.0-5.2.3\liferay-portal-5.2.3\tomcat-6.0.18\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\Windows Resource Kits\Tools\;C:\Program Files\VERITAS\NetBackup\bin\;C:\Program Files\EMC\Centera\4_0\SystemOperator/lib;C:\Program Files\EMC\Centera\4_0\SystemOperator/bin;C:\Program Files\EMC\PowerPath\;C:\Program Files\EMC\RSA\CST\lib\;C:\Program Files\EMC\RSA\Rkm_Client\lib\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Dell\SysMgt\RAC5;C:\Program Files\Dell\SysMgt\oma\bin;C:\Program Files\HP OpenView\bin;C:\Program Files\HP OpenView\bin\OpC;C:\Program Files\Microsoft SQL Server\80\Tools\Binn\;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Microsoft SQL Server\90\DTS\Binn\;C:\Program Files\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies\;D:\Cygwin\bin;C:\PROGRA~1\Ascent\ImgCtls\bin;C:\Program Files\Ascent\Bin
Oct 28, 2009 9:06:02 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8085
Oct 28, 2009 9:06:02 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 389 ms
Oct 28, 2009 9:06:02 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Oct 28, 2009 9:06:02 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
Oct 28, 2009 9:06:32 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8085
Oct 28, 2009 9:06:32 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Oct 28, 2009 9:06:32 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/16 config=null
Oct 28, 2009 9:06:32 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 29630 ms
Oct 28, 2009 9:08:13 PM org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler process
SEVERE: Error reading request, ignored
java.lang.OutOfMemoryError: PermGen space
Oct 28, 2009 9:12:00 PM org.apache.coyote.http11.Http11Protocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8085
Oct 28, 2009 9:12:02 PM org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler process
SEVERE: Error reading request, ignored
java.lang.OutOfMemoryError: PermGen space
Oct 28, 2009 9:12:02 PM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
Oct 28, 2009 9:13:47 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\liferay-portal-tomcat-6.0-5.2.3\liferay-portal-5.2.3\tomcat-6.0.18\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\Windows Resource Kits\Tools\;C:\Program Files\VERITAS\NetBackup\bin\;C:\Program Files\EMC\Centera\4_0\SystemOperator/lib;C:\Program Files\EMC\Centera\4_0\SystemOperator/bin;C:\Program Files\EMC\PowerPath\;C:\Program Files\EMC\RSA\CST\lib\;C:\Program Files\EMC\RSA\Rkm_Client\lib\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Dell\SysMgt\RAC5;C:\Program Files\Dell\SysMgt\oma\bin;C:\Program Files\HP OpenView\bin;C:\Program Files\HP OpenView\bin\OpC;C:\Program Files\Microsoft SQL Server\80\Tools\Binn\;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Microsoft SQL Server\90\DTS\Binn\;C:\Program Files\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies\;D:\Cygwin\bin;C:\PROGRA~1\Ascent\ImgCtls\bin;C:\Program Files\Ascent\Bin
Oct 28, 2009 9:13:47 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8085
Oct 28, 2009 9:13:47 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 388 ms
Oct 28, 2009 9:13:47 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Oct 28, 2009 9:13:47 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
Oct 28, 2009 9:14:17 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8085
Oct 28, 2009 9:14:17 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Oct 28, 2009 9:14:17 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/16 config=null
Oct 28, 2009 9:14:17 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 29493 ms
Lisa Simpson
RE: Problems trying to put liferay 5.2 + tomcat 6 to work as a windows serv
October 30, 2009 2:26 PM
Answer

Lisa Simpson

Rank: Liferay Legend

Posts: 2034

Join Date: March 5, 2009

Recent Posts

You might want to consult the Tomcat6 as Service document from Apache
Ziggy ©
RE: Problems trying to put liferay 5.2 + tomcat 6 to work as a windows serv
October 30, 2009 2:59 PM
Answer

Ziggy ©

Rank: Expert

Posts: 293

Join Date: June 8, 2008

Recent Posts

How much memory is allocated to Tomcat?
Ademar Sousa Gomes
RE: Problems trying to put liferay 5.2 + tomcat 6 to work as a windows serv
November 3, 2009 8:21 AM
Answer

Ademar Sousa Gomes

Rank: New Member

Posts: 9

Join Date: March 26, 2009

Recent Posts

Hello,

Thanks for the replies,

I followed the instructions and put 512 and 1024 as the instruction bellow:

"Change the Initial memory pool & Maximum memory pool to 512 and 1024 respectively. "

There is something else: If i start the service by the .bat file, everything works fine.


Thanks once more!

Participate in the State of Liferay Community 2017. Help the community and even win some prizes!