[Opensource] DBTool error

Malcolm Wise malcolm.wise at sde.eu.sony.com
Thu Sep 5 02:39:15 PDT 2002


Hi Mike

I've switched to using the ea4 release as suggested, but essentially I'm
getting the same problem:

Found class org.apache.xerces.jaxp.SAXParserFactoryImpl but unable to
instantiate ClassFactory org.apache.xerces.jaxp.SAXParserFactoryImpl
javax.xml.parsers.FactoryConfigurationError:
org.apache.xerces.jaxp.SAXParserFactoryImpl
        at
javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:84)
        at
com.jcorporate.expresso.core.misc.ConfigManager$MySAXParser.existsInClasspat
h(ConfigManager.java:2000)
        at
com.jcorporate.expresso.core.misc.ConfigManager.setSAXParser(ConfigManager.j
ava, Compiled Code)
        at
com.jcorporate.expresso.core.misc.ConfigManager.readXMLConfig(ConfigManager.
java, Compiled Code)
        at
com.jcorporate.expresso.core.misc.ConfigManager.load(ConfigManager.java:1219
)
        at com.jcorporate.expresso.core.utility.DBTool.main(DBTool.java,
Compiled Code)
Couldn't find a suitable SAX/JAXP-compliant XML parser
Please put Apache Crimson or Xerces in classpath
Exception in thread "main" javax.xml.parsers.FactoryConfigurationError:
org.apache.xerces.jaxp.SAXParserFactoryImpl
        at
javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:84)
        at org.apache.commons.digester.Digester.getParser(Digester.java:565)
        at
org.apache.commons.digester.Digester.getXMLReader(Digester.java:607)
        at org.apache.commons.digester.Digester.parse(Digester.java:1302)
        at
com.jcorporate.expresso.core.misc.ConfigManager.readXMLConfig(ConfigManager.
java, Compiled Code)
        at
com.jcorporate.expresso.core.misc.ConfigManager.load(ConfigManager.java:1219
)
        at com.jcorporate.expresso.core.utility.DBTool.main(DBTool.java,
Compiled Code)

I've also tried using crimson.jar, but get the same error for
org.apache.crimson.jaxp.SAXParserFactoryImpl.
You're right about some of the reverse-engineering code being commented, so
until that's sorted I guess I'll have to do things manually anyway :-(

Cheers
Malc

-----Original Message-----
From: opensource-admin at jcorporate.com
[mailto:opensource-admin at jcorporate.com]On Behalf Of Michael Rimov
Sent: 05 September 2002 01:45
To: opensource at jcorporate.com
Subject: Re: [Opensource] DBTool error


At 03:29 PM 9/4/2002 +0100, you wrote:
>Hi,
>
>I'm getting the following error when trying to run DBTool via a Windows NT
>batch file:
>
>Exception in thread "main" javax.xml.parsers.FactoryConfigurationError:
>org.apache.xerces.jaxp.SAXParserFactoryImpl
>         at
>javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:84)
>         at
org.apache.struts.digester.Digester.getParser(Digester.java:275)
>         at org.apache.struts.digester.Digester.parse(Digester.java:755)
>         at
>com.jcorporate.expresso.core.misc.ConfigManager.readXMLConfig(ConfigManager
.
>java, Compiled Code)
>         at
>com.jcorporate.expresso.core.misc.ConfigManager.load(ConfigManager.java:117
1
>)
>         at com.jcorporate.expresso.core.utility.DBTool.main(DBTool.java,
>Compiled Code)
>
>I'm setting the classpath to use the jar files in my Expresso 4.1ea3
>installation (xerces, xalan, struts etc.).
>I'm trying to reverse engineer some tables in my database into DBObjects.
>Any ideas as to what could be wrong?

Hi Malcom,

Some people reported problems using the Xerces that came with ea-3.  The
new version 2.X series Xerces is now included with ea-4.  You might want to
give it a shot.

I should warn you, however, I was browsing code the other day, and it
looked like somebody (I don't know when or who) commented out the entire
Reverse Engineering section of DBTool, in particular the field type
mappings.  I have no idea if it was because it was buggy or what.  I
haven't had a chance to look into it yet, although it's definitely on my
todo list.

                                         -Mike

_______________________________________________
Opensource mailing list
Opensource at jcorporate.com
http://mail.jcorporate.com/mailman/listinfo/opensource
Archives: http://mail.jcorporate.com/pipermail/opensource/



*************************************************************************
The information contained in this message or any of its
attachments may be privileged and confidential and intended 
for the exclusive use of the addressee. If you are not the
addressee any disclosure, reproduction, distribution or other
dissemination or use of this communication is strictly prohibited
*************************************************************************



More information about the Opensource mailing list