You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ozone.apache.org by Wei-Chiu Chuang <we...@apache.org> on 2023/06/28 21:28:44 UTC

httpfs has ClassNotFoundException

Saw this message in one of the test:

httpfs_1    | SEVERE: Implementation of JAXB-API has not been found on
module path or classpath.
httpfs_1    | javax.xml.bind.JAXBException: Implementation of JAXB-API has
not been found on module path or classpath.
httpfs_1    |  - with linked exception:
httpfs_1    | [java.lang.ClassNotFoundException:
com.sun.xml.internal.bind.v2.ContextFactory]
httpfs_1    |   at
javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:177)
httpfs_1    |   at javax.xml.bind.ContextFinder.find(ContextFinder.java:364)
httpfs_1    |   at
javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:508)
httpfs_1    |   at
javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:465)
httpfs_1    |   at
javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:366)
httpfs_1    |   at
com.sun.jersey.server.impl.wadl.WadlApplicationContextImpl.<init>(WadlApplicationContextImpl.java:107)
httpfs_1    |   at
com.sun.jersey.server.impl.wadl.WadlFactory.init(WadlFactory.java:100)
httpfs_1    |   at
com.sun.jersey.server.impl.application.RootResourceUriRules.initWadl(RootResourceUriRules.java:169)
httpfs_1    |   at
com.sun.jersey.server.impl.application.RootResourceUriRules.<init>(RootResourceUriRules.java:106)
httpfs_1    |   at
com.sun.jersey.server.impl.application.WebApplicationImpl._initiate(WebApplicationImpl.java:1359)

Any ideas what this is about? It doesn't fail the tests though.

Re: httpfs has ClassNotFoundException

Posted by Attila Doroszlai <ad...@apache.org>.
Thanks Wei-Chiu for the report, I've created HDDS-8955 for this.

> btw. which test?

Robot-based acceptance tests for HttpFS [1] run in Docker [2].

-Attila

[1] https://github.com/apache/ozone/tree/1356b93aa6c73f92f049353bb1d53b9438f34e4b/hadoop-ozone/dist/src/main/smoketest/httpfs
[2] https://github.com/apache/ozone/blob/1356b93aa6c73f92f049353bb1d53b9438f34e4b/hadoop-ozone/dist/src/main/compose/ozone/test.sh#L51

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ozone.apache.org
For additional commands, e-mail: dev-help@ozone.apache.org


Re: httpfs has ClassNotFoundException

Posted by Ayush Saxena <ay...@gmail.com>.
Is it a Java-8 thing? or a higher Java version, I saw similar stuff
while attempting to upgrade another project from Java-8 to Java-11,
some stuff over here [1] and [2]
I don't remember exactly but I think I added jakarta.xml.bind-api &
jaxb-runtime as docletArtifact and things worked for me.

btw. which test?

-Ayush

[1] https://stackoverflow.com/questions/54632086/java-11-implementation-of-jaxb-api-has-not-been-found-on-module-path-or-classpa
[2] https://mkyong.com/java/jaxbexception-implementation-of-jaxb-api-has-not-been-found-on-module-path-or-classpath/

On Thu, 29 Jun 2023 at 02:59, Wei-Chiu Chuang <we...@apache.org> wrote:
>
> Saw this message in one of the test:
>
> httpfs_1    | SEVERE: Implementation of JAXB-API has not been found on
> module path or classpath.
> httpfs_1    | javax.xml.bind.JAXBException: Implementation of JAXB-API has
> not been found on module path or classpath.
> httpfs_1    |  - with linked exception:
> httpfs_1    | [java.lang.ClassNotFoundException:
> com.sun.xml.internal.bind.v2.ContextFactory]
> httpfs_1    |   at
> javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:177)
> httpfs_1    |   at javax.xml.bind.ContextFinder.find(ContextFinder.java:364)
> httpfs_1    |   at
> javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:508)
> httpfs_1    |   at
> javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:465)
> httpfs_1    |   at
> javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:366)
> httpfs_1    |   at
> com.sun.jersey.server.impl.wadl.WadlApplicationContextImpl.<init>(WadlApplicationContextImpl.java:107)
> httpfs_1    |   at
> com.sun.jersey.server.impl.wadl.WadlFactory.init(WadlFactory.java:100)
> httpfs_1    |   at
> com.sun.jersey.server.impl.application.RootResourceUriRules.initWadl(RootResourceUriRules.java:169)
> httpfs_1    |   at
> com.sun.jersey.server.impl.application.RootResourceUriRules.<init>(RootResourceUriRules.java:106)
> httpfs_1    |   at
> com.sun.jersey.server.impl.application.WebApplicationImpl._initiate(WebApplicationImpl.java:1359)
>
> Any ideas what this is about? It doesn't fail the tests though.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ozone.apache.org
For additional commands, e-mail: dev-help@ozone.apache.org