incubator-wave-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ali Lown <>
Subject Server Problems with Typesafe Config in Head (fc70bb9)
Date Fri, 10 Jul 2015 02:20:52 GMT
Hi Yuri,

Evan was having a problem running the server using the
script, with the error below:
(Note that it works fine using ant run-server, due to that being
completely separate from the script)

Exception in thread "main" java.lang.NoClassDefFoundError:
Caused by: java.lang.ClassNotFoundException: com.typesafe.config.ConfigMergeable
        at Method)
        at java.lang.ClassLoader.loadClass(
        at sun.misc.Launcher$AppClassLoader.loadClass(
        at java.lang.ClassLoader.loadClass(
        ... 1 more

It seems that we forgot to add the new jar's namespace to the list of
ones to include in the final jar during the 'dist-server' build step.

The one-line patch below fixes this:

diff --git a/build.xml b/build.xml
index 1e721d4..d111325 100644
--- a/build.xml
+++ b/build.xml
@@ -686,6 +686,7 @@
         <include name="com/mongodb/**/*" />
         <include name="org/slf4j/**/*" />
  <include name="org/atmosphere/**/*" />
+        <include name="com/typesafe/**/*" />
         <include name="com/google/common/**/*" />
         <include name="com/google/gson/**/*" />
         <include name="com/google/gxp/**/*" />

Are you happy for me to just commit this?
(Should probably also fix the whitespace issue on the line above about

[Aside: Why do we even have both the script and the
ability to run the server from the ant tool? Should we pick one and
stick to it? (My vote goes to the script, so that when distributed as
a binary the production server doesn't need to have ant on it).]


View raw message