Changeset 7897

Show
Ignore:
Timestamp:
06/17/08 19:55:45 (5 years ago)
Author:
shereef
Message:

ALF can install an Application with the DomMgr?; crashes on AppFac? create; getting warmer

Location:
ossiedev/branches/ssayed/devs/src/system/ossie/framework
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • ossiedev/branches/ssayed/devs/src/system/ossie/framework/DomainManager_impl.cpp

    r7896 r7897  
    11081108//sadComponents.begin(); 
    11091109    std::vector < SADComponentPlacement * >::iterator _iterator = sadComponents->begin (); 
    1110  
     1110    std::cout << "[DomainManager::installApplication] Validating SPDs\n"; 
    11111111    while (_iterator != sadComponents->end ()) 
    11121112    { 
     
    11141114        ++_iterator; 
    11151115    } 
    1116  
     1116    std::cout << "[DomainManager::installApplication] Adding new AppFac\n"; 
    11171117    appFact_servants.push_back(new ApplicationFactory_impl (profileFileName, &_applications)); 
    11181118 
     
    11231123 
    11241124    ossieSupport::sendObjAdded_event(_identifier.c_str(), sadParser->getID(), sadParser->getName(), (CORBA::Object_var) NULL, StandardEvent::APPLICATION_FACTORY); 
    1125  
    1126  
    1127     delete sadParser; 
    1128  
     1125    // FIXME: There is a problem deleting SADParser; causes seg fault 
     1126    // delete sadParser; 
    11291127  } catch (CF::FileException& ex) { 
    11301128    std::cout << "[DomainManager::installApplication] While validating the SAD profile: " << ex.msg << "\n"; 
     
    14551453      if ((strstr (_spdProfile, ".spd.xml")) == NULL) 
    14561454          std::cerr << "File " << _spdProfile << " should end with .spd.xml" << std::endl; 
    1457        
     1455      std::cout << "[DomainManager::validateSPD] Validating: " << _spdProfile << "\n"; 
    14581456      SPDParser spdParser ( _fileMgr->open( _spdProfile, true ) ); 
    14591457 
  • ossiedev/branches/ssayed/devs/src/system/ossie/framework/FileManager_impl.cpp

    r7855 r7897  
    199199        throw CF::InvalidFileName (CF::CFEINVAL, "[FileManager::exists] Invalid file name"); 
    200200    } 
    201     unsigned int fileFS(0); 
    202     std::string filePath; 
    203  
    204     getFSandFSPath(fileName, fileFS, filePath); 
    205  
    206     DEBUG(6, FileManager, "Running FS.exists for FS " << mount_table[fileFS].mountPoint << " and path " << filePath) 
    207     if (mount_table[fileFS].fs->exists (filePath.c_str())) 
    208         return true; 
    209     else 
    210         return false; 
     201 
     202    DEBUG(6, FileManager, "Running FS.exists for file " << fileName) 
     203 
     204    for( int i = 0; i < numMounts; i++ ) 
     205    { 
     206     if (mount_table[i].fs->exists (fileName) ) 
     207      return true; 
     208    } 
     209    return false; 
    211210} 
    212211