Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-8675

jakarta.xml.bind.ModuleUtil error after jaxb 3.0.1 upgrade

    XMLWordPrintableJSON

Details

    • Task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • 4.0.6
    • Core
    • None
    • Unknown

    Description

      SOAPRpcLitClientTypeTest throws the follow exception. 

      [INFO] Running org.apache.cxf.systest.type_test.soap.SOAPRpcLitClientTypeTest
      jakarta.xml.ws.WebServiceException: org.apache.cxf.service.factory.ServiceConstructionException
          at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:373)
          at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:255)
          at org.apache.cxf.jaxws.spi.ProviderImpl.createAndPublishEndpoint(ProviderImpl.java:130)
          at jakarta.xml.ws.Endpoint.publish(Endpoint.java:224)
          at org.apache.cxf.systest.type_test.soap.SOAPRpcLitServerImpl.run(SOAPRpcLitServerImpl.java:33)
          at org.apache.cxf.testutil.common.AbstractTestServerBase.startInProcess(AbstractTestServerBase.java:44)
          at org.apache.cxf.testutil.common.ServerLauncher.launchServer(ServerLauncher.java:193)
          at org.apache.cxf.testutil.common.AbstractClientServerTestBase.launchServer(AbstractClientServerTestBase.java:91)
          at org.apache.cxf.systest.type_test.soap.SOAPRpcLitClientTypeTest.startServers(SOAPRpcLitClientTypeTest.java:45)
          at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
          at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at java.base/java.lang.reflect.Method.invoke(Method.java:568)
          at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
          at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
          at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
          at org.junit.internal.runners.statements.RunBefores.invokeMethod(RunBefores.java:33)
          at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24)
          at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
          at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
          at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
          at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:364)
          at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:272)
          at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:237)
          at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:158)
          at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:428)
          at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:162)
          at org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:562)
          at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:548)
      Caused by: org.apache.cxf.service.factory.ServiceConstructionException
          at org.apache.cxf.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:360)
          at org.apache.cxf.service.factory.AbstractServiceFactoryBean.initializeDataBindings(AbstractServiceFactoryBean.java:87)
          at org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean.buildServiceFromWSDL(ReflectionServiceFactoryBean.java:425)
          at org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:527)
          at org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:262)
          at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:199)
          at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:103)
          at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:168)
          at org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:210)
          at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:458)
          at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:336)
          ... 28 more
      Caused by: jakarta.xml.bind.JAXBException: Package javax.xml.namespace with Jakarta XML Binding class javax.xml.namespace.QName defined in a module java.xml must be open to at least jakarta.xml.bind module.
          at jakarta.xml.bind.ModuleUtil.delegateAddOpensToImplModule(ModuleUtil.java:132)
          at jakarta.xml.bind.ContextFinder.newInstance(ContextFinder.java:270)
          at jakarta.xml.bind.ContextFinder.newInstance(ContextFinder.java:263)
          at jakarta.xml.bind.ContextFinder.find(ContextFinder.java:395)
          at jakarta.xml.bind.JAXBContext.newInstance(JAXBContext.java:691)
          at org.apache.cxf.common.jaxb.JAXBContextCache$2.run(JAXBContextCache.java:339)
          at org.apache.cxf.common.jaxb.JAXBContextCache$2.run(JAXBContextCache.java:337)
          at java.base/java.security.AccessController.doPrivileged(AccessController.java:569)
          at org.apache.cxf.common.jaxb.JAXBContextCache.createContext(JAXBContextCache.java:337)
          at org.apache.cxf.common.jaxb.JAXBContextCache.getCachedContextAndSchemas(JAXBContextCache.java:245)
          at org.apache.cxf.jaxb.JAXBDataBinding.createJAXBContextAndSchemas(JAXBDataBinding.java:499)
          at org.apache.cxf.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:358)
          ... 38 more

       

      Attachments

        Issue Links

          Activity

            People

              ema Jim Ma
              ema Jim Ma
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: