Topic
  • 3 replies
  • Latest Post - ‏2011-09-01T20:13:47Z by SystemAdmin
HBUB_Gopikrishna_C
HBUB_Gopikrishna_C
2 Posts

Pinned topic JAXP API usage compatibility issue while migrating WAS from 6.1 to 7.0

‏2011-08-29T20:14:58Z |
Hi

We have application running on WAS 6.1(JRE 1.4). We want to migrate it to WAS 7.0 (JRE 1.6).
After running WAS migration tool kit, we found an issue/error which says "Check for JAXP API usage compatibility" (Error is showing at the lines where javax.xml.parsers and org.w3c.dom packages imported).

Can anyone please help me in resolving this issue.

Thanks in advance.
Updated on 2011-09-01T20:13:47Z at 2011-09-01T20:13:47Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    102 Posts

    Re: JAXP API usage compatibility issue while migrating WAS from 6.1 to 7.0

    ‏2011-08-29T21:30:55Z  
    This rule detects JAXP incompatibilities that must be investigated when migrating to J2SE 5 or higher. Please see the detailed help for the rule. In addition please see the information at the following link: http://download.oracle.com/javase/1.5.0/docs/guide/xml/jaxp/JAXP-Compatibility_150.html

    You will need to check the usage of the flagged JAXP classes in your code to make sure they are compatible with J2SE 5.
  • HBUB_Gopikrishna_C
    HBUB_Gopikrishna_C
    2 Posts

    Re: JAXP API usage compatibility issue while migrating WAS from 6.1 to 7.0

    ‏2011-09-01T18:34:35Z  
    This rule detects JAXP incompatibilities that must be investigated when migrating to J2SE 5 or higher. Please see the detailed help for the rule. In addition please see the information at the following link: http://download.oracle.com/javase/1.5.0/docs/guide/xml/jaxp/JAXP-Compatibility_150.html

    You will need to check the usage of the flagged JAXP classes in your code to make sure they are compatible with J2SE 5.
    Thank you very much for response.

    I am getting the issue at the import of classes which are available with JRE itself (like import javax.xml.parsers.DocumentBuilder or import org.w3c.dom.Document etc...). since all the classes imported here are available with JRE and are in classpath then they should be compatible with it right ? but why migration tool is showing such a problem.

    Can anyone please suggest more on resolving this issue.

    Thank you.
  • SystemAdmin
    SystemAdmin
    102 Posts

    Re: JAXP API usage compatibility issue while migrating WAS from 6.1 to 7.0

    ‏2011-09-01T20:13:47Z  
    Thank you very much for response.

    I am getting the issue at the import of classes which are available with JRE itself (like import javax.xml.parsers.DocumentBuilder or import org.w3c.dom.Document etc...). since all the classes imported here are available with JRE and are in classpath then they should be compatible with it right ? but why migration tool is showing such a problem.

    Can anyone please suggest more on resolving this issue.

    Thank you.
    Hello,

    With regards to:
    "....since all the classes imported here are available with JRE and are in classpath then they should be compatible with it right ?"
    Yes, that is correct; however, in the document at the link, http://download.oracle.com/javase/1.5.0/docs/guide/xml/jaxp/JAXP-Compatibility_150.html, you will find many particular JAXP incompatibility issues which may be present when migrating to J2SE 5.

    So as for:
    "why is the migration tool showing such a problem?
    The migration tool is flagging your code where those APIs are used so that you will be aware that:
    1) your code is using JAXP APIs, and
    2) those APIs may have incompatibility issues.
    The recommended action is to review the document at the above link and then determine if your use of these APIs matches any of the issues listed in the document.