如何在spring mvc中使用交叉上下文?

时间:2016-07-21 11:33:11

标签: spring-mvc

我有两个spring web mvc应用程序app1和app2。 在app1中,我使用jstl import标签来调用app2 controller。

<c:import context="/app2" url="/req/testUrl"/>

这将返回一些元标记和javascript。

当我运行app1 jsp时抛出异常。

java.lang.ClassCastException: org.springframework.web.context.request.async.WebAsyncManager cannot be cast to org.springframework.web.context.request.async.WebAsyncManager
    at org.springframework.web.context.request.async.WebAsyncUtils.getAsyncManager(WebAsyncUtils.java:44)
    at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:916)
    at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:816)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
    at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:801)

两个应用程序中都包含Spring jar。我无法将其保存在共享文件夹中。 我调查了this question,但我找不到答案。

请帮助我!

0 个答案:

没有答案