1

当我尝试将名为 shopping-1 的应用程序部署到 Glassfish 3 时,出现以下错误:

'Publishing to GlassFish Server Open Source Edition 3 (Java EE 6)2 at localhost...'has encountered a problen.

cannot Deploy shopping-1
Deployment Error for module: shopping-1: Exception while loading the app :
  java.lang.Exception: java.lang.IllegalStateException: ContainerBase.addChild: start:
  org.apache.catalina.LifecycleException:
  org.apache.catalina.LifecycleException:
  java.lang.ClassNotFoundException:
  org.springframework.web.servlet.DispatcherServlet

如何追踪并解决此问题?

4

2 回答 2

0
  1. 首先运行 appserver admin-list 应用程序
  2. 检查服务器上是否有任何已部署的应用程序。
  3. 如果有,通过运行它们来取消部署。
  4. 停止应用程序服务器。
  5. 打开您拥有用于部署的war文件的位置文件夹
  6. 检查其中一次只有一个war文件。7.启动应用服务器
  7. 部署战争。
  8. 应该可以正常工作。
于 2012-11-23T04:44:01.373 回答
0

显然该shopping-1.war文件不包括包含DispatcherServlet该类的档案。

unzip -l shopping-1.war | grep spring(在 Linux 上)将为您提供所有与 spring 相关的包含 jar 文件的列表

于 2012-06-05T11:46:06.730 回答