The tomcat6 and tomcat7 postinstall scripts included in JBoss Enterprise Web Server do not work as expected. This is because the SEModule is expected to be in the <filename class="directory">/usr/bin/semodule</filename> directory, which does not exist. SEModule is available at <filename class="directory">/usr/sbin/semodule</filename> instead, which is the correct location. Additionally, the provided module installation path (<filename class="directory">%/selinux/packages/tomcat...</filename>) is incorrect.
A fix is added for tomcat6 and tomcat7 in JBoss Enterprise Web Server 2.0.1. This fix ensures that the expected path for SEModule is correct and that the installation path is correct. As a result, the module now works as expected.