14 Replies Latest reply on Jan 12, 2011 10:45 AM by Shawn Evans

    WARNING [org.apache.cxf.phase.PhaseInterceptorChain] Interceptor for ... has thrown exception, unwinding now: java.lang.NullPointerException

    Shawn Evans Newbie

      I have been trying to get my CXF webservices to work with the JBoss CXF stack (jboss-6.0.0.20100721-M4). They work just fine utilizing the apache cxf libraries, but I keep getting -> WARNING [org.apache.cxf.phase.PhaseInterceptorChain] Interceptor for ... has thrown exception, unwinding now: java.lang.NullPointerException. Your help would be appreciated.

       

      Thank you,

      Shawn

       

      **********************************************

      Java code used to run with the apache cxf libraries in stand-alone (this works):

       

      private void createDemoService(final AegisDatabinding aDB)
          {
              JacobDemoServiceImpl jacobDemoService = new JacobDemoServiceImpl();
              JaxWsServerFactoryBean svrFactory = new JaxWsServerFactoryBean();
              addInterceptors(svrFactory);
              svrFactory.setServiceClass(JacobDemoService.class);
              svrFactory.setAddress(Configuration.getProperty("service.address") + "JacobDemoService");
              svrFactory.setServiceBean(jacobDemoService);
              svrFactory.getServiceFactory().setDataBinding(aDB);
              svrFactory.create();
          }

       

      private void addInterceptors(final JaxWsServerFactoryBean svrFactory)
          {
              //svrFactory.getInInterceptors().add(new LoggingInInterceptor());
              //svrFactory.getOutInterceptors().add(new LoggingOutInterceptor());

       

              Map<String, Object> inProps = new HashMap<String, Object>();
              inProps.put(WSHandlerConstants.ACTION,
                      WSHandlerConstants.USERNAME_TOKEN);
              // Password type : plain text
              inProps.put(WSHandlerConstants.PASSWORD_TYPE, WSConstants.PW_TEXT);
              // Callback used to retrieve password for given user.
              inProps.put(WSHandlerConstants.PW_CALLBACK_CLASS,
                      ServerPasswordHandler.class.getName());

       

              WSS4JInInterceptor wssIn = new WSS4JInInterceptor(inProps);
              svrFactory.getInInterceptors().add(wssIn);

       

      **********************************************

      jbossws-cxf.xml (this doesn't work):

       

      <beans xmlns="http://www.springframework.org/schema/beans"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xmlns:beans="http://www.springframework.org/schema/beans"
          xmlns:jaxws="http://cxf.apache.org/jaxws"
          xmlns:util="http://www.springframework.org/schema/util"
          xmlns:cxf="http://cxf.apache.org/core"
          xmlns:simple="http://cxf.apache.org/simple"
          xsi:schemaLocation="http://www.springframework.org/schema/beans
          http://www.springframework.org/schema/beans/spring-beans.xsd
          http://cxf.apache.org/jaxws
          http://cxf.apache.org/schemas/jaxws.xsd
          http://www.springframework.org/schema/util
          http://www.springframework.org/schema/util/spring-util.xsd
          http://cxf.apache.org/core
          http://cxf.apache.org/schemas/core.xsd
          http://cxf.apache.org/simple
          http://cxf.apache.org/schemas/simple.xsd">

       


          <!-- The service bean -->
          <bean id="JacobDemoServiceImpl" class="com.northgrum.jacob.services.demo.JacobDemoServiceImpl" />

       

          <!-- Aegis data binding -->
          <bean id="aegisBean" class="org.apache.cxf.aegis.databinding.AegisDatabinding"
              scope="prototype">
              <property name="configuration">
                  <bean class="org.apache.cxf.aegis.type.TypeCreationOptions">
                      <property name="defaultMinOccurs" value="1" />
                      <property name="defaultNillable" value="false" />
                  </bean>
              </property>
          </bean>
          <bean id="aegis-service-factory" class="org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean"
              scope="prototype">
              <property name="dataBinding" ref="aegisBean" />
          </bean>

       


          <!-- WSS4JInInterceptor beans for authentication -->
          <bean id="myPasswordCallback"
              class="com.northgrum.jacob.services.security.ServerPasswordHandler" />

       

          <bean id="JACOB_WS_User_Auth_Int" class="org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor">
              <constructor-arg>
                  <map>
                      <entry key="action" value="UsernameToken" />
                      <entry key="passwordType" value="PasswordText" />
                      <entry key="passwordCallbackRef">
                          <ref bean="myPasswordCallback" />
                      </entry>
                  </map>
              </constructor-arg>
          </bean>

       

          <jaxws:endpoint id="JacobDemoService"
              implementorClass="com.northgrum.jacob.services.demo.JacobDemoServiceImpl"
              implementor="#JacobDemoServiceImpl" address="/JacobDemoService">
              <jaxws:serviceFactory>
                  <ref bean="aegis-service-factory" />
              </jaxws:serviceFactory>
              <jaxws:invoker>
                  <bean class='org.jboss.wsf.stack.cxf.InvokerJSE' />
              </jaxws:invoker>
          </jaxws:endpoint>

       

          <!-- CXF Bus -->
          <bean id="logInbound" class="org.apache.cxf.interceptor.LoggingInInterceptor" />
          <bean id="logOutbound" class="org.apache.cxf.interceptor.LoggingOutInterceptor" />

       

          <cxf:bus>
              <cxf:inInterceptors>
                  <ref bean="logInbound" />
              <!-- <ref bean="JACOB_WS_User_Auth_Int" /> -->
              </cxf:inInterceptors>
              <cxf:outInterceptors>
                  <ref bean="logOutbound" />
              </cxf:outInterceptors>
              <cxf:inFaultInterceptors>
                  <ref bean="logOutbound" />
              </cxf:inFaultInterceptors>
          </cxf:bus>

       

      </beans>

       

      **********************************************

      Log file excerpts from JBoss Server:

       

      INFO  [ReflectionServiceFactoryBean] Creating Service {http://demo.services.jacob.northgrum.com/}JacobDemoService from class com.northgrum.jacob.common.demo.JacobDemoService
      INFO  [ServerImpl] Setting the server's publish address to be /JacobDemoService
      .
      .
      .
      ----------------------------
      ID: 1
      Address: /jacob/services/JacobDemoService
      Encoding: UTF-8
      Content-Type: text/xml; charset=UTF-8
      Headers: {cache-control=[no-cache], content-type=[text/xml; charset=UTF-8], connection=[keep-alive], host=[localhost:8080], Content-Length=[917], SOAPAction=[""
      ], user-agent=[Apache CXF 2.2.9], Content-Type=[text/xml; charset=UTF-8], Accept=[*/*], pragma=[no-cache]}
      Payload: <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oa
      sis-200401-wss-wssecurity-secext-1.0.xsd" soap:mustUnderstand="1"><wsse:UsernameToken xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecu
      rity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="UsernameToken-1"><wsse:Username>test
      _1</wsse:Username><wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">&lt;sessionid>cdee38d0-7
      97c-41d5-8f79-2e238bc7883f&lt;/sessionid>&lt;password>blah_blah&lt;/password></wsse:Password></wsse:UsernameToken></wsse:Security></soap:Header><soap:Body><
      ns1:echo xmlns:ns1="http://demo.common.jacob.northgrum.com/"><ns1:text>World</ns1:text></ns1:echo></soap:Body></soap:Envelope>
      --------------------------------------
      .
      .
      .
      WARNING [org.apache.cxf.phase.PhaseInterceptorChain] Interceptor for {http://demo.services.jacob.northgrum.com/}JacobDemoService#{http://demo.commo
      n.jacob.northgrum.com/}echo has thrown exception, unwinding now: java.lang.NullPointerException

        • 3. Re: WARNING [org.apache.cxf.phase.PhaseInterceptorChain] Interceptor for ... has thrown exception, unwinding now: java.lang.NullPointerException
          Shawn Evans Newbie

          Here it is... sorry, I was hoping it was going to be a quick tweak this in your jbossws-cxf.xml

           

          11:04:40,994 INFO  [org.apache.cxf.interceptor.LoggingInInterceptor] Inbound Message

          ----------------------------

          ID: 9

          Address: /jacob/services/JacobDemoService

          Encoding: UTF-8

          Content-Type: text/xml; charset=UTF-8

          Headers: {cache-control=[no-cache], content-type=[text/xml; charset=UTF-8], connection=[keep-alive], host=[localhost:8080], Content-Length=[917], SOAPAction=[""

          ], user-agent=[Apache CXF 2.2.9], Content-Type=[text/xml; charset=UTF-8], Accept=[*/*], pragma=[no-cache]}

          Payload: <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oa

          sis-200401-wss-wssecurity-secext-1.0.xsd" soap:mustUnderstand="1"><wsse:UsernameToken xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecu

          rity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="UsernameToken-1"><wsse:Username>test

          _1</wsse:Username><wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">&lt;sessionid>14aeaedb-5

          9e6-4689-9b77-ca6f903f264e&lt;/sessionid>&lt;password>test/password></wsse:Password></wsse:UsernameToken></wsse:Security></soap:Header><soap:Body><

          ns1:echo xmlns:ns1="http://demo.common.jacob.northgrum.com/"><ns1:text>World</ns1:text></ns1:echo></soap:Body></soap:Envelope>

          --------------------------------------

          11:04:41,228 WARNING [org.apache.cxf.phase.PhaseInterceptorChain] Interceptor for {http://demo.services.jacob.northgrum.com/}JacobDemoService#{http://demo.commo

          n.jacob.northgrum.com/}echo has thrown exception, unwinding now: java.lang.NullPointerException

              at org.jboss.wsf.stack.cxf.AbstractInvoker._invokeInternal(AbstractInvoker.java:142) [:3.3.1.GA]

              at org.jboss.wsf.stack.cxf.AbstractInvoker.invoke(AbstractInvoker.java:104) [:3.3.1.GA]

              at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58) [:2.2.9]

              at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [:1.6.0_23]

              at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) [:1.6.0_23]

              at java.util.concurrent.FutureTask.run(Unknown Source) [:1.6.0_23]

              at org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.java:37) [:2.2.9]

              at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:106) [:2.2.9]

              at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:243) [:2.2.9]

              at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:110) [:2.2.9]

              at org.apache.cxf.transport.servlet.ServletDestination.invoke(ServletDestination.java:98) [:2.2.9]

              at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:423) [:2.2.9]

              at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:178) [:2.2.9]

              at org.apache.cxf.transport.servlet.AbstractCXFServlet.invoke(AbstractCXFServlet.java:142) [:2.2.9]

              at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:179) [:2.2.9]

              at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:103) [:2.2.9]

              at javax.servlet.http.HttpServlet.service(HttpServlet.java:754) [:1.0.0.Beta2]

              at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:159) [:2.2.9]

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:324) [:6.0.0.20100721-M4]

              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.0.0.20100721-M4]

              at org.jboss.resteasy.plugins.server.servlet.FilterDispatcher.doFilter(FilterDispatcher.java:63) [:6.0.0.20100721-M4]

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274) [:6.0.0.20100721-M4]

              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.0.0.20100721-M4]

              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [:6.0.0.20100721-M4]

              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) [:6.0.0.20100721-M4]

              at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:181) [:6.0.0.20100721-M4]

              at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.event(CatalinaContext.java:285) [:1.1.0.CR3]

              at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.invoke(CatalinaContext.java:261) [:1.1.0.CR3]

              at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:88) [:6.0.0.20100721-M4]

              at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:93) [:6.0.0.20100721-M4]

              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) [:6.0.0.20100721-M4]

              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [:6.0.0.20100721-M4]

              at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158) [:6.0.0.20100721-M4]

              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [:6.0.0.20100721-M4]

              at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:53) [:6.0.0.20100721-M4]

              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [:6.0.0.20100721-M4]

              at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [:6.0.0.20100721-M4]

              at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653) [:6.0.0.20100721-M4]

              at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951) [:6.0.0.20100721-M4]

              at java.lang.Thread.run(Unknown Source) [:1.6.0_23]

          • 5. Re: WARNING [org.apache.cxf.phase.PhaseInterceptorChain] Interceptor for ... has thrown exception, unwinding now: java.lang.NullPointerException
            Alessio Soldano Master

            Sorry for the late reply, I missed this thread when getting back from Xmas time ;-)

            So, you're getting a NPE in the jbossws-cxf AbstractInvoker.

            Here is the code there in v. 3.3.1.GA:

            141     Endpoint ep = EndpointAssociation.getEndpoint();
            142     InvocationHandler invHandler = ep.getInvocationHandler();

             

            thus the ep instance is not properly retrieved by the EndpointAssociation, which is likely to be related to threading issues. That part of code has been fixed due to https://issues.jboss.org/browse/JBWS-3060 in JBossWS-CXF 3.4.0.Beta1.

            I believe your issue should also be solved upstream, hence you should try moving to a more recent version. The suggested path here is downloading JBoss AS 6 Final (and -if you need to use the Spring configuration files- installing JBossWS-CXF 3.4.1.GA on top of AS6 Final, with -Dspring=true option, given the JBossWS-CXF installed in AS does not include spring).

            • 6. Re: WARNING [org.apache.cxf.phase.PhaseInterceptorChain] Interceptor for ... has thrown exception, unwinding now: java.lang.NullPointerException
              Shawn Evans Newbie

              OK,

               

                 Installed jboss-as-distribution-6.0.0.Final.zip and jbossws-cxf-3.4.1.GA.zip, updated ant.properties, and ran ant -Dspring=true deploy-jboss600. I deployed my WAR and got the following error:

               

              Here is the error:

               

              2011-01-07 11:13:52,089 WARN  [org.jboss.wsf.stack.cxf.client.configuration.JBossWSSpringBusFactory] (HDScanner) APP_CONTEXT_CREATION_FAILED_MSG: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'JacobDemoService': Invocation of init method failed; nested exception is javax.xml.ws.WebServiceException: org.apache.cxf.service.factory.ServiceConstructionException
                  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1412) [:3.0.3.RELEASE]
                  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519) [:3.0.3.RELEASE]
                  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456) [:3.0.3.RELEASE]
                  at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291) [:3.0.3.RELEASE]
                  at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) [:3.0.3.RELEASE]
                  at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288) [:3.0.3.RELEASE]
                  at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190) [:3.0.3.RELEASE]
                  at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:574) [:3.0.3.RELEASE]
                  at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895) [:3.0.3.RELEASE]
                  at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425) [:3.0.3.RELEASE]
                  at org.jboss.wsf.stack.cxf.client.configuration.JBossWSBusApplicationContext.<init>(JBossWSBusApplicationContext.java:71) [:3.4.1.GA]
                  at org.jboss.wsf.stack.cxf.client.configuration.JBossWSSpringBusFactory.createBus(JBossWSSpringBusFactory.java:78) [:3.4.1.GA]
                  at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:131) [:2.3.1]
                  at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:121) [:2.3.1]
                  at org.jboss.wsf.stack.cxf.deployment.aspect.JMSEndpointDeploymentAspectDelegate.start(JMSEndpointDeploymentAspectDelegate.java:56) [:3.4.1.GA]
                  at org.jboss.wsf.stack.cxf.deployment.aspect.JMSEndpointDeploymentAspect.start(JMSEndpointDeploymentAspect.java:51) [:3.4.1.GA]
                  at org.jboss.webservices.integration.deployers.WSDeploymentAspectDeployer.internalDeploy(WSDeploymentAspectDeployer.java:123) [:6.0.0.Final]
                  at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:55) [:2.2.0.GA]
                  at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179) [:2.2.0.GA]
                  at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1832) [:2.2.0.GA]
                  at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1550) [:2.2.0.GA]
                  at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1491) [:2.2.0.GA]
                  at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379) [jboss-dependency.jar:2.2.0.GA]
                  at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044) [jboss-dependency.jar:2.2.0.GA]
                  at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083) [jboss-dependency.jar:2.2.0.GA]
                  at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-dependency.jar:2.2.0.GA]
                  at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency.jar:2.2.0.GA]
                  at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency.jar:2.2.0.GA]
                  at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939) [jboss-dependency.jar:2.2.0.GA]
                  at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654) [jboss-dependency.jar:2.2.0.GA]
                  at org.jboss.deployers.plugins.deployers.DeployersImpl.change(DeployersImpl.java:1983) [:2.2.0.GA]
                  at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:1076) [:2.2.0.GA]
                  at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:679) [:2.2.0.GA]
                  at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.process(MainDeployerPlugin.java:106) [:6.0.0.Final]
                  at org.jboss.profileservice.dependency.ProfileControllerContext$DelegateDeployer.process(ProfileControllerContext.java:143) [:0.2.2]
                  at org.jboss.profileservice.deployment.hotdeploy.HDScanner$HDScanAction.deploy(HDScanner.java:240) [:0.2.2]
                  at org.jboss.profileservice.deployment.hotdeploy.HDScanner$HDScanAction.complete(HDScanner.java:192) [:0.2.2]
                  at org.jboss.profileservice.management.TwoPCActionWrapper.doComplete(TwoPCActionWrapper.java:57) [:0.2.2]
                  at org.jboss.profileservice.management.actions.AbstractTwoPhaseModificationAction.complete(AbstractTwoPhaseModificationAction.java:74) [:0.2.2]
                  at org.jboss.profileservice.management.actions.AbstractTwoPhaseModificationAction.prepare(AbstractTwoPhaseModificationAction.java:95) [:0.2.2]
                  at org.jboss.profileservice.management.ModificationSession.prepare(ModificationSession.java:87) [:0.2.2]
                  at org.jboss.profileservice.management.AbstractActionController.internalPerfom(AbstractActionController.java:234) [:0.2.2]
                  at org.jboss.profileservice.management.AbstractActionController.performWrite(AbstractActionController.java:213) [:0.2.2]
                  at org.jboss.profileservice.management.AbstractActionController.perform(AbstractActionController.java:150) [:0.2.2]
                  at org.jboss.profileservice.management.AbstractActionController.perform(AbstractActionController.java:135) [:0.2.2]
                  at org.jboss.profileservice.deployment.hotdeploy.HDScanner.scan(HDScanner.java:146) [:0.2.2]
                  at org.jboss.profileservice.deployment.hotdeploy.HDScanner.run(HDScanner.java:90) [:0.2.2]
                  at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [:1.6.0_23]
                  at java.util.concurrent.FutureTask$Sync.innerRunAndReset(Unknown Source) [:1.6.0_23]
                  at java.util.concurrent.FutureTask.runAndReset(Unknown Source) [:1.6.0_23]
                  at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(Unknown Source) [:1.6.0_23]
                  at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(Unknown Source) [:1.6.0_23]
                  at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) [:1.6.0_23]
                  at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) [:1.6.0_23]
                  at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [:1.6.0_23]
                  at java.lang.Thread.run(Unknown Source) [:1.6.0_23]
              Caused by: javax.xml.ws.WebServiceException: org.apache.cxf.service.factory.ServiceConstructionException
                  at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:335) [:2.3.1]
                  at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:238) [:2.3.1]
                  at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:481) [:2.3.1]
                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_23]
                  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) [:1.6.0_23]
                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [:1.6.0_23]
                  at java.lang.reflect.Method.invoke(Unknown Source) [:1.6.0_23]
                  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1536) [:3.0.3.RELEASE]
                  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1477) [:3.0.3.RELEASE]
                  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1409) [:3.0.3.RELEASE]
                  ... 55 more
              Caused by: org.apache.cxf.service.factory.ServiceConstructionException
                  at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:167) [:2.3.1]
                  at org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:183) [:2.3.1]
                  at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:407) [:2.3.1]
                  at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:314) [:2.3.1]
                  ... 64 more
              Caused by: java.net.MalformedURLException: no protocol: /JacobDemoService
                  at java.net.URL.<init>(Unknown Source) [:1.6.0_23]
                  at java.net.URL.<init>(Unknown Source) [:1.6.0_23]
                  at java.net.URL.<init>(Unknown Source) [:1.6.0_23]
                  at org.jboss.wsf.stack.cxf.addons.transports.httpserver.HttpServerDestination.<init>(HttpServerDestination.java:67) [:3.4.1.GA]
                  at org.jboss.wsf.stack.cxf.addons.transports.httpserver.HttpServerTransportFactory.createDestination(HttpServerTransportFactory.java:102) [:3.4.1.GA]
                  at org.jboss.wsf.stack.cxf.addons.transports.httpserver.HttpServerTransportFactory.getDestination(HttpServerTransportFactory.java:91) [:3.4.1.GA]
                  at org.apache.cxf.binding.soap.SoapTransportFactory.getDestination(SoapTransportFactory.java:132) [:2.3.1]
                  at org.apache.cxf.endpoint.ServerImpl.initDestination(ServerImpl.java:92) [:2.3.1]
                  at org.apache.cxf.endpoint.ServerImpl.<init>(ServerImpl.java:71) [:2.3.1]
                  at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:149) [:2.3.1]
                  ... 67 more
              
              2011-01-07 11:13:52,120 ERROR [org.jboss.wsf.stack.cxf.deployment.aspect.JMSEndpointDeploymentAspectDelegate] (HDScanner) Failed to deploy jms endpoints deployment vfs:/C:/jboss/jboss-6.0.0.Final/server/default/deploy/jacob.war/WEB-INF/jbossws-cxf.xml
              2011-01-07 11:13:52,120 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (HDScanner) Error installing to Real: name=vfs:///C:/jboss/jboss-6.0.0.Final/server/default/deploy/jacob.war state=PreReal mode=Manual requiredState=Real: org.jboss.deployers.spi.DeploymentException: Error during deploy: vfs:///C:/jboss/jboss-6.0.0.Final/server/default/deploy/jacob.war
                  at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49) [:2.2.0.GA]
                  at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:185) [:2.2.0.GA]
                  at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1832) [:2.2.0.GA]
                  at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1550) [:2.2.0.GA]
                  at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1491) [:2.2.0.GA]
                  at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379) [jboss-dependency.jar:2.2.0.GA]
                  at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044) [jboss-dependency.jar:2.2.0.GA]
                  at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083) [jboss-dependency.jar:2.2.0.GA]
                  at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-dependency.jar:2.2.0.GA]
                  at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency.jar:2.2.0.GA]
                  at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency.jar:2.2.0.GA]
                  at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939) [jboss-dependency.jar:2.2.0.GA]
                  at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654) [jboss-dependency.jar:2.2.0.GA]
                  at org.jboss.deployers.plugins.deployers.DeployersImpl.change(DeployersImpl.java:1983) [:2.2.0.GA]
                  at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:1076) [:2.2.0.GA]
                  at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:679) [:2.2.0.GA]
                  at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.process(MainDeployerPlugin.java:106) [:6.0.0.Final]
                  at org.jboss.profileservice.dependency.ProfileControllerContext$DelegateDeployer.process(ProfileControllerContext.java:143) [:0.2.2]
                  at org.jboss.profileservice.deployment.hotdeploy.HDScanner$HDScanAction.deploy(HDScanner.java:240) [:0.2.2]
                  at org.jboss.profileservice.deployment.hotdeploy.HDScanner$HDScanAction.complete(HDScanner.java:192) [:0.2.2]
                  at org.jboss.profileservice.management.TwoPCActionWrapper.doComplete(TwoPCActionWrapper.java:57) [:0.2.2]
                  at org.jboss.profileservice.management.actions.AbstractTwoPhaseModificationAction.complete(AbstractTwoPhaseModificationAction.java:74) [:0.2.2]
                  at org.jboss.profileservice.management.actions.AbstractTwoPhaseModificationAction.prepare(AbstractTwoPhaseModificationAction.java:95) [:0.2.2]
                  at org.jboss.profileservice.management.ModificationSession.prepare(ModificationSession.java:87) [:0.2.2]
                  at org.jboss.profileservice.management.AbstractActionController.internalPerfom(AbstractActionController.java:234) [:0.2.2]
                  at org.jboss.profileservice.management.AbstractActionController.performWrite(AbstractActionController.java:213) [:0.2.2]
                  at org.jboss.profileservice.management.AbstractActionController.perform(AbstractActionController.java:150) [:0.2.2]
                  at org.jboss.profileservice.management.AbstractActionController.perform(AbstractActionController.java:135) [:0.2.2]
                  at org.jboss.profileservice.deployment.hotdeploy.HDScanner.scan(HDScanner.java:146) [:0.2.2]
                  at org.jboss.profileservice.deployment.hotdeploy.HDScanner.run(HDScanner.java:90) [:0.2.2]
                  at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [:1.6.0_23]
                  at java.util.concurrent.FutureTask$Sync.innerRunAndReset(Unknown Source) [:1.6.0_23]
                  at java.util.concurrent.FutureTask.runAndReset(Unknown Source) [:1.6.0_23]
                  at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(Unknown Source) [:1.6.0_23]
                  at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(Unknown Source) [:1.6.0_23]
                  at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) [:1.6.0_23]
                  at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) [:1.6.0_23]
                  at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [:1.6.0_23]
                  at java.lang.Thread.run(Unknown Source) [:1.6.0_23]
              Caused by: java.lang.RuntimeException: java.lang.RuntimeException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'JacobDemoService': Invocation of init method failed; nested exception is javax.xml.ws.WebServiceException: org.apache.cxf.service.factory.ServiceConstructionException
                  at org.jboss.wsf.stack.cxf.deployment.aspect.JMSEndpointDeploymentAspectDelegate.start(JMSEndpointDeploymentAspectDelegate.java:62) [:3.4.1.GA]
                  at org.jboss.wsf.stack.cxf.deployment.aspect.JMSEndpointDeploymentAspect.start(JMSEndpointDeploymentAspect.java:51) [:3.4.1.GA]
                  at org.jboss.webservices.integration.deployers.WSDeploymentAspectDeployer.internalDeploy(WSDeploymentAspectDeployer.java:123) [:6.0.0.Final]
                  at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:55) [:2.2.0.GA]
                  at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179) [:2.2.0.GA]
                  ... 37 more
              Caused by: java.lang.RuntimeException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'JacobDemoService': Invocation of init method failed; nested exception is javax.xml.ws.WebServiceException: org.apache.cxf.service.factory.ServiceConstructionException
                  at org.jboss.wsf.stack.cxf.client.configuration.JBossWSSpringBusFactory.createBus(JBossWSSpringBusFactory.java:83) [:3.4.1.GA]
                  at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:131) [:2.3.1]
                  at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:121) [:2.3.1]
                  at org.jboss.wsf.stack.cxf.deployment.aspect.JMSEndpointDeploymentAspectDelegate.start(JMSEndpointDeploymentAspectDelegate.java:56) [:3.4.1.GA]
                  ... 41 more
              Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'JacobDemoService': Invocation of init method failed; nested exception is javax.xml.ws.WebServiceException: org.apache.cxf.service.factory.ServiceConstructionException
                  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1412) [:3.0.3.RELEASE]
                  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519) [:3.0.3.RELEASE]
                  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456) [:3.0.3.RELEASE]
                  at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291) [:3.0.3.RELEASE]
                  at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) [:3.0.3.RELEASE]
                  at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288) [:3.0.3.RELEASE]
                  at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190) [:3.0.3.RELEASE]
                  at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:574) [:3.0.3.RELEASE]
                  at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895) [:3.0.3.RELEASE]
                  at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425) [:3.0.3.RELEASE]
                  at org.jboss.wsf.stack.cxf.client.configuration.JBossWSBusApplicationContext.<init>(JBossWSBusApplicationContext.java:71) [:3.4.1.GA]
                  at org.jboss.wsf.stack.cxf.client.configuration.JBossWSSpringBusFactory.createBus(JBossWSSpringBusFactory.java:78) [:3.4.1.GA]
                  ... 44 more
              Caused by: javax.xml.ws.WebServiceException: org.apache.cxf.service.factory.ServiceConstructionException
                  at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:335) [:2.3.1]
                  at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:238) [:2.3.1]
                  at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:481) [:2.3.1]
                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_23]
                  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) [:1.6.0_23]
                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [:1.6.0_23]
                  at java.lang.reflect.Method.invoke(Unknown Source) [:1.6.0_23]
                  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1536) [:3.0.3.RELEASE]
                  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1477) [:3.0.3.RELEASE]
                  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1409) [:3.0.3.RELEASE]
                  ... 55 more
              Caused by: org.apache.cxf.service.factory.ServiceConstructionException
                  at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:167) [:2.3.1]
                  at org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:183) [:2.3.1]
                  at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:407) [:2.3.1]
                  at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:314) [:2.3.1]
                  ... 64 more
              Caused by: java.net.MalformedURLException: no protocol: /JacobDemoService
                  at java.net.URL.<init>(Unknown Source) [:1.6.0_23]
                  at java.net.URL.<init>(Unknown Source) [:1.6.0_23]
                  at java.net.URL.<init>(Unknown Source) [:1.6.0_23]
                  at org.jboss.wsf.stack.cxf.addons.transports.httpserver.HttpServerDestination.<init>(HttpServerDestination.java:67) [:3.4.1.GA]
                  at org.jboss.wsf.stack.cxf.addons.transports.httpserver.HttpServerTransportFactory.createDestination(HttpServerTransportFactory.java:102) [:3.4.1.GA]
                  at org.jboss.wsf.stack.cxf.addons.transports.httpserver.HttpServerTransportFactory.getDestination(HttpServerTransportFactory.java:91) [:3.4.1.GA]
                  at org.apache.cxf.binding.soap.SoapTransportFactory.getDestination(SoapTransportFactory.java:132) [:2.3.1]
                  at org.apache.cxf.endpoint.ServerImpl.initDestination(ServerImpl.java:92) [:2.3.1]
                  at org.apache.cxf.endpoint.ServerImpl.<init>(ServerImpl.java:71) [:2.3.1]
                  at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:149) [:2.3.1]
                  ... 67 more
              
              2011-01-07 11:13:52,136 WARN  [org.jboss.profileservice.deployment.hotdeploy.HDScanner] (HDScanner) Scan failed: org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
              
              *** DEPLOYMENTS IN ERROR: Name -> Error
              
              vfs:///C:/jboss/jboss-6.0.0.Final/server/default/deploy/jacob.war -> org.jboss.deployers.spi.DeploymentException: Error during deploy: vfs:///C:/jboss/jboss-6.0.0.Final/server/default/deploy/jacob.war
              
              
              DEPLOYMENTS IN ERROR:
                Deployment "vfs:///C:/jboss/jboss-6.0.0.Final/server/default/deploy/jacob.war" is in error due to the following reason(s): java.net.MalformedURLException: no protocol: /JacobDemoService
              
                  at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:1370) [:2.2.0.GA]
                  at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:1316) [:2.2.0.GA]
                  at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:968) [:2.2.0.GA]
                  at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.checkComplete(MainDeployerPlugin.java:82) [:6.0.0.Final]
                  at org.jboss.profileservice.dependency.ProfileControllerContext$DelegateDeployer.checkComplete(ProfileControllerContext.java:138) [:0.2.2]
                  at org.jboss.profileservice.deployment.hotdeploy.HDScanner$HDScanAction.deploy(HDScanner.java:246) [:0.2.2]
                  at org.jboss.profileservice.deployment.hotdeploy.HDScanner$HDScanAction.complete(HDScanner.java:192) [:0.2.2]
                  at org.jboss.profileservice.management.TwoPCActionWrapper.doComplete(TwoPCActionWrapper.java:57) [:0.2.2]
                  at org.jboss.profileservice.management.actions.AbstractTwoPhaseModificationAction.complete(AbstractTwoPhaseModificationAction.java:74) [:0.2.2]
                  at org.jboss.profileservice.management.actions.AbstractTwoPhaseModificationAction.prepare(AbstractTwoPhaseModificationAction.java:95) [:0.2.2]
                  at org.jboss.profileservice.management.ModificationSession.prepare(ModificationSession.java:87) [:0.2.2]
                  at org.jboss.profileservice.management.AbstractActionController.internalPerfom(AbstractActionController.java:234) [:0.2.2]
                  at org.jboss.profileservice.management.AbstractActionController.performWrite(AbstractActionController.java:213) [:0.2.2]
                  at org.jboss.profileservice.management.AbstractActionController.perform(AbstractActionController.java:150) [:0.2.2]
                  at org.jboss.profileservice.management.AbstractActionController.perform(AbstractActionController.java:135) [:0.2.2]
                  at org.jboss.profileservice.deployment.hotdeploy.HDScanner.scan(HDScanner.java:146) [:0.2.2]
                  at org.jboss.profileservice.deployment.hotdeploy.HDScanner.run(HDScanner.java:90) [:0.2.2]
                  at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [:1.6.0_23]
                  at java.util.concurrent.FutureTask$Sync.innerRunAndReset(Unknown Source) [:1.6.0_23]
                  at java.util.concurrent.FutureTask.runAndReset(Unknown Source) [:1.6.0_23]
                  at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(Unknown Source) [:1.6.0_23]
                  at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(Unknown Source) [:1.6.0_23]
                  at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) [:1.6.0_23]
                  at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) [:1.6.0_23]
                  at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [:1.6.0_23]
                  at java.lang.Thread.run(Unknown Source) [:1.6.0_23]
              
              

               

              Here is the web.xml:

               

              <?xml version="1.0" encoding="ISO-8859-1"?>
              <!DOCTYPE web-app
                  PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
                  "http://java.sun.com/dtd/web-app_2_3.dtd">
              <web-app>
              
                  <servlet>
                      <servlet-name>CXFServlet</servlet-name>
                      <display-name>CXF Servlet</display-name>
                      <servlet-class>
                          org.apache.cxf.transport.servlet.CXFServlet
                  </servlet-class>
                      <init-param>
                          <param-name>config-location</param-name>
                          <param-value>/WEB-INF/jbossws-cxf.xml</param-value>
                      </init-param>
                      <load-on-startup>1</load-on-startup>
                  </servlet>
              
                  <servlet-mapping>
                      <servlet-name>CXFServlet</servlet-name>
                      <url-pattern>/services/*</url-pattern>
              
                  </servlet-mapping>
              
              </web-app>
              
              

               

              Here is my jbossws-cxf.xml:

               

              <beans xmlns="http://www.springframework.org/schema/beans"
                  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
                  xmlns:beans="http://www.springframework.org/schema/beans"
                  xmlns:jaxws="http://cxf.apache.org/jaxws" 
                  xmlns:util="http://www.springframework.org/schema/util"
                  xmlns:cxf="http://cxf.apache.org/core"
                  xmlns:simple="http://cxf.apache.org/simple"
                  xsi:schemaLocation="http://www.springframework.org/schema/beans
                  http://www.springframework.org/schema/beans/spring-beans.xsd
                  http://cxf.apache.org/jaxws
                  http://cxf.apache.org/schemas/jaxws.xsd
                  http://www.springframework.org/schema/util
                  http://www.springframework.org/schema/util/spring-util.xsd
                  http://cxf.apache.org/core
                  http://cxf.apache.org/schemas/core.xsd
                  http://cxf.apache.org/simple 
                  http://cxf.apache.org/schemas/simple.xsd">
              
                  <!-- The service bean -->
                  <bean id="JacobDemoServiceImpl" class="com.northgrum.jacob.services.demo.JacobDemoServiceImpl" />
              
                  <!-- Aegis data binding -->
                  <bean id="aegisBean" class="org.apache.cxf.aegis.databinding.AegisDatabinding"
                      scope="prototype">
                      <property name="configuration">
                          <bean class="org.apache.cxf.aegis.type.TypeCreationOptions">
                              <property name="defaultMinOccurs" value="1" />
                              <property name="defaultNillable" value="false" />
                          </bean>
                      </property>
                  </bean>
                  <bean id="aegis-service-factory" class="org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean"
                      scope="prototype">
                      <property name="dataBinding" ref="aegisBean" />
                  </bean>
              
                  <!-- WSS4JInInterceptor beans for authentication -->
                  <bean id="myPasswordCallback"
                      class="com.northgrum.jacob.services.security.ServerPasswordHandler" />
              
                  <bean id="JACOB_WS_User_Auth_Int" class="org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor">
                      <constructor-arg>
                          <map>
                              <entry key="action" value="UsernameToken" />
                              <entry key="passwordType" value="PasswordText" />
                              <entry key="passwordCallbackClass" value="com.northgrum.jacob.services.security.ServerPasswordHandler"/>
                          </map>
                      </constructor-arg>
                  </bean>
              
                  <!-- JACOB Service endpoints -->
                  <jaxws:endpoint id="JacobDemoService"
                      implementorClass="com.northgrum.jacob.services.demo.JacobDemoServiceImpl"
                      implementor="#JacobDemoServiceImpl" address="/JacobDemoService">
                      <jaxws:serviceFactory>
                          <ref bean="aegis-service-factory" />
                      </jaxws:serviceFactory>
                      <jaxws:invoker>
                          <bean class='org.jboss.wsf.stack.cxf.InvokerJSE' />
                      </jaxws:invoker>
                  </jaxws:endpoint>
              
                  <!-- CXF Bus -->
                  <bean id="logInbound" class="org.apache.cxf.interceptor.LoggingInInterceptor" />
                  <bean id="logOutbound" class="org.apache.cxf.interceptor.LoggingOutInterceptor" />
              
                  <cxf:bus>
                      <cxf:inInterceptors>
                          <ref bean="logInbound" />
                          <ref bean="JACOB_WS_User_Auth_Int" />
                      </cxf:inInterceptors>
                      <cxf:outInterceptors>
                          <ref bean="logOutbound" />
                      </cxf:outInterceptors>
                      <cxf:inFaultInterceptors>
                          <ref bean="logOutbound" />
                      </cxf:inFaultInterceptors>
                  </cxf:bus>
              
              </beans>
              
              • 7. Re: WARNING [org.apache.cxf.phase.PhaseInterceptorChain] Interceptor for ... has thrown exception, unwinding now: java.lang.NullPointerException
                Shawn Evans Newbie

                I believe it really comes down to my jbossws-cxf.xml ->


                <beans xmlns='http://www.springframework.org/schema/beans'
                    xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' 
                    xmlns:beans='http://www.springframework.org/schema/beans'
                    xmlns:jaxws='http://cxf.apache.org/jaxws'
                    xmlns:cxf='http://cxf.apache.org/core'
                    xsi:schemaLocation='http://cxf.apache.org/core
                    http://cxf.apache.org/schemas/core.xsd
                    http://www.springframework.org/schema/beans
                    http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
                    http://cxf.apache.org/jaxws
                    http://cxf.apache.org/schemas/jaxws.xsd
                    http://cxf.apache.org/core
                    http://cxf.apache.org/schemas/core.xsd'>
                
                    <!-- Aegis data binding -->
                    <bean id='aegisBean' class='org.apache.cxf.aegis.databinding.AegisDatabinding'
                        scope='prototype'>
                        <property name='configuration'>
                            <bean class='org.apache.cxf.aegis.type.TypeCreationOptions'>
                                <property name='defaultMinOccurs' value='1' />
                                <property name='defaultNillable' value='false' />
                            </bean>
                        </property>
                    </bean>
                    <bean id='aegis-service-factory' class='org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean'
                        scope='prototype'>
                        <property name='dataBinding' ref='aegisBean' />
                    </bean>
                
                    <!-- Service endpoint -->
                    <jaxws:endpoint id='JacobDemoService' address='/JacobDemoService'
                        implementor='com.northgrum.jacob.services.demo.JacobDemoServiceImpl'>
                        <jaxws:serviceFactory>
                            <ref bean='aegis-service-factory' />
                        </jaxws:serviceFactory>
                        <jaxws:invoker>
                            <bean class='org.jboss.wsf.stack.cxf.InvokerJSE' />
                        </jaxws:invoker>
                    </jaxws:endpoint>
                
                    <!-- CXF Stack -->
                    <bean id='logInbound' class='org.apache.cxf.interceptor.LoggingInInterceptor' />
                    <bean id='logOutbound' class='org.apache.cxf.interceptor.LoggingOutInterceptor' />
                
                    <cxf:bus>
                        <cxf:inInterceptors>
                            <ref bean='logInbound' />
                        </cxf:inInterceptors>
                        <cxf:outInterceptors>
                            <ref bean='logOutbound' />
                        </cxf:outInterceptors>
                        <cxf:outFaultInterceptors>
                            <ref bean='logOutbound' />
                        </cxf:outFaultInterceptors>
                        <cxf:inFaultInterceptors>
                            <ref bean='logInbound' />
                        </cxf:inFaultInterceptors>
                    </cxf:bus> 
                
                </beans>
                

                 

                 

                and the following error ->


                Caused by: java.net.MalformedURLException: no protocol: /JacobDemoService
                    at java.net.URL.<init>(Unknown Source) [:1.6.0_23]
                    at java.net.URL.<init>(Unknown Source) [:1.6.0_23]
                    at java.net.URL.<init>(Unknown Source) [:1.6.0_23]
                   atorg.jboss.wsf.stack.cxf.addons.transports.httpserver.HttpServerDestination.<init>(HttpServerDestination.java:67)[:3.4.1.GA]
                    atorg.jboss.wsf.stack.cxf.addons.transports.httpserver.HttpServerTransportFactory.createDestination(HttpServerTransportFactory.java:102)[:3.4.1.GA]
                    atorg.jboss.wsf.stack.cxf.addons.transports.httpserver.HttpServerTransportFactory.getDestination(HttpServerTransportFactory.java:91)[:3.4.1.GA]
                    at org.apache.cxf.binding.soap.SoapTransportFactory.getDestination(SoapTransportFactory.java:132) [:2.3.1]
                    at org.apache.cxf.endpoint.ServerImpl.initDestination(ServerImpl.java:92) [:2.3.1]
                    at org.apache.cxf.endpoint.ServerImpl.<init>(ServerImpl.java:71) [:2.3.1]
                    at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:149) [:2.3.1]
                
                • 9. Re: WARNING [org.apache.cxf.phase.PhaseInterceptorChain] Interceptor for ... has thrown exception, unwinding now: java.lang.NullPointerException
                  Alessio Soldano Master

                  The documentation probably needs to tell this more explicitely, but you shouldn't use the org.apache.cxf.transport.servlet.CXFServlet in you web.xml. You declare your endpoint the same way jbossws has been supporting since years (http://community.jboss.org/wiki/JBossWS-UserGuide#Web_Service_Endpoints) and the jbossws-cxf is loaded automatically.

                  Forcing the Apache CXF servlet to be used, you're basically skipping part of the jbossws-cxf integration, and that's likely to be related the transport issue reported above.

                  • 10. Re: WARNING [org.apache.cxf.phase.PhaseInterceptorChain] Interceptor for ... has thrown exception, unwinding now: java.lang.NullPointerException
                    Shawn Evans Newbie

                    OK,

                     

                      I can depoly to JBoss 6.0M4 as above and only recieve the NPE when trying to access the JacobDemoService echo. I can see the services and the wsdl's just fine. But with JBoss 6.0Final, I cannot even get it to deploy to because of the -> java.net.MalformedURLException: no protocol: /JacobDemoService. I removed the web.xml as suggested and receive the same error.

                     

                       I also changed the address as suggested and recieved:

                     

                    11:21:56,177 INFO  [org.jboss.wsf.stack.cxf.client.configuration.JBossWSBusApplicationContext] Refreshing org.jboss.wsf.stack.cxf.client.configuration.JBossWSBusApplicationContext@ef7eb0: startup date [Mon Jan 10 11:21:56 EST 2011]; root of context hierarchy
                    11:21:56,177 INFO  [org.jboss.wsf.stack.cxf.client.configuration.JBossWSBusApplicationContext] Refreshing org.jboss.wsf.stack.cxf.client.configuration.JBossWSBusApplicationContext@ef7eb0: startup date [Mon Jan 10 11:21:56 EST 2011]; root of context hierarchy
                    11:21:56,177 INFO  [org.apache.cxf.bus.spring.ControlledValidationXmlBeanDefinitionReader] Loading XML bean definitions from class path resource [META-INF/cxf/jbossws-cxf.xml]
                    11:21:56,177 INFO  [org.apache.cxf.bus.spring.ControlledValidationXmlBeanDefinitionReader] Loading XML bean definitions from URL [vfs:/C:/jboss/jboss-6.0.0.Final/server/default/deployers/jbossws.deployer/jbossws-cxf-client.jar/META-INF/cxf/cxf-extension-jbossws.xml]
                    11:21:56,208 INFO  [org.apache.cxf.bus.spring.ControlledValidationXmlBeanDefinitionReader] Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-httpserver.xml]
                    11:21:56,208 INFO  [org.apache.cxf.bus.spring.ControlledValidationXmlBeanDefinitionReader] Loading XML bean definitions from URL [vfs:/C:/jboss/jboss-6.0.0.Final/server/default/deploy/jacob.war/WEB-INF/jbossws-cxf.xml]
                    11:21:56,333 INFO  [org.apache.cxf.service.factory.ReflectionServiceFactoryBean] Creating Service {http://demo.services.jacob.northgrum.com/}JacobDemoService from class com.northgrum.jacob.common.demo.JacobDemoService
                    11:21:56,646 INFO  [org.apache.cxf.endpoint.ServerImpl] Setting the server's publish address to be http://hostname.here.com:8080/JacobDemoService
                    11:21:56,646 WARN  [org.jboss.wsf.stack.cxf.client.configuration.JBossWSSpringBusFactory] APP_CONTEXT_CREATION_FAILED_MSG: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'JacobDemoService': Invocation of init method failed; nested exception is javax.xml.ws.WebServiceException: java.lang.RuntimeException: java.net.SocketException: Unresolved address
                        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1412) [:3.0.3.RELEASE]
                        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519) [:3.0.3.RELEASE]
                        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456) [:3.0.3.RELEASE]
                        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291) [:3.0.3.RELEASE]
                        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) [:3.0.3.RELEASE]
                        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288) [:3.0.3.RELEASE]
                        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190) [:3.0.3.RELEASE]
                        at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:574) [:3.0.3.RELEASE]
                        at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895) [:3.0.3.RELEASE]
                        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425) [:3.0.3.RELEASE]
                        at org.jboss.wsf.stack.cxf.client.configuration.JBossWSBusApplicationContext.<init>(JBossWSBusApplicationContext.java:71) [:3.4.1.GA]
                        at org.jboss.wsf.stack.cxf.client.configuration.JBossWSSpringBusFactory.createBus(JBossWSSpringBusFactory.java:78) [:3.4.1.GA]
                        at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:131) [:2.3.1]
                        at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:121) [:2.3.1]
                        at org.jboss.wsf.stack.cxf.deployment.aspect.JMSEndpointDeploymentAspectDelegate.start(JMSEndpointDeploymentAspectDelegate.java:56) [:3.4.1.GA]
                        at org.jboss.wsf.stack.cxf.deployment.aspect.JMSEndpointDeploymentAspect.start(JMSEndpointDeploymentAspect.java:51) [:3.4.1.GA]
                        at org.jboss.webservices.integration.deployers.WSDeploymentAspectDeployer.internalDeploy(WSDeploymentAspectDeployer.java:123) [:6.0.0.Final]
                        at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:55) [:2.2.0.GA]
                        at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179) [:2.2.0.GA]
                        at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1832) [:2.2.0.GA]
                        at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1550) [:2.2.0.GA]
                        at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1491) [:2.2.0.GA]
                        at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379) [jboss-dependency.jar:2.2.0.GA]
                        at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044) [jboss-dependency.jar:2.2.0.GA]
                        at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083) [jboss-dependency.jar:2.2.0.GA]
                        at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-dependency.jar:2.2.0.GA]
                        at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency.jar:2.2.0.GA]
                        at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency.jar:2.2.0.GA]
                        at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939) [jboss-dependency.jar:2.2.0.GA]
                        at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654) [jboss-dependency.jar:2.2.0.GA]
                        at org.jboss.deployers.plugins.deployers.DeployersImpl.change(DeployersImpl.java:1983) [:2.2.0.GA]
                        at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:1076) [:2.2.0.GA]
                        at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:679) [:2.2.0.GA]
                        at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.process(MainDeployerPlugin.java:106) [:6.0.0.Final]
                        at org.jboss.profileservice.dependency.ProfileControllerContext$DelegateDeployer.process(ProfileControllerContext.java:143) [:0.2.2]
                        at org.jboss.profileservice.deployment.hotdeploy.HDScanner$HDScanAction.deploy(HDScanner.java:240) [:0.2.2]
                        at org.jboss.profileservice.deployment.hotdeploy.HDScanner$HDScanAction.complete(HDScanner.java:192) [:0.2.2]
                        at org.jboss.profileservice.management.TwoPCActionWrapper.doComplete(TwoPCActionWrapper.java:57) [:0.2.2]
                        at org.jboss.profileservice.management.actions.AbstractTwoPhaseModificationAction.complete(AbstractTwoPhaseModificationAction.java:74) [:0.2.2]
                        at org.jboss.profileservice.management.actions.AbstractTwoPhaseModificationAction.prepare(AbstractTwoPhaseModificationAction.java:95) [:0.2.2]
                        at org.jboss.profileservice.management.ModificationSession.prepare(ModificationSession.java:87) [:0.2.2]
                        at org.jboss.profileservice.management.AbstractActionController.internalPerfom(AbstractActionController.java:234) [:0.2.2]
                        at org.jboss.profileservice.management.AbstractActionController.performWrite(AbstractActionController.java:213) [:0.2.2]
                        at org.jboss.profileservice.management.AbstractActionController.perform(AbstractActionController.java:150) [:0.2.2]
                        at org.jboss.profileservice.management.AbstractActionController.perform(AbstractActionController.java:135) [:0.2.2]
                        at org.jboss.profileservice.deployment.hotdeploy.HDScanner.scan(HDScanner.java:146) [:0.2.2]
                        at org.jboss.profileservice.deployment.hotdeploy.HDScanner.run(HDScanner.java:90) [:0.2.2]
                        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [:1.6.0_23]
                        at java.util.concurrent.FutureTask$Sync.innerRunAndReset(Unknown Source) [:1.6.0_23]
                        at java.util.concurrent.FutureTask.runAndReset(Unknown Source) [:1.6.0_23]
                        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(Unknown Source) [:1.6.0_23]
                        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(Unknown Source) [:1.6.0_23]
                        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) [:1.6.0_23]
                        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) [:1.6.0_23]
                        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [:1.6.0_23]
                        at java.lang.Thread.run(Unknown Source) [:1.6.0_23]
                    Caused by: javax.xml.ws.WebServiceException: java.lang.RuntimeException: java.net.SocketException: Unresolved address
                        at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:335) [:2.3.1]
                        at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:238) [:2.3.1]
                        at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:481) [:2.3.1]
                        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_23]
                        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) [:1.6.0_23]
                        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [:1.6.0_23]
                        at java.lang.reflect.Method.invoke(Unknown Source) [:1.6.0_23]
                        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1536) [:3.0.3.RELEASE]
                        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1477) [:3.0.3.RELEASE]
                        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1409) [:3.0.3.RELEASE]
                        ... 55 more
                    Caused by: java.lang.RuntimeException: java.net.SocketException: Unresolved address
                        at org.jboss.wsf.stack.cxf.addons.transports.httpserver.HttpServerEngine.addHandler(HttpServerEngine.java:98) [:3.4.1.GA]
                        at org.jboss.wsf.stack.cxf.addons.transports.httpserver.HttpServerDestination.activate(HttpServerDestination.java:105) [:3.4.1.GA]
                        at org.apache.cxf.transport.AbstractObservable.setMessageObserver(AbstractObservable.java:48) [:2.3.1]
                        at org.apache.cxf.binding.AbstractBindingFactory.addListener(AbstractBindingFactory.java:181) [:2.3.1]
                        at org.apache.cxf.binding.soap.SoapBindingFactory.addListener(SoapBindingFactory.java:836) [:2.3.1]
                        at org.apache.cxf.endpoint.ServerImpl.start(ServerImpl.java:127) [:2.3.1]
                        at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:326) [:2.3.1]
                        ... 64 more
                    Caused by: java.net.SocketException: Unresolved address
                        at sun.nio.ch.Net.translateToSocketException(Unknown Source) [:1.6.0_23]
                        at sun.nio.ch.Net.translateException(Unknown Source) [:1.6.0_23]
                        at sun.nio.ch.Net.translateException(Unknown Source) [:1.6.0_23]
                        at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source) [:1.6.0_23]
                        at sun.net.httpserver.ServerImpl.<init>(Unknown Source) [:1.6.0_23]
                        at sun.net.httpserver.HttpServerImpl.<init>(Unknown Source) [:1.6.0_23]
                        at sun.net.httpserver.DefaultHttpServerProvider.createHttpServer(Unknown Source) [:1.6.0_23]
                        at com.sun.net.httpserver.HttpServer.create(Unknown Source) [:1.6.0_23]
                        at org.jboss.wsf.stack.cxf.addons.transports.httpserver.HttpServerEngine.addHandler(HttpServerEngine.java:93) [:3.4.1.GA]
                        ... 70 more
                    Caused by: java.nio.channels.UnresolvedAddressException
                        at sun.nio.ch.Net.checkAddress(Unknown Source) [:1.6.0_23]
                        at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source) [:1.6.0_23]
                        ... 76 more
                    
                    11:21:56,661 ERROR [org.jboss.wsf.stack.cxf.deployment.aspect.JMSEndpointDeploymentAspectDelegate] Failed to deploy jms endpoints deployment vfs:/C:/jboss/jboss-6.0.0.Final/server/default/deploy/jacob.war/WEB-INF/jbossws-cxf.xml
                    11:21:56,661 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] Error installing to Real: name=vfs:///C:/jboss/jboss-6.0.0.Final/server/default/deploy/jacob.war state=PreReal mode=Manual requiredState=Real: org.jboss.deployers.spi.DeploymentException: Error during deploy: vfs:///C:/jboss/jboss-6.0.0.Final/server/default/deploy/jacob.war
                        at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49) [:2.2.0.GA]
                        at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:185) [:2.2.0.GA]
                        at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1832) [:2.2.0.GA]
                        at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1550) [:2.2.0.GA]
                        at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1491) [:2.2.0.GA]
                        at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379) [jboss-dependency.jar:2.2.0.GA]
                        at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044) [jboss-dependency.jar:2.2.0.GA]
                        at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083) [jboss-dependency.jar:2.2.0.GA]
                        at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-dependency.jar:2.2.0.GA]
                        at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency.jar:2.2.0.GA]
                        at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency.jar:2.2.0.GA]
                        at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939) [jboss-dependency.jar:2.2.0.GA]
                        at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654) [jboss-dependency.jar:2.2.0.GA]
                        at org.jboss.deployers.plugins.deployers.DeployersImpl.change(DeployersImpl.java:1983) [:2.2.0.GA]
                        at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:1076) [:2.2.0.GA]
                        at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:679) [:2.2.0.GA]
                        at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.process(MainDeployerPlugin.java:106) [:6.0.0.Final]
                        at org.jboss.profileservice.dependency.ProfileControllerContext$DelegateDeployer.process(ProfileControllerContext.java:143) [:0.2.2]
                        at org.jboss.profileservice.deployment.hotdeploy.HDScanner$HDScanAction.deploy(HDScanner.java:240) [:0.2.2]
                        at org.jboss.profileservice.deployment.hotdeploy.HDScanner$HDScanAction.complete(HDScanner.java:192) [:0.2.2]
                        at org.jboss.profileservice.management.TwoPCActionWrapper.doComplete(TwoPCActionWrapper.java:57) [:0.2.2]
                        at org.jboss.profileservice.management.actions.AbstractTwoPhaseModificationAction.complete(AbstractTwoPhaseModificationAction.java:74) [:0.2.2]
                        at org.jboss.profileservice.management.actions.AbstractTwoPhaseModificationAction.prepare(AbstractTwoPhaseModificationAction.java:95) [:0.2.2]
                        at org.jboss.profileservice.management.ModificationSession.prepare(ModificationSession.java:87) [:0.2.2]
                        at org.jboss.profileservice.management.AbstractActionController.internalPerfom(AbstractActionController.java:234) [:0.2.2]
                        at org.jboss.profileservice.management.AbstractActionController.performWrite(AbstractActionController.java:213) [:0.2.2]
                        at org.jboss.profileservice.management.AbstractActionController.perform(AbstractActionController.java:150) [:0.2.2]
                        at org.jboss.profileservice.management.AbstractActionController.perform(AbstractActionController.java:135) [:0.2.2]
                        at org.jboss.profileservice.deployment.hotdeploy.HDScanner.scan(HDScanner.java:146) [:0.2.2]
                        at org.jboss.profileservice.deployment.hotdeploy.HDScanner.run(HDScanner.java:90) [:0.2.2]
                        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [:1.6.0_23]
                        at java.util.concurrent.FutureTask$Sync.innerRunAndReset(Unknown Source) [:1.6.0_23]
                        at java.util.concurrent.FutureTask.runAndReset(Unknown Source) [:1.6.0_23]
                        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(Unknown Source) [:1.6.0_23]
                        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(Unknown Source) [:1.6.0_23]
                        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) [:1.6.0_23]
                        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) [:1.6.0_23]
                        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [:1.6.0_23]
                        at java.lang.Thread.run(Unknown Source) [:1.6.0_23]
                    Caused by: java.lang.RuntimeException: java.lang.RuntimeException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'JacobDemoService': Invocation of init method failed; nested exception is javax.xml.ws.WebServiceException: java.lang.RuntimeException: java.net.SocketException: Unresolved address
                        at org.jboss.wsf.stack.cxf.deployment.aspect.JMSEndpointDeploymentAspectDelegate.start(JMSEndpointDeploymentAspectDelegate.java:62) [:3.4.1.GA]
                        at org.jboss.wsf.stack.cxf.deployment.aspect.JMSEndpointDeploymentAspect.start(JMSEndpointDeploymentAspect.java:51) [:3.4.1.GA]
                        at org.jboss.webservices.integration.deployers.WSDeploymentAspectDeployer.internalDeploy(WSDeploymentAspectDeployer.java:123) [:6.0.0.Final]
                        at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:55) [:2.2.0.GA]
                        at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179) [:2.2.0.GA]
                        ... 37 more
                    Caused by: java.lang.RuntimeException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'JacobDemoService': Invocation of init method failed; nested exception is javax.xml.ws.WebServiceException: java.lang.RuntimeException: java.net.SocketException: Unresolved address
                        at org.jboss.wsf.stack.cxf.client.configuration.JBossWSSpringBusFactory.createBus(JBossWSSpringBusFactory.java:83) [:3.4.1.GA]
                        at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:131) [:2.3.1]
                        at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:121) [:2.3.1]
                        at org.jboss.wsf.stack.cxf.deployment.aspect.JMSEndpointDeploymentAspectDelegate.start(JMSEndpointDeploymentAspectDelegate.java:56) [:3.4.1.GA]
                        ... 41 more
                    Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'JacobDemoService': Invocation of init method failed; nested exception is javax.xml.ws.WebServiceException: java.lang.RuntimeException: java.net.SocketException: Unresolved address
                        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1412) [:3.0.3.RELEASE]
                        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519) [:3.0.3.RELEASE]
                        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456) [:3.0.3.RELEASE]
                        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291) [:3.0.3.RELEASE]
                        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) [:3.0.3.RELEASE]
                        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288) [:3.0.3.RELEASE]
                        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190) [:3.0.3.RELEASE]
                        at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:574) [:3.0.3.RELEASE]
                        at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895) [:3.0.3.RELEASE]
                        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425) [:3.0.3.RELEASE]
                        at org.jboss.wsf.stack.cxf.client.configuration.JBossWSBusApplicationContext.<init>(JBossWSBusApplicationContext.java:71) [:3.4.1.GA]
                        at org.jboss.wsf.stack.cxf.client.configuration.JBossWSSpringBusFactory.createBus(JBossWSSpringBusFactory.java:78) [:3.4.1.GA]
                        ... 44 more
                    Caused by: javax.xml.ws.WebServiceException: java.lang.RuntimeException: java.net.SocketException: Unresolved address
                        at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:335) [:2.3.1]
                        at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:238) [:2.3.1]
                        at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:481) [:2.3.1]
                        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_23]
                        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) [:1.6.0_23]
                        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [:1.6.0_23]
                        at java.lang.reflect.Method.invoke(Unknown Source) [:1.6.0_23]
                        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1536) [:3.0.3.RELEASE]
                        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1477) [:3.0.3.RELEASE]
                        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1409) [:3.0.3.RELEASE]
                        ... 55 more
                    Caused by: java.lang.RuntimeException: java.net.SocketException: Unresolved address
                        at org.jboss.wsf.stack.cxf.addons.transports.httpserver.HttpServerEngine.addHandler(HttpServerEngine.java:98) [:3.4.1.GA]
                        at org.jboss.wsf.stack.cxf.addons.transports.httpserver.HttpServerDestination.activate(HttpServerDestination.java:105) [:3.4.1.GA]
                        at org.apache.cxf.transport.AbstractObservable.setMessageObserver(AbstractObservable.java:48) [:2.3.1]
                        at org.apache.cxf.binding.AbstractBindingFactory.addListener(AbstractBindingFactory.java:181) [:2.3.1]
                        at org.apache.cxf.binding.soap.SoapBindingFactory.addListener(SoapBindingFactory.java:836) [:2.3.1]
                        at org.apache.cxf.endpoint.ServerImpl.start(ServerImpl.java:127) [:2.3.1]
                        at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:326) [:2.3.1]
                        ... 64 more
                    Caused by: java.net.SocketException: Unresolved address
                        at sun.nio.ch.Net.translateToSocketException(Unknown Source) [:1.6.0_23]
                        at sun.nio.ch.Net.translateException(Unknown Source) [:1.6.0_23]
                        at sun.nio.ch.Net.translateException(Unknown Source) [:1.6.0_23]
                        at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source) [:1.6.0_23]
                        at sun.net.httpserver.ServerImpl.<init>(Unknown Source) [:1.6.0_23]
                        at sun.net.httpserver.HttpServerImpl.<init>(Unknown Source) [:1.6.0_23]
                        at sun.net.httpserver.DefaultHttpServerProvider.createHttpServer(Unknown Source) [:1.6.0_23]
                        at com.sun.net.httpserver.HttpServer.create(Unknown Source) [:1.6.0_23]
                        at org.jboss.wsf.stack.cxf.addons.transports.httpserver.HttpServerEngine.addHandler(HttpServerEngine.java:93) [:3.4.1.GA]
                        ... 70 more
                    Caused by: java.nio.channels.UnresolvedAddressException
                        at sun.nio.ch.Net.checkAddress(Unknown Source) [:1.6.0_23]
                        at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source) [:1.6.0_23]
                        ... 76 more
                    
                    11:21:56,677 WARN  [org.jboss.profileservice.deployment.hotdeploy.HDScanner] Scan failed: org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
                    
                    *** DEPLOYMENTS IN ERROR: Name -> Error
                    
                    vfs:///C:/jboss/jboss-6.0.0.Final/server/default/deploy/jacob.war -> org.jboss.deployers.spi.DeploymentException: Error during deploy: vfs:///C:/jboss/jboss-6.0.0.Final/server/default/deploy/jacob.war
                    
                    
                    DEPLOYMENTS IN ERROR:
                      Deployment "vfs:///C:/jboss/jboss-6.0.0.Final/server/default/deploy/jacob.war" is in error due to the following reason(s): java.nio.channels.UnresolvedAddressException
                    
                        at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:1370) [:2.2.0.GA]
                        at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:1316) [:2.2.0.GA]
                        at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:968) [:2.2.0.GA]
                        at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.checkComplete(MainDeployerPlugin.java:82) [:6.0.0.Final]
                        at org.jboss.profileservice.dependency.ProfileControllerContext$DelegateDeployer.checkComplete(ProfileControllerContext.java:138) [:0.2.2]
                        at org.jboss.profileservice.deployment.hotdeploy.HDScanner$HDScanAction.deploy(HDScanner.java:246) [:0.2.2]
                        at org.jboss.profileservice.deployment.hotdeploy.HDScanner$HDScanAction.complete(HDScanner.java:192) [:0.2.2]
                        at org.jboss.profileservice.management.TwoPCActionWrapper.doComplete(TwoPCActionWrapper.java:57) [:0.2.2]
                        at org.jboss.profileservice.management.actions.AbstractTwoPhaseModificationAction.complete(AbstractTwoPhaseModificationAction.java:74) [:0.2.2]
                        at org.jboss.profileservice.management.actions.AbstractTwoPhaseModificationAction.prepare(AbstractTwoPhaseModificationAction.java:95) [:0.2.2]
                        at org.jboss.profileservice.management.ModificationSession.prepare(ModificationSession.java:87) [:0.2.2]
                        at org.jboss.profileservice.management.AbstractActionController.internalPerfom(AbstractActionController.java:234) [:0.2.2]
                        at org.jboss.profileservice.management.AbstractActionController.performWrite(AbstractActionController.java:213) [:0.2.2]
                        at org.jboss.profileservice.management.AbstractActionController.perform(AbstractActionController.java:150) [:0.2.2]
                        at org.jboss.profileservice.management.AbstractActionController.perform(AbstractActionController.java:135) [:0.2.2]
                        at org.jboss.profileservice.deployment.hotdeploy.HDScanner.scan(HDScanner.java:146) [:0.2.2]
                        at org.jboss.profileservice.deployment.hotdeploy.HDScanner.run(HDScanner.java:90) [:0.2.2]
                        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [:1.6.0_23]
                        at java.util.concurrent.FutureTask$Sync.innerRunAndReset(Unknown Source) [:1.6.0_23]
                        at java.util.concurrent.FutureTask.runAndReset(Unknown Source) [:1.6.0_23]
                        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(Unknown Source) [:1.6.0_23]
                        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(Unknown Source) [:1.6.0_23]
                        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) [:1.6.0_23]
                        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) [:1.6.0_23]
                        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [:1.6.0_23]
                        at java.lang.Thread.run(Unknown Source) [:1.6.0_23]
                    
                    
                    • 11. Re: WARNING [org.apache.cxf.phase.PhaseInterceptorChain] Interceptor for ... has thrown exception, unwinding now: java.lang.NullPointerException
                      Shawn Evans Newbie

                      Attached is the demo code that I am using to test with that is similar to my project.

                       

                      Deploys to JBoss 6.0 M4 and I can see the CXF web services in http://localhost:8080/CXFTest/services/ and I get the NPE issue when I call it from the client and it runs.

                       

                      But, I can't even get it to deploy in JBoss 6.0 Final.

                      • 12. Re: WARNING [org.apache.cxf.phase.PhaseInterceptorChain] Interceptor for ... has thrown exception, unwinding now: java.lang.NullPointerException
                        Alessio Soldano Master

                        OK, I gave your app a quick try and was able to deploy on AS 6 Final (spring-enabled by installing JBossWS-CXF 3.4.1 with -Dspring=true), see the wsdl and successfully invoke the getDemoMap operation after applying some changes to your descriptors:

                         

                        1) the deployment is successfull if you modify the web.xml and jbossws-cxf.xml as suggested, basically providing a web.xml as explained in the  jbossws documentation and providing a address attribute in jaxws:endpoint having the http protocol, as Jim pointed out. Just to give some pointers to users reading this in the future, what was basically happening here is that if you provide an address like "/foo", JBossWS-CXF try deploying the endpoint using the transport for the httpserver embedded in JDK6 (org.jboss.wsf.stack.cxf.addons.transports.httpserver ...) which won't work because the httpserver has not been started. This is for supporting the Enpoint.publish(..) API additions in JAXWS 2.2, in case you're wondering what's that for. Generally speaking, Apache CXF selects the transport to be used depending on the address, and JBossWS-CXF leverages that for its customizations.

                         

                        2) after fixing the deployment issue, I reproduced your NPE in the AbstractInvoker. That's because the ep instance is not found in the Exchange, which in turn depends on an internal JBossWS-CXF interceptor not having been run. The reason for that is in you erasing the in-interceptor-chain in jbossws-cxf.xml. This is basically something missing in the documentation, that I'm going to fix soon after posting here. Generally speaking, you're not supposed to play with global cxf setups (basically what's is in http://cxf.apache.org/core namespace) in jbossws-cxf.xml, as that's loaded throught an additional spring context. If you do so, you overwrite the default cxf (and jbossws-cxf) configuration, so you need to be carefull. Back to this case, if you want to setup global interceptors, you can simply do that in a cxf.xml descriptors that you also provide in your war's WEB-INF dir (close to the jbossws-cxf.xml).

                         

                        So, here are the 3 fixed descriptors:

                        web.xml

                         

                        <?xml version="1.0" encoding="ISO-8859-1"?>
                        <!DOCTYPE web-app
                            PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
                            "http://java.sun.com/dtd/web-app_2_3.dtd">
                        
                        <web-app>
                            <servlet>
                                <servlet-name>CXFServlet</servlet-name>
                                <display-name>CXF Servlet</display-name>
                                <servlet-class>com.northgrum.jacob.services.demo.JacobDemoServiceImpl</servlet-class>
                            </servlet>
                            <servlet-mapping>
                                <servlet-name>CXFServlet</servlet-name>
                                <url-pattern>/*</url-pattern>
                            </servlet-mapping>
                        </web-app>
                        

                         

                         

                        jbossws-cxf.xml

                        <beans xmlns="http://www.springframework.org/schema/beans"
                            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
                            xmlns:beans="http://www.springframework.org/schema/beans"
                            xmlns:jaxws="http://cxf.apache.org/jaxws" 
                            xmlns:util="http://www.springframework.org/schema/util"
                            xmlns:cxf="http://cxf.apache.org/core"
                            xmlns:simple="http://cxf.apache.org/simple"
                            xsi:schemaLocation="http://www.springframework.org/schema/beans
                            http://www.springframework.org/schema/beans/spring-beans.xsd
                            http://cxf.apache.org/jaxws
                            http://cxf.apache.org/schemas/jaxws.xsd
                            http://www.springframework.org/schema/util
                            http://www.springframework.org/schema/util/spring-util.xsd
                            http://cxf.apache.org/core
                            http://cxf.apache.org/schemas/core.xsd
                            http://cxf.apache.org/simple 
                            http://cxf.apache.org/schemas/simple.xsd">
                        
                            <!-- The service bean -->
                            <bean id="JacobDemoServiceImpl" class="com.northgrum.jacob.services.demo.JacobDemoServiceImpl" />
                        
                            <!-- Aegis data binding -->
                            <bean id="aegisBean" class="org.apache.cxf.aegis.databinding.AegisDatabinding"
                                scope="prototype">
                                <property name="configuration">
                                    <bean class="org.apache.cxf.aegis.type.TypeCreationOptions">
                                        <property name="defaultMinOccurs" value="1" />
                                        <property name="defaultNillable" value="false" />
                                    </bean>
                                </property>
                            </bean>
                            <bean id="aegis-service-factory" class="org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean"
                                scope="prototype">
                                <property name="dataBinding" ref="aegisBean" />
                            </bean>
                        
                            <!-- JACOB Service endpoints -->
                            <jaxws:endpoint id="JacobDemoService"
                                implementor="#JacobDemoServiceImpl" address="http://localhost:8080/CXFTest">
                                <jaxws:serviceFactory>
                                    <ref bean="aegis-service-factory" />
                                </jaxws:serviceFactory>
                                <jaxws:invoker>
                                    <bean class='org.jboss.wsf.stack.cxf.InvokerJSE' />
                                </jaxws:invoker>
                            </jaxws:endpoint>     
                        </beans>
                        

                         

                         

                        cxf.xml

                         

                        <beans xmlns="http://www.springframework.org/schema/beans"
                            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
                            xmlns:beans="http://www.springframework.org/schema/beans"
                            xmlns:jaxws="http://cxf.apache.org/jaxws" 
                            xmlns:util="http://www.springframework.org/schema/util"
                            xmlns:cxf="http://cxf.apache.org/core"
                            xmlns:simple="http://cxf.apache.org/simple"
                            xsi:schemaLocation="http://www.springframework.org/schema/beans
                            http://www.springframework.org/schema/beans/spring-beans.xsd
                            http://cxf.apache.org/jaxws
                            http://cxf.apache.org/schemas/jaxws.xsd
                            http://www.springframework.org/schema/util
                            http://www.springframework.org/schema/util/spring-util.xsd
                            http://cxf.apache.org/core
                            http://cxf.apache.org/schemas/core.xsd
                            http://cxf.apache.org/simple 
                            http://cxf.apache.org/schemas/simple.xsd">
                        
                        
                            <!-- CXF Bus -->
                            <bean id="logInbound" class="org.apache.cxf.interceptor.LoggingInInterceptor" />
                            <bean id="logOutbound" class="org.apache.cxf.interceptor.LoggingOutInterceptor" />
                        
                        
                            <cxf:bus>
                                <cxf:inInterceptors>
                                    <ref bean="logInbound" />
                                </cxf:inInterceptors>
                                <cxf:outInterceptors>
                                    <!--   <ref bean="logOutbound" /> -->
                                </cxf:outInterceptors>
                                <cxf:inFaultInterceptors>
                                    <!--   <ref bean="logOutbound" /> -->
                                </cxf:inFaultInterceptors>
                            </cxf:bus>
                        
                        </beans>
                        
                        • 14. WARNING [org.apache.cxf.phase.PhaseInterceptorChain] Interceptor for ... has thrown exception, unwinding now: java.lang.NullPointerException
                          Shawn Evans Newbie

                          Thank you, I got it all working now.

                           

                          Is there a way to identify the *port* and *jboss.ws:context* similar to the @jboss.bind.address@ below? We deploy to our local test servers on 8080, when it goes into test and production it will be 443, sometimes with different WAR names to facilitating development and testing.

                             address="http://@jboss.bind.address@:8080/warname/JacobDemoService"

                           

                          CXF used to allow us to have the following and it worked just fine.

                             address="/JacobDemoService"

                           

                          Thanks in advanced.