The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

AlainODea (9) [Avatar] Offline
#1
After completing Chapter 11 I could not get crosstalk to run.

First it gave me this error about SLF4J:
java.lang.NoClassDefFoundError: Could not initialize class org.slf4j.LoggerFactory

I fixed this first error by adding slf4j-simple-1.5.10.jar to the runtime classpath.

Then I got a second error:
java.lang.NoClassDefFoundError: org/mvel2/MVEL

I fixed this by downloading and adding mvel2-2.0.15.jar to the runtime classpath.

Then I got a third error:
540 [main] INFO org.hibernate.annotations.common.Version - Hibernate Commons Annotations 3.1.0.GA
18-Jan-2010 11:18:33 AM com.google.inject.MessageProcessor visit
INFO: An exception was caught and reported. Message: java.lang.NullPointerException
java.lang.NullPointerException
at java.util.Properties$LineReader.readLine(Properties.java:41smilie
at java.util.Properties.load0(Properties.java:337)
at java.util.Properties.load(Properties.java:325)
at com.wideplay.crosstalk.services.ServicesModule.loadProperties(ServicesModule.java:5smilie
...

I looked and realized that hibernate.properties was missing. It is not described in the book and is not in the source archive from the Manning website. I had to search through the outdated Warp-based source code on Google Code at http://code.google.com/p/dependency-injection/source/browse/trunk/ch12/src/com/wideplay/crosstalk/services/hibernate.properties to find it.

I am not impressed. This is extremely poor delivery on a crucial aspect of the book.