mashupbots / socko

A Scala web server powered by Netty networking and AKKA processing.
Other
255 stars 51 forks source link

Incompatibility with Google guava #56

Closed ychaze closed 10 years ago

ychaze commented 11 years ago

I can't reference the StaticContentHandlerConfig class as it fails to compile. My understanding is that the LocalCache class used by this config class is not compatible with the LocalCache class defined by google in its guava libraries.

Here is the compiler output:

scala: bad symbolic reference. A signature in LocalCache.class refers to term googlecode
in package com which is not available.
It may be completely missing from the current classpath, or the version on
the classpath might be incompatible with the version used when compiling     LocalCache.class.
veebs commented 11 years ago

Hi,

That class relies on concurrentlinkedhashmap. https://code.google.com/p/concurrentlinkedhashmap/

The dependency is listed in build.scala:

val concurrentmap = "com.googlecode.concurrentlinkedhashmap"  % "concurrentlinkedhashmap-lru"  % "1.3.2"

Have you included that JAR in your classpath?

veebs commented 10 years ago

Hi @yann, Did it work for you?