You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Juanda Zeng (JIRA)" <ji...@apache.org> on 2006/02/03 12:57:06 UTC

[jira] Created: (AXIS2-428) UnsupportedOperationException("TODO") when unimplemented methods of org.apache.axis2.om.impl.dom.jaxp.DocumentBuilderImpl class are called.

UnsupportedOperationException("TODO") when unimplemented methods of org.apache.axis2.om.impl.dom.jaxp.DocumentBuilderImpl class are called.
-------------------------------------------------------------------------------------------------------------------------------------------

         Key: AXIS2-428
         URL: http://issues.apache.org/jira/browse/AXIS2-428
     Project: Apache Axis 2.0 (Axis2)
        Type: Bug
  Components: om  
    Versions: 0.94    
 Environment: Windows XP Pro, JBoss 3.2.3
    Reporter: Juanda Zeng


Since development of the classes in the org.apache.axis2.om.impl.dom.jaxp package is still in progress, quite a few methods in the DocumentBuilderImpl class are still not implemented yet.
These methods throw UnsupportedOperationException("TODO") when called.
Currently, WSDoAllReceiver and WSDoAllSender make system-wide change by setting the "javax.xml.parsers.DocumentBuilderFactory" property to org.apache.axis2.om.impl.dom.jaxp.DocumentBuilderFactoryImpl.
This causes client modules to fail should there be a call to one of the unimplemented methods.
It is best to avoid using its DocumentBuilder until it is ready for testing.

SUGGESTED TEMPORARY WORKAROUND:
----------------------------------------------------------------
Use the DocumentBuilder from JDK (Crimson). Modify the newDocumentBuilder() method of the org.apache.axis2.om.impl.dom.jaxp.DocumentBuilderFactoryImpl class as follows:

  public DocumentBuilder newDocumentBuilder()
          throws ParserConfigurationException {
      /**
       * Juanda Zeng - 20060203
       * Since development is still in progress and a few methods are still not implemented yet,
       * it is best to avoid using its DocumentBuilder until it is ready for testing.
       * We will use the one from JDK (Crimson).
       */
      // return new DocumentBuilderImpl();
      return new org.apache.crimson.jaxp.DocumentBuilderFactoryImpl().newDocumentBuilder();
  }



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS2-428) UnsupportedOperationException("TODO") when unimplemented methods of org.apache.axis2.om.impl.dom.jaxp.DocumentBuilderImpl class are called.

Posted by "Ruchith Udayanga Fernando (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-428?page=comments#action_12365173 ] 

Ruchith Udayanga Fernando commented on AXIS2-428:
-------------------------------------------------

org.apache.axis2.om.impl.dom.jaxp.DocumentBuilderFactoryImpl is the DocumentBuilderFactory os the DOOM impl. DOOM is an implementation of DOM and AXIOM. Therefore we have to stick to org.apache.axis2.om.impl.dom.jaxp.DocumentBuilderFactoryImpl.

Right now when the control flow enters the Security handlers it sets the javax.xml.parsers.DocumentBuilderFactory of the VM org.apache.axis2.om.impl.dom.jaxp.DocumentBuilderFactoryImpl. BUT at the end of security processing it will be set back to the original (JDK specific) javax.xml.parsers.DocumentBuilderFactory impl. 

I found an issue with the org.apache.axis2.security.WSDoAllSender where we didn't reset the original javax.xml.parsers.DocumentBuilderFactory impl when the security module is deployed and no security processing is required. I think the above problem popped up because of this. Please try building and  deploying the security.mar from the latest SVN now (revision-374860).

> UnsupportedOperationException("TODO") when unimplemented methods of org.apache.axis2.om.impl.dom.jaxp.DocumentBuilderImpl class are called.
> -------------------------------------------------------------------------------------------------------------------------------------------
>
>          Key: AXIS2-428
>          URL: http://issues.apache.org/jira/browse/AXIS2-428
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Bug
>   Components: om
>     Versions: 0.94
>  Environment: Windows XP Pro, JBoss 3.2.3
>     Reporter: Juanda Zeng

