I apologize but I think I have found the problem.
First of all I name the Java code LogData instead of logData. This may or may not be a problem. I have renamed it to be logData which is what is in the sample code.
The second problem is that I keyed the Java code into the Shared tab instead of the Source tab.
So I am recreating the Java service from scratch.