Skip to content
This repository was archived by the owner on Aug 10, 2023. It is now read-only.
This repository was archived by the owner on Aug 10, 2023. It is now read-only.

jaxbcontext.class. please make sure that you are specifying the proper classloader #29

Description

@glassfishrobot

Hi,

We are using Metro web service 2.2.1 in our code, we are getting the following ClassCastException.
From the error it looks like it is using the JAXBContext.class from webservices-api.jar whereas during runtime it is expecting JAXB class from jdk1.7.0_17.

As per Metro guidelines we have to package the webservices-api.jar in our application ear to make it Metro compliant.

Please let me know if there is a solution to this issue as we cannot make our webservices Metro compliant until this issue is resolved.

javax.xml.bind.JAXBException: ClassCastException: attempting to cast zip:C:/RPS_workspace/rps/rpa/rpa-netserver/java/rpa1/Weblogic/servers/AdminServer/tmp/_WL_user/RPA/gamr3e/APP-INF/lib/webservices-api-2.2.1-1.jar!/javax/xml/bind/JAXBContext.class to jar:file:/C:/Program%20Files/Java/jdk1.7.0_17/jre/lib/rt.jar!/javax/xml/bind/JAXBContext.class. Please make sure that you are specifying the proper ClassLoader.
at javax.xml.bind.ContextFinder.handleClassCastException(ContextFinder.java:115)
at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:251)
at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:235)
at javax.xml.bind.ContextFinder.find(ContextFinder.java:432)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:637)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:584)

We are using WebLogic 12c server.

Regards,
BalKrishna.

Activity

  1. glassfishrobot commented on Jul 31, 2014

    @glassfishrobot
    Author

    Reported by balkrishna

  2. glassfishrobot commented on Jul 31, 2014

    @glassfishrobot
    Author

    Was assigned to snajper

  3. glassfishrobot commented on May 3, 2017

    @glassfishrobot
    Author

    This issue was imported from java.net JIRA METRO-29

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions