liferay配置oracle


1.在D:\liferay-portal-5.2.2\tomcat-5.5.27\webapps\ROOT\WEB-INF\classes下创建portal-ext.properties文件,在里面加上:jdbc.default.jndi.name=jdbc/LiferayPool
2. 将oracle驱动包ojdbc14.jar放到D:\liferay-portal-5.2.2\tomcat-5.5.27\common\lib\ext目录下。
3.在D:\liferay-portal-5.2.2\tomcat-5.5.27\conf\Catalina\localhost目录下的root.xml文件中,加上<Resource
name="jdbc/LiferayPool"
auth="Container"
type="javax.sql.DataSource"
driverClassName="oracle.jdbc.driver.OracleDriver"
url="jdbc:oracle:thin:@localhost:1521:orcl"
username="ddd"
password="ddd"
maxActive="20"
/>

<Resource
name="mail/MailSession"
auth="Container"
type="javax.mail.Session"
mail.imap.host="localhost"
mail.pop3.host="localhost"
mail.smtp.host="localhost"
mail.store.protocol="imap"
mail.transport.protocol="smtp"
/>

<!-- 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"
/>
4.创建用户,如在第三步中的ddd用户,在命令行窗口导入5.2.2自带的oracle导出文件:liferay-portal-sql-oracle-10-5.2.2.dmp。

你可能感兴趣的:(oracle,sql,tomcat,jdbc,ext)