[ 
https://issues.apache.org/jira/browse/CXF-9053?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17880442#comment-17880442
 ] 

Andriy Redko commented on CXF-9053:
-----------------------------------

[~davidbp] the problem is very likely related to the way you package your 
application inside the container (fat jar? ...), more details would help here, 
thank you.

> NullPointer in JaxWsServiceFactoryBean.generatedWrapperBeanClass() when 
> deploying application
> ---------------------------------------------------------------------------------------------
>
>                 Key: CXF-9053
>                 URL: https://issues.apache.org/jira/browse/CXF-9053
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 3.5.1
>            Reporter: David Butragueno Palomar
>            Priority: Minor
>
> I am using 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 works 
> 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.xml
> -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)

Reply via email to