Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-139437

JaxWsApiRegistrationTest intermittent failing on CI

    Description

    Issue:

     [exec] com.liferay.portal.remote.soap.extender.test.JaxWsApiRegistrationTest > testGreeter FAILED
         [exec]     java.lang.NoClassDefFoundError: com/sun/xml/txw2/TypedXmlWriter
         [exec]     	at com.sun.xml.bind.v2.schemagen.XmlSchemaGenerator.getNamespace(XmlSchemaGenerator.java:207)
         [exec]     	at com.sun.xml.bind.v2.schemagen.XmlSchemaGenerator.add(XmlSchemaGenerator.java:230)
         [exec]     	at com.sun.xml.bind.v2.schemagen.XmlSchemaGenerator.<init>(XmlSchemaGenerator.java:195)
         [exec]     	at com.sun.xml.bind.v2.runtime.JAXBContextImpl.createSchemaGenerator(JAXBContextImpl.java:858)
         [exec]     	at com.sun.xml.bind.v2.runtime.JAXBContextImpl.generateSchema(JAXBContextImpl.java:820)
         [exec]     	at org.apache.cxf.common.jaxb.JAXBUtils.generateJaxbSchemas(JAXBUtils.java:810)
         [exec]     	at org.apache.cxf.jaxb.JAXBDataBinding.generateJaxbSchemas(JAXBDataBinding.java:475)
         [exec]     	at org.apache.cxf.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:392)
         [exec]     	at org.apache.cxf.service.factory.AbstractServiceFactoryBean.initializeDataBindings(AbstractServiceFactoryBean.java:87)
         [exec]     	at org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean.buildServiceFromClass(ReflectionServiceFactoryBean.java:469)
         [exec]     	at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.buildServiceFromClass(JaxWsServiceFactoryBean.java:693)
         [exec]     	at org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:529)
         [exec]     	at org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:262)
         [exec]     	at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:199)
         [exec]     	at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:103)
         [exec]     	at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:168)
         [exec]     	at org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:211)
         [exec]     	at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:460)
         [exec]     	at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:338)
         [exec]     	at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:255)
         [exec]     	at org.apache.cxf.jaxws.spi.ProviderImpl.createAndPublishEndpoint(ProviderImpl.java:134)
         [exec]     	at com.liferay.jaxws.osgi.bridge.Provider.createAndPublishEndpoint(Provider.java:58)
         [exec]     	at javax.xml.ws.Endpoint.publish(Endpoint.java:240)
         [exec]     	at com.liferay.portal.remote.soap.extender.test.JaxWsApiBundleActivator.start(JaxWsApiBundleActivator.java:46)
         [exec]     	at com.liferay.portal.remote.soap.extender.test.BaseJaxWsTestCase.setUp(BaseJaxWsTestCase.java:43)
         [exec]     	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         [exec]     	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
         [exec]     	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         [exec]     	at java.lang.reflect.Method.invoke(Method.java:498)
         [exec]     	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
         [exec]     	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
         [exec]     	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
         [exec]     	at org.junit.internal.runners.statements.RunBefores.invokeMethod(RunBefores.java:33)
         [exec]     	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24)
         [exec]     	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
         [exec]     	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
         [exec]     	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable$1.evaluate(TestExecutorRunnable.java:237)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
         [exec]     	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
         [exec]     	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable._execute(TestExecutorRunnable.java:316)
         [exec]     	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable.run(TestExecutorRunnable.java:95)
         [exec]     	at java.lang.Thread.run(Thread.java:745)
         [exec]     Caused by: java.lang.ClassNotFoundException: com.sun.xml.txw2.TypedXmlWriter
         [exec]     	at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1364)
         [exec]     	at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1187)
         [exec]     	at com.liferay.shielded.container.internal.ShieldedContainerClassLoader.findClass(ShieldedContainerClassLoader.java:79)
         [exec]     	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
         [exec]     	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
         [exec]     	... 57 more
    

    Testray history link

    Based on Marta's investigation in LRQA-67175, the above is related to CXF (not necessarily with the latest update to 3.4.3, it was already detected for the previous CXF version of the Portal: 3.4.2). And the solution may be to add the correct library either to this module or to the CXF deployment module.

      Attachments

        Issue Links

          Activity

            People

            Assignee:
            support-lep@liferay.com SE Support
            Reporter:
            joyce.wang Joyce Wang
            Participants of an Issue:
            Recent user:
            Joyce Wang
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Days since last comment:
              4 weeks, 3 days ago

                Packages

                Version Package