>
> Since development of the classes in the org.apache.axis2.om.impl.dom.jaxp package is still in progress, quite a few methods in the DocumentBuilderImpl class are still not implemented yet.
> These methods throw UnsupportedOperationException("TODO") when called.
> Currently, WSDoAllReceiver and WSDoAllSender make system-wide change by setting the "javax.xml.parsers.DocumentBuilderFactory" property to org.apache.axis2.om.impl.dom.jaxp.DocumentBuilderFactoryImpl.
> This causes client modules to fail should there be a call to one of the unimplemented methods.
> It is best to avoid using its DocumentBuilder until it is ready for testing.
> SUGGESTED TEMPORARY WORKAROUND:
> ----------------------------------------------------------------
> Use the DocumentBuilder from JDK (Crimson). Modify the newDocumentBuilder() method of the org.apache.axis2.om.impl.dom.jaxp.DocumentBuilderFactoryImpl class as follows:
>   public DocumentBuilder newDocumentBuilder()
>           throws ParserConfigurationException {
>       /**
>        * Juanda Zeng - 20060203
>        * Since development is still in progress and a few methods are still not implemented yet,
>        * it is best to avoid using its DocumentBuilder until it is ready for testing.
>        * We will use the one from JDK (Crimson).
>        */
>       // return new DocumentBuilderImpl();
>       return new org.apache.crimson.jaxp.DocumentBuilderFactoryImpl().newDocumentBuilder();
>   }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS2-428) UnsupportedOperationException("TODO") when unimplemented methods of org.apache.axis2.om.impl.dom.jaxp.DocumentBuilderImpl class are called.

Posted by "Juanda Zeng (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-428?page=comments#action_12365232 ] 

Juanda Zeng commented on AXIS2-428:
-----------------------------------

I believe it's best to avoid using System.setProperty(...) for this case because other threads may be forced to use DOOM's DocumentBuilder when the security handlers are running.

> UnsupportedOperationException("TODO") when unimplemented methods of org.apache.axis2.om.impl.dom.jaxp.DocumentBuilderImpl class are called.
> -------------------------------------------------------------------------------------------------------------------------------------------
>
>          Key: AXIS2-428
>          URL: http://issues.apache.org/jira/browse/AXIS2-428
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Bug
>   Components: om
>     Versions: 0.94
>  Environment: Windows XP Pro, JBoss 3.2.3
>     Reporter: Juanda Zeng

>
> Since development of the classes in the org.apache.axis2.om.impl.dom.jaxp package is still in progress, quite a few methods in the DocumentBuilderImpl class are still not implemented yet.
> These methods throw UnsupportedOperationException("TODO") when called.
> Currently, WSDoAllReceiver and WSDoAllSender make system-wide change by setting the "javax.xml.parsers.DocumentBuilderFactory" property to org.apache.axis2.om.impl.dom.jaxp.DocumentBuilderFactoryImpl.
> This causes client modules to fail should there be a call to one of the unimplemented methods.
> It is best to avoid using its DocumentBuilder until it is ready for testing.
> SUGGESTED TEMPORARY WORKAROUND:
> ----------------------------------------------------------------
> Use the DocumentBuilder from JDK (Crimson). Modify the newDocumentBuilder() method of the org.apache.axis2.om.impl.dom.jaxp.DocumentBuilderFactoryImpl class as follows:
>   public DocumentBuilder newDocumentBuilder()
>           throws ParserConfigurationException {
>       /**
>        * Juanda Zeng - 20060203
>        * Since development is still in progress and a few methods are still not implemented yet,
>        * it is best to avoid using its DocumentBuilder until it is ready for testing.
>        * We will use the one from JDK (Crimson).
>        */
>       // return new DocumentBuilderImpl();
>       return new org.apache.crimson.jaxp.DocumentBuilderFactoryImpl().newDocumentBuilder();
>   }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS2-428) UnsupportedOperationException("TODO") when unimplemented methods of org.apache.axis2.om.impl.dom.jaxp.DocumentBuilderImpl class are called.

Posted by "Ruchith Udayanga Fernando (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-428?page=comments#action_12365238 ] 

Ruchith Udayanga Fernando commented on AXIS2-428:
-------------------------------------------------

