尝试将我的OpenCms应用程序作为Java SpringBoot应用程序运行。
我们第一次需要运行数据库设置页面,以便在此时获得如下所示的异常。
OpenCms初始化期间出现严重错误:OpenCms设置向导仍处于启用状态
org.opencms.main.CmsException:OpenCms初始化期间出现严重错误:仍启用OpenCms设置向导。 在org.opencms.main.OpenCmsCore.setErrorCondition(OpenCmsCore.java:370)[opencms-core-10.5.2.jar:10.5.2] 在org.opencms.main.CmsInitException.setErrorCondition(CmsInitException.java:113)[opencms-core-10.5.2.jar:10.5.2] at org.opencms.main.CmsInitException。(CmsInitException.java:70)[opencms-core-10.5.2.jar:10.5.2] at org.opencms.main.CmsInitException。(CmsInitException.java:56)[opencms-core-10.5.2.jar:10.5.2] 在org.opencms.main.OpenCmsCore.initContext(OpenCmsCore.java:1516)[opencms-core-10.5.2.jar:10.5.2] 在org.opencms.main.OpenCmsCore.upgradeRunlevel(OpenCmsCore.java:2090)[opencms-core-10.5.2.jar:10.5.2] 在org.opencms.main.OpenCmsServlet.init(OpenCmsServlet.java:253)[opencms-core-10.5.2.jar:10.5.2] 在org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1183)[tomcat-embed-core-8.5.6.jar:8.5.6] 在org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:992)[tomcat-embed-core-8.5.6.jar:8.5.6] 在org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4913)[tomcat-embed-core-8.5.6.jar:8.5.6] at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedContext.deferredLoadOnStartup(TomcatEmbeddedContext.java:78)[spring-boot-1.4.2.RELEASE.jar:1.4.2.RELEASE] at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer.startConnector(TomcatEmbeddedServletContainer.java:256)[chring-boot-1.4.2.RELEASE.jar:1.4.2.RELEASE] at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer.start(TomcatEmbeddedServletContainer.java:181)[spring-boot-1.4.2.RELEASE.jar:1.4.2.RELEASE] at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.startEmbeddedServletContainer(EmbeddedWebApplicationContext.java:297)[spring-boot-1.4.2.RELEASE.jar:1.4.2.RELEASE] at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.finishRefresh(EmbeddedWebApplicationContext.java:145)[spring-boot-1.4.2.RELEASE.jar:1.4.2.RELEASE] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:545)[spring-context-4.3.4.RELEASE.jar:4.3.4.RELEASE] at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122)[spring-boot-1.4.2.RELEASE.jar:1.4.2.RELEASE] 在org.springframework.boot.SpringApplication.refresh(SpringApplication.java:761)[spring-boot-1.4.2.RELEASE.jar:1.4.2.RELEASE] 在org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:371)[spring-boot-1.4.2.RELEASE.jar:1.4.2.RELEASE] 在org.springframework.boot.SpringApplication.run(SpringApplication.java:315)[spring-boot-1.4.2.RELEASE.jar:1.4.2.RELEASE] 在org.springframework.boot.SpringApplication.run(SpringApplication.java:1186)[spring-boot-1.4.2.RELEASE.jar:1.4.2.RELEASE] 在org.springframework.boot.SpringApplication.run(SpringApplication.java:1175)[spring-boot-1.4.2.RELEASE.jar:1.4.2.RELEASE] 在com.test.OpenCmsApp.main(OpenCmsApp.java:50)[classes /:na]
[2m2017-09-18 14:34:02.072 [0; 39m [31mERROR [0; 39m [35m7936 [0; 39m [2m --- [0; 39m [2m [main] [0; 39m [36mo] .accC [Tomcat]。[localhost]。[/] [0; 39m [2m:[0; 39m Servlet [openCmsServlet]在web应用程序[]中抛出load()异常
javax.servlet.ServletException:OpenCms初始化期间出现严重错误:仍然启用了OpenCms设置向导。 在org.opencms.main.OpenCmsServlet.init(OpenCmsServlet.java:261)〜[opencms-core-10.5.2.jar:10.5.2] 在org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1183)〜[tomcat-embed-core-8.5.6.jar:8.5.6] 在org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:992)〜[tomcat-embed-core-8.5.6.jar:8.5.6] 在org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4913)〜[tomcat-embed-core-8.5.6.jar:8.5.6] at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedContext.deferredLoadOnStartup(TomcatEmbeddedContext.java:78)[spring-boot-1.4.2.RELEASE.jar:1.4.2.RELEASE] at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer.startConnector(TomcatEmbeddedServletContainer.java:256)[chring-boot-1.4.2.RELEASE.jar:1.4.2.RELEASE] at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer.start(TomcatEmbeddedServletContainer.java:181)[spring-boot-1.4.2.RELEASE.jar:1.4.2.RELEASE] at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.startEmbeddedServletContainer(EmbeddedWebApplicationContext.java:297)[spring-boot-1.4.2.RELEASE.jar:1.4.2.RELEASE] at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.finishRefresh(EmbeddedWebApplicationContext.java:145)[spring-boot-1.4.2.RELEASE.jar:1.4.2.RELEASE] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:545)[spring-context-4.3.4.RELEASE.jar:4.3.4.RELEASE] at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122)[spring-boot-1.4.2.RELEASE.jar:1.4.2.RELEASE] 在org.springframework.boot.SpringApplication.refresh(SpringApplication.java:761)[spring-boot-1.4.2.RELEASE.jar:1.4.2.RELEASE] 在org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:371)[spring-boot-1.4.2.RELEASE.jar:1.4.2.RELEASE] 在org.springframework.boot.SpringApplication.run(SpringApplication.java:315)[spring-boot-1.4.2.RELEASE.jar:1.4.2.RELEASE] 在org.springframework.boot.SpringApplication.run(SpringApplication.java:1186)[spring-boot-1.4.2.RELEASE.jar:1.4.2.RELEASE] 在org.springframework.boot.SpringApplication.run(SpringApplication.java:1175)[spring-boot-1.4.2.RELEASE.jar:1.4.2.RELEASE] 在com.test.OpenCmsApp.main(OpenCmsApp.java:50)[classes /:na]
[2m2017-09-18 14:34:02.072 [0; 39m [31mERROR [0; 39m [35m7936 [0; 39m [2m --- [0; 39m [2m [main] [0; 39m [36mo] .accC [Tomcat]。[localhost]。[/] [0; 39m [2m:[0; 39m Servlet [openCmsServlet]在web应用程序[]中抛出load()异常
答案 0 :(得分:2)
从您的错误说明中我无法完全理解您何时收到此错误消息。
如果在安装成功完成后获得,请检查opencms.properties
文件。文件末尾有一个变量wizard.enabled
。必须将其设置为false
。