PWC3989: An exception or error occurred in the container during the request processing 
java.lang.ClassCastException: com.sun.grizzly.config.ContextRootInfo cannot be cast to org.apache.catalina.Context 
	at org.apache.catalina.connector.CoyoteAdapter.postParseRequest(CoyoteAdapter.java:519) 
	at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:271) 
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231) 
	at com.sun.enterprise.v3.services.impl.ContainerMapper$AdapterCallable.call(ContainerMapper.java:317) 
	at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195) 
	at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:860) 
	at com.sun.grizzly.comet.CometEngine.executeServlet(CometEngine.java:459) 
	at com.sun.grizzly.comet.CometEngine.handle(CometEngine.java:316) 
	at com.sun.grizzly.comet.CometAsyncFilter.doFilter(CometAsyncFilter.java:87) 
	at com.sun.grizzly.arp.DefaultAsyncExecutor.invokeFilters(DefaultAsyncExecutor.java:171) 
	at com.sun.grizzly.arp.DefaultAsyncExecutor.interrupt(DefaultAsyncExecutor.java:143) 
	at com.sun.grizzly.arp.AsyncProcessorTask.doTask(AsyncProcessorTask.java:102) 
	at com.sun.grizzly.http.TaskBase.run(TaskBase.java:193) 
	at com.sun.grizzly.http.TaskBase.execute(TaskBase.java:175) 
	at com.sun.grizzly.arp.DefaultAsyncHandler.handle(DefaultAsyncHandler.java:145) 
	at com.sun.grizzly.arp.AsyncProtocolFilter.execute(AsyncProtocolFilter.java:210) 
	at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137) 
	at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104) 
	at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90) 
	at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79) 
	at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54) 
	at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59) 
	at com.sun.grizzly.ContextTask.run(ContextTask.java:71) 
	at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532) 
	at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513) 
	at java.lang.Thread.run(Thread.java:722)


解决:1、取消部署应用

    2、重启虚拟服务器(glassfish)

    3、重新部署应用

发布评论

分享到:

IT虾米网

微信公众号号:IT虾米 (左侧二维码扫一扫)欢迎添加!

jsf项目使用shiro验证局部文件时出现"The server encountered an internal error..."详解
你是第一个吃螃蟹的人
发表评论

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。