I totally agree that using System.setProperty is not the best way to go. 

But the security.mar uses WSS4J and WSS4J uses XML-SEC. Within XML-SEC it does 
DocumentBuilderFactory.newInstance().newDocumentBuilder().parse() ...etc which forced us to implement DocumentBuilderImpl and DocumentBuilderFactoryImpl, to enable XML-SEC and WSS4J to use DOOM. And I couldn't find a way to set the DocumentBuilderFactory on ThreadLocal as well therefore had to set it for the whole VM, which of course will affect the other threads.

One obvious workaround is to complete DOOM to be a full fledged DOM impl... any volunteers? :-)

Any suggestions to overcome this problem are most welcome

> UnsupportedOperationException("TODO") when unimplemented methods of org.apache.axis2.om.impl.dom.jaxp.DocumentBuilderImpl class are called.
> -------------------------------------------------------------------------------------------------------------------------------------------
>
>          Key: AXIS2-428
>          URL: http://issues.apache.org/jira/browse/AXIS2-428
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Bug
>   Components: om
>     Versions: 0.94
>  Environment: Windows XP Pro, JBoss 3.2.3
>     Reporter: Juanda Zeng

>
> Since development of the classes in the org.apache.axis2.om.impl.dom.jaxp package is still in progress, quite a few methods in the DocumentBuilderImpl class are still not implemented yet.
> These methods throw UnsupportedOperationException("TODO") when called.
> Currently, WSDoAllReceiver and WSDoAllSender make system-wide change by setting the "javax.xml.parsers.DocumentBuilderFactory" property to org.apache.axis2.om.impl.dom.jaxp.DocumentBuilderFactoryImpl.
> This causes client modules to fail should there be a call to one of the unimplemented methods.
> It is best to avoid using its DocumentBuilder until it is ready for testing.
> SUGGESTED TEMPORARY WORKAROUND:
> ----------------------------------------------------------------
> Use the DocumentBuilder from JDK (Crimson). Modify the newDocumentBuilder() method of the org.apache.axis2.om.impl.dom.jaxp.DocumentBuilderFactoryImpl class as follows:
>   public DocumentBuilder newDocumentBuilder()
>           throws ParserConfigurationException {
>       /**
>        * Juanda Zeng - 20060203
>        * Since development is still in progress and a few methods are still not implemented yet,
>        * it is best to avoid using its DocumentBuilder until it is ready for testing.
>        * We will use the one from JDK (Crimson).
>        */
>       // return new DocumentBuilderImpl();
>       return new org.apache.crimson.jaxp.DocumentBuilderFactoryImpl().newDocumentBuilder();
>   }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS2-428) UnsupportedOperationException("TODO") when unimplemented methods of org.apache.axis2.om.impl.dom.jaxp.DocumentBuilderImpl class are called.

Posted by "Juanda Zeng (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-428?page=comments#action_12365264 ] 

Juanda Zeng commented on AXIS2-428:
-----------------------------------

Forgot to remove the hardcoding of org.apache.crimson.jaxp.DocumentBuilderFactoryImpl in the DocumentBuilderFactoryImpl class. Will upload a proper one soon. My apologies...

