Building an E-Mail Horizontal Service

   

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 .

Be sure that you have the jms.jar , jndi.jar , and the class files for the example in your system classpath. If you don't want to add them to your system classpath, create a startup script and add them using the -classpath option.

Compiling and Running the E-Mail Service

I can't compile or run the e-mail service example.

Be sure you have the necessary JavaMail JAR files in your classpath. These include mail.jar , smtp.jar , and also the activation framework activation.jar , which is a separate download.



Special Edition Using Enterprise JavaBeans 2.0
Special Edition Using Enterprise JavaBeans 2.0
ISBN: 0789725673
EAN: 2147483647
Year: 2000
Pages: 223

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net