David Butragueno Palomar created CXF-9053: ---------------------------------------------
Summary: NullPointer in JaxWsServiceFactoryBean.java when deploying application Key: CXF-9053 URL: https://issues.apache.org/jira/browse/CXF-9053 Project: CXF Issue Type: Bug Reporter: David Butragueno Palomar I am utilizing Apache CXF in a Java application built with Bazel to make requests to an external web service. When deploying the microservice locally, for example, using IntelliJ IDEA, the application deploys successfully and functions as expected. However, when deploying the application within a Docker container, the microservice fails to deploy due to the following error: {code:java} java.lang.NullPointerException: null at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.generatedWrapperBeanClass(JaxWsServiceFactoryBean.java:670) ~[service_deploy.jar:?] at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.getExtraClass(JaxWsServiceFactoryBean.java:642) ~[service_deploy.jar:?] at org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean.buildServiceFromClass(ReflectionServiceFactoryBean.java:463) ~[service_deploy.jar:?] at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.buildServiceFromClass(JaxWsServiceFactoryBean.java:693) ~[service_deploy.jar:?] at org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:529) ~[service_deploy.jar:?] at org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:262) ~[service_deploy.jar:?] at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:199) ~[service_deploy.jar:?] at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:103) ~[service_deploy.jar:?] at org.apache.cxf.frontend.ClientFactoryBean.create(ClientFactoryBean.java:91) ~[service_deploy.jar:?] at org.apache.cxf.frontend.ClientProxyFactoryBean.create(ClientProxyFactoryBean.java:158) ~[service_deploy.jar:?] at org.apache.cxf.jaxws.JaxWsProxyFactoryBean.create(JaxWsProxyFactoryBean.java:142) ~[service_deploy.jar:?] {code} *Apache-cxf dependencies* org.apache.cxf:cxf-rt-ws-security org.apache.cxf:cxf-rt-frontend-jaxws org.apache.cxf:cxf-rt-transports-http *JVM options* -Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.NoOpLog -Dlog4j2.configurationFile=/resources/log4j2.xm -Dlog4j2.debug=true *Technical specifications* Apache CXF version: 3.5.1 Java versión: 11.0.4 Bazel version: 6.3.2 Docker version: 20.10.12 -- This message was sent by Atlassian Jira (v8.20.10#820010)