Bug 923825

Summary: Cannot create virtual host for tomcat7 rpm
Product: [JBoss] JBoss Enterprise Web Server 2 Reporter: Michal Haško <mhasko>
Component: tomcat7Assignee: David Knox <dknox>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: unspecified    
Version: 2.0.0CC: jclere, jstefl, lfuka, mhasko, mhusnain, myarboro, pslavice, weli
Target Milestone: ---   
Target Release: 2.0.1   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Due to permissions issues in the JBoss Enterprise Web Server RPM installation, a virtual host can not be created as expected. This occurs when the user <literal>tomcat</literal> is created in the <filename>tomcat-users.xml</filename> file and then navigating to <literal>localhost:8080/host-manager/html</literal> to sign in as user <literal>tomcat</literal>, then attempting to create a virtual host. This task fails with the following error: <screen>FAIL - Failed to create appBase [/usr/share/tomcat7/testwebapps] for host [test]</screen> A fix is applied in JBoss Enterprise Web Server 2.0.1 to create a virtual host as expected.
Story Points: ---
Clone Of:
: 978370 (view as bug list) Environment:
Last Closed: 2014-01-03 12:58:06 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 978370    

Description Michal Haško 2013-03-20 14:28:54 UTC
Description of problem:
Cannot create virtual host for tomcat7 rpm.

Version-Release number of selected component (if applicable):
tomcat7-7.0.30-5_patch_02.ep6.el6

How reproducible:
100%

Steps to Reproduce:
1. create user tomcat in tomcat-users.xml:
   <user username="tomcat" password="tomcat" roles="tomcat,admin-gui,manager-gui,manager-status,manager-jmx,manager-script"/>
2. naviage to localhost:8080/host-manager/html and sign in as user tomcat
3. Add virtual host. name: "test", appbase: "testwebapps"
  
Actual results:
FAIL - Failed to create appBase [/usr/share/tomcat7/testwebapps] for host [test]

This is caused because permissions of /usr/share/tomcat7 are root:root 775.

Comment 1 Michal Haško 2013-03-20 14:34:31 UTC
I should also point out that these steps work for tomcat6 rpm, which is probably a bug as well.
For tomcat6, creation of virtual host doesn't fail and no error is written in logs, but no appbase folder is created in /usr/share/tomcat6

Comment 2 Jean-frederic Clere 2013-06-14 09:26:20 UTC
Doc Text looks ok.

Comment 3 Michal Haško 2013-06-26 13:16:42 UTC
VERIFIED on:
tomcat7-7.0.40-8_patch_01.ep6.el5
tomcat7-7.0.40-5_patch_01.ep6.el6