Spring Webflow和CDI是否兼容? 我在使用beans.xml(CDI)包含应用程序时遇到问题。Spring Webflow + CDI
我部署在JBoss 7.1
如果我运行包括/WEB-INF/beans.xml(CDI)的应用程序,我有这样的例外:
org.springframework.web.util .NestedServletExceptio n:请求 处理失败;嵌套的异常是 org.springframework.webflow.execution.FlowExecutio n异常: 异常流量 'comprar' 的状态 'modalidades' 抛出 org.springframework.web.servlet.FrameworkServlet.p rocessRequest(FrameworkServlet.java:894) org.springframework.web.servlet.FrameworkServlet.d oGet(FrameworkServlet.java:778) javax.servlet.http.HttpServlet.service(HttpServlet.java:734) javax.servlet.http.HttpServlet.service(HttpServlet。 java:847) org.springframework.security.web.FilterChainProxy $ VirtualFilterChain.doFilter(FilterChainProxy.java:343) org.springframework.security.web.access.intercept。 FilterSecurityInterceptor.invoke(FilterSecurityInt erceptor.java:109) org.springframework.security.web.access.intercept。 FilterSecurityInterceptor.doFilter(FilterSecurityI nterceptor.java:83) org.springframework.security.web.FilterChainProxy $ VirtualFilterChain.doFilter(FilterChainProxy.java:355) org.springframework.security.web.access.ExceptionT ranslationFilter.doFilter (ExceptionTranslationFilt er.java:97) org.springframework.security.web.FilterChainProxy $ VirtualFilterChain.doFilter(FilterChainProxy.java:355) org.springframework.security.web.session.SessionMa nagementFilter.doFilter(SessionManagementFilter.ja va:100) org.springframework.security.web.FilterChainProxy $ VirtualFilterChain.doFilter(FilterChainProxy.java:355) org.springframework.security.web.authentication.An onymousAuthenticationFilter.doFilter(AnonymousAuth enticationFilter.java:78) org.springframework.security.web.FilterChainProxy $ VirtualFilterChain.doFilter(FilterChainProxy.java:355) org.springframework .security.web.servletapi.Securi tyContextHolderAwareRequestFilter.doFilter(SECURIT yContextHolderAwareRequestFilter.java:54) org.springframework.security.web.FilterChainProxy $ VirtualFilterChain.doFilter(FilterChainProxy.java:355) org.springframework.security。 web.savedrequest.Requ estCacheAwareFilter.doFilter(RequestCacheAwareFilt er.java:35) org.springframew ork.security.web.FilterChainProxy $ VirtualFilterChain.doFilter(FilterChainProxy.java:355) org.springframework.security.web.authentication.http://www.BasicAuthenticationFilter...lter.java:177) org.springframework .security.web.FilterChainProxy $ VirtualFilterChain.doFilter(FilterChainProxy.java:355) org.springframework.security.web.authentication.Ab stractAuthenticationProcessingFilter.doFilter(分区:Abst ractAuthenticationProcessingFilter.java:187) org.springframework.security。 web.FilterChainProxy $ VirtualFilterChain.doFilter(FilterChainProxy.java:355) org.springframework.security.web.authentication。罗 gout.LogoutFilter.doFilter(LogoutFilter.java:105) org.springframework.security.web.FilterChainProxy $ VirtualFilterChain.doFilter(FilterChainProxy.java:355) org.springframework.security.web.context.SecurityC ontextPersistenceFilter .doFilter(SecurityContextPe rsistenceFilter.java:79) org.springframework.security.web.FilterChainProxy $ VirtualFilterChain.doFilter(FilterChainProxy.java:355) org.springframework.security.web.FilterChainProxy。 的doFilter(FilterChainProxy.java:149) org.springframework.web.filter.DelegatingFilterPro xy.invokeDelegate(DelegatingFilterProxy.java:346) org.springframework.web.filter.DelegatingFilterPro xy.doFilter(DelegatingFilterProxy.java:259 ) org.jboss.weld.servlet.ConversationPropagationFilt er.doFilter(ConversationPropagationFilter.java:62)根源
org.springframework.webflow.execution.FlowExecutio n异常: 异常在流动状态 'modalidades' 抛出' comprar' org.springframework.webflow.engine.impl.FlowExecut ionImpl.wrap(FlowExecutionImpl.java:571) org.springframework.webflow.engine.impl.FlowExecut ionImpl.resume(FlowExecutionImpl.java:262) org.springframework.webflow.executor.FlowExecutorI mpl.resumeExecution(FlowExecutorImpl.java:169) org.springframework.webflow .mvc.servlet.FlowHandle rAdapter.handle(FlowHandlerAdapter.java:183) org.springframework.faces.webflow.JsfFlowHandlerAd apter.handle(JsfFlowHandlerAdapter.java:48) org.springframework.web.servlet.DispatcherServlet。 (DispatcherServlet.java:923) org.springframework.web.servlet.DispatcherServlet。 doService(DispatcherServlet.java:852) org.springframework.web.servlet.FrameworkServlet.p rocessRequest(FrameworkServlet.java:882)
javax.faces.FacesException:错误校验最后修改为 JNDI:/默认-host/Webflow的-primefaces-陈列柜/ modalidades.xhtml com.sun.faces.facelets.impl.DefaultFaceletCache._g etLastModified(DefaultFaceletCache.java:175) com.sun.faces.facelets.impl.DefaultFaceletCache.ac $ 000(DefaultFaceletCache.java:62) com.sun.faces.facelets.impl.DefaultFaceletCache $ 2。 newInstance(DefaultFaceletCache.java:93) com.sun.faces.facelets.impl.DefaultFaceletCache $ 2。 的newInstance(DefaultFaceletCache.java:89) com.sun.faces.util.ExpiringConcurrentCache $ 1.call( ExpiringConcurrentCache.java:99) java.util.concurrent.FutureTask中$ Sync.innerRun(浮图reTask.java:334) java.util.concurrent.FutureTask.run(FutureTask.jav一个:166) com.sun.faces.util.ExpiringConcurrentCache.get(实验 iringConcurrentCache.java:114)
java.io.FileNotFoundException 有机.apache.naming.resources.DirContextURLConnectio n.getInputStream(DirContextURLConnection.java:369) com.sun.faces.facelets.impl.DefaultFaceletCache._g etLastModi (DefaultFaceletCache.java:172) com.sun.faces.facelets.impl.DefaultFaceletCache.ac cess $ 000(DefaultFaceletCache.java:62) com.sun.faces.facelets.impl.DefaultFaceletCache $ 2。 newInstance(DefaultFaceletCache.java:93) com.sun.faces.facelets.impl.DefaultFaceletCache $ 2。 的newInstance(DefaultFaceletCache.java:89) com.sun.faces.util.ExpiringConcurrentCache $ 1.call( ExpiringConcurrentCache.java:99)
当我删除beans.xml中,应用程序工作正常。
你有和你在哪里部署哪些问题? Tomcat的?的WebSphere?也许你应该张贴一些日志... – 2012-04-18 03:11:35
和:不,他们不应该是兼容的。但是,更多的信息将帮助:) – 2012-04-18 05:00:04