> UnsupportedOperationException("TODO") when unimplemented methods of org.apache.axis2.om.impl.dom.jaxp.DocumentBuilderImpl class are called.
> -------------------------------------------------------------------------------------------------------------------------------------------
>
>          Key: AXIS2-428
>          URL: http://issues.apache.org/jira/browse/AXIS2-428
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Bug
>   Components: om
>     Versions: 0.94
>  Environment: Windows XP Pro, JBoss 3.2.3
>     Reporter: Juanda Zeng
>  Attachments: DocumentBuilderFactoryImpl.java, WSDoAllReceiver.java, WSDoAllSender.java
>
> Since development of the classes in the org.apache.axis2.om.impl.dom.jaxp package is still in progress, quite a few methods in the DocumentBuilderImpl class are still not implemented yet.
> These methods throw UnsupportedOperationException("TODO") when called.
> Currently, WSDoAllReceiver and WSDoAllSender make system-wide change by setting the "javax.xml.parsers.DocumentBuilderFactory" property to org.apache.axis2.om.impl.dom.jaxp.DocumentBuilderFactoryImpl.
> This causes client modules to fail should there be a call to one of the unimplemented methods.
> It is best to avoid using its DocumentBuilder until it is ready for testing.
> SUGGESTED TEMPORARY WORKAROUND:
> ----------------------------------------------------------------
> Use the DocumentBuilder from JDK (Crimson). Modify the newDocumentBuilder() method of the org.apache.axis2.om.impl.dom.jaxp.DocumentBuilderFactoryImpl class as follows:
>   public DocumentBuilder newDocumentBuilder()
>           throws ParserConfigurationException {
>       /**
>        * Juanda Zeng - 20060203
>        * Since development is still in progress and a few methods are still not implemented yet,
>        * it is best to avoid using its DocumentBuilder until it is ready for testing.
>        * We will use the one from JDK (Crimson).
>        */
>       // return new DocumentBuilderImpl();
>       return new org.apache.crimson.jaxp.DocumentBuilderFactoryImpl().newDocumentBuilder();
>   }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (AXIS2-428) UnsupportedOperationException("TODO") when unimplemented methods of org.apache.axis2.om.impl.dom.jaxp.DocumentBuilderImpl class are called.

Posted by "Juanda Zeng (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-428?page=all ]

Juanda Zeng updated AXIS2-428:
------------------------------

    Attachment: DocumentBuilderFactoryImpl.java
                WSDoAllReceiver.java
                WSDoAllSender.java

Here are the updated files (no more hardcoding of the default factory). Not sure how to delete previous attachments. :)

> UnsupportedOperationException("TODO") when unimplemented methods of org.apache.axis2.om.impl.dom.jaxp.DocumentBuilderImpl class are called.
> -------------------------------------------------------------------------------------------------------------------------------------------
>
>          Key: AXIS2-428
>          URL: http://issues.apache.org/jira/browse/AXIS2-428
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Bug
>   Components: om
>     Versions: 0.94
>  Environment: Windows XP Pro, JBoss 3.2.3
>     Reporter: Juanda Zeng
>  Attachments: DocumentBuilderFactoryImpl.java, DocumentBuilderFactoryImpl.java, WSDoAllReceiver.java, WSDoAllReceiver.java, WSDoAllSender.java, WSDoAllSender.java
>
> Since development of the classes in the org.apache.axis2.om.impl.dom.jaxp package is still in progress, quite a few methods in the DocumentBuilderImpl class are still not implemented yet.
> These methods throw UnsupportedOperationException("TODO") when called.
> Currently, WSDoAllReceiver and WSDoAllSender make system-wide change by setting the "javax.xml.parsers.DocumentBuilderFactory" property to org.apache.axis2.om.impl.dom.jaxp.DocumentBuilderFactoryImpl.
> This causes client modules to fail should there be a call to one of the unimplemented methods.
> It is best to avoid using its DocumentBuilder until it is ready for testing.
> SUGGESTED TEMPORARY WORKAROUND:
> ----------------------------------------------------------------
> Use the DocumentBuilder from JDK (Crimson). Modify the newDocumentBuilder() method of the org.apache.axis2.om.impl.dom.jaxp.DocumentBuilderFactoryImpl class as follows:
>   public DocumentBuilder newDocumentBuilder()
>           throws ParserConfigurationException {
>       /**
>        * Juanda Zeng - 20060203
>        * Since development is still in progress and a few methods are still not implemented yet,
>        * it is best to avoid using its DocumentBuilder until it is ready for testing.
>        * We will use the one from JDK (Crimson).
>        */
>       // return new DocumentBuilderImpl();
>       return new org.apache.crimson.jaxp.DocumentBuilderFactoryImpl().newDocumentBuilder();
>   }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Resolved: (AXIS2-428) UnsupportedOperationException("TODO") when unimplemented methods of org.apache.axis2.om.impl.dom.jaxp.DocumentBuilderImpl class are called.

Posted by "Ruchith Udayanga Fernando (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-428?page=all ]
     
