click here for details... Sakai Executive Director Position Search now open
Issue Details (XML | Word | Printable)

Key: SAK-6337
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Critical Critical
Assignee: Glenn R. Golden
Reporter: Thomas Amsler
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Sakai

Problems starting sakai: ERROR: Could not configure datastore from input stream ... main_net.sf.hibernate.cfg.Configuration

Created: 15-Sep-2006 07:28   Updated: 23-Oct-2008 11:00
Component/s: Global
Affects Version/s: 2.1.2
Fix Version/s: 2.1.x

Time Tracking:
Not Specified

File Attachments: 1. Text File sakai-2-1-x-sak6337.patch (14 kB)

Environment:
oracle 10.2
redhat linux

2.6.x Status: None
2.5.x Status: None
2.4.x Status: None


 Description  « Hide
For some reason, we are not able to start any of our sakai servers today and are getting this error right after the components load:

INFO: init() (2006-09-14 19:32:47,285 main_org.sakaiproject.component.kernel.function.FunctionManagerComponent)
ERROR: Could not configure datastore from input stream (2006-09-14 19:35:56,323 main_net.sf.hibernate.cfg.Configuration)
org.dom4j.DocumentException: Connection timed out Nested exception: Connection timed out
at org.dom4j.io.SAXReader.read(SAXReader.java:484)
at net.sf.hibernate.cfg.Configuration.addInputStream(Configuration.java:287)
at org.springframework.orm.hibernate.LocalSessionFactoryBean.afterPropertiesSet(LocalSessionFactoryBean.java:446)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1059)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:363)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:226)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147)
...


I found some info here:
http://permalink.gmane.org/gmane.comp.cms.sakai.devel/6030
"That's the damned XML parser trying to download the Hibernate DTD." ...

Has anybody else experienced this issue? Is there a workaround for this? We are running sakai v2.1.x.

Some more info. When I look at any of our HBM files in eclipse. I get a little exclamation mark right next to the header: http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd
and the message is: "The file cannot be validated as there was a connection problem."

This is a followup. As expected once "http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd" became available again. Sakai started up just fine. So the questions is, is it possible to have the HBM files look for the dtd in the file system so that we don't have that dependency?

 All   Comments   Work Log   Change History   Subversion Commits   git Commits      Sort Order: Ascending order - Click to sort in descending order
Thomas Amsler added a comment - 15-Sep-2006 10:46
Interestingly, I did a grep for "hibernate.sourceforge.net/hibernate-mapping-3.0.dtd" in the sakai v2.1.x branch and it seems that some HBMs in:
edu/coursemanagement-component/src/java/org/sakaiproject/component/common/edu/coursemanagement/

... reference "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"

e.g.
edu/coursemanagement-component/src/java/org/sakaiproject/component/common/edu/coursemanagement/CourseOfferingStatusType.hbm.xml

... and since sakai v2.1.2 (2.1.x) doesn't deploy hibernate 3, that's probably why the error showed up when it tried to resolve the v3 dtd.

So I am wondering if it's save to change those HBS to reference the v2 dtd or if we need to add the hibernate v3 jar?

Thomas Amsler added a comment - 15-Sep-2006 11:30
 From Hibernate manual:
5.1.1. Doctype

All XML mappings should declare the doctype shown. The actual DTD may be found at the URL above, in the directory hibernate-x.x.x/src/net/sf/hibernate or in hibernate.jar. Hibernate will always look for the DTD in its classpath first.
[ Show » ]
Thomas Amsler [15/Sep/06 11:30 AM] From Hibernate manual: 5.1.1. Doctype All XML mappings should declare the doctype shown. The actual DTD may be found at the URL above, in the directory hibernate-x.x.x/src/net/sf/hibernate or in hibernate.jar. Hibernate will always look for the DTD in its classpath first.

Thomas Amsler added a comment - 16-Sep-2006 09:01
Changing hibernate v3 dtd references to v2 ones

Brian Jorgensen added a comment - 27-Oct-2006 09:40
Fixed in r17569.