Hi,

After following the steps describes in Camel in Action to set up a unit
test, I keep getting the following error when I try to
test run my unit case:

Invalid NamespaceHandler class [org.apache.camel.osgi.CamelNamespaceHandler]
for namespace [http://camel.apache.org/schema/osgi]: problem with handler
class file or dependent class; nested exception is
java.lang.NoClassDefFoundError:
org/springframework/osgi/context/BundleContextAware

See my camel context:

<?xml version="1.0" encoding="UTF-8"?>

       
        
        
                
                
                
                
        

     
        
        
        
        ${header.soapAction}
        ${header.contenttype}
        ${header.serviceurl}
        ${header.httpmethod}
        ${header.sslenabled}
        
        
        
        
              
        
    
    



And I have these in my dependencies:

  
        
      commons-logging
      commons-logging
      ${commons.logging.version}
      provided
    
    
      org.apache.camel
      camel-core
      ${camel-version}
    
    
            org.apache.camel
            camel-cxf
            ${camel-version}
            
        
         
                org.apache.camel
                camel-test 
                ${camel-version} 
                test 
        
        
                org.slf4j
                slf4j-api
                1.5.6 
                test
        
        
                org.slf4j
                slf4j-log4j12
                1.5.6 
                test
        
         
                org.springframework
                spring-test 
                2.5.6.SEC01 
                test 
        
         
                junit
                junit 
                4.4 
                test 
                
  

What am I missing?

Regards.

--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-Unit-Testing-with-Spring-tp4271068p4271068.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to