User: juhalindfors
  Date: 02/02/20 22:59:59

  Modified:    src/main/org/jboss/mx/metadata XMLMetaData.java
  Log:
  THIS IS A TEMP FIX:
  
  when running the tests there is a conflict between the JAXP/crimson version
  loaded by the build system (don't know what version is used) and the version
  requied by JDOM (needs JAXP 1.1 and crimson 1.1 to work). The workaround is
  to bypass JAXP and feed in the SAX driver directly to the SAX builder (hard
  coded to crimson).
  
  THIS IS A TEMP FIX!
  
  Revision  Changes    Path
  1.2       +20 -15    jmx/src/main/org/jboss/mx/metadata/XMLMetaData.java
  
  Index: XMLMetaData.java
  ===================================================================
  RCS file: /cvsroot/jboss/jmx/src/main/org/jboss/mx/metadata/XMLMetaData.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- XMLMetaData.java  13 Dec 2001 00:10:03 -0000      1.1
  +++ XMLMetaData.java  21 Feb 2002 06:59:59 -0000      1.2
  @@ -35,17 +35,17 @@
   {
   
      // Constants -----------------------------------------------------
  -   private final static String GET_METHOD = "getMethod";
  -   private final static String SET_METHOD = "setMethod";
  -   private final static String PERSIST_POLICY = "persistPolicy";
  -   private final static String PERSIST_PERIOD = "persistPeriod";
  -   private final static String PERSIST_NAME = "persistName";
  -   private final static String PERSIST_LOCATION = "persistLocation";
  +   private final static String GET_METHOD          = "getMethod";
  +   private final static String SET_METHOD          = "setMethod";
  +   private final static String PERSIST_POLICY      = "persistPolicy";
  +   private final static String PERSIST_PERIOD      = "persistPeriod";
  +   private final static String PERSIST_NAME        = "persistName";
  +   private final static String PERSIST_LOCATION    = "persistLocation";
      private final static String CURRENCY_TIME_LIMIT = "currencyTimeLimit";
  -   private final static String ON_UPDATE = "OnUpdate";
  -   private final static String NO_MORE_OFTEN_THAN = "NoMoreOftenThan";
  -   private final static String NEVER = "Never";
  -   private final static String ON_TIMER = "OnTimer";
  +   private final static String ON_UPDATE           = "OnUpdate";
  +   private final static String NO_MORE_OFTEN_THAN  = "NoMoreOftenThan";
  +   private final static String NEVER               = "Never";
  +   private final static String ON_TIMER            = "OnTimer";
      
      // Attributes ----------------------------------------------------    
      private URL url          = null;
  @@ -59,10 +59,8 @@
         this.className = resourceClassName;
      }
   
  -   public XMLMetaData(String resourceClassName, String url)
  -   throws MalformedURLException
  +   public XMLMetaData(String resourceClassName, String url) throws 
MalformedURLException
      {
  -
         this(resourceClassName, new URL(url));
      }
   
  @@ -73,7 +71,14 @@
      {
         try
         {
  -         SAXBuilder builder = new SAXBuilder();
  +         // FIXME FIXME FIXME
  +         // the SAX driver is hard coded here due to conflicts with the JAXP/Crimson
  +         // version in the testsuite build system and the JAXP/crimson versions 
required
  +         // by the JDOM Beta 7 implementation (JAXP 1.1 & crimson 1.1)
  +         //
  +         // the driver class (and validation) should be configurable by the client
  +         //
  +         SAXBuilder builder = new 
SAXBuilder("org.apache.crimson.parser.XMLReaderImpl");
   
            builder.setValidation(true);
   
  @@ -114,7 +119,7 @@
         }
         catch (JDOMException e)
         {
  -         throw new NotCompliantMBeanException("Error parsing the XML file: " + 
e.toString());
  +         throw new NotCompliantMBeanException("Error parsing the XML file: " + 
((e.getCause() == null) ? e.toString() : e.getCause().toString()));
         }
      }
   
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to