Hi all,
I'm getting a runtime error when trying to initialize a hibernate session. The code compiles fine, and the WAR deploys without problem. I've tried using Xerces that came with my hibernate distribution and the latest from the xerces project itself without any luck.
Anyone else seen this? Have ideas for me?
thanks,
aaron
Hibernate version:
2.1.7
Full stack trace of any exception that occurs:
Code:
Dec 20 08:38:36 2004: hibernate: Unable to start servlet action: java.lang.NoClassDefFoundError: org/apache/xerces/impl/dtd/AbstractDTDGrammar
java.lang.NoClassDefFoundError: org/apache/xerces/impl/dtd/AbstractDTDGrammar
at org.apache.xerces.parsers.StandardParserConfiguration.createDTDValidator(StandardParserConfiguration.java:856)
at org.apache.xerces.parsers.StandardParserConfiguration.<init>(StandardParserConfiguration.java:393)
at org.apache.xerces.parsers.StandardParserConfiguration.<init>(StandardParserConfiguration.java:278)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(NativeMethod)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
at java.lang.Class.newInstance0(Class.java:308)
at java.lang.Class.newInstance(Class.java:261)
at org.apache.xerces.util.ObjectFactory.newInstance(ObjectFactory.java:296)
at org.apache.xerces.util.ObjectFactory.createObject(ObjectFactory.java:224)
at org.apache.xerces.util.ObjectFactory.createObject(ObjectFactory.java:119)
at org.apache.xerces.parsers.SAXParser.<init>(SAXParser.java:95)
at org.apache.xerces.jaxp.SAXParserImpl.<init>(SAXParserImpl.java:102)
at org.apache.xerces.jaxp.SAXParserFactoryImpl.newSAXParser(SAXParserFactoryImpl.java:95)
at org.apache.commons.digester.Digester.getParser(Digester.java:686)
at org.apache.commons.digester.Digester.getXMLReader(Digester.java:902)
at org.apache.commons.digester.Digester.parse(Digester.java:1567)
at org.apache.struts.action.ActionServlet.initServlet(ActionServlet.java:1112)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:324)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
...
Name and version of the database you are using:
Sybase ASE 12.5