Troubleshooting

Compiling and Running the Local Logging Service

I get a ClassDefNotFoundException when trying to run the example.

Be sure that you compiled all the API, SPI, and implementation classes for the example.

I get a ClassNotFoundException when trying to run the example.

Be sure you have the directory where the compiled classes are located somewhere in your classpath.

The example can’t find the logging.properties file.

It really depends on which version of Java you are using, but if you’re using Java 1.3, the file can normally be anywhere in the system classpath. With earlier versions, you might have to put the file in your <JAVA_HOME/lib directory for it to be found.

Compiling and Running the Remote Logging Service

I get a NoClassDefFoundError ...

Get Special Edition Using Enterprise JavaBeans™ 2.0 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.