当前位置: 代码迷 >> J2EE >> 呼救 javax.servlet.UnavailableException 解决不了
  详细解决方案

呼救 javax.servlet.UnavailableException 解决不了

热度:557   发布时间:2016-04-22 03:07:22.0
求救 javax.servlet.UnavailableException 解决不了
错误信息如下 通过界面进系统有时报找个错,但是系统提供的webservice服务 能正常调用.
<Aug 13, 2009 3:56:12 PM GMT+08:00> <Error> <HTTP> <BEA-101018> <[ServletContext(id=1920120047,name=****,context-path=/****)] Servlet failed with ServletException
javax.servlet.UnavailableException
  at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:880)
  at org.apache.struts.action.ActionServlet.init(ActionServlet.java:336)
  at javax.servlet.GenericServlet.init(GenericServlet.java:258)
  at weblogic.servlet.internal.ServletStubImpl$ServletInitAction.run(ServletStubImpl.java:1094)
  at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java(Compiled Code))
  at weblogic.security.service.SecurityManager.runAs(SecurityManager.java(Compiled Code))
  at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:970)
  at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java:949)
  at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:888)
  at weblogic.servlet.internal.ServletStubImpl.reloadServlet(ServletStubImpl.java(Compiled Code))
  at weblogic.servlet.internal.ServletStubImpl.checkForReload(ServletStubImpl.java(Compiled Code))
  at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java(Compiled Code))
  at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java(Compiled Code))
  at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java(Compiled Code))
  at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java(Compiled Code))
  at com.****.pub.util.CharsetFilter.doFilter(CharsetFilter.java:32)
  at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java(Compiled Code))
  at com.****.pub.util.CharsetFilter.doFilter(CharsetFilter.java:32)
  at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java(Inlined Compiled Code))
  at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java(Compiled Code))
  at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java(Compiled Code))
  at weblogic.security.service.SecurityManager.runAs(SecurityManager.java(Inlined Compiled Code))
  at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java(Compiled Code))
  at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java(Compiled Code))
  at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java(Compiled Code))
  at weblogic.kernel.ExecuteThread.run(ExecuteThread.java(Compiled Code))

------解决方案--------------------
解决的方法就是手动加载进去的所有struts包都删掉, 建立一个新的library,把我要加载进去的所有jar文件都放入其中,然后添加到项目中去,注意,这里所有的jar文件必须出于一个版本的包中(这里我说一个版本的包是指你从网站上下载的时候必须是在一个struts文件中的lib文件夹中),然后重新运行tomcat应该就可以了,试试吧!
  相关解决方案