Friday, May 2, 2014

HowTo: Stand a kie-drools-workbench server

Here are my notes on how to setup kie-drools-wb-distribution for version 6.0.1.Final.

Download Drools Workbench from http://drools.jboss.org/downloads
Download Tomcat7 from http://tomcat.apache.org/download-70.cgi

A ReadMe is kind of burred, but it states the following...

ReadMe:
Installation notes

Configure JEE security for kie-wb on tomcat (with default realm backed by tomcat-users.xml)

1. Copy kie-tomcat-integration jar into TOMCAT_HOME/lib
2. Copy jacc lib into TOMCAT_HOME/lib (javax.security.jacc-api in jboss maven repository)
3. Add valve configuration into TOMCAT_HOME/conf/server.xml inside Host element as last valve definition
<Valve className="org.kie.integration.tomcat.JACCValve" />
4. 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
5. Edit web.xml and uncomment all entries that are marked with TOMCAT-JEE-SECURITY
6. 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
These instructions are accurate, except for the part about uncommenting the TOMCAT-JEE-SECURITY sections in the web.xml, because they don't exist in the file.

So in order to find those sections, hop over to the below url and copy/paste them into the web.xml
https://github.com/droolsjbpm/kie-wb-distributions/blob/5255111cb52460e7c9da47c07ce84f4f0dc36055/kie-drools-wb/kie-drools-wb-distribution-wars/src/main/tomcat7/WEB-INF/web.xml

At this point, you should be able to get the application to stand and be able to authenticate in.

Tuesday, July 23, 2013

Java, Threads, and InterruptedException

If you have ever called Thread.sleep and cursed about having to now deal with the InterruptedException, you should read this!

http://www.ibm.com/developerworks/java/library/j-jtp05236/index.html

Friday, November 9, 2012

Java tip: How to list and find threads and thread groups

Found a fantastic post on finding threads and thread groups

http://nadeausoftware.com/articles/2008/04/java_tip_how_list_and_find_threads_and_thread_groups

Friday, September 7, 2012

ssh shortcuts

$ nano ~/.ssh/config

Host nickname
<tab> Hostname machine.hostname
<tab> User xxx

How to fix error “Updating Maven Project”. Unsupported IClasspathEntry kind=4?

Reposting an answer to this problem.
Disable the maven nature for the project (via the right-click menu), run mvn eclipse:clean (while your project is open in STS/eclipse), and then re-enable the maven nature. 
http://stackoverflow.com/questions/10564684/how-to-fix-error-updating-maven-project-unsupported-iclasspathentry-kind-4

Monday, June 25, 2012

Fedora: Add Application to Activities

> cd ~/.local/share/applications

create file: [application name].desktop

[Desktop Entry]
Type=Application
Name=[...]
Comment=[...]
Icon=[absolute path to icon]
Exec=[absolute path to application executable]
Terminal=false
Categories=[categories ';' separated]



 > sudo update-desktop-database