I am trying to deploy the kie-drools-wb on Tomcat7, but I keep getting these errors.
SEVERE: Error listenerStart
Jul 23, 2014 10:03:26 AM org.apache.catalina.core.StandardContext
startInternal
SEVERE: Context [/rule-mgnt-6.0.1] startup failed due to previous errors Jul 23, 2014
10:03:26 AM org.apache.catalina.loader.WebappClassLoader
clearReferencesThreads
SEVERE: The web application [/rule-mgnt-6.0.1] appears to have started a thread named
[pool-4-thread-1] but has failed to stop it. This is very likely to create a memory leak.
Jul 23, 2014 10:03:26 AM org.apache.catalina.loader.WebappClassLoader
checkThreadLocalMapForLeaks
SEVERE: The web application [/rule-mgnt-6.0.1] created a ThreadLocal with key of type
[org.jboss.solder.servlet.beanManager.ServletContextAttributeProvider$1]
(value
[org.jboss.solder.servlet.beanManager.ServletContextAttributeProvider$1@323acc6f])
and a value of type [org.apache.catalina.core.ApplicationContextFacade]
(value [org.apache.catalina.core.ApplicationContextFacade@3243a52c]) but failed to remove
it when the web application was stopped. Threads are going to be renewed over time to try
and avoid a probable memory leak.
Jul 23, 2014 10:03:26 AM org.apache.catalina.loader.WebappClassLoader
checkThreadLocalMapForLeaks
SEVERE: The web application [/rule-mgnt-6.0.1] created a ThreadLocal with key of type
[org.jboss.errai.config.util.ClassScanner$1] (value
[org.jboss.errai.config.util.ClassScanner$1@7711057b]) and a value of type
[java.lang.Boolean] (value [true]) but failed to remove it when the web application was
stopped. Threads are going to be renewed over time to try and avoid a probable memory
leak.
I have follow the instructions provided from this
link:http://drools.46999.n3.nabble.com/rules-users-Problems-deploying-war...
1. I have added these 3 jar files in my tomcat_home/lib directory
a. javax.security.jacc-api-1.5.jar
b. kie-tomcat-integration-6.1.0.CR2.jar
c. slf4j-api-1.7.7.jar
2. Modified the server.xml in tomcat_home/conf directory by adding the line below in the
<Host> tag
<Valve className="org.kie.integration.tomcat.JACCValve" /> 3. Added
the following in tomcat-users.xml
<role rolename="admin"/>
<role rolename="analyst"/>
<role rolename="manager-gui"/>
<role rolename="user"/>
<user username="admin" password="dummy"
roles="admin"/>
<user username="tomcat" password="dummy2"
roles="manager-gui"/> 4. Delete
org.uberfire.security.auth.AuthenticationSource inside WEB-INF/classes/META-INF/services
5. Rename org.uberfire.security.auth.AuthenticationSource-TOMCAT-JEE-SECURITY to
org.uberfire.security.auth.AuthenticationSource inside WEB-INF/classes/META-INF/services
6. Created a setenv.sh in tomcat_home/bin directory, which has this as it content
export JAVA_OPTS="-Dfile.encoding=UTF-8 -Xms128m -Xmx1024m -XX:PermSize=64m
-XX:MaxPermSize=256m"
7. Finally, uncomment the section in web.xml from the WAR file.
I am using Tomcat 7.0.54 and running on 64 bit Linux server. I would appreciate any
suggestions.
Thank You,
Chieu Nguyen
Chieu.nguyen(a)verizon.com