I have a problem with an application that uses Hibernate (3.2.1) and during initialization on our WebLogic Server (9.2.1) it throws the following exception:
java.rmi.RemoteException: Error in ejbCreate:; nested exception is: org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [hibernate.cfg.xml]; nested exception is java.net.ConnectException: Tried all: '1' addresses, but could not connect over HTTP to server: 'hibernate.sourceforge.net', port: '80'
This problem would arise because Hibernate wants to validate the hibernate.cfg.xml file against the DTD and as the WebLogic server sits behind a firewall there is no access to the internet.
I did read the Hibernate FAQ, saying that I should change to another xml parser (not an option and I think that WLS uses the latest parser from JDK5 and that should be good enough) or change the DOCTYPE declaration in my configuration file to SYSTEM ID instead of PUBLIC which is the default. The later, is that the way to go? Has anybody out there dealt with this problem already and has a neat solution?
Thanks,
|