2010-02-03 29 views
2

我想在我的Grails應用程序中定義駱駝上下文。駱駝2.1使用Grails 1.2.1 - 類加載問題

resource.groovy:

xmlns camel: 'http://camel.apache.org/schema/spring' 
camel { 
    camelContext(id:'camelContext') { 
    } 
} 

結果在含有堆棧跟蹤:

2010-02-03 13:24:42,209 [main] ERROR spring.GrailsRuntimeConfigurator - [RuntimeConfiguration] Unable to load beans from resources.groovy org.codehaus.groovy.runtime.InvokerInvocationException: java.lang.NoClassDefFoundError: org/apache/camel/spi/ManagementStrategy

奇怪的是,ManagementStrategy是在LIB /駱駝芯2.1.0.jar。我對春天和駱駝都不熟悉,所以我們歡迎任何建議。這可能是一個類加載器的問題?

回答