1 Reply Latest reply on Jan 31, 2005 3:45 AM by Rob Roland

    problem when i set the hibernate3 in jboss4.01rc for ejb3

    yi Booney Newbie

      windows xp2 ,jdk1.5 (i dont know why the Environment using JDK 1.4 java.sql.Timestamp handling ),ejb3 preview2 ,jboss-4.0.1RC1,sqlserver

      i m config the CMP right ant test successful ,but when i use the hibernate it have the exception of follow:

      what's the possible problem??cant use the JNDI name bounding?or some thing wrong with hibernate.cfg.xml??

      15:33:54,367 INFO [STDOUT] test
      15:33:55,742 INFO [Environment] Hibernate 3.0 beta 1
      15:33:55,757 INFO [Environment] hibernate.properties not found
      15:33:55,773 INFO [Environment] using CGLIB reflection optimizer
      15:33:55,773 INFO [Environment] using JDK 1.4 java.sql.Timestamp handling
      15:33:55,898 INFO [Configuration] configuring from resource: /hibernate.cfg.xml
      15:33:55,898 INFO [Configuration] Configuration resource: /hibernate.cfg.xml
      15:34:16,883 ERROR [Configuration] problem parsing configuration/hibernate.cfg.xml
      org.dom4j.DocumentException: Connection timed out: connect Nested exception: Connection timed out: c
      onnect
      at org.dom4j.io.SAXReader.read(SAXReader.java:353)
      at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1105)
      at org.hibernate.cfg.Configuration.configure(Configuration.java:1049)
      at org.hibernate.cfg.Configuration.configure(Configuration.java:1035)
      at info.junjie.test.hibernate.HibernateUtil.(HibernateUtil.java:32)
      at info.junjie.test.hibernate.testConn.saveCat(testConn.java:67)
      at info.junjie.test.hibernate.testConn.doGet(testConn.java:52)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j
      ava:237)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)

        • 1. Re: problem when i set the hibernate3 in jboss4.01rc for ejb
          Rob Roland Newbie

           

          "Booney" wrote:

          15:33:55,898 INFO [Configuration] configuring from resource: /hibernate.cfg.xml
          15:33:55,898 INFO [Configuration] Configuration resource: /hibernate.cfg.xml
          15:34:16,883 ERROR [Configuration] problem parsing configuration/hibernate.cfg.xml
          org.dom4j.DocumentException: Connection timed out: connect Nested exception: Connection timed out: c
          onnect
          at org.dom4j.io.SAXReader.read(SAXReader.java:353)


          dom4j is trying to validate the XML based on the DOCTYPE in your hibernate.cfg.xml but can't (can't get to the site listed in the doctype?)

          Try removing your DOCTYPE from the top of the XML file, or connect that machine to the internet.