-->
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.  [ 3 posts ] 
Author Message
 Post subject: Problem opening output stylesheet
PostPosted: Tue Aug 17, 2004 9:04 am 
Newbie

Joined: Tue Aug 17, 2004 8:40 am
Posts: 2
Configuration : Hibernate 2.0, tomcat 5.x, Mysql 4.0.20

Hi I have strange problem.

everything looks OK -> hibernate understand the table mapping although it don't get the JNDI name(i don't understand how to configure hibernate so i can bind to JNDI).

FATAL main com.sahassa.magga.component.HibernateUtil - cannot get session factory by lookup from jndi name java:comp/env/hibernate/sessionFactory

INFO main net.sf.hibernate.cfg.Binder - Mapping subclass: com.sahassa.magga.domain.quiz.invariant.PassivePolling -> quiz_table
INFO main net.sf.hibernate.cfg.Binder - Mapping subclass: com.sahassa.magga.domain.quiz.invariant.Q2QQuiz -> quiz_table
INFO main net.sf.hibernate.cfg.Configuration - Mapping resource: com/sahassa/magga/domain/quiz/common/QuizPeriode.hbm.xml
INFO main net.sf.hibernate.cfg.Binder - Mapping class: com.sahassa.magga.domain.quiz.common.QuizPeriode -> quiz_periode
INFO main net.sf.hibernate.cfg.Configuration - Mapping resource: com/sahassa/magga/domain/quiz/common/QuizPlayer.hbm.xml
INFO main net.sf.hibernate.cfg.Binder - Mapping class: com.sahassa.magga.domain.quiz.common.QuizPlayer -> quiz_player
INFO main net.sf.hibernate.cfg.Configuration - Mapping resource: com/sahassa/magga/domain/quiz/common/QuizQuestion.hbm.xml

but after that something strange happen :

I call HIbernateUtil.currentSesssion() (Hibernate Util is the same class that is on Hibernate step-by-step, the class that is used to :

try{
naming.lookup(HibernateJNDI);
}catch(NamingException e){

}

// build the session factory manualy by adding class

session factory =new configuration(). -> this is where it throws exception
addClass(Quiz.class).
buildSessionFactory();

WARN main net.sf.hibernate.xml.XMLDatabinder - Problem opening output stylesheet - databinding disabled
javax.xml.transform.TransformerConfigurationException: javax.xml.transform.TransformerException: java.lang.IllegalStateException: can't declare any more prefixes in this context
at org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:984)
at net.sf.hibernate.xml.XMLDatabinder.getOutputStyleSheetTemplates(XMLDatabinder.java:254)
at net.sf.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:161)
at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:750)
at com.sahassa.magga.component.HibernateUtil.<clinit>(HibernateUtil.java:48)
at com.sahassa.magga.domain.quiz.scheduler.QuizScheduler.schedule(QuizScheduler.java:85)
at com.sahassa.magga.domain.quiz.common.QuizEngine.<init>(QuizEngine.java:69)
at com.sahassa.magga.domain.quiz.bootstrap.QuizBootstrapManager.start(QuizBootstrapManager.java:21)
at com.sahassa.magga.web.quiz.QuizWebInitializator.contextInitialized(QuizWebInitializator.java:30)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3773)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4270)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:866)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:850)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:638)
at org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeployer.java:839)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)


what i understand is that : catalina is reading the web.xml, invoking the listener. and then when i call buildSessionfactory ... then ???

Thanks for your help :)


Top
 Profile  
 
 Post subject: Closed Post !!!!!!!!!!
PostPosted: Tue Aug 17, 2004 9:17 am 
Newbie

Joined: Tue Aug 17, 2004 8:40 am
Posts: 2
closed by myself ;). i understand... finally


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 03, 2004 2:43 pm 
Expert
Expert

Joined: Thu Jan 08, 2004 6:17 pm
Posts: 278
What was the problem, and what was the solution that you found? Can you provide more detail, please?


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

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.