12 Replies Latest reply on May 27, 2013 5:31 AM by Kunal Suri

    ws-camel-service vs WS-cxf-service. Which is better to get the metrics?

    Kunal Suri Newbie

      Hi,

       

      I am moving the discussion to JBoss Fuse Forum as asked by Freeman.

       

      The previous discussion was happening on ServiveMix forum and can be seen through link [1]

       

      [1] http://servicemix.396122.n5.nabble.com/ws-camel-service-vs-WS-cxf-service-Which-is-better-to-get-the-metrics-td5716827.html

        • 1. Re: ws-camel-service vs WS-cxf-service. Which is better to get the metrics?
          Kunal Suri Newbie

          I did as you said and only added the below code to to the blueprint.xml and used mvn clean install to rebuild.

           

          <bean id="org.apache.cxf.management.counters.CounterRepository"

                  class="org.apache.cxf.management.counters.CounterRepository">

                  <property name="bus" ref="cxf" />

              </bean>

          is enough

           

          After that I tried to do a fab install and am getting this error!

           

          JBossFuse:karaf@root> osgi:install -s fab:mvn:org.jboss.fuse.examples/soap/6.0.0

          .redhat-024

          Bundle IDs:

          Error executing command: Error installing bundles:

                  Unable to install bundle fab:mvn:org.jboss.fuse.examples/soap/6.0.0.redh

          at-024

           

          Please let me know your point of view?

          • 2. Re: ws-camel-service vs WS-cxf-service. Which is better to get the metrics?
            Freeman(Yue) Fang Master

            Hi,

             

            As you already build soap example yourself, so the artifacts should be already in your maven local repo, so just check

             

            $JBOSS_FUSE/etc/org.ops4j.pax.url.mvn.cfg

            ensure your maven local repo is specified there if it's not in default location, currently it's

             

            #

            # Path to the local Maven repository which is used to avoid downloading

            # artifacts when they already exist locally.

            # The value of this property will be extracted from the settings.xml file

            # above, or defaulted to:

            #     System.getProperty( "user.home" ) + "/.m2/repository"

            #

            #org.ops4j.pax.url.mvn.localRepository=

             

            If your maven local repo isn't in the default folder you need specify it yourself.

             

            Also, ensure you didn't change any default configuration, so that fabric-bundle feature could get installed by default.

             

            And IIRC you are behind the proxy, so ensure the proxy configuration is correct as you already figured out here[1]

             

            [1]http://servicemix.396122.n5.nabble.com/programmatically-get-server-load-information-from-Apache-ServiceMix-using-JMX-td5716769.html#a5716784

             

            Freeman

            • 3. Re: ws-camel-service vs WS-cxf-service. Which is better to get the metrics?
              Kunal Suri Newbie

              Hi,

               

              I checked again and my mvn repository is the default repository and I feel the same is being used by Fuse.

               

              Yes, I was behind a proxy, but its setup properly now and I could install hawtio & jolokia after setting it up.

               

              I dint do any other configuration changes to the example/soap files.

               

              The wierd thing is that If I build it up normally, also my fab command is not working, but if I put the soap-6.0.0.redhat-024.jar in deploy folder I can see the Helloworld service running.

               

              Next, if I put the Bean stuff in blueprint.xml the same Helloworld service is not seen in http://localhost:8181/cxf after putting the newly created soap-6.0.0.redhat-024.jar in deploy folder.

               

              But in both the cases, that is building the soap example with or without the Bean vaule, its not getting installed by below command!

              osgi:install -s fab:mvn:org.jboss.fuse.examples/soap/6.0.0

              .redhat-024

               

              Please help!

               

              Also, Is it be possible for you to zip and upload your 'soap' example folder so that I can download and try to use it?

               

              Thanks,

              Kunal

              • 4. Re: ws-camel-service vs WS-cxf-service. Which is better to get the metrics?
                Freeman(Yue) Fang Master

                Hi,

                 

                Here it is.

                 

                 

                If the fab url doesn't work for you, most likely somehow your container messed up and can't start up correctly.

                 

                You can remove $JBOSS_FUSE/data folder and restart it, if it still doesn't work, post the result of

                osgi:list -a

                and the log here

                 

                Freeman

                • 5. Re: ws-camel-service vs WS-cxf-service. Which is better to get the metrics?
                  Kunal Suri Newbie

                  Hi,

                   

                  No Luck

                   

                  I tried to use your soap file. Rebuild it (mvn clean install) and then gave the command

                   

                  Deleted the 'Data' folder

                   

                  JBossFuse:karaf@root> osgi:install -s fab:mvn:org.jboss.fuse.examples/soap/6.0.0

                  .redhat-024

                  Bundle IDs:

                  Error executing command: Error installing bundles:

                          Unable to install bundle fab:mvn:org.jboss.fuse.examples/soap/6.0.0.redh

                  at-024

                   

                  And got the same error..

                   

                  Also the command

                  JBossFuse:karaf@root> osgi:list -a

                  Error executing command osgi:list undefined option -a

                  Try 'osgi:list --help' for more information.

                   

                  gives and error ... there is no -a in the --help

                   

                   

                  Also, once I delete my 'Data' folder the http://localhost:8181/jolokia/read/java.lang:type=* and http://localhost:8181/hawtio/ do not exist anymore ( I hope this is normal.. thats why asking )

                   

                  My another question is that if I do not give the bean thing my service is being deployed by putting the file in the 'Deploy' folder, but once I put the bean value and redeploy, its all lots

                  why is this happenig ? Any clues? Is it that the new Jar file is not being created properly ? as the error also states .... Failed to read artifact descriptor for org.jboss.fuse.examples:soap:pom:6.0.0.redhat-024

                   

                  Error Log (My debug logging is open Mode is )

                   

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

                   

                  19:03:51,361 | ERROR | l Console Thread | FabResolver                      | 71 - org.fusesource.fabric.fab.fab-osgi - 7.2.0.redhat-024 | Failed to read artifact descriptor for org.jboss.fuse.examples:soap:pom:6.0.0.redhat-024

                  19:03:51,362 | ERROR | l Console Thread | FabResolver                      | 71 - org.fusesource.fabric.fab.fab-osgi - 7.2.0.redhat-024 | Caused by: org.sonatype.aether.resolution.ArtifactDescriptorException: Failed to read artifact descriptor for org.jboss.fuse.examples:soap:pom:6.0.0.redhat-024

                  org.sonatype.aether.resolution.ArtifactDescriptorException: Failed to read artifact descriptor for org.jboss.fuse.examples:soap:pom:6.0.0.redhat-024

                            at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:317)[71:org.fusesource.fabric.fab.fab-osgi:7.2.0.redhat-024]

                            at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.readArtifactDescriptor(DefaultArtifactDescriptorReader.java:172)[71:org.fusesource.fabric.fab.fab-osgi:7.2.0.redhat-024]

                            at org.sonatype.aether.impl.internal.DefaultRepositorySystem.readArtifactDescriptor(DefaultRepositorySystem.java:316)[71:org.fusesource.fabric.fab.fab-osgi:7.2.0.redhat-024]

                            at org.fusesource.fabric.fab.MavenResolverImpl.collectDependencies(MavenResolverImpl.java:309)[71:org.fusesource.fabric.fab.fab-osgi:7.2.0.redhat-024]

                            at org.fusesource.fabric.fab.MavenResolverImpl.collectDependenciesFromPom(MavenResolverImpl.java:291)[71:org.fusesource.fabric.fab.fab-osgi:7.2.0.redhat-024]

                            at org.fusesource.fabric.fab.MavenResolverImpl.collectDependencies(MavenResolverImpl.java:263)[71:org.fusesource.fabric.fab.fab-osgi:7.2.0.redhat-024]

                            at org.fusesource.fabric.fab.osgi.internal.FabResolverFactoryImpl$FabResolverImpl.collectDependencyTree(FabResolverFactoryImpl.java:149)[71:org.fusesource.fabric.fab.fab-osgi:7.2.0.redhat-024]

                            at org.fusesource.fabric.fab.osgi.internal.FabClassPathResolver.resolve(FabClassPathResolver.java:136)[71:org.fusesource.fabric.fab.fab-osgi:7.2.0.redhat-024]

                            at org.fusesource.fabric.fab.osgi.internal.FabResolverFactoryImpl$FabResolverImpl.configureInstructions(FabResolverFactoryImpl.java:283)[71:org.fusesource.fabric.fab.fab-osgi:7.2.0.redhat-024]

                            at org.fusesource.fabric.fab.osgi.internal.FabResolverFactoryImpl$FabResolverImpl.createInstructions(FabResolverFactoryImpl.java:275)[71:org.fusesource.fabric.fab.fab-osgi:7.2.0.redhat-024]

                            at org.fusesource.fabric.fab.osgi.internal.FabResolverFactoryImpl$FabResolverImpl.getInfo(FabResolverFactoryImpl.java:245)[71:org.fusesource.fabric.fab.fab-osgi:7.2.0.redhat-024]

                            at org.fusesource.fabric.fab.osgi.internal.FabConnection.getInputStream(FabConnection.java:93)[71:org.fusesource.fabric.fab.fab-osgi:7.2.0.redhat-024]

                            at org.apache.felix.framework.util.SecureAction.getURLConnectionInputStream(SecureAction.java:524)[org.apache.felix.framework-4.0.3.redhat-60024.jar:]

                            at org.apache.felix.framework.cache.JarRevision.initialize(JarRevision.java:165)[org.apache.felix.framework-4.0.3.redhat-60024.jar:]

                            at org.apache.felix.framework.cache.JarRevision.<init>(JarRevision.java:77)[org.apache.felix.framework-4.0.3.redhat-60024.jar:]

                            at org.apache.felix.framework.cache.BundleArchive.createRevisionFromLocation(BundleArchive.java:878)[org.apache.felix.framework-4.0.3.redhat-60024.jar:]

                            at org.apache.felix.framework.cache.BundleArchive.reviseInternal(BundleArchive.java:550)[org.apache.felix.framework-4.0.3.redhat-60024.jar:]

                            at org.apache.felix.framework.cache.BundleArchive.<init>(BundleArchive.java:153)[org.apache.felix.framework-4.0.3.redhat-60024.jar:]

                            at org.apache.felix.framework.cache.BundleCache.create(BundleCache.java:277)[org.apache.felix.framework-4.0.3.redhat-60024.jar:]

                            at org.apache.felix.framework.Felix.installBundle(Felix.java:3047)[org.apache.felix.framework-4.0.3.redhat-60024.jar:]

                            at org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:165)[org.apache.felix.framework-4.0.3.redhat-60024.jar:]

                            at org.apache.karaf.shell.osgi.InstallBundle.doExecute(InstallBundle.java:43)[47:org.apache.karaf.shell.osgi:2.3.0.redhat-60024]

                            at org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:38)[15:org.apache.karaf.shell.console:2.3.0.redhat-60024]

                            at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)[15:org.apache.karaf.shell.console:2.3.0.redhat-60024]

                            at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[15:org.apache.karaf.shell.console:2.3.0.redhat-60024]

                            at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:474)[15:org.apache.karaf.shell.console:2.3.0.redhat-60024]

                            at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:400)[15:org.apache.karaf.shell.console:2.3.0.redhat-60024]

                            at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[15:org.apache.karaf.shell.console:2.3.0.redhat-60024]

                            at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[15:org.apache.karaf.shell.console:2.3.0.redhat-60024]

                            at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[15:org.apache.karaf.shell.console:2.3.0.redhat-60024]

                            at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)[15:org.apache.karaf.shell.console:2.3.0.redhat-60024]

                            at org.apache.karaf.shell.console.jline.Console.run(Console.java:176)[15:org.apache.karaf.shell.console:2.3.0.redhat-60024]

                            at org.apache.karaf.shell.console.jline.DelayedStarted.run(DelayedStarted.java:61)[15:org.apache.karaf.shell.console:2.3.0.redhat-60024]

                  Caused by: org.apache.maven.model.resolution.UnresolvableModelException: Could not transfer artifact org.fusesource:fuse-project:pom:7.2.0.redhat-024 from/to repos0 (http://repo1.maven.org/maven2): Error transferring file

                            at org.apache.maven.repository.internal.DefaultModelResolver.resolveModel(DefaultModelResolver.java:126)[71:org.fusesource.fabric.fab.fab-osgi:7.2.0.redhat-024]

                            at org.apache.maven.model.building.DefaultModelBuilder.readParentExternally(DefaultModelBuilder.java:819)[71:org.fusesource.fabric.fab.fab-osgi:7.2.0.redhat-024]

                            at org.apache.maven.model.building.DefaultModelBuilder.readParent(DefaultModelBuilder.java:670)[71:org.fusesource.fabric.fab.fab-osgi:7.2.0.redhat-024]

                            at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:308)[71:org.fusesource.fabric.fab.fab-osgi:7.2.0.redhat-024]

                            at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:232)[71:org.fusesource.fabric.fab.fab-osgi:7.2.0.redhat-024]

                            at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:308)[71:org.fusesource.fabric.fab.fab-osgi:7.2.0.redhat-024]

                            ... 32 more

                  Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: Could not transfer artifact org.fusesource:fuse-project:pom:7.2.0.redhat-024 from/to repos0 (http://repo1.maven.org/maven2): Error transferring file

                            at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:541)[71:org.fusesource.fabric.fab.fab-osgi:7.2.0.redhat-024]

                            at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:220)[71:org.fusesource.fabric.fab.fab-osgi:7.2.0.redhat-024]

                            at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:197)[71:org.fusesource.fabric.fab.fab-osgi:7.2.0.redhat-024]

                            at org.apache.maven.repository.internal.DefaultModelResolver.resolveModel(DefaultModelResolver.java:122)[71:org.fusesource.fabric.fab.fab-osgi:7.2.0.redhat-024]

                            ... 37 more

                  Caused by: org.sonatype.aether.transfer.ArtifactTransferException: Could not transfer artifact org.fusesource:fuse-project:pom:7.2.0.redhat-024 from/to repos0 (http://repo1.maven.org/maven2): Error transferring file

                            at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$4.wrap(WagonRepositoryConnector.java:949)[71:org.fusesource.fabric.fab.fab-osgi:7.2.0.redhat-024]

                            at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$4.wrap(WagonRepositoryConnector.java:940)[71:org.fusesource.fabric.fab.fab-osgi:7.2.0.redhat-024]

                            at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$GetTask.flush(WagonRepositoryConnector.java:695)[71:org.fusesource.fabric.fab.fab-osgi:7.2.0.redhat-024]

                            at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$GetTask.flush(WagonRepositoryConnector.java:689)[71:org.fusesource.fabric.fab.fab-osgi:7.2.0.redhat-024]

                            at org.sonatype.aether.connector.wagon.WagonRepositoryConnector.get(WagonRepositoryConnector.java:445)[71:org.fusesource.fabric.fab.fab-osgi:7.2.0.redhat-024]

                            at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:460)[71:org.fusesource.fabric.fab.fab-osgi:7.2.0.redhat-024]

                            ... 40 more

                  Caused by: org.apache.maven.wagon.TransferFailedException: Error transferring file

                            at org.apache.maven.wagon.providers.http.LightweightHttpWagon.resourceExists(LightweightHttpWagon.java:384)[71:org.fusesource.fabric.fab.fab-osgi:7.2.0.redhat-024]

                            at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$GetTask.run(WagonRepositoryConnector.java:584)[71:org.fusesource.fabric.fab.fab-osgi:7.2.0.redhat-024]

                            at org.sonatype.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:64)[71:org.fusesource.fabric.fab.fab-osgi:7.2.0.redhat-024]

                            at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)[:1.6.0_45]

                            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)[:1.6.0_45]

                            at java.lang.Thread.run(Thread.java:662)[:1.6.0_45]

                  Caused by: java.net.ConnectException: Connection timed out: connect

                            at java.net.PlainSocketImpl.socketConnect(Native Method)[:1.6.0_45]

                            at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)[:1.6.0_45]

                            at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)[:1.6.0_45]

                            at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)[:1.6.0_45]

                            at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)[:1.6.0_45]

                            at java.net.Socket.connect(Socket.java:529)[:1.6.0_45]

                            at java.net.Socket.connect(Socket.java:478)[:1.6.0_45]

                            at sun.net.NetworkClient.doConnect(NetworkClient.java:163)[:1.6.0_45]

                            at sun.net.www.http.HttpClient.openServer(HttpClient.java:411)[:1.6.0_45]

                            at sun.net.www.http.HttpClient.openServer(HttpClient.java:525)[:1.6.0_45]

                            at sun.net.www.http.HttpClient.<init>(HttpClient.java:208)[:1.6.0_45]

                            at sun.net.www.http.HttpClient.New(HttpClient.java:291)[:1.6.0_45]

                            at sun.net.www.http.HttpClient.New(HttpClient.java:310)[:1.6.0_45]

                            at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:987)[:1.6.0_45]

                            at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:923)[:1.6.0_45]

                            at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:841)[:1.6.0_45]

                            at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1195)[:1.6.0_45]

                            at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:379)[:1.6.0_45]

                            at org.apache.maven.wagon.providers.http.LightweightHttpWagon.resourceExists(LightweightHttpWagon.java:361)[71:org.fusesource.fabric.fab.fab-osgi:7.2.0.redhat-024]

                            ... 5 more

                  19:03:51,374 | INFO  | l Console Thread | Console                          | 15 - org.apache.karaf.shell.console - 2.3.0.redhat-60024 | Exception caught while executing command

                  org.apache.karaf.shell.console.MultiException: Error installing bundles:

                            Unable to install bundle fab:mvn:org.jboss.fuse.examples/soap/6.0.0.redhat-024

                            at org.apache.karaf.shell.console.MultiException.throwIf(MultiException.java:91)[15:org.apache.karaf.shell.console:2.3.0.redhat-60024]

                            at org.apache.karaf.shell.osgi.InstallBundle.doExecute(InstallBundle.java:70)[47:org.apache.karaf.shell.osgi:2.3.0.redhat-60024]

                            at org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:38)[15:org.apache.karaf.shell.console:2.3.0.redhat-60024]

                            at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)[15:org.apache.karaf.shell.console:2.3.0.redhat-60024]

                            at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[15:org.apache.karaf.shell.console:2.3.0.redhat-60024]

                            at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:474)[15:org.apache.karaf.shell.console:2.3.0.redhat-60024]

                            at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:400)[15:org.apache.karaf.shell.console:2.3.0.redhat-60024]

                            at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[15:org.apache.karaf.shell.console:2.3.0.redhat-60024]

                            at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[15:org.apache.karaf.shell.console:2.3.0.redhat-60024]

                            at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[15:org.apache.karaf.shell.console:2.3.0.redhat-60024]

                            at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)[15:org.apache.karaf.shell.console:2.3.0.redhat-60024]

                            at org.apache.karaf.shell.console.jline.Console.run(Console.java:176)[15:org.apache.karaf.shell.console:2.3.0.redhat-60024]

                            at org.apache.karaf.shell.console.jline.DelayedStarted.run(DelayedStarted.java:61)[15:org.apache.karaf.shell.console:2.3.0.redhat-60024]

                  Caused by: java.lang.Exception: Unable to install bundle fab:mvn:org.jboss.fuse.examples/soap/6.0.0.redhat-024

                            at org.apache.karaf.shell.osgi.InstallBundle.doExecute(InstallBundle.java:45)[47:org.apache.karaf.shell.osgi:2.3.0.redhat-60024]

                            ... 11 more

                  Caused by: org.osgi.framework.BundleException: Unable to cache bundle: fab:mvn:org.jboss.fuse.examples/soap/6.0.0.redhat-024

                            at org.apache.felix.framework.Felix.installBundle(Felix.java:3051)[org.apache.felix.framework-4.0.3.redhat-60024.jar:]

                            at org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:165)[org.apache.felix.framework-4.0.3.redhat-60024.jar:]

                            at org.apache.karaf.shell.osgi.InstallBundle.doExecute(InstallBundle.java:43)[47:org.apache.karaf.shell.osgi:2.3.0.redhat-60024]

                            ... 11 more

                  Caused by: java.io.IOException: Failed to read artifact descriptor for org.jboss.fuse.examples:soap:pom:6.0.0.redhat-024

                            at org.fusesource.fabric.fab.osgi.internal.FabResolverFactoryImpl$FabResolverImpl.getInfo(FabResolverFactoryImpl.java:260)[71:org.fusesource.fabric.fab.fab-osgi:7.2.0.redhat-024]

                            at org.fusesource.fabric.fab.osgi.internal.FabConnection.getInputStream(FabConnection.java:93)[71:org.fusesource.fabric.fab.fab-osgi:7.2.0.redhat-024]

                            at org.apache.felix.framework.util.SecureAction.getURLConnectionInputStream(SecureAction.java:524)[org.apache.felix.framework-4.0.3.redhat-60024.jar:]

                            at org.apache.felix.framework.cache.JarRevision.initialize(JarRevision.java:165)[org.apache.felix.framework-4.0.3.redhat-60024.jar:]

                            at org.apache.felix.framework.cache.JarRevision.<init>(JarRevision.java:77)[org.apache.felix.framework-4.0.3.redhat-60024.jar:]

                            at org.apache.felix.framework.cache.BundleArchive.createRevisionFromLocation(BundleArchive.java:878)[org.apache.felix.framework-4.0.3.redhat-60024.jar:]

                            at org.apache.felix.framework.cache.BundleArchive.reviseInternal(BundleArchive.java:550)[org.apache.felix.framework-4.0.3.redhat-60024.jar:]

                            at org.apache.felix.framework.cache.BundleArchive.<init>(BundleArchive.java:153)[org.apache.felix.framework-4.0.3.redhat-60024.jar:]

                            at org.apache.felix.framework.cache.BundleCache.create(BundleCache.java:277)[org.apache.felix.framework-4.0.3.redhat-60024.jar:]

                            at org.apache.felix.framework.Felix.installBundle(Felix.java:3047)[org.apache.felix.framework-4.0.3.redhat-60024.jar:]

                            ... 13 more

                  Caused by: org.sonatype.aether.resolution.ArtifactDescriptorException: Failed to read artifact descriptor for org.jboss.fuse.examples:soap:pom:6.0.0.redhat-024

                            at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:317)[71:org.fusesource.fabric.fab.fab-osgi:7.2.0.redhat-024]

                            at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.readArtifactDescriptor(DefaultArtifactDescriptorReader.java:172)[71:org.fusesource.fabric.fab.fab-osgi:7.2.0.redhat-024]

                            at org.sonatype.aether.impl.internal.DefaultRepositorySystem.readArtifactDescriptor(DefaultRepositorySystem.java:316)[71:org.fusesource.fabric.fab.fab-osgi:7.2.0.redhat-024]

                            at org.fusesource.fabric.fab.MavenResolverImpl.collectDependencies(MavenResolverImpl.java:309)[71:org.fusesource.fabric.fab.fab-osgi:7.2.0.redhat-024]

                            at org.fusesource.fabric.fab.MavenResolverImpl.collectDependenciesFromPom(MavenResolverImpl.java:291)[71:org.fusesource.fabric.fab.fab-osgi:7.2.0.redhat-024]

                            at org.fusesource.fabric.fab.MavenResolverImpl.collectDependencies(MavenResolverImpl.java:263)[71:org.fusesource.fabric.fab.fab-osgi:7.2.0.redhat-024]

                            at org.fusesource.fabric.fab.osgi.internal.FabResolverFactoryImpl$FabResolverImpl.collectDependencyTree(FabResolverFactoryImpl.java:149)[71:org.fusesource.fabric.fab.fab-osgi:7.2.0.redhat-024]

                            at org.fusesource.fabric.fab.osgi.internal.FabClassPathResolver.resolve(FabClassPathResolver.java:136)[71:org.fusesource.fabric.fab.fab-osgi:7.2.0.redhat-024]

                            at org.fusesource.fabric.fab.osgi.internal.FabResolverFactoryImpl$FabResolverImpl.configureInstructions(FabResolverFactoryImpl.java:283)[71:org.fusesource.fabric.fab.fab-osgi:7.2.0.redhat-024]

                            at org.fusesource.fabric.fab.osgi.internal.FabResolverFactoryImpl$FabResolverImpl.createInstructions(FabResolverFactoryImpl.java:275)[71:org.fusesource.fabric.fab.fab-osgi:7.2.0.redhat-024]

                            at org.fusesource.fabric.fab.osgi.internal.FabResolverFactoryImpl$FabResolverImpl.getInfo(FabResolverFactoryImpl.java:245)[71:org.fusesource.fabric.fab.fab-osgi:7.2.0.redhat-024]

                            ... 22 more

                  Caused by: org.apache.maven.model.resolution.UnresolvableModelException: Could not transfer artifact org.fusesource:fuse-project:pom:7.2.0.redhat-024 from/to repos0 (http://repo1.maven.org/maven2): Error transferring file

                            at org.apache.maven.repository.internal.DefaultModelResolver.resolveModel(DefaultModelResolver.java:126)[71:org.fusesource.fabric.fab.fab-osgi:7.2.0.redhat-024]

                            at org.apache.maven.model.building.DefaultModelBuilder.readParentExternally(DefaultModelBuilder.java:819)[71:org.fusesource.fabric.fab.fab-osgi:7.2.0.redhat-024]

                            at org.apache.maven.model.building.DefaultModelBuilder.readParent(DefaultModelBuilder.java:670)[71:org.fusesource.fabric.fab.fab-osgi:7.2.0.redhat-024]

                            at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:308)[71:org.fusesource.fabric.fab.fab-osgi:7.2.0.redhat-024]

                            at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:232)[71:org.fusesource.fabric.fab.fab-osgi:7.2.0.redhat-024]

                            at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:308)[71:org.fusesource.fabric.fab.fab-osgi:7.2.0.redhat-024]

                            ... 32 more

                  Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: Could not transfer artifact org.fusesource:fuse-project:pom:7.2.0.redhat-024 from/to repos0 (http://repo1.maven.org/maven2): Error transferring file

                            at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:541)[71:org.fusesource.fabric.fab.fab-osgi:7.2.0.redhat-024]

                            at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:220)[71:org.fusesource.fabric.fab.fab-osgi:7.2.0.redhat-024]

                            at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:197)[71:org.fusesource.fabric.fab.fab-osgi:7.2.0.redhat-024]

                            at org.apache.maven.repository.internal.DefaultModelResolver.resolveModel(DefaultModelResolver.java:122)[71:org.fusesource.fabric.fab.fab-osgi:7.2.0.redhat-024]

                            ... 37 more

                  Caused by: org.sonatype.aether.transfer.ArtifactTransferException: Could not transfer artifact org.fusesource:fuse-project:pom:7.2.0.redhat-024 from/to repos0 (http://repo1.maven.org/maven2): Error transferring file

                            at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$4.wrap(WagonRepositoryConnector.java:949)[71:org.fusesource.fabric.fab.fab-osgi:7.2.0.redhat-024]

                            at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$4.wrap(WagonRepositoryConnector.java:940)[71:org.fusesource.fabric.fab.fab-osgi:7.2.0.redhat-024]

                            at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$GetTask.flush(WagonRepositoryConnector.java:695)[71:org.fusesource.fabric.fab.fab-osgi:7.2.0.redhat-024]

                            at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$GetTask.flush(WagonRepositoryConnector.java:689)[71:org.fusesource.fabric.fab.fab-osgi:7.2.0.redhat-024]

                            at org.sonatype.aether.connector.wagon.WagonRepositoryConnector.get(WagonRepositoryConnector.java:445)[71:org.fusesource.fabric.fab.fab-osgi:7.2.0.redhat-024]

                            at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:460)[71:org.fusesource.fabric.fab.fab-osgi:7.2.0.redhat-024]

                            ... 40 more

                  Caused by: org.apache.maven.wagon.TransferFailedException: Error transferring file

                            at org.apache.maven.wagon.providers.http.LightweightHttpWagon.resourceExists(LightweightHttpWagon.java:384)[71:org.fusesource.fabric.fab.fab-osgi:7.2.0.redhat-024]

                            at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$GetTask.run(WagonRepositoryConnector.java:584)[71:org.fusesource.fabric.fab.fab-osgi:7.2.0.redhat-024]

                            at org.sonatype.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:64)[71:org.fusesource.fabric.fab.fab-osgi:7.2.0.redhat-024]

                            at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)[:1.6.0_45]

                            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)[:1.6.0_45]

                            at java.lang.Thread.run(Thread.java:662)[:1.6.0_45]

                  Caused by: java.net.ConnectException: Connection timed out: connect

                            at java.net.PlainSocketImpl.socketConnect(Native Method)[:1.6.0_45]

                            at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)[:1.6.0_45]

                            at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)[:1.6.0_45]

                            at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)[:1.6.0_45]

                            at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)[:1.6.0_45]

                            at java.net.Socket.connect(Socket.java:529)[:1.6.0_45]

                            at java.net.Socket.connect(Socket.java:478)[:1.6.0_45]

                            at sun.net.NetworkClient.doConnect(NetworkClient.java:163)[:1.6.0_45]

                            at sun.net.www.http.HttpClient.openServer(HttpClient.java:411)[:1.6.0_45]

                            at sun.net.www.http.HttpClient.openServer(HttpClient.java:525)[:1.6.0_45]

                            at sun.net.www.http.HttpClient.<init>(HttpClient.java:208)[:1.6.0_45]

                            at sun.net.www.http.HttpClient.New(HttpClient.java:291)[:1.6.0_45]

                            at sun.net.www.http.HttpClient.New(HttpClient.java:310)[:1.6.0_45]

                            at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:987)[:1.6.0_45]

                            at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:923)[:1.6.0_45]

                            at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:841)[:1.6.0_45]

                            at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1195)[:1.6.0_45]

                            at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:379)[:1.6.0_45]

                            at org.apache.maven.wagon.providers.http.LightweightHttpWagon.resourceExists(LightweightHttpWagon.java:361)[71:org.fusesource.fabric.fab.fab-osgi:7.2.0.redhat-024]

                            ... 5 more

                  19:09:04,155 | DEBUG | tp1626669016-148 | ServerModel                      | 97 - org.ops4j.pax.web.pax-web-spi - 1.1.11 | Matching [/jolokia/read/java.lang:type=*]...

                  19:09:04,155 | DEBUG | tp1626669016-148 | ServerModel                      | 97 - org.ops4j.pax.web.pax-web-spi - 1.1.11 | Path [/jolokia/read/java.lang:type=*] does not match any context

                  19:09:04,180 | DEBUG | tp1626669016-146 | ServerModel                      | 97 - org.ops4j.pax.web.pax-web-spi - 1.1.11 | Matching [/favicon.ico]...

                  19:09:04,180 | DEBUG | tp1626669016-146 | ServerModel                      | 97 - org.ops4j.pax.web.pax-web-spi - 1.1.11 | Path [/favicon.ico] does not match any context

                  19:11:41,430 | INFO  | l Console Thread | Console                          | 15 - org.apache.karaf.shell.console - 2.3.0.redhat-60024 | Exception caught while executing command

                  org.apache.felix.gogo.commands.CommandException: Undefined option: -a

                            at org.apache.felix.gogo.commands.basic.DefaultActionPreparator.prepare(DefaultActionPreparator.java:174)[15:org.apache.karaf.shell.console:2.3.0.redhat-60024]

                            at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:34)[15:org.apache.karaf.shell.console:2.3.0.redhat-60024]

                            at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[15:org.apache.karaf.shell.console:2.3.0.redhat-60024]

                            at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:474)[15:org.apache.karaf.shell.console:2.3.0.redhat-60024]

                            at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:400)[15:org.apache.karaf.shell.console:2.3.0.redhat-60024]

                            at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[15:org.apache.karaf.shell.console:2.3.0.redhat-60024]

                            at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[15:org.apache.karaf.shell.console:2.3.0.redhat-60024]

                            at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[15:org.apache.karaf.shell.console:2.3.0.redhat-60024]

                            at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)[15:org.apache.karaf.shell.console:2.3.0.redhat-60024]

                            at org.apache.karaf.shell.console.jline.Console.run(Console.java:176)[15:org.apache.karaf.shell.console:2.3.0.redhat-60024]

                            at org.apache.karaf.shell.console.jline.DelayedStarted.run(DelayedStarted.java:61)[15:org.apache.karaf.shell.console:2.3.0.redhat-60024]

                   

                   

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

                   

                   

                  I also unzipped a new Fuse 'jboss-fuse-full-6.0.0.redhat-024.zip' , changed the file $JBOSS_FUSE/etc/org.ops4j.pax.url.mvn.cfg to allow connection behind the proxy but it also gave the same error with FAB

                   

                  I did this just to check if my ESB had got corrupted, just in case! But same error!


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

                   

                  19:31:50,894 | ERROR | l Console Thread | FabResolver                      | 71 - org.fusesource.fabric.fab.fab-osgi - 7.2.0.redhat-024 | Failed to read artifact descriptor for org.jboss.fuse.examples:soap:pom:6.0.0.redhat-024

                  19:31:50,895 | ERROR | l Console Thread | FabResolver                      | 71 - org.fusesource.fabric.fab.fab-osgi - 7.2.0.redhat-024 | Caused by: org.sonatype.aether.resolution.ArtifactDescriptorException: Failed to read artifact descriptor for org.jboss.fuse.examples:soap:pom:6.0.0.redhat-024

                  org.sonatype.aether.resolution.ArtifactDescriptorException: Failed to read artifact descriptor for org.jboss.fuse.examples:soap:pom:6.0.0.redhat-024

                            at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:317)[71:org.fusesource.fabric.fab.fab-osgi:7.2.0.redhat-024]

                            at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.readArtifactDescriptor(DefaultArtifactDescriptorReader.java:172)[71:org.fusesource.fabric.fab.fab-osgi:7.2.0.redhat-024]

                            at org.sonatype.aether.impl.internal.DefaultRepositorySystem.readArtifactDescriptor(DefaultRepositorySystem.java:316)[71:org.fusesource.fabric.fab.fab-osgi:7.2.0.redhat-024]


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

                   

                  Please let me know your thoughts on this.


                  Thanks a lot for your quick replies and all your support   Really appreciate it !

                   

                  Cheers!

                  Kunal

                  • 6. Re: ws-camel-service vs WS-cxf-service. Which is better to get the metrics?
                    Freeman(Yue) Fang Master

                    Hi,

                     

                    My gut feeling is that the fab somehow can't pick up the configuration of your proxy, which cause fab doesn't work correctly

                     

                    Could you please try the fab on the machine which have direct internet connection? If it works, we can narrow down the problem.

                     

                    Also about your questions

                    1. it should be

                    osgi:list -t 0

                    or

                    la

                    to list all bundles

                     

                    2. after remove data folder and restart you need reinstall hawtio feature to make hawtio work

                     

                    3. after add the org.apache.cxf.management.counters.CounterRepository bean in configuration, it need fab working correctly to add more OSGi metadata header to the bundle, that's why it doesn't work after change if the fab on your machine doesn't work.

                     

                    Freeman

                     

                     

                     

                     

                    Freeman

                    • 7. Re: ws-camel-service vs WS-cxf-service. Which is better to get the metrics?
                      Kunal Suri Newbie

                      Hi,

                       

                      Yes you gut feeling was so true

                       

                      I tried to run the bundle in a FUSE ESB on my laptop from without any proxy and FAB worked.  I also put the Bean definitions in Blueprint.xml of soap example and then tested the service with SoapUI. Once a request/response occur then the performance metrics appear in the Hawtio under the org.apache.cxf

                       

                      Now, what should I do with my test environment as it behind company proxy?  Could you please tell me which config file I need to change this time ?

                       

                      The FAB is not able to pick up any proxy settings as of now!

                       

                      Thanks,

                      Kunal

                      • 8. Re: ws-camel-service vs WS-cxf-service. Which is better to get the metrics?
                        Kunal Suri Newbie

                        Hi,

                         

                        Just to add....

                         

                        I also saw another thread with the same issue [1] but I dont know how it was resolved as the answer is not updated.

                         

                        [1] https://community.jboss.org/thread/224232

                         

                        If I work from a non-proxy Internet its working just fine!

                         

                        As per my understanding my mvn/config/setting.xml and $JBOSS_FUSE/etc/org.ops4j.pax.url.mvn.cfg are properly configuread and the org.fusesource.fabric.fab.osgi.url.cfg states that it uses org.ops4j.pax.url.mvn.cfg configurations. My company proxy has no password !

                         

                        I even tired to put the below two comand in the org.fusesource.fabric.fab.osgi.url.cfg file but same proxy issue

                         

                        org.ops4j.pax.url.mvn.settings=C:/Program Files/Apache Software Foundation/apache-maven-3.0.5/conf/settings.xml

                        org.ops4j.pax.url.mvn.proxySupport=true

                         

                        I am not understanding why FAB is not picking up the proxy setting

                         

                        -Kunal

                        • 9. Re: ws-camel-service vs WS-cxf-service. Which is better to get the metrics?
                          Freeman(Yue) Fang Master

                          Hi,

                           

                          It's werid that I can't reproduce it anyway.

                           

                          Please tell me your maven local repo folder, is it under the ${user.home}/.m2/repository folder? If not, change it to this folder to see if it helps.

                           

                          Also since you are on windows, are you using NTLM proxy? If so, this issue[1] might be related, and the solution in this issue might works for

                          you.

                           

                          Please tell me if above change works for you.

                           

                          [1]http://jira.codehaus.org/browse/MNG-5237

                           

                          Freeman

                          • 10. Re: ws-camel-service vs WS-cxf-service. Which is better to get the metrics?
                            Kunal Suri Newbie

                            Hi,

                             

                            I am on windows, but I am not sure if we are using NTLM, I still tried to use the [1] link to solve the issue and as per the link did this step too:

                             

                            are you using NTLM proxy ?

                            If yes add the jar http://repo.maven.apache.org/maven2/org/apache/maven/wagon/wagon-http-lightweight/2.2/wagon-http-lightweight-2.2.jarto your $M2_HOME/lib/ext

                             

                            But its not solving my problem

                             

                            My repo maven local repo folder is ${user.home}/.m2/repository and I have not changed it.

                             

                            All the other links like to install hawtio etc are working using the proxy settings from the maven/config setting.xml file but not FAB

                             

                            Is there any other way that you can think of ?

                             

                            [1]http://jira.codehaus.org/browse/MNG-5237

                             

                            Thanks,

                            Kunal

                            • 11. Re: ws-camel-service vs WS-cxf-service. Which is better to get the metrics?
                              Freeman(Yue) Fang Master

                              Hi,

                               

                              When it works it use pax-url-mvn under the hood, but the fab are using different logic. Just found a bug that fab ignore the proxy

                              configuration in settings.xml. Will create an internal jira to track it and this could get fixed by next release.

                               

                              Freeman

                               

                              • 12. Re: ws-camel-service vs WS-cxf-service. Which is better to get the metrics?
                                Kunal Suri Newbie

                                Hi,

                                 

                                Thanks freeman!

                                 

                                I also tired to figure out lots of different use cases to see what the problem was but felt that there was something wrong with only FAB.

                                 

                                The rest of the things were able to sue the proxy settings from the maven/config setting.xml file.

                                 

                                Thus, I was also thinking that it looks like a Bug and needs to be looked at by the Fuse folks. This is a bit of problem as now one cannot use Fuse ESB in the proxy enviornment (company).

                                 

                                My Observation and workaround:

                                 

                                The only way to use FAB in Fuse ESB to generate the package by using the mvn clean install on a machine that doesnt has a proxy and then copy that folder to the machine that has the proxy and install from there.

                                 

                                One more question:

                                 

                                Isnt it possible to download the repsitory of Fuse to the local machine such that maven doesnt needs to go online and just uses the local copy to generate the packages?

                                 

                                Thanks,

                                Kunal