XML DOM Parser not working on a remote host

L

Lobo Bravo

Here is the code:

try {
factory = DocumentBuilderFactory.newInstance();

builder = factory.newDocumentBuilder();

}catch (...

Here is my question:
Why is the call to DocumentBuilderFactory.newInstance() causing my
application to hang ?
It cannot find any class to instantiate with.

Now, this same bit of code runs fine as an applet in a standalone browser on
my PC.
It also runs fine through my Apache2 server on http://localhost/...
But, when I run it from the remote domain of my web server (lobobravo.com),
it fails.
This is true under both Explorer and Firebird.

This makes zero sense to me.
Here is the stack trace from my java console. (Just upgraded to jre
1.4.2_03)


java.lang.ClassFormatError: <HTML> (Bad magic number)

at java.lang.ClassLoader.defineClass0(Native Method)

at java.lang.ClassLoader.defineClass(Unknown Source)

at java.security.SecureClassLoader.defineClass(Unknown Source)

at sun.applet.AppletClassLoader.findClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

at sun.applet.AppletClassLoader.loadClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

at javax.xml.parsers.FactoryFinder.newInstance(Unknown Source)

at javax.xml.parsers.FactoryFinder.find(Unknown Source)

at javax.xml.parsers.DocumentBuilderFactory.newInstance(Unknown Source)


Thanks for helping.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,575
Members
45,053
Latest member
billing-software

Latest Threads

Top