| Author |
Message |
![[Post New]](/forums/templates/default/images/icon_minipost_new.gif) 06/25/2012 07:39:45
|
jackson0
journeyman
Joined: 06/21/2012 21:50:26
Messages: 35
Offline
|
I have successfully installed terracotta web-session, Tomcat7 connected teracotta session. Now I want to install ehcache, but it does not work?
Step1:
I copy 4 file in folder ${TERRACOTTA_HOME}/ehcache/lib.
1. ehcache-terracotta-ee-<version>.jar <version>
2. ehcache-core-ee-<ehcache-version>.jar
3. slf4j-api-<slf4j-version>.jar
4. slf4j-jdk14-<slf4j-version>.jar
and copy ${TERRACOTTA_HOME}/common/terracotta-toolkit-<API-version>-runtime-ee-<version>.jar to $TOMCAT/lib
Step2:
I create file ehcache.xml, copy to WEB-INF/classes
Code:
<?xml version="1.0" encoding="UTF-8"?>
<ehcache name="myCache"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="ehcache.xsd">
<defaultCache
maxElementsInMemory="0"
eternal="false"
timeToIdleSeconds="1200"
timeToLiveSeconds="1200">
<terracotta />
</defaultCache>
<terracottaConfig url="192.168.2.204:9510" />
</ehcache>
Step3: Start terracotta.
Code:
./start-tc-server.sh -f /home/administrator/Terracotta/terracotta-ee-3.6.2/tc-config.xml
tc.config.xml
Code:
<?xml version="1.0" encoding="UTF-8"?>
<tc:tc-config xmlns:tc="http://www.terracotta.org/config"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.terracotta.org/schema/terracotta-4.xsd">
<servers>
<server name="Server1" host="192.168.2.204">
<data>/home/administrator/terracotta/server-data</data>
<logs>/home/administrator/terracotta/server-logs</logs>
<l2-group-port>9530</l2-group-port>
</server>
</servers>
<clients>
<logs>/home/administrator/terracotta/client-logs</logs>
<modules>
<module name="tim-tomcat-7.0" version="2.3.2"/>
</modules>
</clients>
<application>
<dso>
<instrumented-classes>
<include>
<class-expression>*..*</class-expression>
</include>
<exclude>org.apache.coyote..*</exclude>
<exclude>org.apache.catalina..*</exclude>
<exclude>org.apache.jasper..*</exclude>
<exclude>org.apache.tomcat..*</exclude>
</instrumented-classes>
<web-applications>
<web-application>sessionapp</web-application>
</web-applications>
</dso>
</application>
</tc:tc-config>
I did wrong steps?, please help me.
Sorry for bad english
I follow the instructions below:
http://terracotta.org/documentation/enterprise-ehcache/installation-guide
|
|
|
 |
![[Post New]](/forums/templates/default/images/icon_minipost_new.gif) 06/25/2012 10:02:12
|
ilevy
consul
Joined: 04/16/2008 10:26:42
Messages: 357
Offline
|
I don't think you following the steps on that page. Your tc-config.xml has DSO items in it; do not use a TIM and do not instrument classes. Follow the instructions exactly as shown.
|
|
|
 |
![[Post New]](/forums/templates/default/images/icon_minipost_new.gif) 06/26/2012 00:28:05
|
jackson0
journeyman
Joined: 06/21/2012 21:50:26
Messages: 35
Offline
|
Yes, file tc-config.xml i following the http://artur.ejsmont.org/blog/content/how-to-setup-terracotta-session-clustering-and-replication-for-apache-tomcat-6 to install the web-session.
How can i edit file tc-config.xml to install ehcache ?
|
|
|
 |
