Discussion:
Could not load default SAX parser
Erling Wegger Linde
2008-07-23 12:10:35 UTC
Permalink
Hi,

I'm writing a Macro Plugin for Confluence.

I'm using Rome to fetch an entry from an AtomPub service. Rome depends on JDOM.

I get the following exception:
org.jdom.JDOMException: Could not load default SAX parser:
org.apache.xerces.parsers.SAXParser: SAX2 driver class
org.apache.xerces.parsers.SAXParser does not implement XMLReader:

I'm running Confluence 2.8.2 - Standalone on Ubuntu 8.04

The funny thing is that everything works fine in Eclipse (run as ->
JUnit Test) or on a mvn install ... So I guess this has something to
do with the Tomcat being shipped with the Standalone edition..

I've tried to replace a lot of jars in the ../tomcat/common/endorsed folder.

I also tried /startup.sh
-Djava.endorsed.dirs=../confluence-2.8.2-std/common/endorsed/ without
success..

Tomcat is running on Java 1.6.0_06

Any ideas? I would be very grateful!

Thanks,
Erling

---------------------------------------------------------------------
To start a new topic, e-mail: ***@tomcat.apache.org
To unsubscribe, e-mail: users-***@tomcat.apache.org
For additional commands, e-mail: users-***@tomcat.apache.org
Erling Wegger Linde
2008-07-23 16:52:09 UTC
Permalink
Does anyone now which .jar file I should use? I've tried different
xerces, xercesImpl etc. but I haven't got it working yet..

Thanks again,
Erling
Post by Erling Wegger Linde
Hi,
I'm writing a Macro Plugin for Confluence.
I'm using Rome to fetch an entry from an AtomPub service. Rome depends on JDOM.
org.apache.xerces.parsers.SAXParser: SAX2 driver class
I'm running Confluence 2.8.2 - Standalone on Ubuntu 8.04
The funny thing is that everything works fine in Eclipse (run as ->
JUnit Test) or on a mvn install ... So I guess this has something to
do with the Tomcat being shipped with the Standalone edition..
I've tried to replace a lot of jars in the ../tomcat/common/endorsed folder.
I also tried /startup.sh
-Djava.endorsed.dirs=../confluence-2.8.2-std/common/endorsed/ without
success..
Tomcat is running on Java 1.6.0_06
Any ideas? I would be very grateful!
Thanks,
Erling
--
Med vennlig hilsen
Erling Wegger Linde

---------------------------------------------------------------------
To start a new topic, e-mail: ***@tomcat.apache.org
To unsubscribe, e-mail: users-***@tomcat.apache.org
For additional commands, e-mail: users-***@tomcat.apache.org
Mark Thomas
2008-07-27 00:46:23 UTC
Permalink
Post by Erling Wegger Linde
Hi,
I'm writing a Macro Plugin for Confluence.
I'm using Rome to fetch an entry from an AtomPub service. Rome depends on JDOM.
org.apache.xerces.parsers.SAXParser: SAX2 driver class
I'm running Confluence 2.8.2 - Standalone on Ubuntu 8.04
Tomcat version?

Mark




---------------------------------------------------------------------
To start a new topic, e-mail: ***@tomcat.apache.org
To unsubscribe, e-mail: users-***@tomcat.apache.org
For additional commands, e-mail: users-***@tomcat.apache.org
Erling Wegger Linde
2008-07-27 10:45:09 UTC
Permalink
5.5

Thanks to a colleague I think it should be possible to get this
working. He just told me, that if you remove all xerces jars from the
plugin's classpath, then it uses the one shipped with confluence, and
actually works.

Thanks,
- Erling
Post by Mark Thomas
Post by Erling Wegger Linde
Hi,
I'm writing a Macro Plugin for Confluence.
I'm using Rome to fetch an entry from an AtomPub service. Rome depends on JDOM.
org.apache.xerces.parsers.SAXParser: SAX2 driver class
I'm running Confluence 2.8.2 - Standalone on Ubuntu 8.04
Tomcat version?
Mark
---------------------------------------------------------------------
--
Med vennlig hilsen
Erling Wegger Linde

---------------------------------------------------------------------
To start a new topic, e-mail: ***@tomcat.apache.org
To unsubscribe, e-mail: users-***@tomcat.apache.org
For additional commands, e-mail: users-***@tomcat.apache.org
Loading...