5 Replies Latest reply on Feb 16, 2010 5:06 AM by Daffy Duck

    FUSE ESB v4.1.0-psc-01-01RC1/02RC1 failure on PC without Internet access

    Daffy Duck Novice

      Hi,

       

      I am currently giving a try to the new FUSE ESB RC (FUSE ESB v4.1.0-psc-01-02RC1).

       

      Previous RC works ok but the log file for 02RC1 shows several exceptions like this one:

       

       

      10:24:44,814 | ERROR | Thread-3         | FeaturesServiceImpl              | s.internal.FeaturesServiceImpl$1  659 | Error installing boot feature activemq

      java.io.IOException: URL mvn:org.apache.servicemix.nmr/apache-servicemix-nmr/1.1.0-psc-01-00RC1/xml/features could not be resolved. : mvn:org.apache.servicemix.nmr/apache-servicemix-nmr/1.1.0-psc-01-00RC1/xml/features

           at org.apache.felix.karaf.features.internal.RepositoryImpl.load(RepositoryImpl.java:170)

           at org.apache.felix.karaf.features.internal.FeaturesServiceImpl.internalAddRepository(FeaturesServiceImpl.java:169)

           at org.apache.felix.karaf.features.internal.FeaturesServiceImpl.getFeatures(FeaturesServiceImpl.java:605)

           at org.apache.felix.karaf.features.internal.FeaturesServiceImpl.getFeature(FeaturesServiceImpl.java:575)

           at org.apache.felix.karaf.features.internal.FeaturesServiceImpl$1.run(FeaturesServiceImpl.java:652)

      Caused by: java.lang.RuntimeException: URL mvn:org.apache.servicemix.nmr/apache-servicemix-nmr/1.1.0-psc-01-00RC1/xml/features could not be resolved.

           at org.ops4j.pax.url.mvn.internal.Connection.getInputStream(Connection.java:195)

           at org.apache.felix.karaf.features.internal.RepositoryImpl.load(RepositoryImpl.java:93)

           ... 4 more

       

       

      It appears that an old feature file (NMR features 1.1.0-psc-01-00RC1) tries to get loaded by Karaf features service and I am stuck at this point (I have checked all cfg files coming with this 02RC1 but they all seem ok to me). Any idea?

       

      Thanks.

       

      CM

        • 1. Re:  FUSE ESB v4.1.0-psc-01-01RC1/02RC1 failure on PC without Internet acce
          Daffy Duck Novice

          Ok I've found the reason.

           

          In fact my issue can be reproduced with both 01RC1 and 02RC1.

           

          To repro: simply try to install these RC on a machine without Internet access.

           

          As it seems that feature file for "NMR features 1.1.0-psc-01-00RC1" is referenced somewhere in the code (because I can't find such dependency in any config file), a machine with Internet access will successfully be able to resolve the dependency whereas another machine without Internet access will fail with exception "java.lang.RuntimeException: URL mvn:org.apache.servicemix.nmr/apache-servicemix-nmr/1.1.0-psc-01-00RC1/xml/features could not be resolved."

           

          For 01RC1 we should ony have a reference to "NMR features 1.1.0-psc-01-01RC1".

          For 02RC1 we should ony have a reference to "NMR features 1.1.0-psc-01-02RC1".

           

           

          Can this be confirmed and fixed for next RC (i.e. update all feature references) so as to be able to install SMX without Internet access?

           

          Thanks.

           

          CM

          • 2. Re: FUSE ESB v4.1.0-psc-01-01RC1/02RC1 failure on PC without Internet access
            Eoghan Glynn Newbie

            Salut concombre!

             

            Are you using the "ode" feature perchance?

             

            I notice there's a lingering reference to version 1.1.0-psc-01-00RC1 in the ode-jbi-karaf features.xml provided with the 4.1.0-psc-01-02RC1 kit, in the form of the versioned dependency on the transaction feature.

             

            In future hotfixes, we shall have to re-release ode-jbi-karaf as well whenever the NMR version is touched. But for the moment, you can work around the issue by manually editing the relevant features file:

             

            system/org/apache/ode/ode-jbi-karaf/1.3.3-psc-01-00RC1/ode-jbi-karaf-1.3.3-psc-01-00RC1-features.xml
            22c22
            <      <feature version="1.1.0-psc-01-00RC1">transaction</feature>
            ---
            \>      <feature version="1.1.0-psc-01-02RC1">transaction</feature>
            

             

            Regards,

            Eoghan

            • 3. Re: FUSE ESB v4.1.0-psc-01-01RC1/02RC1 failure on PC without Internet acces
              Daffy Duck Novice

              Hi Eoghan,

               

              No I do not use Ode feature but if I remove the Ode feature repository (mvn:org.apache.ode/ode-jbi-karaf/1.3.3-psc-01-00RC1/xml/features) from the featuresRepositories property in file org.apache.felix.karaf.features.cfg, then it works!

               

              So this can be a valid workaround for people who want to run SMX on a PC without Internet access  (and if they do not need Ode feature of course). Another workaround would be to update the Ode feature file and fix the reference (what you suggested).

               

              Thanks for your help.

               

              Regards,

              CM

              • 4. Re: FUSE ESB v4.1.0-psc-01-01RC1/02RC1 failure on PC without Internet acces
                Eoghan Glynn Newbie

                Concombre,

                 

                FYI this ODE versioning issue with RC1 hotfixes 1 & 2 has been resolved in hotifx 3, downloadable from here and release noted here.

                 

                But in the meantime the GA release has been announced so you probably want to use that instead.

                 

                Cheers,

                Eoghan

                • 5. Re: FUSE ESB v4.1.0-psc-01-01RC1/02RC1 failure on PC without Internet acces
                  Daffy Duck Novice

                  Thanks for the feedback. And yes I am going to use your latest release (FUSE ESB 4.2).

                   

                  Regards,

                  CM