Sam,

In Eclipse, your project settings are different from your runtime
settings. You need to make sure that your runtime classpath contains
commons-logging and nothing else that may conflict with it.

You can edit your runtime classpath by opening the "Run" dialog and
clicking on the "Classpath" tab.


Good luck.
Dave



On Fri, 2006-01-20 at 12:07 +0800, Sam Hwang wrote:
> Hi, 
> I dont know what excatly thing was going wrong, but after I tried GCJ
> Builder in my Eclipse the program called out these exceptions:
> 
> Exception in thread "main" java.lang.RuntimeException: Could not
> instantiate parser org.apache.xerces.parsers.SAXParser:
> java.lang.ClassCastException:
> com.sun.org.apache.xerces.internal.parsers.XIncludeAwareParserConfiguration 
> cannot be cast to org.apache.xerces.xni.parser.XMLParserConfiguration
>  at org.exolab.castor.util.LocalConfiguration.getParser
> (LocalConfiguration.java:332)
>  at org.exolab.castor.util.LocalConfiguration.getParser
> (LocalConfiguration.java :263)
>  at org.exolab.castor.xml.Unmarshaller.unmarshal
> (Unmarshaller.java:642)
>  at org.exolab.castor.xml.Unmarshaller.unmarshal
> (Unmarshaller.java:565)
>  at org.exolab.castor.xml.Unmarshaller.unmarshal
> (Unmarshaller.java :748)
>  
> I then relink the project settings to the castor src rather than the
> binary but the errors remain.


-------------------------------------------------
If you wish to unsubscribe from this list, please 
send an empty message to the following address:

[EMAIL PROTECTED]
-------------------------------------------------

Reply via email to