9 Replies Latest reply on Feb 23, 2012 6:46 AM by paul.berry

    Deploying camel bundle, nothing seems to happen

    paul.berry

      Okay, here's a strange one.  I have a bundle that works fine in the FUSE IDE, but doesn't appear to start correctly in ESB.

       

      I drop it into the 'deploy' directory and get a message in the log stating:

       

      09:26:36,822 | DEBUG | rvicemix3/deploy | Activator                        | 89 - org.apache.camel.camel-core - 2.8.0.fuse-02-02 | Bundle started: test

       

      But then nothing happens.

       

      I have the camel logging set to TRACE. 

       

      I've posted the output from 'osgi:list' below.

       

      I don't get any exceptions in the log, just nothing after the 'start' line. 

       

      This was working fine a couple of days ago, I could see the endpoints start polling in the logs.  I've tried multiple re-installs of ESB (delete directory, re-extract) and get the same result.

       

      I notice quite a few bundles say 'resolved' rather than active (specifically some of the spring bundles) could this be part of the problem?

       

      The bundle itself contains a spring xml defined camel context, a couple of custom processors and a custom splitter. 

       

      karaf@root> osgi:list

      START LEVEL 100 , List Threshold: 50

         ID   State         Blueprint      Spring    Level  Name

      activemq-pool (5.5.1.fuse-02-02)

      activemq-console (5.5.1.fuse-02-02)

      kahadb (5.5.1.fuse-02-02)

      activemq-ra (5.5.1.fuse-02-02)

      activemq-core (5.5.1.fuse-02-02)

                                             Fragments: 68

      activemq-karaf (5.5.1.fuse-02-02)

      geronimo-j2ee-management_1.1_spec (1.0.1)

      Apache ServiceMix :: Bundles :: commons-codec (1.3.0.3)

      Apache ServiceMix Bundles: xpp3-1.1.4c (1.1.0.4c_3)

      Commons Pool (1.5.4)

      Commons Collections (3.2.1)

      geronimo-jms_1.1_spec (1.1.1)

      Apache ServiceMix :: Bundles :: jasypt (1.6.0.1)

      Apache ServiceMix :: Bundles :: commons-lang (2.4.0.4)

      Apache ServiceMix Bundles: dom4j-1.6.1 (1.6.1.2)

      Apache ServiceMix Bundles: oro-2.0.8 (2.0.8.3)

      Apache ServiceMix Bundles: xstream-1.3 (1.3.0.3)

      Apache ServiceMix :: Bundles :: velocity (1.7.0.1)

      Apache ServiceMix :: Bundles :: jdom (1.1.0.3)

      activemq-blueprint (5.5.1.fuse-02-02)

                                             Hosts: 52

      Apache XBean :: OSGI Blueprint Namespace Handler (3.9.0)

      Apache ServiceMix :: Specs :: Scripting API 1.0 (1.8.0)

      Commons JEXL (2.0.1)

      activemq-broker.xml (0.0.0)

      Spring Beans (3.0.5.RELEASE)

      Spring Context Support (3.0.5.RELEASE)

      Spring Context (3.0.5.RELEASE)

      Spring Expression Language (3.0.5.RELEASE)

      Spring ASM (3.0.5.RELEASE)

      Spring Core (3.0.5.RELEASE)

      Spring AOP (3.0.5.RELEASE)

      Apache ServiceMix :: Bundles :: aopalliance (1.0.0.5)

      spring-osgi-core (1.2.1)

      spring-osgi-io (1.2.1)

      spring-osgi-annotation (1.2.1)

      spring-osgi-extender (1.2.1)

      Apache ServiceMix :: Bundles :: cglib (2.1.0.3_7)

      activemq-spring (5.5.1.fuse-02-02)

      Apache XBean :: Spring (3.9.0)

      camel-karaf-commands (2.8.0.fuse-02-02)

      camel-core (2.8.0.fuse-02-02)

      Commons Management (1.0)

      camel-spring (2.8.0.fuse-02-02)

      Spring Transaction (3.0.5.RELEASE)

      camel-jms (2.8.0.fuse-02-02)

      Spring JMS (3.0.5.RELEASE)

      activemq-camel (5.5.1.fuse-02-02)

      Apache ServiceMix :: Document (1.5.1.fuse-02-02)

      Apache ServiceMix :: NMR :: Commands (1.5.1.fuse-02-02)

      Apache ServiceMix :: NMR :: Management (1.5.1.fuse-02-02)

      Apache ServiceMix :: NMR :: OSGi (1.5.1.fuse-02-02)

      Apache ServiceMix :: NMR :: Core (1.5.1.fuse-02-02)

      Apache ServiceMix :: NMR :: API (1.5.1.fuse-02-02)

      Apache ServiceMix :: Utils (1.5.1.fuse-02-02)

      Apache ServiceMix :: Features :: Camel Support :: Component (4.4.1.fuse-02-02)

      Web Services Metadata 2.0 (1.1.3)

      Apache ServiceMix :: Specs :: JAXWS API 2.2 (1.8.0)

      Apache ServiceMix :: Specs :: SAAJ API 1.3 (1.8.0)

      Apache ServiceMix :: Bundles :: saaj-impl (1.3.2.2)

      Jetty :: JNDI Naming (7.4.5.fuse20111017)

      Jetty :: Continuation (7.4.5.fuse20111017)

      Jetty :: Http Utility (7.4.5.fuse20111017)

      Jetty :: IO Utility (7.4.5.fuse20111017)

      Jetty :: Security (7.4.5.fuse20111017)

      Jetty :: Servlet Handling (7.4.5.fuse20111017)

      Jetty :: Asynchronous HTTP Client (7.4.5.fuse20111017)

      Jetty :: Server Core (7.4.5.fuse20111017)

      Jetty :: Utilities (7.4.5.fuse20111017)

      Jetty :: XML utilities (7.4.5.fuse20111017)

      Jetty :: Plus (7.4.5.fuse20111017)

      Jetty :: JMX Management (7.4.5.fuse20111017)

      Jetty :: Utility Servlets and Filters (7.4.5.fuse20111017)

      Jetty :: Webapp Application Support (7.4.5.fuse20111017)

      geronimo-servlet_2.5_spec (1.1.2)

      JavaMail API (1.4.3)

      Apache Aries Transaction Manager (0.3.0)

      Apache Aries Transaction Enlisting JDBC Datasource (0.3.0)

      Apache Aries Transaction Blueprint (0.3.0)

      Stax2 API (3.1.1)

      Woodstox XML-processor (4.1.1)

      Apache ServiceMix :: Bundles :: xmlsec (1.4.5.1)

      jettison (1.3)

      WSS4J (1.6.1)

      Apache ServiceMix :: Bundles :: xmlbeans (2.5.0.1)

      Apache CXF Bundle Jar (2.4.3.fuse-01-02)

      Apache ServiceMix :: Bundles :: FastInfoset (1.2.7.3)

      Apache ServiceMix :: Bundles :: wsdl4j (1.6.2.3)

      Apache Neethi (3.0.0)

      Apache ServiceMix :: Bundles :: xmlresolver (1.2.0.3)

      XmlSchema Core (2.0)

      Apache ServiceMix :: Specs :: JSR-311 API 1.1 (1.8.0)

      Apache ServiceMix :: Bundles :: opensaml (2.4.1.1)

      Apache ServiceMix Bundles: joda-time-1.5.2 (1.5.2.2)

      Axiom API (1.2.12)

      camel-cxf (2.8.0.fuse-02-02)

      camel-cxf-transport (2.8.0.fuse-02-02)

      camel-blueprint (2.8.0.fuse-02-02)

      Apache ServiceMix :: Naming (1.5.1.fuse-02-02)

      Apache ServiceMix :: JBI :: Deployer (1.5.1.fuse-02-02)

      Apache ServiceMix :: JBI :: Commands (1.5.1.fuse-02-02)

      Apache ServiceMix :: JBI :: OSGi (1.5.1.fuse-02-02)

      Apache ServiceMix :: JBI :: Runtime (1.5.1.fuse-02-02)

      Apache ServiceMix :: Specs :: JBI API 1.0 (1.8.0)

      Apache ServiceMix :: Components :: Shared Libraries :: Common (2011.02.1.fuse-03-02)

      Apache XBean :: Classloader (3.7)

      Apache ServiceMix :: Bundles :: ant (1.7.0.4)

      Apache ServiceMix :: JBI :: Clustering :: Requestor (1.5.1.fuse-02-02)

      Apache ServiceMix :: JBI :: Clustering :: Engine (1.5.1.fuse-02-02)

      Apache ServiceMix :: JBI :: Clustering :: Config (1.5.1.fuse-02-02)

      OPS4J Pax Web - API (1.0.3)

      OPS4J Pax Web - Runtime (1.0.3)

      OPS4J Pax Web - Service SPI (1.0.3)

      OPS4J Pax Web - Jetty (1.0.3)

      OPS4J Pax Web - Extender - Whiteboard (1.0.3)

      OPS4J Pax Url - war (1.2.6.fuse-01)

      OPS4J Pax Web - Extender - WAR (1.0.3)

      OPS4J Pax Web - Jsp Support (1.0.3)

      OPS4J Pax Web - FileInstall Deployer (1.0.3)

      Apache XBean :: Spring (3.7)

      Apache ServiceMix :: Components :: CXF Binding Component (2011.02.1.fuse-03-02)

      Apache ServiceMix :: Components :: Shared Libraries :: SOAP Stack v2 (2011.02.1.fuse-03-02)

      Apache ServiceMix :: Components :: File Binding Component (2011.02.1.fuse-03-02)

      Apache ServiceMix :: Components :: FTP Binding Component (2011.02.1.fuse-03-02)

      Commons Net (2.2)

      Apache ServiceMix :: Components :: HTTP Binding Component (2011.02.1.fuse-03-02)

      Apache ServiceMix :: Bundles :: jetty (6.1.26.1)

      Apache ServiceMix :: Bundles :: commons-httpclient (3.1.0.5)

      Apache ServiceMix :: Components :: Shared Libraries :: SOAP Stack (2011.02.1.fuse-03-02)

      Apache ServiceMix :: Components :: JMS Binding Component (2011.02.1.fuse-03-02)

      geronimo-j2ee-connector_1.5_spec (2.0.0)

      Apache ServiceMix :: Components :: Mail Binding Component (2011.02.1.fuse-03-02)

      Apache ServiceMix :: Components :: SMPP Binding Component (2011.02.1.fuse-03-02)

      Apache ServiceMix :: Bundles :: jsmpp (2.1.0.2)

      Apache ServiceMix :: Components :: SNMP Binding Component (2011.02.1.fuse-03-02)

      Apache ServiceMix :: Bundles :: snmp4j (1.8.1.4)

      Apache ServiceMix :: Components :: VFS Binding Component (2011.02.1.fuse-03-02)

      Apache ServiceMix :: Bundles :: commons-vfs (1.0.0.5)

      Apache ServiceMix :: Components :: Bean Service Engine (2011.02.1.fuse-03-02)

      Apache ServiceMix :: Components :: Camel Service Engine (2011.02.1.fuse-03-02)

      Apache ServiceMix :: Components :: CXF Service Engine (2011.02.1.fuse-03-02)

      Apache CXF Runtime JBI Binding (2.4.3.fuse-01-02)

      Apache CXF Runtime JBI Transport (2.4.3.fuse-01-02)

      Apache ServiceMix :: Components :: Drools Service Engine (2011.02.1.fuse-03-02)

      Apache ServiceMix :: Bundles :: mvel2 (2.0.8.4)

      Apache ServiceMix :: Bundles :: antlr-runtime (3.0.1.2)

      Apache ServiceMix :: Bundles :: core (3.2.3.4)

      Apache ServiceMix :: Bundles :: quartz (1.8.5.1)

      Apache ServiceMix :: Bundles :: drools (5.1.1.1)

      Apache ServiceMix :: Components :: EIP Service Engine (2011.02.1.fuse-03-02)

      Apache ServiceMix :: Components :: OSWorkflow Service Engine (2011.02.1.fuse-03-02)

      Apache ServiceMix :: Bundles :: oscore (2.2.4.4)

      Apache ServiceMix :: Bundles :: osworkflow (2.7.0.4)

      Apache ServiceMix :: Bundles :: propertyset (1.3.0.4)

      Apache ServiceMix :: Components :: Quartz Service Engine (2011.02.1.fuse-03-02)

      Groovy Runtime (1.8.0)

      ScriptEngines :: Groovy (1.1)

      ScriptEngines :: JavaScript (1.1)

      Apache ServiceMix :: Bundles :: js (1.0.0.7R1_3)

      ScriptEngines :: JRuby (1.1)

      Apache ServiceMix :: Components :: JSR-223 Scripting Service Engine (2011.02.1.fuse-03-02)

      Apache ServiceMix :: Bundles :: jruby (1.1.2.3)

      Apache ServiceMix :: Components :: Validation Service Engine (2011.02.1.fuse-03-02)

      Apache ServiceMix :: Components :: Saxon Service Engine (2011.02.1.fuse-03-02)

      Apache ServiceMix :: Bundles :: saxon (9.1.0.8_1)

      Apache ServiceMix :: Components :: WS-Notification Service Engine (2011.02.1.fuse-03-02)

      camel-ftp (2.8.0.fuse-02-02)

      Apache ServiceMix :: Bundles :: jsch (0.1.44.2)

      Apache ServiceMix :: Bundles :: commons-dbcp (1.2.2.6)

      camel-sql (2.8.0.fuse-02-02)

      Spring JDBC (3.0.5.RELEASE)

      Apache Felix Metatype Service (1.0.4)

      Apache Karaf :: Web Console :: Branding (2.2.2.fuse-03-02)

                                             Hosts: 224

      Apache Karaf :: Web Console :: Console (2.2.2.fuse-03-02)

                                             Fragments: 223

      Apache Karaf :: Web Console :: Admin Plugin (2.2.2.fuse-03-02)

      Apache Karaf :: Web Console :: Features Plugin (2.2.2.fuse-03-02)

      Apache Karaf :: Web Console :: Gogo Plugin (2.2.2.fuse-03-02)

      Apache Felix Web Console Event Plugin (1.0.2)

      PowerReview Venda update (0.0.4.SNAPSHOT)

        • 1. Re: Deploying camel bundle, nothing seems to happen
          paul.berry

          OKay, got a bit further using trial and error.  I figured that maybe some of the spring bundles needed to be started before my route would work so I manually started the following bundles:

           

          75: Spring Context

          76: Spring Expression Language

          77: Spring ASM

          78: Spring Core

          81: Spring-osgi-core

          82: spring-osgi-io

          83: spring-osgi-annotation

          84: spring-osgi-extender

          92: spring-transaction

          79: spring-AOP

           

          somewhere around this point I saw an exception in the log:

           

          Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace http://cxf.apache.org/transports/http/configuration

           

          so I started looking at what features I might need and installed the following:

           

          camel-spring-integration

          xml-specs

           

          however I'm still getting this exception when I start my route... I'm guessing I'm missing a bundle or a feature that provides this schema, but I'm not sure which one it is or how to find out which one it is.

           

          More trial and error to follow....

          • 2. Re: Deploying camel bundle, nothing seems to happen
            davsclaus

            You need to install the features you need to use beforehand. So if you use camel-ftp, then you need to install the camel-ftp first.

             

            features:install camel-ftp
            

             

            And so forth.

            • 3. Re: Deploying camel bundle, nothing seems to happen
              paul.berry

              Hi Claus,

               

              thanks for your response, I'm aware I need to install the features I need, but the problem is working out which feature I need to resolve this error.

               

              Specifically which feature do I need to install to solve the exception:

               

              org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace http://cxf.apache.org/transports/http/configuration

              Offending resource: URL bundle://246.0:0/META-INF/spring/PowerReview-context.xml

              • 4. Re: Deploying camel bundle, nothing seems to happen
                ffang

                Hi,

                 

                A lot of bundles not in "Active" status means your FUSE ESB somehow not get started correctly, in this case you may encounter lots of other exceptions, but you shouldn't try to resolve those exceptions one by one yourself, you should firstly figure out why your FUES ESB not get started correctly.

                 

                If you didn't change anything in $FUSE_ESB/etc and $FUSE_ESB/system folder, than I think the problems you encountered here is also the consequence which we discussed in this thread[1], did you follow my suggestion there?

                e.g.

                edit

                $FUSE_ESB/system/org/apache/activemq/activemq-karaf/5.5.1-fuse-02-02/activemq-karaf-5.5.1-fuse-02-02-features.xml

                change

                 

                then remove $FUSE_ESB/data folder and restart FUSE ESB.

                 

                 

                http://fusesource.com/forums/thread.jspa?threadID=3714

                 

                Freeman

                • 5. Re: Deploying camel bundle, nothing seems to happen
                  paul.berry

                  Yup, this is after applying that change.

                   

                  I'm going to fill out this post while walking through the process from scratch so you can see what I'm doing.

                   

                  1) Download apache-servicemix-4.4.1-fuse-02-02.tar.gz

                  2) Extract to a new folder (/home/paul/Downloads/servicemix-test)

                  3) Edit $FUSE_ESB/system/org/apache/activemq/activemq-karaf/5.5.1-fuse-02-02/activemq-karaf-5.5.1-fuse-02-02-features.xml as suggested

                  4) start servicemix

                   

                  at this point the log shows:

                   

                  11:17:06,522 | INFO  | rint Extender: 1 | BlueprintContainerImpl           | 10 - org.apache.aries.blueprint - 0.3.1 | Bundle activemq-broker.xml is waiting for namespace handlers

                  11:17:06,709 | WARN  | rint Extender: 3 | XBeanNamespaceHandler            | 69 - org.apache.xbean.blueprint - 3.9.0 | Could not load class: org.apache.activemq.store.journal.JournalPersistenceAdapter due to org/apache/activeio/journal/JournalEventListener

                  11:17:06,784 | WARN  | rint Extender: 3 | XBeanNamespaceHandler            | 69 - org.apache.xbean.blueprint - 3.9.0 | Could not load class: org.apache.activemq.store.journal.JournalPersistenceAdapterFactory due to org/apache/activeio/journal/active/JournalLockedException

                  11:17:07,203 | WARN  | rint Extender: 3 | XBeanNamespaceHandler            | 69 - org.apache.xbean.blueprint - 3.9.0 | Could not load class: org.apache.activemq.store.PersistenceAdapterFactoryBean due to org/apache/activeio/journal/active/JournalLockedException

                   

                  and seems to hang.

                   

                  'shutdown' has no effect.

                   

                  Should I manually kill the process and restart it at this point or is there something else I should be doing?

                  • 6. Re: Deploying camel bundle, nothing seems to happen
                    paul.berry

                    okay, I killed the process and restarted, seemed to get further this time however lots of bundles still show 'resolved' rather than 'installed' or 'active'.

                     

                    edit: hmm, looks like I spoke too soon... I seem to have got further this time, will report back when I try deploying my bundle again

                     

                    Edited by: paul.berry on Feb 23, 2012 11:34 AM

                    • 7. Re: Deploying camel bundle, nothing seems to happen
                      ffang

                      Hi,

                       

                      Yeah, if the change what I suggested take effect, you shouldn't see

                      53 Active          60 Apache Aries Transaction Manager (0.2.0.incubating)

                       

                      Freeman

                      • 8. Re: Deploying camel bundle, nothing seems to happen
                        paul.berry

                        OKay, thanls for your help guys, I seem to have got srvicemix working now... however I'm having a new problem with my camel route.

                         

                        The route starts with an ftp endpoint, downloads a file and pushes it to a splitter.

                         

                        in the IDE this works fine, I can see the file get downloaded.

                         

                        however in ESB I get this:

                         

                        11:36:51,658 | INFO  | powerreviews.com | FtpConsumer                      | 89 - org.apache.camel.camel-core - 2.8.0.fuse-02-02 | Connected and logged in to: ftp://usrname@server.com:21//usrname@server.com:21

                         

                        and then nothing... no network activity, no file downloaded, nothing.

                         

                        Anything obvious I should be looking at here?

                         

                        Edited by: paul.berry on Feb 23, 2012 11:46 AM

                        • 9. Re: Deploying camel bundle, nothing seems to happen
                          paul.berry

                          Yes, I posted the output from an old list (doh!).  Sorry about that!