Frage

Ich habe Probleme bekommen die Apache Camel-Plugin in Grails-1.1.1 laufen. Hier sind die Schritte, die ich nahm:

$ grails create-app camelapp
Welcome to Grails 1.1.1 - http://grails.org/
...

$ cd camelapp

$ grails run-app
...
Running Grails application..
Server running. Browse to http://localhost:8080/camelapp

$ grails install-plugin camel
...
Camel Route directory was created.
Plugin camel-0.2 installed
Plug-in provides the following new scripts:
------------------------------------------
grails create-route

$ grails run-app
...
[groovyc] org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed, Compile error during compilation with javac.
  [groovyc] /Users/abdullah/.grails/1.1.1/projects/camelapp/plugins/camel-0.2/src/java/org/ix/grails/plugins/camel/ClosureProcessor.java:22: method does not override a method from its superclass
  [groovyc]     @Override
  [groovyc]          ^
...
: Compilation Failed
    at org.codehaus.groovy.ant.Groovyc.compile(Groovyc.java:807)
    at org.codehaus.groovy.ant.Groovyc.execute(Groovyc.java:540)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at _GrailsCompile_groovy$_run_closure3_closure7.doCall(_GrailsCompile_groovy:102)
    at _GrailsCompile_groovy$_run_closure3_closure7.doCall(_GrailsCompile_groovy)
    at _GrailsSettings_groovy$_run_closure10.doCall(_GrailsSettings_groovy:274)
    at _GrailsSettings_groovy$_run_closure10.call(_GrailsSettings_groovy)
    at _GrailsCompile_groovy$_run_closure3.doCall(_GrailsCompile_groovy:89)
    at _GrailsCompile_groovy$_run_closure2.doCall(_GrailsCompile_groovy:55)
    at _GrailsPackage_groovy$_run_closure2_closure9.doCall(_GrailsPackage_groovy:79)
    at _GrailsPackage_groovy$_run_closure2_closure9.doCall(_GrailsPackage_groovy)
    at _GrailsSettings_groovy$_run_closure10.doCall(_GrailsSettings_groovy:274)
    at _GrailsSettings_groovy$_run_closure10.call(_GrailsSettings_groovy)
    at _GrailsPackage_groovy$_run_closure2.doCall(_GrailsPackage_groovy:78)
    at RunApp$_run_closure1.doCall(RunApp.groovy:28)
    at gant.Gant$_dispatch_closure4.doCall(Gant.groovy:324)
    at gant.Gant$_dispatch_closure6.doCall(Gant.groovy:334)
    at gant.Gant$_dispatch_closure6.doCall(Gant.groovy)
    at gant.Gant.withBuildListeners(Gant.groovy:344)
    at gant.Gant.this$2$withBuildListeners(Gant.groovy)
    at gant.Gant$this$2$withBuildListeners.callCurrent(Unknown Source)
    at gant.Gant.dispatch(Gant.groovy:334)
    at gant.Gant.this$2$dispatch(Gant.groovy)
    at gant.Gant.invokeMethod(Gant.groovy)
    at gant.Gant.processTargets(Gant.groovy:495)
    at gant.Gant.processTargets(Gant.groovy:480)
Caused by: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed, Compile error during compilation with javac.
/Users/abdullah/.grails/1.1.1/projects/camelapp/plugins/camel-0.2/src/java/org/ix/grails/plugins/camel/ClosureProcessor.java:22: method does not override a method from its superclass
    @Override
         ^
...
Compilation error: Compilation Failed

$ java -version
java version "1.6.0_07"
Java(TM) SE Runtime Environment (build 1.6.0_07-b06-153)
Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_07-b06-57, mixed mode)
War es hilfreich?

Lösung

Es gibt eine JIRA auf dieses Problem. Versuchen Sie, nur die @Override auf der ClosureProcessor.java Datei zu löschen.

Andere Tipps

Es scheint, dass Sie JDK5 verwenden, die nicht zulassen @Override für Interface-Implementierungen. Sie müssen JDK6 als Standard-JVM setzen, ermöglicht JDK6 @Override für Interface-Implementierungen.

Sie können auch eine jira für die Apache-Kamel-Plugin Besitzer öffnen, um die Anmerkung zu entfernen, obwohl JDK5 wird nicht viel länger dauern.

Es scheint, dass Kamel-Plugin für Grails Entwicklung eingefroren. Außer, dass es verwendet wird Kamel 1.6.0, die ziemlich veraltet ist. Wenn Sie planen, zu bewegen, einen Tag camel2 -. Sie haben offenbar Probleme Kamel-Plugin

Ich würde nicht vorschlagen, dass Sie es in Ihrem Projekt verwenden, besser Kamel Unterstützung manuell hinzufügen, und Bootstrap-Funktionen, die Sie benötigen (z nachrichts). Ich habe dies bereits getan. Kontaktieren Sie mich PM, wenn Sie auf, dass weitere Hinweise benötigen.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top