18:03:55,526 ERROR [localhost-startStop-1][MainServlet:209] java.lang.IllegalStateException: The database contains changes from a previous upgrade attempt that failed. Please restore the old database and file system and retry the upgrade. A patch may be required if the upgrade failed due to a bug or an unforeseen data permutation that resulted from a corrupt database.
java.lang.IllegalStateException: The database contains changes from a previous upgrade attempt that failed. Please restore the old database and file system and retry the upgrade. A patch may be required if the upgrade failed due to a bug or an unforeseen data permutation that resulted from a corrupt database.
at com.liferay.portal.tools.DBUpgrader._checkReleaseState(DBUpgrader.java:314)
at com.liferay.portal.tools.DBUpgrader.upgrade(DBUpgrader.java:136)
at com.liferay.portal.events.StartupAction.doRun(StartupAction.java:160)
at com.liferay.portal.events.StartupAction.run(StartupAction.java:68)
at com.liferay.portal.servlet.MainServlet.processStartupEvents(MainServlet.java:1238)
at com.liferay.portal.servlet.MainServlet.init(MainServlet.java:206)
at javax.servlet.GenericServlet.init(GenericServlet.java:160)
at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1280)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1193)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1088)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5198)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5481)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:634)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:671)
at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1840)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Stopping the server due to unexpected startup errors
我一直都沒有幸運在線研究這個問題。 Liferay不會因此而開始。我需要做什麼來解決它?一般來說,我對門戶網站的開發有點新意,如果有人能指出我的方向正確,我將不勝感激。Tomcat 7 Liferay 6.2關於損壞的數據庫的奇怪錯誤
更新:我認爲問題是liferay在使用這個已損壞的Oracle數據庫並完全忽略我的portal-ext.properties文件時已經死亡。我瀏覽了ROOT和Liferay的/ lib,並手動將每個.jar中的portal.properties文件重新包裝並重新打包,但仍然沒有運氣!我如何獲得liferay使用其他數據庫,如果它忽略portal-ext.properties(我已經嘗試將它放在/ ROOT/WEB-INF /類中,並直接在/ $ LIFERAY_HOME中,但它仍然不會加載)
它是Live-System還是Dev?它是什麼DBMS? – Mark
Dev。目前MySQL,但我試圖切換到Oracle,這可能是原因嗎? –
是的。如果您不需要這些數據,最簡單的解決方案就是重置數據庫。 1.停止Liferay。 2.清空數據庫和〜/ liferay/data文件夾。 3.啓動Liferay。 – Mark