Bug 839003 - [jbossas] /usr/share/jbossas directory should be removed when uninstalling jbossas
Summary: [jbossas] /usr/share/jbossas directory should be removed when uninstalling jb...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: jbossas
Version: 6.1.0
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
: ---
Assignee: Fernando Nasser
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-07-10 15:34 UTC by Kiril Nesenko
Modified: 2014-07-11 00:09 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-02-26 17:31:33 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
tree (41.52 KB, text/plain)
2012-07-10 15:34 UTC, Kiril Nesenko
no flags Details

Description Kiril Nesenko 2012-07-10 15:34:21 UTC
Created attachment 597378 [details]
tree

Description of problem:
/usr/share/jbossas directory should be removed when uninstalling jbossas
I have an older version and i am running:

yum remove `rpm -qa | grep ep6`
yum remove `rpm -qa | grep jboss`

When installing a new jbossas , it fails to start a service due to these dirs exist.


Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. Remove jbossas - 
yum remove `rpm -qa | grep ep6`
yum remove `rpm -qa | grep jboss`

2. Check if /usr/share/jbossas exist.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Fernando Nasser 2013-02-26 17:31:33 UTC
The JBoss AS creates files (and directories) under $JBOSS_HOME and thus the RPM system will not remove this directory or any user/system created files in it.  

The AS7 is designed so it can be updated and start with the previous config files in place, so unless you had an older AS in place like AS5 from EAP 5 (which may be your case) the files should not prevent the server to start.  Maybe you need to investigate the reason why the server is not starting if you want to pursue this method.

If you are upgrading from EAP 5 you should add the 
rm -fr /usr/share/jbossas/ 
after your two commands above.

If you are upgrading from EAP 6 then you need to follow the instruction on how to upgrade from the previous EAP 6 release from the Guide.

I hope that helps.


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