gpt4 book ai didi

java - Magnolia CMS 和 Blossom 模块异常

转载 作者:行者123 更新时间:2023-11-30 11:48:00 25 4
gpt4 key购买 nike

我正在试用 magnolia (v 4.4.6) 和 blossom (v.1.2.3) 进行 Spring 集成。安装并重新启动 tomcat 后,我​​看到一个错误:(知道如何解决这个问题吗?)

2012-01-27 11:05:56,733 INFO  info.magnolia.cms.beans.config.MIMEMapping        : 

Registering event listener for MIMEMapping
2012-01-27 11:05:56,735 INFO info.magnolia.cms.beans.config.ConfigLoader : Configuration loaded (took 7 seconds)
2012-01-27 11:05:56,926 WARN gnolia.content2bean.impl.Content2BeanProcessorImpl: can't resolve class for node /server/filters/cms/blossom
java.lang.NoClassDefFoundError: org/springframework/core/NestedIOException
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at info.magnolia.objectfactory.DefaultClassFactory.forName(DefaultClassFactory.java:52)
at info.magnolia.content2bean.impl.Content2BeanTransformerImpl.resolveType(Content2BeanTransformerImpl.java:110)
at info.magnolia.content2bean.impl.Content2BeanProcessorImpl.toBean(Content2BeanProcessorImpl.java:77)
at info.magnolia.content2bean.impl.Content2BeanProcessorImpl.toMap(Content2BeanProcessorImpl.java:178)
at info.magnolia.content2bean.impl.Content2BeanProcessorImpl.toBean(Content2BeanProcessorImpl.java:94)
at info.magnolia.content2bean.impl.Content2BeanProcessorImpl.toMap(Content2BeanProcessorImpl.java:178)
at info.magnolia.content2bean.impl.Content2BeanProcessorImpl.toBean(Content2BeanProcessorImpl.java:94)
at info.magnolia.content2bean.impl.Content2BeanProcessorImpl.toBean(Content2BeanProcessorImpl.java:68)
at info.magnolia.content2bean.Content2BeanUtil.toBean(Content2BeanUtil.java:149)
at info.magnolia.content2bean.Content2BeanUtil.toBean(Content2BeanUtil.java:135)
at info.magnolia.cms.filters.MgnlMainFilter.createRootFilter(MgnlMainFilter.java:151)
...
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: java.lang.ClassNotFoundException: org.springframework.core.NestedIOException
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
... 45 more

最佳答案

我遇到了同样的问题,我通过将以下依赖项添加到我的自定义模块中解决了这个问题:

org.springframework:spring-webmvc
org.springframework:spring-core
org.springframework:spring-web

我不确定是否需要所有这些依赖项。查看 blossom pom.xml (http://svn.magnolia-cms.com/view/community/modules/blossom/magnolia-module-blossom/trunk/pom.xml),spring-webmvc 有 scope= “provided”,表示 spring-mvc 旨在以一种或另一种形式提供。但至少它适用于那些显式依赖

关于java - Magnolia CMS 和 Blossom 模块异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9039094/

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