![[Post New]](/forums/templates/default/images/icon_minipost_new.gif) 06/26/2012 00:54:14
|
jackson0
journeyman
Joined: 06/21/2012 21:50:26
Messages: 35
Offline
|
I try edit file tc-config.xml, but also can't install ahcache :(
Code:
<?xml version="1.0" encoding="UTF-8"?>
<tc:tc-config xmlns:tc="http://www.terracotta.org/config"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.terracotta.org/schema/terracotta-4.xsd">
<servers>
<server name="Server1" host="192.168.2.204">
<data>/home/administrator/terracotta/server-data</data>
<logs>/home/administrator/terracotta/server-logs</logs>
<l2-group-port>9530</l2-group-port>
</server>
</servers>
<clients>
<logs>/home/administrator/terracotta/client-logs</logs>
<modules>
<module name="tim-tomcat-7.0" version="2.3.2"/>
</modules>
</clients>
</tc:tc-config>
|
|
|
 |
![[Post New]](/forums/templates/default/images/icon_minipost_new.gif) 06/26/2012 21:13:08
|
jackson0
journeyman
Joined: 06/21/2012 21:50:26
Messages: 35
Offline
|
Please help me :(
|
|
|
 |
![[Post New]](/forums/templates/default/images/icon_minipost_new.gif) 06/27/2012 10:18:36
|
ilevy
consul
Joined: 04/16/2008 10:26:42
Messages: 357
Offline
|
I can't speak to the accuracy of that blog you mention -- it's a bit outdated and uses DSO. You should try the instructions in http://terracotta.org/documentation/enterprise-ehcache/installation-guide with a clean start. That should work.
|
|
|
 |
![[Post New]](/forums/templates/default/images/icon_minipost_new.gif) 06/27/2012 18:07:59
|
jackson0
journeyman
Joined: 06/21/2012 21:50:26
Messages: 35
Offline
|
Thank ilevy, I will try.
|
|
|
 |
![[Post New]](/forums/templates/default/images/icon_minipost_new.gif) 06/27/2012 19:09:45
|
jackson0
journeyman
Joined: 06/21/2012 21:50:26
Messages: 35
Offline
|
I try install follow intrustructions, but ehcache not connect to terracotta serrver ?
I have 2 server. Server1 install Terracotta (ip: 192.168.2.202). Server2 install Liferay.
I use Liferay Protal, have two folder lib
$TOMCAT_HOME/lib and $TOMCAT_HOME/webapps/ROOT/WEB_INF/lib
Folder class: $TOMCAT_HOME/webbapp/ROOT/WEB_INF/classes
Step1: I copy
ehcache-core-ee-2.5.2.jar
ehcache-terracotta-ee-2.5.2.jar
slf4j-api-1.6.1.jar
slf4j-jdk14-1.6.1.jar
terracotta-toolkit-1.5-runtime-ee-4.2.0.jar
to $TOMCAT_HOME/webbapp/ROOT/WEB_INF/lib
Step2: I create file ehcache.xml, copy to $TOMCAT_HOME/webapps/ROOT/WEB_INF/classes
Code:
<?xml version="1.0" encoding="UTF-8"?>
<ehcache name="myCache">
<defaultCache
maxElementsInMemory="10000"
eternal="false"
timeToIdleSeconds="120"
timeToLiveSeconds="120"
overflowToDisk="true"
diskSpoolBufferSizeMB="30"
maxElementsOnDisk="10000000"
diskPersistent="false"
diskExpiryThreadIntervalSeconds="120"
memoryStoreEvictionPolicy="LRU"/>
<cache name="myCache"
maxElementsInMemory="100"
maxElementsOnDisk="0"
eternal="false"
timeToIdleSeconds="120"
timeToLiveSeconds="0"
memoryStoreEvictionPolicy="LFU">
<terracotta/>
</cache>
<terracottaConfig url="192.168.2.202:9510"/>
</ehcache>
Step3: i start terracotta server
Code:
./start-tc-server.sh -f /home/administrator/Terracotta/terracotta-ee-3.6.2/tc-config.xml
Code:
<?xml version="1.0" encoding="UTF-8"?>
<tc:tc-config xmlns:tc="http://www.terracotta.org/config"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.terracotta.org/schema/terracotta-4.xsd">
<servers>
<server name="server1" host="192.168.2.202">
<data>/home/administrator/terracotta/server-data</data>
<logs>/home/administrator/terracotta/server-logs</logs>
</server>
</servers>
<clients>
<logs>/home/administrator/terracotta/client-logs</logs>
</clients>
</tc:tc-config>
But when i startup Liferay, then tomcat not connect to terracotta server .
Log startup liferay
Code:
administrator@ubuntu:/usr/local/liferay/tomcat-7.0.23/bin$ ./startup.sh & tail -f ../logs/catalina.out
[1] 1876
Jun 28, 2012 2:00:55 AM org.apache.catalina.core.StandardService stopInternal
INFO: Stopping service Catalina
Jun 28, 2012 2:00:58 AM org.apache.coyote.AbstractProtocol stop
INFO: Stopping ProtocolHandler ["http-bio-8080"]
Jun 28, 2012 2:00:58 AM org.apache.coyote.AbstractProtocol stop
INFO: Stopping ProtocolHandler ["ajp-bio-8009"]
Jun 28, 2012 2:00:58 AM org.apache.coyote.AbstractProtocol destroy
INFO: Destroying ProtocolHandler ["http-bio-8080"]
Jun 28, 2012 2:00:58 AM org.apache.coyote.AbstractProtocol destroy
INFO: Destroying ProtocolHandler ["ajp-bio-8009"]
Using CATALINA_BASE: /usr/local/liferay/tomcat-7.0.23
Using CATALINA_HOME: /usr/local/liferay/tomcat-7.0.23
Using CATALINA_TMPDIR: /usr/local/liferay/tomcat-7.0.23/temp
Using JRE_HOME: /usr
Using CLASSPATH: /usr/local/liferay/tomcat-7.0.23/bin/bootstrap.jar:/usr/local/liferay/tomcat-7.0.23/bin/tomcat-juli.jar
Jun 28, 2012 2:01:37 AM 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: /usr/lib/jvm/java-6-openjdk/jre/lib/amd64/server:/usr/lib/jvm/java-6-openjdk/jre/lib/amd64:/usr/lib/jvm/java-6-openjdk/jre/../lib/amd64:/usr/java/packages/lib/amd64:/usr/lib/jni:/lib:/usr/lib
Jun 28, 2012 2:01:37 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Jun 28, 2012 2:01:37 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
Jun 28, 2012 2:01:37 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 566 ms
Jun 28, 2012 2:01:37 AM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Jun 28, 2012 2:01:37 AM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.23
Jun 28, 2012 2:01:37 AM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor /usr/local/liferay/tomcat-7.0.23/conf/Catalina/localhost/ROOT.xml
Loading jar:file:/usr/local/liferay/tomcat-7.0.23/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/system.properties
02:01:39,198 INFO [EasyConf:122] Refreshed the configuration of all components
02:01:39,547 INFO [ConfigurationLoader:56] Properties for jar:file:/usr/local/liferay/tomcat-7.0.23/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/portal loaded from [file:/usr/local/liferay/portal-setup-wizard.properties, file:/usr/local/liferay/tomcat-7.0.23/webapps/ROOT/WEB-INF/classes/portal-ext.properties, jar:file:/usr/local/liferay/tomcat-7.0.23/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/portal.properties]
Loading jar:file:/usr/local/liferay/tomcat-7.0.23/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/portal.properties
Loading file:/usr/local/liferay/tomcat-7.0.23/webapps/ROOT/WEB-INF/classes/portal-ext.properties
Loading file:/usr/local/liferay/portal-setup-wizard.properties
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/local/liferay/tomcat-7.0.23/webapps/ROOT/WEB-INF/lib/slf4j-jdk14-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/local/liferay/tomcat-7.0.23/webapps/ROOT/WEB-INF/lib/util-java.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
02:01:43,898 INFO [DialectDetector:80] Determine dialect for MySQL 5
02:01:43,950 INFO [DialectDetector:145] Found dialect org.hibernate.dialect.MySQLDialect
Starting Liferay Portal Community Edition 6.1.0 CE (Paton / Build 6100 / January 6, 2012)
Jun 28, 2012 2:02:06 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8080"]
Jun 28, 2012 2:02:06 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
Jun 28, 2012 2:02:06 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 28778 ms
I don't understand.
Error:
Code:
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: Filter execution threw an exception
root cause
java.lang.AbstractMethodError: com.liferay.portal.cache.ehcache.ModifiableEhcacheWrapper.setPinned(Ljava/lang/Object;Z)V
net.sf.ehcache.hibernate.regions.EhcacheTransactionalDataRegion.put(EhcacheTransactionalDataRegion.java:141)
net.sf.ehcache.hibernate.regions.EhcacheTransactionalDataRegion.put(EhcacheTransactionalDataRegion.java:126)
net.sf.ehcache.hibernate.strategy.AbstractReadWriteEhcacheAccessStrategy.putFromLoad(AbstractReadWriteEhcacheAccessStrategy.java:93)
net.sf.ehcache.hibernate.nonstop.NonstopAwareEntityRegionAccessStrategy.putFromLoad(NonstopAwareEntityRegionAccessStrategy.java:180)
org.hibernate.engine.TwoPhaseLoad.initializeEntity(TwoPhaseLoad.java:195)
org.hibernate.loader.Loader.initializeEntitiesAndCollections(Loader.java:982)
org.hibernate.loader.Loader.doQuery(Loader.java:857)
org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:274)
org.hibernate.loader.Loader.loadEntity(Loader.java:2037)
org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:86)
org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:76)
org.hibernate.persister.entity.AbstractEntityPersister.load(AbstractEntityPersister.java:3293)
org.hibernate.event.def.DefaultLoadEventListener.loadFromDatasource(DefaultLoadEventListener.java:496)
org.hibernate.event.def.DefaultLoadEventListener.doLoad(DefaultLoadEventListener.java:477)
org.hibernate.event.def.DefaultLoadEventListener.load(DefaultLoadEventListener.java:227)
org.hibernate.event.def.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:269)
org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:152)
org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:1090)
org.hibernate.impl.SessionImpl.get(SessionImpl.java:1005)
org.hibernate.impl.SessionImpl.get(SessionImpl.java:998)
com.liferay.portal.dao.orm.hibernate.SessionImpl.get(SessionImpl.java:128)
com.liferay.portal.kernel.dao.orm.ClassLoaderSession.get(ClassLoaderSession.java:237)
com.liferay.portal.service.persistence.CompanyPersistenceImpl.fetchByPrimaryKey(CompanyPersistenceImpl.java:525)
com.liferay.portal.service.persistence.CompanyPersistenceImpl.findByPrimaryKey(CompanyPersistenceImpl.java:475)
com.liferay.portal.service.impl.CompanyLocalServiceImpl.getCompanyById(CompanyLocalServiceImpl.java:602)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:616)
com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:112)
com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:71)
com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:108)
com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:59)
com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:108)
com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:59)
com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:108)
com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:59)
com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:108)
com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:211)
$Proxy16.getCompanyById(Unknown Source)
com.liferay.portal.service.CompanyLocalServiceUtil.getCompanyById(CompanyLocalServiceUtil.java:434)
com.liferay.portal.util.PortalInstances._getCompanyId(PortalInstances.java:172)
com.liferay.portal.util.PortalInstances.getCompanyId(PortalInstances.java:70)
com.liferay.portal.servlet.filters.absoluteredirects.AbsoluteRedirectsFilter.doFilterTry(AbsoluteRedirectsFilter.java:59)
com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:182)
com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:92)
org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:738)
com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)
com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)
com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:164)
com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:92)
com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:164)
com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:92)
com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:184)
com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:92)
com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:70)
note The full stack trace of the root cause is available in the Apache Tomcat/7.0.23 logs.
Apache Tomcat/7.0.23
|
|
|
 |
