Bug 115224 - /etc/ccm/ccm.classpath references directories which don't exist
Summary: /etc/ccm/ccm.classpath references directories which don't exist
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Web Application Framework
Classification: Retired
Component: installation
Version: nightly
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Dennis Gregorovic
QA Contact: Jon Orris
URL:
Whiteboard:
Depends On:
Blocks: 113496
TreeView+ depends on / blocked
 
Reported: 2004-02-09 11:24 UTC by Daniel Berrangé
Modified: 2007-04-18 17:02 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2004-03-05 20:28:59 UTC
Embargoed:


Attachments (Terms of Use)

Description Daniel Berrangé 2004-02-09 11:24:32 UTC
Description of problem:
/etc/ccm/ccm.classpath references directories in
/usr/sharwe/java/[appname]/ for all applications, even though only
Core & CMS actually contain these dirs. This causes ccm hostinit to
fail with an NPE at the for() loop in HostInit.java:


    private static void copyDirectory(File dir, File dest) throws
IOException {
        File[] files = dir.listFiles();
        if (dir == null) {
            err("unable to get directory listing: " + dir);
        }
        for (int i = 0; i < files.length; i++) {
            Files.copy(files[i], dest, Files.IGNORE_EXISTING);
        }
    }


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


How reproducible:


Steps to Reproduce:
1. Run ccm hostinit
2.
3.
  
Actual results:
NPE on first app which doesn't contain /usr/share/java/[appname]

Expected results:
Hostinit completes.

Additional info:

Comment 1 Dennis Gregorovic 2004-02-09 22:33:30 UTC
@40218


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