未启动mysql server 5.6的liferay 7

wd2eg0qa  于 2021-06-24  发布在  Mysql
关注(0)|答案(2)|浏览(355)

我刚下载了最新的liferay 7 tomcat包
liferay-ce-portal-tomcat-7.0-ga3-2016080422206210
从liferay-ce-portal-7.0-ga3\tomcat-8.0.32\bin\startup.bat中提取并启动。服务器已成功启动,浏览器上的第一个屏幕已打开。然后我提供了基本配置和数据库(mysql server5.6)细节等,并按照说明重新启动服务器。但现在每当我启动服务器时,抛出以下异常,服务器就不会启动。有人能帮我找出这个问题吗?

10:23:40,085 INFO  [localhost-startStop-1][BaseDB:501] Database does not support case sensitive queries
You must first upgrade to Liferay Portal 7002
10:23:40,097 ERROR [localhost-startStop-1][MainServlet:237] java.lang.RuntimeException: You must first upgrade to Liferay Portal 7002
java.lang.RuntimeException: You must first upgrade to Liferay Portal 7002
    at com.liferay.portal.tools.DBUpgrader.checkRequiredBuildNumber(DBUpgrader.java:86)
    at com.liferay.portal.events.StartupAction.doRun(StartupAction.java:190)
    at com.liferay.portal.events.StartupAction.run(StartupAction.java:85)
    at com.liferay.portal.servlet.MainServlet.processStartupEvents(MainServlet.java:1290)
    at com.liferay.portal.servlet.MainServlet.init(MainServlet.java:234)
    at javax.servlet.GenericServlet.init(GenericServlet.java:158)
    at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1238)
    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1151)
    at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1038)
    at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4997)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5289)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
    at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:585)
    at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1794)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
Stopping the server due to unexpected startup errors
jecbmhm3

jecbmhm31#

您似乎已将liferay指向包含现有数据的数据库。在这种情况下,您必须在启动liferay之前运行升级例程。这是从7.0版开始的一个单独的工具-以前的版本中它被捆绑在服务器中。文件应包含所有要求的信息。
回答你的意见:行

10:23:40,097 ERROR [localhost-startStop-1][MainServlet:237] java.lang.RuntimeException: 
You must first upgrade to Liferay Portal 7002

清楚地表明liferay在您所指向的数据库中找到了以前版本的表和数据结构。请注意 portal-ext.properties 如果文件在当前用户的主目录中,也会被拾取—这可能会覆盖您希望在安装的私有目录中设置的设置 portal-ext.properties 或者 portal-setup-wizard.properties .
另外,我建议显式使用与mysql服务器版本匹配的mysql驱动程序版本。否则liferay将从maven存储库下载一个驱动程序,它可能不匹配100%。我看到过由此产生的问题。

ccgok5k5

ccgok5k52#

10:23:40,085 INFO  [localhost-startStop-1][BaseDB:501] Database does not support case sensitive queries You must first upgrade to Liferay Portal 7002

你试过stacktrace以前的建议吗?

相关问题