![[Post New]](/forums/templates/default/images/icon_minipost_new.gif) 06/28/2012 15:41:48
|
teck
seraphim
Joined: 05/24/2006 15:03:25
Messages: 1099
Offline
|
I'm pretty sure that AbstractMethodError is trying to tell you that liferay's integration with ehcache is expecting an earlier ehcache version or something along those lines.
|
Tim Eck (terracotta engineer)
|
|
|
 |
![[Post New]](/forums/templates/default/images/icon_minipost_new.gif) 06/28/2012 20:22:51
|
jackson0
journeyman
Joined: 06/21/2012 21:50:26
Messages: 35
Offline
|
Thank teck. I try copy ehcache 2.4.2, but it not work.
How to fix ?
|
|
|
 |
![[Post New]](/forums/templates/default/images/icon_minipost_new.gif) 06/29/2012 15:04:03
|
teck
seraphim
Joined: 05/24/2006 15:03:25
Messages: 1099
Offline
|
When you used 2.4.2 did you get the exact same error (AbstractMethodError)? Can you post the stack trace again so I can verify some line numbers?
|
Tim Eck (terracotta engineer)
|
|
|
 |
![[Post New]](/forums/templates/default/images/icon_minipost_new.gif) 06/30/2012 04:46:32
|
jackson0
journeyman
Joined: 06/21/2012 21:50:26
Messages: 35
Offline
|
Thank teck.
When i use ehcache-core-2.4.2.jar and ehcache-terracotta-2.4.2.jar, startup ok, website liferay runing, no error.
However, function Ehcache in Terracotta console is disabled ?. Function Session run well (I have installed web-session previous).
Note: I use terracotta-3.6.2.
Please help me/
|
|
|
 |
