drools 6.0.1 workbench cannot deploy to tomcat7.0

久未见 提交于 2019-12-25 06:59:11

问题


I download kie-drools-wb-distribution-6.0.1.Final, and unzip it, copy kie-drools-wb-distribution-wars-6.0.1.Final-tomcat7.0.war into tomcat7.0. After restarting tomcat, there is only one error logged in catalina.out and cause drools workbench cannot start correctly.

Error listenerStart
Context [/kie-wb] startup failed due to previous errors

Note: I change the long war file name into simple one so that I can easily access web app.
I have read the readme under kie-web, it mentioned that I need to copy "kie-tomcat-integration Jar" into TOMCAT_HOME/lib, but I cannot find it in the download package.

The whole error log is following:

信息: Deploying web application directory D:\green\tomcat\webapps\kie-wb 2014-2-11 10:22:36 org.apache.catalina.core.StandardContext startInternal
严重: Error listenerStart 2014-2-11 10:22:36 org.apache.catalina.core.StandardContext startInternal
严重: Context [/kie-wb] startup failed due to previous errors


回答1:


  1. You will have to download the kie-tomcat-integration from mvnrepository http://mvnrepository.com/artifact/org.kie/kie-tomcat-integration/6.0.1.Final and place it in TOMCAT/lib.
  2. You will also need to download the jacc lib from http://mvnrepository.com/artifact/org.jboss.spec.javax.security.jacc/jboss-jacc-api_1.4_spec/1.0.3.Final and place it in TOMCAT/lib.
  3. Add valve configuration into TOMCAT_HOME/conf/server.xml inside Host element as last valve definition
  4. Rename org.uberfire.security.auth.AuthenticationSource to org.uberfire.security.auth.AuthenticationSource-ORIGIN and rename org.uberfire.security.auth.AuthenticationSource-TOMCAT-JEE-SECURITY to org.uberfire.security.auth.AuthenticationSource inside WEB-INF/classes/META-INF/services



回答2:


Your kie-drools-wb-distribution-6.0.1.Final archive contains a txt (README or sort of) file which has a list of steps to do to correctly install the webapp on Tomcat. Melvins answer contains those steps. Please refer to that txt to be sure you make the correct steps in the correct sequence and using the correct version of required libraries. You also may need to add / modify webapp properties to enable / disable certain features (e.g. demo projects installation) you may or may not want and configure your local git and maven repositories (folders).



来源:https://stackoverflow.com/questions/21692199/drools-6-0-1-workbench-cannot-deploy-to-tomcat7-0

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!