gpt4 book ai didi

java - 配置Amethyst CMS并用新配置(Java,Tomcat,XAMPP)重新启动后出错

转载 作者:行者123 更新时间:2023-11-28 23:41:01 26 4
gpt4 key购买 nike

在将Ametys CMS成功部署到Tomcat服务器(XAMPP)之后,我访问了配置链接http://localhost/cms,并开始完成必要的数据。我单击“保存并重新启动”,它显示一个错误:

发生错误。请与应用程序管理员联系。

这是它显示的详细信息:


An error occurred. Please contact the administrator of the application.org.apache.avalon.framework.component.ComponentException: Unable to initialize the ComponentManager (key [org.apache.cocoon.Processor]) at org.ametys.runtime.cocoon.TreeProcessor.compose(TreeProcessor.java:94) at org.apache.avalon.framework.container.ContainerUtil.compose(ContainerUtil.java:173) at org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:266) at org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:108) at org.apache.avalon.excalibur.component.ExcaliburComponentManager.initialize(ExcaliburComponentManager.java:524) at org.apache.cocoon.components.CocoonComponentManager.initialize(CocoonComponentManager.java:583) at org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:244) at org.apache.cocoon.Cocoon.initialize(Cocoon.java:345) at org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:244) at org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:1435) at org.ametys.runtime.servlet.RuntimeServlet.createCocoon(RuntimeServlet.java:225) at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:495) at org.ametys.runtime.servlet.RuntimeServlet.init(RuntimeServlet.java:171) 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:5176) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5460) 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:633) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1113) at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1671) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) Caused by: org.apache.avalon.framework.configuration.ConfigurationException: Specified driver class does not exist: com.mysql.jdbc.Driver at org.ametys.runtime.datasource.DataSourceExtensionPoint.addExtension(DataSourceExtensionPoint.java:65) at org.ametys.runtime.plugin.PluginsManager._loadExtensions(PluginsManager.java:1077) at org.ametys.runtime.plugin.PluginsManager._loadFeatures(PluginsManager.java:1030) at org.ametys.runtime.plugin.PluginsManager.initExtensions(PluginsManager.java:472) at org.ametys.runtime.cocoon.TreeProcessor.compose(TreeProcessor.java:65) ... 29 more Caused by: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:186) at org.ametys.runtime.datasource.DataSourceExtensionPoint.addExtension(DataSourceExtensionPoint.java:61) ... 33 more


有谁知道这是怎么回事?尝试使用Google搜索,没有发现任何有用的信息,例如重新启动Tomcat。
我知道Java适用于台式机,移动设备,但是我对使用Tomcat部署Web应用程序了解不多。我将不胜感激。

最佳答案

好的,问题是Tomcat缺少了mysql-connector-java-5.1.6-bin.jar库。我将其放置在tomcat / lib /中,错误消失了。下次我应该在日志中仔细查看。

关于java - 配置Amethyst CMS并用新配置(Java,Tomcat,XAMPP)重新启动后出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19636047/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com