# Newbee to hibernate using hibernatetool from ant

**URL:** https://discourse.hibernate.org/t/newbee-to-hibernate-using-hibernatetool-from-ant/5629
**Category:** Hibernate Tools
**Created:** [August 19, 2021, 10:03pm UTC](https://discourse.hibernate.org/t/newbee-to-hibernate-using-hibernatetool-from-ant/5629 "2021-08-19T22:03:04Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![dfields326](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.hibernate.org/dfields326/32/1622_2.png) [@dfields326](https://discourse.hibernate.org/u/dfields326)
#### Post date: [August 19, 2021, 10:03pm UTC](https://discourse.hibernate.org/t/newbee-to-hibernate-using-hibernatetool-from-ant/5629/1 "2021-08-19T22:03:04Z")

</div>

I have reverse engineered using eclipse and hibernatetool plugin , but now want to do the same thing via ant and hibernatetool but getting error  
hibernatetool] INFO: HHH000115: Hibernate connection pool size: 1 (min=1)  
[hibernatetool] Aug 19, 2021 5:56:31 PM org.hibernate.dialect.Dialect   
[hibernatetool] INFO: HHH000400: Using dialect: org.hibernate.dialect.SybaseDialect  
[hibernatetool] Aug 19, 2021 5:56:31 PM org.hibernate.engine.jdbc.env.internal.LobCreatorBuilderImpl useContextualLobCreation  
[hibernatetool] INFO: HHH000423: Disabling contextual LOB creation as JDBC driver reported JDBC version [3] less than 4  
[hibernatetool] Aug 19, 2021 5:57:41 PM org.hibernate.tool.Version   
[hibernatetool] INFO: Hibernate Tools 5.2.3.Final  
[hibernatetool] An exception occurred while running exporter #2:hbm2hbmxml (Generates a set of hbm.xml files)  
[hibernatetool] To get the full stack trace run ant with -verbose  
[hibernatetool] java.lang.RuntimeException: java.io.IOException: Server returned HTTP response code: 503 for URL: [http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd](http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd)  
[hibernatetool] java.io.IOException: Server returned HTTP response code: 503 for URL: [http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd](http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd)

BUILD FAILED  
\build.xml:92: java.lang.RuntimeException: java.io.IOException: Server returned HTTP response code: 503 for URL:

any ideas ?

Jdk 1.8  
hibernate 5.2.17

from ant build.xml

```
       <hibernatetool>
         <jdbcconfiguration
          configurationfile="hibernate.cfg.xml"
          revengfile="hibernate.reveng.xml"
          packagename="${hibernate.packagename}"/>

        <hbm2hbmxml destdir="${src}"/>
        <hbm2java destdir="${src}"/>

       </hibernatetool>

```
