Bug 923825 - Cannot create virtual host for tomcat7 rpm
Summary: Cannot create virtual host for tomcat7 rpm
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Enterprise Web Server 2
Classification: JBoss
Component: tomcat7
Version: 2.0.0
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
: 2.0.1
Assignee: David Knox
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 978370
TreeView+ depends on / blocked
 
Reported: 2013-03-20 14:28 UTC by Michal Haško
Modified: 2015-11-02 00:18 UTC (History)
8 users (show)

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.
Clone Of:
: 978370 (view as bug list)
Environment:
Last Closed: 2014-01-03 12:58:06 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.