-
Bug
-
Resolution: Unresolved
-
Blocker
-
None
-
7.3.16.CR1
-
None
After the upgrade to CXF 3.4.10.SP2-redhat-00001 (JBEAP-31278) there's now a whitelist of protocols that can be used in JNDI URLs (added in commit d152199d ).
The jboss remoting protocols used for JMS over SOAP are not part of that whitelist causing deployment failures with the following error:
ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC000001: Failed to start service jboss.deployment.unit."jaxws-cxf-jms-api.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.unit."jaxws-cxf-jms-api.war".INSTALL: WFLYSRV0153: Failed to process phase INSTALL of deployment "jaxws-cxf-jms-api.war" at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:183) at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1739) at org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1701) at org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1559) at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35) at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1982) at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486) at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377) at java.lang.Thread.run(Thread.java:750) Caused by: javax.xml.ws.WebServiceException: java.lang.IllegalArgumentException: Unsafe protocol in JNDI URL: at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:375) at org.jboss.wsf.stack.cxf.deployment.EndpointImpl.doPublish(EndpointImpl.java:79) at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:255) at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:543) at org.jboss.wsf.stack.cxf.configuration.BusHolder.configure(BusHolder.java:235) at org.jboss.wsf.stack.cxf.deployment.aspect.BusDeploymentAspect.startDeploymentBus(BusDeploymentAspect.java:97) at org.jboss.wsf.stack.cxf.deployment.aspect.BusDeploymentAspect.start(BusDeploymentAspect.java:59) at org.jboss.as.webservices.deployers.AspectDeploymentProcessor.deploy(AspectDeploymentProcessor.java:73) at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:176) ... 8 more Caused by: java.lang.IllegalArgumentException: Unsafe protocol in JNDI URL: at org.apache.cxf.transport.jms.util.JndiHelper.<init>(JndiHelper.java:45) at org.apache.cxf.transport.jms.JMSConfiguration.getConnectionFactoryFromJndi(JMSConfiguration.java:396) at org.apache.cxf.transport.jms.JMSConfiguration.getConnectionFactory(JMSConfiguration.java:378) at org.apache.cxf.transport.jms.JMSConfiguration.ensureProperlyConfigured(JMSConfiguration.java:111) at org.apache.cxf.transport.jms.JMSDestination.activate(JMSDestination.java:107) at org.apache.cxf.transport.AbstractObservable.setMessageObserver(AbstractObservable.java:53) at org.apache.cxf.binding.AbstractBindingFactory.addListener(AbstractBindingFactory.java:95) at org.apache.cxf.binding.soap.SoapBindingFactory.addListener(SoapBindingFactory.java:895) at org.apache.cxf.endpoint.ServerImpl.start(ServerImpl.java:130) at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:366) ... 16 more
The list is hardcoded and there doesn't seem to be a way how to configure this behavior.
This is a regression against Update 3.4.10.SP2-redhat-00001
- clones
-
JBEAP-30851 [QE](8.0.z) can't deploy deployments using SOAP over JMS with remoting protocols
-
- Verified
-
- is cloned by
-
JBEAP-31408 [QE](7.1.z) can't deploy deployments using SOAP over JMS with remoting protocols
-
- New
-