This guide is on how to set up tc Server 2.9.3.
Resolution
- Download the tc Server zip file called: vfabric-tc-server-standard-2.9.3.RELEASE.zip.
- Open a command prompt to
/../vfabric-tc-server-standard-2.9.3.RELEASE. This location will be shortened to{tc Server Home} - Run the command:
mkdir servers - Run the command:
tcruntime-instance.bat|sh create -i servers lp-server - Navigate to
{tc Server Home}/servers/lp-server/conf. Open the**wrapper.conf**file. - Change
'-Xmx'to1024minwrapper.java.addition.8. - Change change
`-Xss`to512kinwrapper.java.addition.9. - Add
wrapper.java.additional.10="-XX:MaxPermSize=256m". - Add
wrapper.java.additional.11="-Dfile.encoding=UTF-8". - Save and close the file.
- In the
{tc Server Home}/servers/lp-server/conf, create a new folder called**Catalina**. - In the
{tc Server Home}/servers/lp-server/conf/Catalina, create a new folder called localhost. In the{tc Server Home}/servers/lp-server/conf/Catalina/localhost, create a new file called ROOT.xml. - In
ROOT.xml, enter the following:<Context path="" crossContext="true"> <!-- JAAS --> <!--<Realm className="org.apache.catalina.realm.JAASRealm" appName="PortalRealm" userClassNames="com.liferay.portal.kernel.security.jaas.PortalPrincipal" roleClassNames="com.liferay.portal.kernel.security.jaas.PortalRole" />--> <!-- Uncomment the following to disable persistent sessions across reboots. --> <!-- Uncomment the following to not use sessions. See the property "session.disabled" in portal.properties. --> <!-- <Manager className="com.liferay.support.tomcat.session.SessionLessManagerBase" /> --> </Context> - In the
{tc Server Home}/servers/lp-server/conffolder, open the server.xml file. - Add
URIEncoding="UTF-8"to the Connector property so it looks like this:<Connector acceptCount="100" connectionTimeout="20000" executor="tomcatThreadPool" maxKeepAliveRequests="15" port="${bio.http.port}" protocol="org.apache.coyote.http11.Http11Protocol" redirectPort="${bio.https.port}" URIEncoding="UTF-8"/> - Unlike Tomcat where dependencies are deployed to the 'lib/ext' folder, dependencies for tc Server are deployed directly in the 'lib' folder. Copy all the following .jars:
activation.jarccpp.jarhsql.jarjta.jarjutf7.jarmail.jarmysql.jarpersistence.jarportal-service.jarportlet.jarpostgresql.jarscript-10.jar
- Next, configure the
{tc Server Home}/servers/lp-server/bin/setenv.bat|setenv.sh. Add this property to the end of the file:set JVM_OPTS=-Dfile.encoding=UTF-8 -Xmx1024M -Xss512K -XX:MaxPermSize=512m - We are now ready to deploy the portal. Navigate to
{tc Server Home}/servers/lp-server/webapps/ROOT. Delete any default content in this folder. Unzip the Liferay .war file here. Note that the .war file can come from either the packager or by running**ant -f build-dist.xml zip-portal-war**in the source folder. - Set the portal-ext.properties parallel to the
/lp-serverinside the{tc Server Home}/serversfolder. Configure the portal-ext.properties to run on MySQL. - Enable or disable the startup wizard in the
portal-ext.properties. - In the
/binfolder, enter:tcruntime-ctl.bat run |./tcruntime-ctl.sh run - To shut down, CTRL + C will suffice