To enable PACL, you need to enable the security manager and add some required Portal Access Control Language (PACL) with Liferay on Tomcat. It’s just that easy! Before you deploy Liferay Portal, you should configure Otherwise, if you are using Tomcat to manage your mail session, add theįollowing configuration to your portal-ext.properties file to reference Panel → Server Administration → Mail and enter the settings for Your portal as described in the Deploy Liferay section, go to Control If want to use Liferay Portal to manage your mail session, you canĬonfigure the mail session in Liferay Portal. The instructions for using the setup wizard. Otherwise, if you are using Liferay Portal to manage your data source, follow Refer to your data source: =jdbc/LiferayPool If you are using Tomcat to manage your data source, add the followingĬonfiguration to your portal-ext.properties file in your Liferay Home to In this section you’ll specify appropriate properties for connecting to your Configuring your database and mail session Next, you’ll make sure Liferay canĪccess your mail session and database. Replace the example mail session values with your own. Edit $TOMCAT_ HOME/conf/Catalina/localhost/ROOT.xml and configure a mail session. If you want to use the built-in Liferay mail session, you canĬreate a mail session bound to mail/MailSession. If you want to manage your mail session with Tomcat, use the following Your Tomcat managed data source is now configured. These values with your own database name and credentials. Note: The above resource definition assumes your database name is lportalĪnd your MySQL username and password are both root. Specified in $TOMCAT_HOME/conf/Catalina/localhost/ROOT.xml: On a different machine, make sure it’s accessible from the machine withĪdd your data source as a resource in the context of your web application Make sure your database server is installed and working. You want to use Liferay’s built-in data source, you can skip this section. If you want Tomcat to manage your data source, use the following procedure. Next we’ll look atĬonfiguring your database with Tomcat. Sections and move to the section titled Enabling PACL. Your database and mail session (and we recommend you do), you can skip the next Now Tomcat is configured to run Liferay! If you want to use Liferay to manage Lastly, if you see a support-catalina.jar in your $TOMCAT_HOME/webapps Where you see redirectPort=8443, in the definition of your connectors (HTTP $TOMCAT_HOME/conf/server.xml and add the attribute URIEncoding="UTF-8" We also need to ensure consistent use of UTF-8 URI Encoding. This allows Catalina to access the dependency jars you extracted to In theĬase of MySQL, use mysql-connector-java-/lib/ext/*.jar Make sure the JDBC driver for your database is accessible by Tomcat. persistence.jar: You can learn about the Java Persistence API and how.jar files that are includedĪs part of the Liferay source distribution, but are not automatically included Next, you need to download a few third party. This JAR providesĬlasses that extend some Tomcat-specific classes in order to support ||support-tomcat|6.2.1|jarĪnd copy it into your $TOMCAT_HOME/lib/ext directory. jar files toĭownload the support-tomcat.jar file from Unzip the Liferay Dependencies and copy the. You can get the necessary dependencies by following these steps:Ĭreate a folder named ext in $TOMCAT_HOME/lib. In addition to these, you need the proper driver for yourĭatabase. Liferay Portal depends on several JAR files found in the Liferayĭependencies Archive. Next, let’s get started by addressing Liferay’s library dependencies. war file should be called liferay-portal-6.2.x-.war and If you have an existing Tomcat server or would like to install Liferay on Tomcatīefore you begin, make sure you have downloaded the latest Liferay. Recommend you download a Liferay/Tomcat bundle from If you do not already have an existing Tomcat server, we Liferay Home is one folder above Tomcat’s install location.įor this section, we will refer to your Tomcat server’s installation location as
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |