db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mka...@apache.org
Subject cvs commit: db-ojb/src/java/org/apache/ojb/broker/metadata MetadataManager.java
Date Thu, 07 Apr 2005 10:10:54 GMT
mkalen      2005/04/07 03:10:54

  Modified:    src/java/org/apache/ojb/broker/metadata Tag: OJB_1_0_RELEASE
                        MetadataManager.java
  Log:
  Clarify exception message (after several reports on ojb-user list re confusing repository.xml-message).
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.19.2.3  +5 -3      db-ojb/src/java/org/apache/ojb/broker/metadata/MetadataManager.java
  
  Index: MetadataManager.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/metadata/MetadataManager.java,v
  retrieving revision 1.19.2.2
  retrieving revision 1.19.2.3
  diff -u -r1.19.2.2 -r1.19.2.3
  --- MetadataManager.java	25 Feb 2005 00:09:25 -0000	1.19.2.2
  +++ MetadataManager.java	7 Apr 2005 10:10:54 -0000	1.19.2.3
  @@ -142,7 +142,7 @@
       private void init()
       {
           metadataProfiles = new Hashtable();
  -        String repository = ((PersistenceBrokerConfiguration) OjbConfigurator.getInstance()
  +        final String repository = ((PersistenceBrokerConfiguration) OjbConfigurator.getInstance()
                   .getConfigurationFor(null)).getRepositoryFilename();
           try
           {
  @@ -151,9 +151,11 @@
           }
           catch (FileNotFoundException ex)
           {
  +            log.warn("Could not access '" + repository + "' or a DOCTYPE/DTD-dependency.
"
  +                     + "(Check letter case for file names and HTTP-access if using DOCTYPE
PUBLIC)"
  +                     + " Starting with empty metadata and connection configurations.",
ex);
               globalRepository     = new DescriptorRepository();
               connectionRepository = new ConnectionRepository();
  -            log.info("No repository.xml file found, starting with empty metadata and connection
configuration");
           }
           catch (Exception ex)
           {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message