![[Post New]](/forums/templates/default/images/icon_minipost_new.gif) 07/02/2012 02:09:12
|
jackson0
journeyman
Joined: 06/21/2012 21:50:26
Messages: 35
Offline
|
If i remove session files (terracotta-session-1.2.2.jar, terracotta-toolkit-1.5-runtime-4.2.0.jar), Terracotta console as below picture:
Terracotta server not connect client.
Log startup Liferay:
Code:
Using CATALINA_BASE: /usr/local/liferay/tomcat-7.0.23
Using CATALINA_HOME: /usr/local/liferay/tomcat-7.0.23
Using CATALINA_TMPDIR: /usr/local/liferay/tomcat-7.0.23/temp
Using JRE_HOME: /usr
Using CLASSPATH: /usr/local/liferay/tomcat-7.0.23/bin/bootstrap.jar:/usr/local/liferay/tomcat-7.0.23/bin/tomcat-juli.jar
Jul 2, 2012 8:57:21 AM 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: /usr/lib/jvm/java-6-openjdk/jre/lib/amd64/server:/usr/lib/jvm/java-6-openjdk/jre/lib/amd64:/usr/lib/jvm/java-6-openjdk/jre/../lib/amd64:/usr/java/packages/lib/amd64:/usr/lib/jni:/lib:/usr/lib
Jul 2, 2012 8:57:21 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Jul 2, 2012 8:57:21 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
Jul 2, 2012 8:57:21 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 563 ms
Jul 2, 2012 8:57:21 AM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Jul 2, 2012 8:57:21 AM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.23
Jul 2, 2012 8:57:21 AM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor /usr/local/liferay/tomcat-7.0.23/conf/Catalina/localhost/ROOT.xml
Loading jar:file:/usr/local/liferay/tomcat-7.0.23/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/system.properties
08:57:23,212 INFO [EasyConf:122] Refreshed the configuration of all components
08:57:23,592 INFO [ConfigurationLoader:56] Properties for jar:file:/usr/local/liferay/tomcat-7.0.23/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/portal loaded from [file:/usr/local/liferay/portal-setup-wizard.properties, file:/usr/local/liferay/tomcat-7.0.23/webapps/ROOT/WEB-INF/classes/portal-ext.properties, jar:file:/usr/local/liferay/tomcat-7.0.23/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/portal.properties]
Loading jar:file:/usr/local/liferay/tomcat-7.0.23/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/portal.properties
Loading file:/usr/local/liferay/tomcat-7.0.23/webapps/ROOT/WEB-INF/classes/portal-ext.properties
Loading file:/usr/local/liferay/portal-setup-wizard.properties
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/local/liferay/tomcat-7.0.23/webapps/ROOT/WEB-INF/lib/slf4j-jdk14-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/local/liferay/tomcat-7.0.23/webapps/ROOT/WEB-INF/lib/util-java.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
08:57:27,668 INFO [DialectDetector:80] Determine dialect for MySQL 5
08:57:27,693 INFO [DialectDetector:145] Found dialect org.hibernate.dialect.MySQLDialect
Starting Liferay Portal Community Edition 6.1.0 CE (Paton / Build 6100 / January 6, 2012)
Jul 2, 2012 8:57:49 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8080"]
Jul 2, 2012 8:57:49 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
Jul 2, 2012 8:57:49 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 27507 ms
|
|
|
 |
