You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by ra...@eNode.com on 2000/10/01 19:11:48 UTC

Re: Using JBindery

on 10/1/00 6:42 AM, PATRICK ROCHE at pjmroche@indigo.ie wrote:

> I then added sax.jar to the classpath ran my JBindery app and recieved this
> error 

Where did you get sax.jar from? You should only need Xerces.jar.

> This seems to tell me that the xerces-j jar files are not right. All other
> downloads of jar files I have done work perfectly.

As long as Xerces.jar is in your classpath, things should work correctly.

Xerces has a rather large footprint. Make sure that your app's partition is
sufficiently large (I believe it is a JBindery setting). That may be one of
the reasons you are getting a NoClassDefFoundError.

> Do I have to compile the source files on my machine? If so how do I do it
> quickly? 

You should not have to recompile source files on your machine. The Xerces
binary distribution should be fine.

If you plan to rebuild one of the later source distributions of Xerces
(1.1.2, 1.1.3 or 1.2.0), make sure that you remove
RevalidatingDOMParser.java from your project before building. The file is
not required for the build, and will screw up your build if present in the
project.

If you plan to use CodeWarrior to rebuild Xerces, I do not know of a way to
"do it quickly". So, plan to experiment some and waste a lot of time.

Codewarrior 5 is hopelessly riddled with bugs to accurately analyze
dependencies among source files in Xerces-J for a clean build. And Xerces is
so big that manually analyzing the included makefiles is impractical for
most. Try to experiment and reorder files in the "Link Order" tab in
Codewarrior, and repeatedly force a full build (by removing objects) after
each reorder, until you get a clean build.

Hope this helps.

Ramesh


Re: Using JBindery

Posted by "Christophe D. Laprun" <ch...@nist.gov>.
PATRICK ROCHE wrote:
> 

> Obviously the Mac is not happy with the XML4J-bin.3.0.1.tar.gz archive. Has anybody else experienced this problem?

If you used Stuffit to expand it, that might be the reason... I have
heard Stuffit has problems expanding tar files. Better use something
else.

Chris

-- 
Christophe Laprun    [Ingenieur ISIMA, France / Guest researcher @NIST]
web: http://www.nist.gov/speech/staff/laprunch.htm
email: chris.laprun@nist.gov
phone: (301) 975 3191             fax: (301) 670 0939
--
The universe seems neither benign nor hostile, merely indifferent -
Sagan

Re: Using JBindery

Posted by Ramesh Gupta <ra...@eNode.com>.
on 10/1/00 11:23 AM, PATRICK ROCHE at pjmroche@indigo.ie wrote:

> Increased the memory to 10000 K !! Removed sax.jar from the classpath and
> now get this error message
> 
> data/personal.xml:
> Exception Occurred:
> java.lang.NoClassDefFoundError: org/xml/sax/ErrorHandler
> 
> Put sax.jar back into the classpath and now get this error
> 
> data/personal.xml:
> Exception Occurred:
> java.lang.NoClassDefFoundError: org/apache/xerces/parsers/DOMParser

> Weird?

This could only mean that your Xerces.jar is not being found! All of the
required Sax classes are included in Xerces.jar.

Since adding a separate sax.jar to your classpath seems to make the sax
classes visible, it is clear that the sax classes in the Xerces.jar file
were (and still are) invisible to your bindery app.

Try recreating your JBindery app from scratch, making sure you add
Xerces.jar the same way you added sax.jar (but don't include the latter).
You may also try to move your Xerces.jar file to the same location as the
other MRJ files (I believe in the Extensions folder) before creating the
bindery to see if that helps.

Ramesh


Re: Using JBindery

Posted by PATRICK ROCHE <pj...@indigo.ie>.
Increased the memory to 10000 K !! Removed sax.jar from the classpath and
now get this error message

data/personal.xml:
Exception Occurred:
java.lang.NoClassDefFoundError: org/xml/sax/ErrorHandler
	at dom.DOMWriter.print(DOMWriter.java:187)
	at dom.DOMWriter.main(Compiled Code)
	at
com.apple.mrj.JManager.JMStaticMethodDispatcher.run(JMAWTContextImpl.java)
	at java.lang.Thread.run(Thread.java)

Put sax.jar back into the classpath and now get this error

data/personal.xml:
Exception Occurred:
java.lang.NoClassDefFoundError: org/apache/xerces/parsers/DOMParser
	at
	at
	at dom.DOMWriter.print(DOMWriter.java:187)
	at dom.DOMWriter.main(Compiled Code)
	at
com.apple.mrj.JManager.JMStaticMethodDispatcher.run(JMAWTContextImpl.java)
	at java.lang.Thread.run(Thread.java)
Weird?
Patrick