Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
Unable to launch liferay-ce-portal-7.2.0-ga1 with oracle db configuration
Hi All,I am trying to launch liferay-ce-portal-7.2.0-ga1(tomcat bundle) with oracle db configuration.I have followed following steps:1) Copy ojdbc8-12.2.0.1.jar at below path
liferay-ce-portal-tomcat-7.2.0-ga1-20190531153709761\liferay-ce-portal-7.2.0-ga1\tomcat-9.0.17\lib
2) Copy liferay-portal-database-all-in-one-support-1.1.3.jar at below path
\liferay-ce-portal-tomcat-7.2.0-ga1-20190531153709761\liferay-ce-portal-7.2.0-ga1\tomcat-9.0.17\webapps\ROOT\WEB-INF\lib
3) Add Below Configuration in portal-ext.properties kept at \liferay-ce-portal-tomcat-7.2.0-ga1-20190531153709761\liferay-ce-portal-7.2.0-ga1
jdbc.default.driverClassName=oracle.jdbc.OracleDriver
jdbc.default.username=abc
jdbc.default.password=abc
jdbc.default.url=jdbc:oracle:thin:@IP
ortal:SId
4) Update setenv.bat as below to
\liferay-ce-portal-tomcat-7.2.0-ga1-20190531153709761\liferay-ce-portal-7.2.0-ga1\tomcat-9.0.17\bin\
CATALINA_OPTS="$CATALINA_OPTS -Dfile.encoding=UTF8 -Djava.locale.providers=JRE,COMPAT,CLDR -Djava.net.preferIPv4Stack=true -Duser.timezone=GMT -Xms2560m -Xmx2560m -XX:MaxNewSize=1536m -XX:MaxMetaspaceSize=512m -XX:MetaspaceSize=512m -XX:NewSize=1536m -XX:SurvivorRatio=7"
5) Start Tomcat using startup.bat from below location
liferay-ce-portal-tomcat-7.2.0-ga1-20190531153709761\liferay-ce-portal-7.2.0-ga1\tomcat-9.0.17\bin\I am using 64 bit version of java jdk1.8.0_144.
When I launch it with above configuration in place, it ends abruptly with following log in liferay.
2019-08-30 07:29:45.667 INFO [main][DialectDetector:159] Using dialect org.hibernate.dialect.Oracle10gDialect for Oracle 12.1
2019-08-30 07:29:54.239 INFO [main][ModuleFrameworkImpl:1319] Starting initial bundles
2019-08-30 07:30:14.057 INFO [main][ModuleFrameworkImpl:1596] Started initial bundles
2019-08-30 07:30:14.058 INFO [main][ModuleFrameworkImpl:1631] Starting dynamic bundles
2019-08-30 07:31:07.639 INFO [main][ModuleFrameworkImpl:1728] Started dynamic bundles
2019-08-30 07:31:07.640 INFO [main][ModuleFrameworkImpl:398] Navigate to Control Panel > Configuration > Gogo Shell and enter "lb" to see all bundles
2019-08-30 07:31:42.016 WARN [Elasticsearch initialization thread][EmbeddedElasticsearchConnection:288] Liferay is configured to use embedded Elasticsearch as its search engine. Do NOT use embedded Elasticsearch in production. Embedded Elasticsearch is useful for development and demonstration purposes. Refer to the documentation for details on the limitations of embedded Elasticsearch. Remote Elasticsearch connections can be configured in the Control Panel.
2019-08-30 07:34:33.618 INFO [main][StartupHelper:72] There are no patches installed
2019-08-30 07:34:38.051 ERROR [main][MainServlet:298] java.lang.RuntimeException: You must first upgrade to Liferay Portal 7200
java.lang.RuntimeException: You must first upgrade to Liferay Portal 7200
at com.liferay.portal.tools.DBUpgrader.checkRequiredBuildNumber(DBUpgrader.java:88)
Kindly note that I am not trying to upgrade but it seems to be version mismatch issue. Please assist.
liferay-ce-portal-tomcat-7.2.0-ga1-20190531153709761\liferay-ce-portal-7.2.0-ga1\tomcat-9.0.17\lib
2) Copy liferay-portal-database-all-in-one-support-1.1.3.jar at below path
\liferay-ce-portal-tomcat-7.2.0-ga1-20190531153709761\liferay-ce-portal-7.2.0-ga1\tomcat-9.0.17\webapps\ROOT\WEB-INF\lib
3) Add Below Configuration in portal-ext.properties kept at \liferay-ce-portal-tomcat-7.2.0-ga1-20190531153709761\liferay-ce-portal-7.2.0-ga1
jdbc.default.driverClassName=oracle.jdbc.OracleDriver
jdbc.default.username=abc
jdbc.default.password=abc
jdbc.default.url=jdbc:oracle:thin:@IP
4) Update setenv.bat as below to
\liferay-ce-portal-tomcat-7.2.0-ga1-20190531153709761\liferay-ce-portal-7.2.0-ga1\tomcat-9.0.17\bin\
CATALINA_OPTS="$CATALINA_OPTS -Dfile.encoding=UTF8 -Djava.locale.providers=JRE,COMPAT,CLDR -Djava.net.preferIPv4Stack=true -Duser.timezone=GMT -Xms2560m -Xmx2560m -XX:MaxNewSize=1536m -XX:MaxMetaspaceSize=512m -XX:MetaspaceSize=512m -XX:NewSize=1536m -XX:SurvivorRatio=7"
5) Start Tomcat using startup.bat from below location
liferay-ce-portal-tomcat-7.2.0-ga1-20190531153709761\liferay-ce-portal-7.2.0-ga1\tomcat-9.0.17\bin\I am using 64 bit version of java jdk1.8.0_144.
When I launch it with above configuration in place, it ends abruptly with following log in liferay.
2019-08-30 07:29:45.667 INFO [main][DialectDetector:159] Using dialect org.hibernate.dialect.Oracle10gDialect for Oracle 12.1
2019-08-30 07:29:54.239 INFO [main][ModuleFrameworkImpl:1319] Starting initial bundles
2019-08-30 07:30:14.057 INFO [main][ModuleFrameworkImpl:1596] Started initial bundles
2019-08-30 07:30:14.058 INFO [main][ModuleFrameworkImpl:1631] Starting dynamic bundles
2019-08-30 07:31:07.639 INFO [main][ModuleFrameworkImpl:1728] Started dynamic bundles
2019-08-30 07:31:07.640 INFO [main][ModuleFrameworkImpl:398] Navigate to Control Panel > Configuration > Gogo Shell and enter "lb" to see all bundles
2019-08-30 07:31:42.016 WARN [Elasticsearch initialization thread][EmbeddedElasticsearchConnection:288] Liferay is configured to use embedded Elasticsearch as its search engine. Do NOT use embedded Elasticsearch in production. Embedded Elasticsearch is useful for development and demonstration purposes. Refer to the documentation for details on the limitations of embedded Elasticsearch. Remote Elasticsearch connections can be configured in the Control Panel.
2019-08-30 07:34:33.618 INFO [main][StartupHelper:72] There are no patches installed
2019-08-30 07:34:38.051 ERROR [main][MainServlet:298] java.lang.RuntimeException: You must first upgrade to Liferay Portal 7200
java.lang.RuntimeException: You must first upgrade to Liferay Portal 7200
at com.liferay.portal.tools.DBUpgrader.checkRequiredBuildNumber(DBUpgrader.java:88)
Kindly note that I am not trying to upgrade but it seems to be version mismatch issue. Please assist.
Hi Snighdha Taylor,
Oracle database is not supported for Liferay Portal CE.
You should use: PostgreSQL, MySQL or MariaDB
If you want to use an enterprise database (Oracle, DB2, SQL Server) you should move to the enterprise version of Liferay
Regards,
Jorge
Oracle database is not supported for Liferay Portal CE.
You should use: PostgreSQL, MySQL or MariaDB
If you want to use an enterprise database (Oracle, DB2, SQL Server) you should move to the enterprise version of Liferay
Regards,
Jorge