3 Replies Latest reply on Oct 30, 2013 4:52 AM by ffang

    Removing /cxf from web service url.

    rajvaida

      Hi

       

      I have developed a web service and deployed to Fuse. The WSDL url is http://x.x.x.x:8181/cxf/service?wsdl.

      Now I've been asked to change the url to http://x.x.x.x/service.wsdl

      I have done following changes.

       

      1. Changed port to 80. So port number is optional in the URL.

      2. I have executed following commands in Karaf console

             config:edit org.apache.cxf.osgi

             config:propset org.apache.cxf.servlet.context /

             config:update


      Now I am not able to start fuse. I am getting following issue. Is this because of above change?

       

      Please wait while JBoss Fuse is loading...

      Bundle listed in startup.properties configuration not found: org/apache/servicemix/bundles/org.apache.servicemix.bundles.jasypt/1.9.0_1/org.apache.servicemix.bundles.jasypt-1.9.0_1.jar

      Bundle listed in startup.properties configuration not found: org/apache/karaf/deployer/org.apache.karaf.deployer.wrap/2.3.0.redhat-60024/org.apache.karaf.deployer.wrap-2.3.0.redhat-60024.jar

      Bundle listed in startup.properties configuration not found: org/apache/karaf/shell/org.apache.karaf.shell.log/2.3.0.redhat-60024/org.apache.karaf.shell.log-2.3.0.redhat-60024.jar

      Bundle listed in startup.properties configuration not found: org/apache/aries/proxy/org.apache.aries.proxy.impl/1.0.1.redhat-60024/org.apache.aries.proxy.impl-1.0.1.redhat-60024.jar

      Bundle listed in startup.properties configuration not found: org/apache/karaf/diagnostic/org.apache.karaf.diagnostic.common/2.3.0.redhat-60024/org.apache.karaf.diagnostic.common-2.3.0.redhat-60024.jar

      Bundle listed in startup.properties configuration not found: com/weiglewilczek/scala-lang-osgi/scala-library/2.9.1/scala-library-2.9.1.jar

      Bundle listed in startup.properties configuration not found: org/apache/felix/org.apache.felix.configadmin/1.4.0.redhat-60024/org.apache.felix.configadmin-1.4.0.redhat-60024.jar

      Bundle listed in startup.properties configuration not found: org/apache/karaf/management/org.apache.karaf.management.server/2.3.0.redhat-60024/org.apache.karaf.management.server-2.3.0.redhat-60024.jar

      Bundle listed in startup.properties configuration not found: org/apache/aries/blueprint/org.apache.aries.blueprint.api/1.0.1.redhat-60024/org.apache.aries.blueprint.api-1.0.1.redhat-60024.jar

      Bundle listed in startup.properties configuration not found: org/apache/karaf/shell/org.apache.karaf.shell.ssh/2.3.0.redhat-60024/org.apache.karaf.shell.ssh-2.3.0.redhat-60024.jar

      Bundle listed in startup.properties configuration not found: org/codehaus/jackson/jackson-core-asl/1.9.10/jackson-core-asl-1.9.10.jar

      Bundle listed in startup.properties configuration not found: org/apache/karaf/deployer/org.apache.karaf.deployer.kar/2.3.0.redhat-60024/org.apache.karaf.deployer.kar-2.3.0.redhat-60024.jar

      Bundle listed in startup.properties configuration not found: org/apache/karaf/deployer/org.apache.karaf.deployer.features/2.3.0.redhat-60024/org.apache.karaf.deployer.features-2.3.0.redhat-60024.jar

      Bundle listed in startup.properties configuration not found: org/apache/karaf/jaas/org.apache.karaf.jaas.modules/2.3.0.redhat-60024/org.apache.karaf.jaas.modules-2.3.0.redhat-60024.jar

      Bundle listed in startup.properties configuration not found: org/apache/karaf/shell/org.apache.karaf.shell.dev/2.3.0.redhat-60024/org.apache.karaf.shell.dev-2.3.0.redhat-60024.jar

      Bundle listed in startup.properties configuration not found: org/apache/karaf/shell/org.apache.karaf.shell.console/2.3.0.redhat-60024/org.apache.karaf.shell.console-2.3.0.redhat-60024.jar

      Bundle listed in startup.properties configuration not found: commons-lang/commons-lang/2.6/commons-lang-2.6.jar

      Bundle listed in startup.properties configuration not found: org/apache/karaf/features/org.apache.karaf.features.management/2.3.0.redhat-60024/org.apache.karaf.features.management-2.3.0.redhat-60024.jar

      Bundle listed in startup.properties configuration not found: org/apache/karaf/diagnostic/org.apache.karaf.diagnostic.management/2.3.0.redhat-60024/org.apache.karaf.diagnostic.management-2.3.0.redhat-60024.jar

      Bundle listed in startup.properties configuration not found: org/fusesource/fabric/fabric-core/7.2.0.redhat-024/fabric-core-7.2.0.redhat-024.jar

      Bundle listed in startup.properties configuration not found: org/apache/karaf/diagnostic/org.apache.karaf.diagnostic.command/2.3.0.redhat-60024/org.apache.karaf.diagnostic.command-2.3.0.redhat-60024.jar

      Bundle listed in startup.properties configuration not found: org/ow2/asm/asm-all/4.1/asm-all-4.1.jar

      Bundle listed in startup.properties configuration not found: org/apache/karaf/features/org.apache.karaf.features.obr/2.3.0.redhat-60024/org.apache.karaf.features.obr-2.3.0.redhat-60024.jar

      Bundle listed in startup.properties configuration not found: org/apache/mina/mina-core/2.0.7/mina-core-2.0.7.jar

      Bundle listed in startup.properties configuration not found: org/apache/karaf/admin/org.apache.karaf.admin.command/2.3.0.redhat-60024/org.apache.karaf.admin.command-2.3.0.redhat-60024.jar

      Bundle listed in startup.properties configuration not found: org/apache/karaf/features/org.apache.karaf.features.command/2.3.0.redhat-60024/org.apache.karaf.features.command-2.3.0.redhat-60024.jar

      Bundle listed in startup.properties configuration not found: org/ops4j/pax/url/pax-url-mvn/1.3.6/pax-url-mvn-1.3.6.jar

      Bundle listed in startup.properties configuration not found: org/apache/karaf/admin/org.apache.karaf.admin.core/2.3.0.redhat-60024/org.apache.karaf.admin.core-2.3.0.redhat-60024.jar

      Bundle listed in startup.properties configuration not found: org/apache/felix/org.apache.felix.fileinstall/3.3.11.redhat-60024/org.apache.felix.fileinstall-3.3.11.redhat-60024.jar

      Bundle listed in startup.properties configuration not found: org/apache/aries/blueprint/org.apache.aries.blueprint.cm/1.0.1.redhat-60024/org.apache.aries.blueprint.cm-1.0.1.redhat-60024.jar

      Bundle listed in startup.properties configuration not found: org/fusesource/fabric/fabric-boot-commands/7.2.0.redhat-024/fabric-boot-commands-7.2.0.redhat-024.jar

      Bundle listed in startup.properties configuration not found: org/apache/karaf/admin/org.apache.karaf.admin.management/2.3.0.redhat-60024/org.apache.karaf.admin.management-2.3.0.redhat-60024.jar

      Bundle listed in startup.properties configuration not found: org/codehaus/jackson/jackson-mapper-asl/1.9.10/jackson-mapper-asl-1.9.10.jar

      Bundle listed in startup.properties configuration not found: org/apache/aries/jmx/org.apache.aries.jmx.core/1.0.1.redhat-60024/org.apache.aries.jmx.core-1.0.1.redhat-60024.jar

      Bundle listed in startup.properties configuration not found: org/apache/felix/org.apache.felix.bundlerepository/1.6.6/org.apache.felix.bundlerepository-1.6.6.jar

      Bundle listed in startup.properties configuration not found: org/fusesource/insight/insight-log/7.2.0.redhat-024/insight-log-7.2.0.redhat-024.jar

      Bundle listed in startup.properties configuration not found: org/apache/aries/jmx/org.apache.aries.jmx.api/1.0.1.redhat-60024/org.apache.aries.jmx.api-1.0.1.redhat-60024.jar

      Bundle listed in startup.properties configuration not found: org/fusesource/fabric/fabric-linkedin-zookeeper/7.2.0.redhat-024/fabric-linkedin-zookeeper-7.2.0.redhat-024.jar

      Bundle listed in startup.properties configuration not found: org/ops4j/pax/logging/pax-logging-service/1.7.0/pax-logging-service-1.7.0.jar

      Bundle listed in startup.properties configuration not found: org/apache/karaf/shell/org.apache.karaf.shell.dev2/2.3.0.redhat-60024/org.apache.karaf.shell.dev2-2.3.0.redhat-60024.jar

      Bundle listed in startup.properties configuration not found: commons-codec/commons-codec/1.6/commons-codec-1.6.jar

      Bundle listed in startup.properties configuration not found: org/apache/aries/jmx/org.apache.aries.jmx.blueprint.core/1.0.1.redhat-60024/org.apache.aries.jmx.blueprint.core-1.0.1.redhat-60024.jar

      Bundle listed in startup.properties configuration not found: org/apache/aries/jmx/org.apache.aries.jmx.blueprint.api/1.0.1.redhat-60024/org.apache.aries.jmx.blueprint.api-1.0.1.redhat-60024.jar

      Bundle listed in startup.properties configuration not found: org/apache/karaf/shell/org.apache.karaf.shell.commands/2.3.0.redhat-60024/org.apache.karaf.shell.commands-2.3.0.redhat-60024.jar

      Bundle listed in startup.properties configuration not found: org/apache/karaf/jaas/org.apache.karaf.jaas.command/2.3.0.redhat-60024/org.apache.karaf.jaas.command-2.3.0.redhat-60024.jar

      Bundle listed in startup.properties configuration not found: org/ops4j/pax/logging/pax-logging-api/1.7.0/pax-logging-api-1.7.0.jar

      Bundle listed in startup.properties configuration not found: org/fusesource/fabric/fabric-zookeeper/7.2.0.redhat-024/fabric-zookeeper-7.2.0.redhat-024.jar

      Bundle listed in startup.properties configuration not found: org/ops4j/pax/url/pax-url-wrap/1.3.6/pax-url-wrap-1.3.6.jar

      Bundle listed in startup.properties configuration not found: org/apache/aries/proxy/org.apache.aries.proxy.api/1.0.1.redhat-60024/org.apache.aries.proxy.api-1.0.1.redhat-60024.jar

      Bundle listed in startup.properties configuration not found: org/apache/karaf/jaas/org.apache.karaf.jaas.config/2.3.0.redhat-60024/org.apache.karaf.jaas.config-2.3.0.redhat-60024.jar

      Bundle listed in startup.properties configuration not found: org/apache/aries/org.apache.aries.util/1.0.1.redhat-60024/org.apache.aries.util-1.0.1.redhat-60024.jar

      Bundle listed in startup.properties configuration not found: org/apache/karaf/shell/org.apache.karaf.shell.packages/2.3.0.redhat-60024/org.apache.karaf.shell.packages-2.3.0.redhat-60024.jar

      Bundle listed in startup.properties configuration not found: org/apache/karaf/deployer/org.apache.karaf.deployer.blueprint/2.3.0.redhat-60024/org.apache.karaf.deployer.blueprint-2.3.0.redhat-60024.jar

      Bundle listed in startup.properties configuration not found: org/apache/karaf/shell/org.apache.karaf.shell.osgi/2.3.0.redhat-60024/org.apache.karaf.shell.osgi-2.3.0.redhat-60024.jar

      Bundle listed in startup.properties configuration not found: org/apache/servicemix/bundles/org.apache.servicemix.bundles.jsch/0.1.48_1/org.apache.servicemix.bundles.jsch-0.1.48_1.jar

      Bundle listed in startup.properties configuration not found: org/apache/karaf/diagnostic/org.apache.karaf.diagnostic.core/2.3.0.redhat-60024/org.apache.karaf.diagnostic.core-2.3.0.redhat-60024.jar

      Bundle listed in startup.properties configuration not found: org/apache/karaf/features/org.apache.karaf.features.core/2.3.0.redhat-60024/org.apache.karaf.features.core-2.3.0.redhat-60024.jar

      Bundle listed in startup.properties configuration not found: org/apache/karaf/deployer/org.apache.karaf.deployer.spring/2.3.0.redhat-60024/org.apache.karaf.deployer.spring-2.3.0.redhat-60024.jar

      Bundle listed in startup.properties configuration not found: org/apache/aries/blueprint/org.apache.aries.blueprint.core/1.0.1.redhat-60024/org.apache.aries.blueprint.core-1.0.1.redhat-60024.jar

      Could not create framework: java.lang.Exception: Aborting due to missing startup bundles

      java.lang.Exception: Aborting due to missing startup bundles

        at org.apache.karaf.main.Main.processConfigurationProperties(Main.java:1198)

        at org.apache.karaf.main.Main.loadStartupProperties(Main.java:1011)

        at org.apache.karaf.main.Main.launch(Main.java:299)

        at org.apache.karaf.main.Main.main(Main.java:509)

        • 1. Re: Removing /cxf from web service url.
          ffang

          Hi,

           

          1. I don't think the error is caused by the org.apache.cxf.osgi configuration you changed here.

          Do you change any other configuration? check if the folder $JBOSS_FUSE/system is still there.

           

          2. the org.apache.cxf.servlet.context must be something but not simply the "/"


          Freeman

          1 of 1 people found this helpful
          • 2. Re: Removing /cxf from web service url.
            rajvaida

            Thank you.

             

            1. I don't think the error is caused by the org.apache.cxf.osgi configuration you changed here.

            Do you change any other configuration? check if the folder $JBOSS_FUSE/system is still there.


            >>> I'd check this.

             

            2. the org.apache.cxf.servlet.context must be something but not simply the "/"


            >>> I'd like to remove "/cxf/". Is there anyway I could do this?

            • 3. Re: Removing /cxf from web service url.
              ffang

              Hi,

               

              No, you can't totally remove cxf servlet context, you can change it to another one though.

              The servlet context is used to distinguish which serlvet should be invoked for incoming request. There could be multiple servlet registered on Http OSGi service, cxf servlet is just one.

               

              Freeman