![[Post New]](/forums/templates/default/images/icon_minipost_new.gif) 07/02/2012 11:25:36
|
teck
seraphim
Joined: 05/24/2006 15:03:25
Messages: 1099
Offline
|
From the information you're sharing it sounds like your caches are not actually getting configured to be <terracotta> clustered.
I do not know the specifics of how liferay uses ehcache internally. In particular I'm not sure if uses a different resource path for the ehcache.xml or if they base things of the <defaultCache> or not.
One quick thing you can test is to put a syntax error in the ehcache.xml you think is in use. If you get an XML parse exception you know you're at least changing the correct file. If you at least have the cprrect config file you probably need to dig into liferay code/documentation a bit to get a handle on how to configure ehcache in it.
|
Tim Eck (terracotta engineer)
|
|
|
 |
![[Post New]](/forums/templates/default/images/icon_minipost_new.gif) 07/02/2012 18:42:15
|
jackson0
journeyman
Joined: 06/21/2012 21:50:26
Messages: 35
Offline
|
Thank teck.
when i put a syntax error in the ehcache.xml (insert more </ehcache> in ehcache.xml or delete all content in ehcache.xml), Liferay startup ok, runing, not error ?
I sure liferay not getting configured to be <terracotta> clustered.
I have reference "setup cluster Liferay with terracotta":
[url]http://www.liferay.com/web/mika.koivisto/blog/-/blogs/how-do-i-cluster-liferay-with-terracotta-
[/url]
quote
Code:
EhCache and Hibernate Second Level Cache
1. Remove ehcache.jar that is bundled with Liferay (located in TOMCAT_HOME/webapps/ROOT/WEB-INF/lib)
2. Copy all jars in TERRACOTTA_HOME/ehcache/lib to TOMCAT_HOME/webapps/ROOT/WEB-INF/lib
3. Copy TERRACOTTA_HOME/common/terracotta-toolkit-1.0-runtime-<version>.jar to TOMCAT_HOME/webapps/ROOT/WEB-INF/lib
4. Create my-ehcache folder to TOMCAT_HOME/webapps/ROOT/WEB-INF/classes
5. Create a hibernate-terracotta.xml and a liferay-multi-vm-terracotta.xml.
6. Adjust terracottaConfig in hibernate-terracotta.xml and liferay-multi-vm-terracotta.xml to point to your Terracotta servers. Like this: <terracottaConfig url="localhost:9510"/>
7. Add following properties to your portal-ext.properties file:
ehcache.multi.vm.config.location=/my-ehcache/liferay-multi-vm-terracotta.xml
net.sf.ehcache.configurationResourceName=/my-ehcache/hibernate-terracotta.xml
hibernate.cache.region.factory_class=net.sf.ehcache.hibernate.EhCacheRegionFactory
|
|
|
 |
|
|