bonjour,
je developpe une application web , dans laquelle j'essaie de lier une session factory au jndi
j'utilise donc un fichier de contexte ou je definit ma ressource
mais lors de l'execution sur le serveur
ca crashe , ci dessous l'erreur
java.lang.StackOverflowError
com.sun.org.apache.xerces.internal.impl.dtd.DTDGrammar.buildSyntaxTree(Unknown Source)
com.sun.org.apache.xerces.internal.impl.dtd.DTDGrammar.buildSyntaxTree(Unknown Source)
com.sun.org.apache.xerces.internal.impl.dtd.DTDGrammar.buildSyntaxTree(Unknown Source)
com.sun.org.apache.xerces.internal.impl.dtd.DTDGrammar.buildSyntaxTree(Unknown Source)
com.sun.org.apache.xerces.internal.impl.dtd.DTDGrammar.buildSyntaxTree(Unknown Source)
com.sun.org.apache.xerces.internal.impl.dtd.DTDGrammar.buildSyntaxTree(Unknown Source)
com.sun.org.apache.xerces.internal.impl.dtd.DTDGrammar.buildSyntaxTree(Unknown Source)
com.sun.org.apache.xerces.internal.impl.dtd.DTDGrammar.buildSyntaxTree(Unknown Source)
com.sun.org.apache.xerces.internal.impl.dtd.DTDGrammar.buildSyntaxTree(Unknown Source)
com.sun.org.apache.xerces.internal.impl.dtd.DTDGrammar.buildSyntaxTree(Unknown Source)
com.sun.org.apache.xerces.internal.impl.dtd.DTDGrammar.buildSyntaxTree(Unknown Source)
com.sun.org.apache.xerces.internal.impl.dtd.DTDGrammar.buildSyntaxTree(Unknown Source)
com.sun.org.apache.xerces.internal.impl.dtd.DTDGrammar.buildSyntaxTree(Unknown Source)
com.sun.org.apache.xerces.internal.impl.dtd.DTDGrammar.buildSyntaxTree(Unknown Source)
com.sun.org.apache.xerces.internal.impl.dtd.DTDGrammar.buildSyntaxTree(Unknown Source)
com.sun.org.apache.xerces.internal.impl.dtd.DTDGrammar.buildSyntaxTree(Unknown Source)
com.sun.org.apache.xerces.internal.impl.dtd.DTDGrammar.buildSyntaxTree(Unknown Source)
com.sun.org.apache.xerces.internal.impl.dtd.DTDGrammar.buildSyntaxTree(Unknown Source)
com.sun.org.apache.xerces.internal.impl.dtd.DTDGrammar.createChildModel(Unknown Source)
com.sun.org.apache.xerces.internal.impl.dtd.DTDGrammar.getElementContentModelValidator(Unknown Source)
com.sun.org.apache.xerces.internal.impl.dtd.DTDGrammar.getElementDecl(Unknown Source)
com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.checkContent(Unknown Source)
com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.handleEndElement(Unknown Source)
com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.endElement(Unknown Source)
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
org.dom4j.io.SAXReader.read(SAXReader.java:465)
org.hibernate.cfg.Configuration.addInputStream(Configuration.java:499)
org.hibernate.cfg.Configuration.addResource(Configuration.java:566)
org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:1587)
org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1555)
org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1534)
org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1508)
org.hibernate.cfg.Configuration.configure(Configuration.java:1428)
com.thales.project.util.hibernatesessionfactory.HibernateSessionFactoryTomcatFactory.getObjectInstance(HibernateSessionFactoryTomcatFactory.java:29)
org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:140)
javax.naming.spi.NamingManager.getObjectInstance(Unknown Source)
org.apache.naming.NamingContext.lookup(NamingContext.java:793)
org.apache.naming.NamingContext.lookup(NamingContext.java:140)
org.apache.naming.NamingContext.lookup(NamingContext.java:781)
org.apache.naming.NamingContext.lookup(NamingContext.java:140)
org.apache.naming.NamingContext.lookup(NamingContext.java:781)
org.apache.naming.NamingContext.lookup(NamingContext.java:140)
org.apache.naming.NamingContext.lookup(NamingContext.java:781)
org.apache.naming.NamingContext.lookup(NamingContext.java:153)
org.apache.naming.SelectorContext.lookup(SelectorContext.java:137)
javax.naming.InitialContext.lookup(Unknown Source)
org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:52)
org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:124)
org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:56)
org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:414)
org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:62)
org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2009)
org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1292)
com.thales.project.util.hibernatesessionfactory.HibernateSessionFactoryTomcatFactory.getObjectInstance(HibernateSessionFactoryTomcatFactory.java:29)
org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:140)
javax.naming.spi.NamingManager.getObjectInstance(Unknown Source)
org.apache.naming.NamingContext.lookup(NamingContext.java:793)
org.apache.naming.NamingContext.lookup(NamingContext.java:140)
org.apache.naming.NamingContext.lookup(NamingContext.java:781)
org.apache.naming.NamingContext.lookup(NamingContext.java:140)
org.apache.naming.NamingContext.lookup(NamingContext.java:781)
org.apache.naming.NamingContext.lookup(NamingContext.java:140)
org.apache.naming.NamingContext.lookup(NamingContext.java:781)
org.apache.naming.NamingContext.lookup(NamingContext.java:153)
org.apache.naming.SelectorContext.lookup(SelectorContext.java:137)
javax.naming.InitialContext.lookup(Unknown Source)
org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:52)
org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:124)
org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:56)
org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:414)
org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:62)
org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2009)
org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1292)
com.thales.project.util.hibernatesessionfactory.HibernateSessionFactoryTomcatFactory.getObjectInstance(HibernateSessionFactoryTomcatFactory.java:29)
org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:140)
javax.naming.spi.NamingManager.getObjectInstance(Unknown Source)
org.apache.naming.NamingContext.lookup(NamingContext.java:793)
org.apache.naming.NamingContext.lookup(NamingContext.java:140)
org.apache.naming.NamingContext.lookup(NamingContext.java:781)
org.apache.naming.NamingContext.lookup(NamingContext.java:140)
org.apache.naming.NamingContext.lookup(NamingContext.java:781)
org.apache.naming.NamingContext.lookup(NamingContext.java:140)
org.apache.naming.NamingContext.lookup(NamingContext.java:781)
org.apache.naming.NamingContext.lookup(NamingContext.java:153)
org.apache.naming.SelectorContext.lookup(SelectorContext.java:137)
javax.naming.InitialContext.lookup(Unknown Source)
org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:52)
org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:124)
org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:56)
org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:414)
org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:62)
org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2009)
org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1292)
com.thales.project.util.hibernatesessionfactory.HibernateSessionFactoryTomcatFactory.getObjectInstance(HibernateSessionFactoryTomcatFactory.java:29)
org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:140)
javax.naming.spi.NamingManager.getObjectInstance(Unknown Source)
org.apache.naming.NamingContext.lookup(NamingContext.java:793)
org.apache.naming.NamingContext.lookup(NamingContext.java:140)
org.apache.naming.NamingContext.lookup(NamingContext.java:781)
org.apache.naming.NamingContext.lookup(NamingContext.java:140)
org.apache.naming.NamingContext.lookup(NamingContext.java:781)
org.apache.naming.NamingContext.lookup(NamingContext.java:140)
org.apache.naming.NamingContext.lookup(NamingContext.java:781)
org.apache.naming.NamingContext.lookup(NamingContext.java:153)
org.apache.naming.SelectorContext.lookup(SelectorContext.java:137)
javax.naming.InitialContext.lookup(Unknown Source)
Merci pour votre aide
|