Guice injection error - HTMLCompressorFilter already configured?
Created by: sixman9
Please help, I'd love to get your CMS working ;-)
After Git checkout and doing either '[activator|sbt] run' (Ubuntu 14.04, Java 1.8.0_91), http://localhost:9090 gives me the following error (no code changes):
#!scala
CreationException: Unable to create injector, see the following errors:
1) A binding to com.mohiva.play.htmlcompressor.HTMLCompressorFilter was already configured at com.mohiva.play.htmlcompressor.HTMLCompressorFilterModule.bindings(HTMLCompressorFilter.scala:74):
Binding(class com.mohiva.play.htmlcompressor.HTMLCompressorFilter to ConstructionTarget(class com.mohiva.play.htmlcompressor.DefaultHTMLCompressorFilter)) (via modules: com.google.inject.util.Modules$OverrideModule -> play.api.inject.guice.GuiceableModuleConversions$$anon$1).
at ch.insign.cms.Module.configure(Module.java:9) (via modules: com.google.inject.util.Modules$OverrideModule -> ch.insign.cms.Module)
Prior to this, I also got a 'Compilation error[File name too long]' error, which I resolved by creating a '~/.sbt/0.13/local.sbt' file with the following file-name-shortening content (thanks to this SO post) (N.B. this File name issue is associated with encrypted HD volumes in Ubuntu):
#!scala
scalacOptions ++= Seq("-Xmax-classfile-name","78")
Thanks