【问题标题】:java.lang.ClassNotFoundException while implementing RIOT CMS to Spring Java web applicationjava.lang.ClassNotFoundException 在将 RIOT CMS 实现到 Spring Java Web 应用程序时
【发布时间】:2012-06-11 12:16:11
【问题描述】:

我正在尝试在我的 Spring-java Web 应用程序中使用 Riot CMS http://www.riotfamily.org/docs/quickstart.html

我得到了skeleton.zip 和代码:

wget http://riotfamily.org/setup.xml && ant -f setup.xml

然后导入代码以在eclipse中实现相同...构建成功但404与java.lang.ClassNotFoundException。

我的步骤有什么错误吗?

[编辑] 错误信息是:

    Error configuring application listener of class 
    org.springframework.web.context.ContextLoaderListener java.lang.ClassNotFoundException: 
    org.springframework.web.context.ContextLoaderListener at 
    org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:16‌​76) 

【问题讨论】:

  • 它为哪个类抛出 ClassNotFoundException?
  • 构建后如何在服务器上部署应用程序?你在用 Maven 构建吗?
  • 您好 Pranalee,错误消息如下=====> 配置类 org.springframework.web.context.ContextLoaderListener java.lang.ClassNotFoundException 的应用程序侦听器时出错:org.springframework.web。 org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1676) 处的 context.ContextLoaderListener
  • 您好 Traroth,我正在使用 riotfamily.org/docs/quickstart.html 中给出的 Ant
  • 我正在使用同样的 Apache Tomcat 服务器

标签: java spring content-management-system


【解决方案1】:

我认为您缺少 spring-web.jar 依赖项。此 jar 包含您的应用程序抱怨的类。

【讨论】:

  • 嗨,汤姆,我已经包含 spring-web-3.1.0.RELEASE.jar 和 spring-webmvc-3.1.0.RELEASE.jar。标记显示 2 个错误 a) Ant Buildfile 问题。文件过早结束。 b) 多面项目问题(目标运行时 Apache Tomcat v5.5 未定义)
  • 好吧,如果您的 buildFile 运行不正确,则可能是依赖项没有全部复制。您应该首先修复构建文件的运行。使用输出更新您的问题,以便有人可以帮助您。
  • 嗨,Tom,1)我创建了名为 newRiotDemo 的 Java 动态项目,并将 setup.xml (riotfamily.org/setup.xml) 放入 WebContent 中。 2)然后运行 ​​wget riotfamily.org/setup.xml && ant -f setup.xml 终端 3)然后刷新 webcontent 中的 project.put index.html。 4) 控制台中也不例外,现在没有标记,但在提供localhost:8080/newRiotDemo/riot 时没有得到我想要的管理页面
  • 在构建 o/p 时是===>ant -f build.xml Buildfile: /home/10002/workspaceNew/newRiotDemo/WebContent/build.xml init: -init-local-db: configure : [echo] 合并配置。配置文件:10002 编译:[javac] /home/10002/workspaceNew/newRiotDemo/WebContent/build.xml:140:警告:未设置“includeantruntime”,默认为 build.sysclasspath=last;为可重复构建 webapp 设置为 false:[复制] 将 2 个文件复制到 /home/10002/workspaceNew/newRiotDemo/WebContent/webapp/WEB-INF/classes BUILD SUCCESSFUL 总时间:0 秒
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2012-10-30
  • 1970-01-01
  • 1970-01-01
  • 2016-02-07
  • 2017-06-14
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多