-->
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.  [ 5 posts ] 
Author Message
 Post subject: Problem opening output stylesheet - databinding disabled
PostPosted: Mon Jan 05, 2004 12:45 pm 
Newbie

Joined: Mon Jan 05, 2004 11:57 am
Posts: 3
Hi,

Does anyone know hot to solve this exception:

...
INFO: building session factory
05/01/2004 13:38:20 net.sf.hibernate.xml.XMLDatabinder getOutputStyleSheetTemplates
ADVERTENCIA: Problem opening output stylesheet - databinding disabled
javax.xml.transform.TransformerConfigurationException: javax.xml.transform.TransformerException: java.lang.NullPointerException
at org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:964)
at net.sf.hibernate.xml.XMLDatabinder.getOutputStyleSheetTemplates(XMLDatabinder.java:254)
at net.sf.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:160)
at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:720)

Thanks !


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 05, 2004 1:17 pm 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
Are you somehow missing net/sf/hibernate/hibernate-default.xslt from your classpath (it should be in the hibernate2.jar). Do you have hibernate.xml.output_stylesheet defined in your properties file? Are you actually trying to use the hibernate xml databinder?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 05, 2004 1:30 pm 
Newbie

Joined: Mon Jan 05, 2004 11:57 am
Posts: 3
Hi,

net/sf/hibernate/hibernate-default.xslt is in my classpath (hibernate2.jar).
I'm not trying to use the hibernate xml databinder.
I don't have hibernate.xml.output_stylesheet defined in my properties file, how do I do it?

Thanks !


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 05, 2004 1:32 pm 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
paosso wrote:
I don't have hibernate.xml.output_stylesheet defined in my properties file, how do I do it?


Don't do it, you shouldn't have if you don't want to use the XML databinder. Are you sure this is not a classpath issue. Any old hibernate jar files lurking around in your classpath?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 05, 2004 1:44 pm 
Newbie

Joined: Mon Jan 05, 2004 11:57 am
Posts: 3
Can you see somthing wrong with this?

<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="/SharedGuiClasses"/>
<classpathentry kind="src" path="/SharedClasses"/>
<classpathentry kind="lib" path="/usr/java/morelibs/mysql-connector-java-3.0.9-stable-bin.jar"/>
<classpathentry kind="lib" path="/usr/java/morelibs/hibernate/xml-apis.jar"/>
<classpathentry kind="lib" path="/usr/java/morelibs/hibernate/cglib2.jar"/>
<classpathentry kind="lib" path="/usr/java/morelibs/hibernate/commons-collections.jar"/>
<classpathentry kind="lib" path="/usr/java/morelibs/hibernate/commons-lang.jar"/>
<classpathentry kind="lib" path="/usr/java/morelibs/hibernate/commons-logging.jar"/>
<classpathentry kind="lib" path="/usr/java/morelibs/hibernate/ehcache.jar"/>
<classpathentry kind="lib"
path="/usr/java/morelibs/hibernate/hibernate2.jar" rootpath="" sourcepath="/usr/java/morelibs/hibernate/src/hibernate-2.1-src.zip"/>
<classpathentry kind="lib" path="/usr/java/morelibs/hibernate/jta.jar"/>
<classpathentry kind="lib" path="/usr/java/morelibs/hibernate/odmg.jar"/>
<classpathentry kind="lib" path="/usr/java/morelibs/hibernate/xalan.jar"/>
<classpathentry kind="lib" path="/usr/java/morelibs/hibernate/xerces.jar"/>
<classpathentry kind="var" path="JRE_LIB" rootpath="JRE_SRCROOT" sourcepath="JRE_SRC"/>
<classpathentry kind="lib" path="/usr/java/morelibs/hibernate/dom4j.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 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.