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.

import-bot (20211) [Avatar] Offline
[Originally posted by tkline01]

It looks like the server started but when I telnet to 5222 I get the
NoClassDefFoundError!! HELP!!

Fsmilieownloadjim_srcchp3in>java -cp jabber.jar;server.jar;..libxerces.jar

Jabber Server --

java.lang.NoClassDefFoundError: org/apache/xerces/readers/XMLEntityReaderFactory
import-bot (20211) [Avatar] Offline
Re: CH3: Testing Server
[Originally posted by iain.shigeoka]


The error implies that you have another copy of Xerces on your classpath ahead
of the one packaged with the code download. I used a workaround hack for
Xerces in order for it to handle streaming XML (see book description if you're
interested in details). This ties the server to that particular version of
Xerces. Make sure you're not including a different Xerces library, that your
classpath doesn't have another Xerces on it, and that you don't have a copy of
Xerces in your JVM's extension (ext) directory. It is common for many tools to
need Xerces so you'll often find it all over the place.

Let me know if this doesn't help.