Ruchith Udayanga Fernando resolved AXIS2-428:
---------------------------------------------

    Resolution: Fixed

Fixed in SVN r-375495 

> UnsupportedOperationException("TODO") when unimplemented methods of org.apache.axis2.om.impl.dom.jaxp.DocumentBuilderImpl class are called.
> -------------------------------------------------------------------------------------------------------------------------------------------
>
>          Key: AXIS2-428
>          URL: http://issues.apache.org/jira/browse/AXIS2-428
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Bug
>   Components: om
>     Versions: 0.94
>  Environment: Windows XP Pro, JBoss 3.2.3
>     Reporter: Juanda Zeng
>  Attachments: DocumentBuilderFactoryImpl.java, DocumentBuilderFactoryImpl.java, WSDoAllReceiver.java, WSDoAllReceiver.java, WSDoAllSender.java, WSDoAllSender.java
>
> Since development of the classes in the org.apache.axis2.om.impl.dom.jaxp package is still in progress, quite a few methods in the DocumentBuilderImpl class are still not implemented yet.
> These methods throw UnsupportedOperationException("TODO") when called.
> Currently, WSDoAllReceiver and WSDoAllSender make system-wide change by setting the "javax.xml.parsers.DocumentBuilderFactory" property to org.apache.axis2.om.impl.dom.jaxp.DocumentBuilderFactoryImpl.
> This causes client modules to fail should there be a call to one of the unimplemented methods.
> It is best to avoid using its DocumentBuilder until it is ready for testing.
> SUGGESTED TEMPORARY WORKAROUND:
> ----------------------------------------------------------------
> Use the DocumentBuilder from JDK (Crimson). Modify the newDocumentBuilder() method of the org.apache.axis2.om.impl.dom.jaxp.DocumentBuilderFactoryImpl class as follows:
>   public DocumentBuilder newDocumentBuilder()
>           throws ParserConfigurationException {
>       /**
>        * Juanda Zeng - 20060203
>        * Since development is still in progress and a few methods are still not implemented yet,
>        * it is best to avoid using its DocumentBuilder until it is ready for testing.
>        * We will use the one from JDK (Crimson).
>        */
>       // return new DocumentBuilderImpl();
>       return new org.apache.crimson.jaxp.DocumentBuilderFactoryImpl().newDocumentBuilder();
>   }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (AXIS2-428) UnsupportedOperationException("TODO") when unimplemented methods of org.apache.axis2.om.impl.dom.jaxp.DocumentBuilderImpl class are called.

Posted by "Juanda Zeng (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-428?page=all ]

Juanda Zeng updated AXIS2-428:
------------------------------

    Attachment: DocumentBuilderFactoryImpl.java
                WSDoAllReceiver.java
                WSDoAllSender.java

I made some changes to DocumentBuilderFactoryImpl and WSDoAllXXX classes to make use of ThreadLocal as a temporary solution. The 3 modified files are attached.

I'm not sure if this really works as I do not have sufficient test cases to verify this. But based on my limited testing on my application, this seems to work fine.

I would appreciate it if anyone could comment on this. Thanks! :)

