我不知道缺少哪个库来包含 Camel RESTlet 组件。包括camel-restlet-2.11.1.jar
并org.restlet.jar
来自restlet-jse-2.1.2,但我得到了
2013-07-12 09:37:28,021 [main ] ERROR ContextLoader - Context initialization failed
java.lang.NoSuchMethodError: org.restlet.routing.VirtualHost.attach(Ljava/lang/String;Lorg/restlet/Restlet;)Lorg/restlet/routing/Route;
at org.apache.camel.component.restlet.RestletComponent.attachUriPatternToRestlet(RestletComponent.java:300)[camel-restlet-2.11.0.jar:2.11.0]
at org.apache.camel.component.restlet.RestletComponent.connect(RestletComponent.java:139)[camel-restlet-2.11.0.jar:2.11.0]
at org.apache.camel.component.restlet.RestletEndpoint.connect(RestletEndpoint.java:86)[camel-restlet-2.11.0.jar:2.11.0]
这里报告了一个类似的问题,但没有回答这个问题。