English 中文(简体)
Using Camel 2.1 with Grails 1.2.1 - Classloading problem
原标题:

I m trying to define a Camel context in my Grails application.

resource.groovy:

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

Results in a stacktrace containing:

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

The strange thing is that ManagementStrategy is in lib/camel-core-2.1.0.jar. I m not that familiar with neither Spring nor Camel so any suggestions are welcome. Can this be a classloader issue?

最佳回答

Read the release notes for Apache Camel 2.1 http://camel.apache.org/camel-210-release.html

There is a section with new .jar dependencies. You need commons-management .jar on the classpath.

问题回答

暂无回答




相关问题
array dependency injection in spring?

is there a way to use dependency injection to inject all available implementations of a specific interface in spring? This is kind of the same thing as asked here for .NET. Though my aim is to use @...

Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Grails Packaging and Naming Conventions

Packaging Controllers, Services,etc. i.e. - com.company.controllers - com.company.services Is this a good practice or should be avoided by all means?? Another worth mentioning problem I encountered ...

How can I determine Objects in application context?

I am trying to write a portlet for Liferay (using Tomcat and Spring) and need to use a database via Persistence API/Hibernate. I am using some configuration XMLs (applicationContext.xml, etc.) and ...

How to prevent JPA from rolling back transaction?

Methods invoked: 1. Struts Action 2. Service class method (annotated by @Transactional) 3. Xfire webservice call Everything including struts (DelegatingActionProxy) and transactions is configured ...

热门标签