> UnsupportedOperationException("TODO") when unimplemented methods of org.apache.axis2.om.impl.dom.jaxp.DocumentBuilderImpl class are called.
> -------------------------------------------------------------------------------------------------------------------------------------------
>
>          Key: AXIS2-428
>          URL: http://issues.apache.org/jira/browse/AXIS2-428
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Bug
>   Components: om
>     Versions: 0.94
>  Environment: Windows XP Pro, JBoss 3.2.3
>     Reporter: Juanda Zeng
>  Attachments: DocumentBuilderFactoryImpl.java, WSDoAllReceiver.java, WSDoAllSender.java
>
> Since development of the classes in the org.apache.axis2.om.impl.dom.jaxp package is still in progress, quite a few methods in the DocumentBuilderImpl class are still not implemented yet.
> These methods throw UnsupportedOperationException("TODO") when called.
> Currently, WSDoAllReceiver and WSDoAllSender make system-wide change by setting the "javax.xml.parsers.DocumentBuilderFactory" property to org.apache.axis2.om.impl.dom.jaxp.DocumentBuilderFactoryImpl.
> This causes client modules to fail should there be a call to one of the unimplemented methods.
> It is best to avoid using its DocumentBuilder until it is ready for testing.
> SUGGESTED TEMPORARY WORKAROUND:
> ----------------------------------------------------------------
> Use the DocumentBuilder from JDK (Crimson). Modify the newDocumentBuilder() method of the org.apache.axis2.om.impl.dom.jaxp.DocumentBuilderFactoryImpl class as follows:
>   public DocumentBuilder newDocumentBuilder()
>           throws ParserConfigurationException {
>       /**
>        * Juanda Zeng - 20060203
>        * Since development is still in progress and a few methods are still not implemented yet,
>        * it is best to avoid using its DocumentBuilder until it is ready for testing.
>        * We will use the one from JDK (Crimson).
>        */
>       // return new DocumentBuilderImpl();
>       return new org.apache.crimson.jaxp.DocumentBuilderFactoryImpl().newDocumentBuilder();
>   }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS2-428) UnsupportedOperationException("TODO") when unimplemented methods of org.apache.axis2.om.impl.dom.jaxp.DocumentBuilderImpl class are called.

Posted by "Ruchith Udayanga Fernando (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-428?page=comments#action_12365395 ] 

Ruchith Udayanga Fernando commented on AXIS2-428:
-------------------------------------------------

Hi Juanda Zeng,

Nice work !!! Thank you very much for the fix... 

I just had to make a slight change to it to change the way ti gets the default DocumentBuilderFactoryImpl name. Sometimes System.getProperty(DocumentBuilderFactory.class.getName()); returns null but we can always do DocumentBuilderFactory.newInstance() sucessfully. Hence we can get teh class name using 
DocumentBuilderFactory.newInstance().getClass().getName(). I experienced this when I had the Xerces jars in the classpath.

You fix is integrated into axis2 now - SVN revision #375495


> UnsupportedOperationException("TODO") when unimplemented methods of org.apache.axis2.om.impl.dom.jaxp.DocumentBuilderImpl class are called.
> -------------------------------------------------------------------------------------------------------------------------------------------
>
>          Key: AXIS2-428
>          URL: http://issues.apache.org/jira/browse/AXIS2-428
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Bug
>   Components: om
>     Versions: 0.94
>  Environment: Windows XP Pro, JBoss 3.2.3
>     Reporter: Juanda Zeng
>  Attachments: DocumentBuilderFactoryImpl.java, DocumentBuilderFactoryImpl.java, WSDoAllReceiver.java, WSDoAllReceiver.java, WSDoAllSender.java, WSDoAllSender.java
>
> Since development of the classes in the org.apache.axis2.om.impl.dom.jaxp package is still in progress, quite a few methods in the DocumentBuilderImpl class are still not implemented yet.
> These methods throw UnsupportedOperationException("TODO") when called.
> Currently, WSDoAllReceiver and WSDoAllSender make system-wide change by setting the "javax.xml.parsers.DocumentBuilderFactory" property to org.apache.axis2.om.impl.dom.jaxp.DocumentBuilderFactoryImpl.
> This causes client modules to fail should there be a call to one of the unimplemented methods.
> It is best to avoid using its DocumentBuilder until it is ready for testing.
> SUGGESTED TEMPORARY WORKAROUND:
> ----------------------------------------------------------------
> Use the DocumentBuilder from JDK (Crimson). Modify the newDocumentBuilder() method of the org.apache.axis2.om.impl.dom.jaxp.DocumentBuilderFactoryImpl class as follows:
>   public DocumentBuilder newDocumentBuilder()
>           throws ParserConfigurationException {
>       /**
>        * Juanda Zeng - 20060203
>        * Since development is still in progress and a few methods are still not implemented yet,
>        * it is best to avoid using its DocumentBuilder until it is ready for testing.
>        * We will use the one from JDK (Crimson).
>        */
>       // return new DocumentBuilderImpl();
>       return new org.apache.crimson.jaxp.DocumentBuilderFactoryImpl().newDocumentBuilder();
>   }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira