论坛首页 Java企业应用论坛

jbpm 3.2.2+Tomcat 6.0.10+MySQL5.0.27/MSSQL2000全攻略四

浏览 1732 次
该帖已经被评为隐藏帖
作者 正文
   发表时间:2008-08-03  

          d)、修改web.xml文件

               jbpm-console\WEB-INF下打开web.xml文件,在servlet前加入以下listener,注意:把listener放在所有的servlet前面,我发现网上很多帖子里都没有提到这一点,不知道他们的程序是怎么跑起来的?残念ING~~~

<listener>

     <listener-class>com.sun.faces.config.ConfigureListener</listener-class>

</listener>

<listener>

     <listener-class>com.sun.faces.application.WebappLifecycleListener</listener-class>

</listener>

             这两个监听器很关键,大象先一直没有成功的原因就是没有加这个,而这两个监听器都在jsf-impl.jar包中,jbpm-console这个应用可是用jsf来实现的,如果你不加,则会产生如下这些错误:

javax.servlet.ServletException: Servlet.init() for servlet Faces Servlet threw exception

          at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1202)

          at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:806)

          at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:656)

          at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:469)

          at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:403)

          at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)

          at org.apache.catalina.authenticator.FormAuthenticator.forwardToLoginPage(FormAuthenticator.java:316)

          at org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:244)

          at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:491)

          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)

          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)

          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216)

          at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)

          at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634)

          at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)

          at java.lang.Thread.run(Thread.java:595)

Caused by: java.lang.IllegalStateException: Application was not properly initialized at startup, could not find Factory: javax.faces.context.FacesContextFactory

          at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:256)

          at javax.faces.webapp.FacesServlet.init(FacesServlet.java:142)

          at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)

          ... 16 more

 

java.lang.IllegalStateException: Application was not properly initialized at startup, could not find Factory: javax.faces.context.FacesContextFactory

          at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:256)

          at javax.faces.webapp.FacesServlet.init(FacesServlet.java:142)

          at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)

          at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)

          at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4044)

          at org.apache.catalina.core.StandardContext.start(StandardContext.java:4350)

          at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:761)

          at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:741)

          at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)

          at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)

          at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)

          at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)

          at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)

          at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)

          at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)

          at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1023)

          at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)

          at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1015)

          at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)

          at org.apache.catalina.core.StandardService.start(StandardService.java:448)

          at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)

          at org.apache.catalina.startup.Catalina.start(Catalina.java:552)

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

          at java.lang.reflect.Method.invoke(Method.java:585)

          at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)

          at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)

2008-8-3 13:03:49 org.apache.catalina.core.StandardContext loadOnStartup

严重: Servlet /jbpm-console threw load() exception

          

论坛首页 Java企业应用版

跳转论坛:
Global site tag (gtag.js) - Google Analytics