IBM Support

PK75322: JAVAX.XML.BIND.JAXBEXCEPTION <CLASS> IS NOT KNOWN TO THIS CONTEXT.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When trying to invoke a JAX-WS web service, this exception
    might occur:
    
    [9/30/08 7:57:45:468 PDT] 00000020 ExceptionFact 1
    org.apache.axis2.jaxws.ExceptionFactory logRootCause
    stack:javax.xml.bind.JAXBException:
    com.somecom.lib.business.xml.ComIdentifierXml is not known to
    this context
    at
    com.sun.xml.bind.v2.runtime.JAXBContextImpl.getBeanInfo(JAXBCont
    extImpl.java:538)
    at
    com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.getBea
    nInfo(UnmarshallerImpl.java:519)
    at
    com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmars
    hal(UnmarshallerImpl.java:319)
    at
    org.apache.axis2.jaxws.message.databinding.impl.JAXBBlockImpl$4.
    run(JAXBBlockImpl.java:513)
    at
    ...
    

Local fix

  • Place the jar file in under war/WEB-INF/lib.
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  Users of JAX-WS clients running in          *
    *                  WebSphere Application Server Feature Pack   *
    *                  for Web Services.                           *
    ****************************************************************
    * PROBLEM DESCRIPTION: The error                               *
    *                      "javax.xml.bind.JAXBException:          *
    *                      <class> is not known to this context"   *
    *                      might occur.                            *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    When trying to run a JAX-WS client in WebSphere Application
    Server for Web Services, this exception might occur:
     .
     9/30/08 7:57:45:468 PDT  00000020 ExceptionFact 1
    org.apache.axis2.jaxws.ExceptionFactory logRootCause
    stack:javax.xml.bind.JAXBException:
    com.somecom.lib.business.xml.ComIdentifierXml is not known to
    this context
    at
    com.sun.xml.bind.v2.runtime.JAXBContextImpl.getBeanInfo(JAXBCont
    extImpl.java:538)
    at
    com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.getBea
    nInfo(UnmarshallerImpl.java:519)
    at
    com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmars
    hal(UnmarshallerImpl.java:319)
    at
    org.apache.axis2.jaxws.message.databinding.impl.JAXBBlockImpl$4.
    run(JAXBBlockImpl.java:513)
    at
    ...
    .
    When the JAX-WS web service engine receives a message, it uses
    the JAXB engine to convert the message into java beans.
    The message indicates a failure occurred while converting xml
    into an object of type
    com.somecom.lib.business.xml.ComIdentifierXml.  The failure
    indicates that the JAXB engine was not initialized with
    information about this user class.
    .
    In this use case, the class
    com.somecom.lib.business.xml.ComIdentifierXml is packaged in a
    JAR at the EAR level. The exception does not happen if the
    class is packaged in a JAR located in the WAR module's
    WEB-INF/lib directory.
    

Problem conclusion

  • The code that populates the JAXBContext with user classes is
    improved to consider classes that are packaged in JAR files at
    the EAR level.
    .
    
    The fix for this APAR is currently targeted for inclusion in
    fixpack 6.1.0.25.  Please refer to the Recommended Updates
    page for delivery information:
    http://www.ibm.com/support/docview.wss?rs=180&uid=swg27004980
    

Temporary fix

Comments

APAR Information

  • APAR number

    PK75322

  • Reported component name

    WEBSPHERE APP S

  • Reported component ID

    5724J0800

  • Reported release

    610

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2008-11-10

  • Closed date

    2009-02-23

  • Last modified date

    2009-02-23

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Modules/Macros

  • WEBSVCS
    

Fix information

  • Fixed component name

    WEBSERVIC FEATU

  • Fixed component ID

    5724J0850

Applicable component levels

  • R610 PSY

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"6.1","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
29 December 2021