-->
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.  [ 4 posts ] 
Author Message
 Post subject: dom4J exception on hibernate.hbm.xml
PostPosted: Wed Jul 06, 2005 3:10 am 
Newbie

Joined: Fri Jun 24, 2005 5:34 am
Posts: 18
Hibernate version:
3.0.5



Hy there, I've got a problem when trying using Hibernate :
I want to try using Hibernate on a computer with NO internet connection.

And when I start the deploying I've got this exception :

Code:
[7/4/05 14:24:13:672 CEST] 47785776 Configuration I org.hibernate.cfg.Configuration  configuring from url: file:/E:/APPL/was51/installedApps/besvt0000002/intraetudes-os.ear/intraetudes-os.war/WEB-INF/classes/hibernate.cfg.xml
[7/4/05 14:24:35:391 CEST] 47785776 Configuration E org.hibernate.cfg.Configuration  problem parsing configurationfile:/E:/APPL/was51/installedApps/besvt0000002/intraetudes-os.ear/intraetudes-os.war/WEB-INF/classes/hibernate.cfg.xml
[7/4/05 14:24:35:406 CEST] 47785776 Configuration E org.hibernate.cfg.Configuration  TRAS0014I: The following exception was logged org.dom4j.DocumentException: Operation timed out: connect:could be due to invalid address Nested exception: Operation timed out: connect:could be due to invalid address
   at org.dom4j.io.SAXReader.read(SAXReader.java:358)
   at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1168)
   at org.hibernate.cfg.Configuration.configure(Configuration.java:1127)
   at    at be.carrefour.intranet.etudes.HibernateUtils.<clinit>(HibernateUtils.java:24).null(Unknown Source)
   at be.carrefour.intranet.etudes.HibernateFilter.doFilter(HibernateFilter.java:42)
   at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:132)
   at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:71)
   at be.carrefour.intranet.etudes.MultipartFilter.doFilter(MultipartFilter.java:65)
   at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:132)
   at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:71)
   at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:965)
   at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:555)
   at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
   at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:119)
   at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:276)
   at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
   at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:182)
   at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
   at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
   at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:618)
   at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:443)
   at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:593)
Nested exception:
java.net.SocketException: Operation timed out: connect:could be due to invalid address
   at java.net.PlainSocketImpl.socketConnect(Native Method)
   at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:329)
   at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:194)
   at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:181)
   at java.net.Socket.connect(Socket.java:459)
   at java.net.Socket.connect(Socket.java:409)
   at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
   at sun.net.www.http.HttpClient.openServer(HttpClient.java:414)
   at sun.net.www.http.HttpClient.openServer(HttpClient.java:628)
   at sun.net.www.http.HttpClient.<init>(HttpClient.java:331)
   at sun.net.www.http.HttpClient.<init>(HttpClient.java:292)
   at sun.net.www.http.HttpClient.New(HttpClient.java:364)
   at sun.net.www.http.HttpClient.New(HttpClient.java:345)
   at sun.net.www.http.HttpClient.New(HttpClient.java:340)
   at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:506)
   at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:497)
   at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:599)
   at java.net.URL.openStream(URL.java(Inlined Compiled Code))
   at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
   at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown Source)
   at org.apache.xerces.impl.XMLEntityManager.startDTDEntity(Unknown Source)
   at org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(Unknown Source)
   at org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(Unknown Source)
   at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
   at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
   at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)


I use Dom4J1.6.1, i try with JDOM but with JDOM deploying doesn't work.


I've already try to change the dtd address on my computer but when I try :

<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE hibernate-configuration
PUBLIC "-//Hibernate/Hibernate Configuration DTD//EN"
"/hibernate-configuration-3.0.dtd">


But on deploy DOM4J search for the dtd file on my c:\program files\IBM\websphere\


Any one can help me ?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 06, 2005 7:29 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
The DTD resolution is performed locally first , eg, with the Hibernate Jar. Your issue is normally a classpath problem.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 06, 2005 9:42 pm 
Beginner
Beginner

Joined: Wed Jul 06, 2005 8:18 pm
Posts: 23
What does your xml look like? Try put this at the top:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 07, 2005 1:59 am 
Newbie

Joined: Fri Jun 24, 2005 5:34 am
Posts: 18
You rigth,

I was upgrading a older web site from Hibernate 2.0 to Hibernate 3.0 and I forget to change the DTD importation in my XML files,

Thank's all

And sorry for my mistake


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