-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: [hibernate 3.2, tomcat 5.5] lien entre session factory et jn
PostPosted: Thu Oct 16, 2008 11:43 am 
Newbie

Joined: Mon Oct 13, 2008 6:46 pm
Posts: 3
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.