Hi,
There have been a few people with Tomcat deployment issues
for kie-drools-wb, so I thought I'd give it a try.
These are the steps I followed for successful
deployment (most of which is already documented, but not
obvious, in the WAR's README.txt file):-
6.0.1
Starting with a clean install of Tomcat 7.
1. Copy "kie-tomcat-integration" JAR into TOMCAT_HOME/lib
(org.kie:kie-tomcat-integration)
2. Copy "JACC" JAR into TOMCAT_HOME/lib
(javax.security.jacc:artifactId=javax.security.jacc-api in
JBoss Maven Repository)
3. Copy "slf4j-api" JAR into TOMCAT_HOME/lib
(org.slf4j:artifactId=slf4j-api in JBoss Maven Repository)
4. Add valve configuration into TOMCAT_HOME/conf/server.xml inside
<Host>
element as last valve definition:
<Valve
className="org.kie.integration.tomcat.JACCValve" />
5. Edit TOMCAT_HOME/conf/tomcat-users.xml
to include roles and users, make sure there will be
'analyst' or 'admin' roles defined as it's required to be
authorized to use kie-wb
6. Delete org.uberfire.security.auth.AuthenticationSource inside
WEB-INF/classes/META-INF/services
7. Rename org.uberfire.security.auth.AuthenticationSource-TOMCAT-JEE-SECURITY
to
org.uberfire.security.auth.AuthenticationSource inside
WEB-INF/classes/META-INF/services
8. Increase Java's PermGen space by adding file TOMCAT_HOME/bin/setenv.sh containing export JAVA_OPTS="-Xmx1024m
-XX:MaxPermSize=256m"
9. Start Tomcat with TOMCAT_HOME/bin/startup.sh
11. Deploy modified WAR
If you do not complete these steps the WAR works "out of
the box" but you'll need to define Users in WEB-INF/classes/login.config
6.1.0-SNAPSHOT
Starting with a clean install of Tomcat 7.
1. Copy "kie-tomcat-integration" JAR into TOMCAT_HOME/lib
(org.kie:kie-tomcat-integration)
2. Copy "JACC" JAR into TOMCAT_HOME/lib
(javax.security.jacc:artifactId=javax.security.jacc-api in
JBoss Maven Repository)
3. Copy "slf4j-api" JAR into TOMCAT_HOME/lib
(org.slf4j:artifactId=slf4j-api in JBoss Maven Repository)
4. Add valve configuration into
TOMCAT_HOME/conf/server.xml inside Host element as last
valve definition:
<Valve
className="org.kie.integration.tomcat.JACCValve" />
5. Edit TOMCAT_HOME/conf/tomcat-users.xml to include
roles and users, make sure there will be 'analyst' or
'admin' roles defined as it's required to be authorized to
use kie-wb
6. Start Tomcat with TOMCAT_HOME/bin/startup.sh
8. Deploy modified WAR
With kind regards,
Mike