ANT OUTPUT:
Buildfile: build.xml
clean:
[delete] Deleting directory C:\Lavoro\eclipse\workspace\hibernate-middlegen\build
init:
fail-if-no-xdoclet-1.2:
check-driver-present:
panic-if-driver-not-present:
middlegen:
[mkdir] Created dir: C:\Lavoro\eclipse\workspace\hibernate-middlegen\build\gen-src
[echo] Class path = C:\Lavoro\eclipse\workspace\hibernate-middlegen
[middlegen] (middlegen.Middlegen 299 ) Registering plugin simple->middlegen.Plugin
[middlegen] (middlegen.Middlegen 299 ) Registering plugin java->middlegen.javax.JavaPlugin
[middlegen] (middlegen.Middlegen 299 ) Registering plugin plugin->middlegen.Plugin
[middlegen] (middlegen.Middlegen 299 ) Registering plugin hibernate->middlegen.plugins.hibernate.Hiberna
tePlugin
[middlegen] Database URL:jdbc:mysql://127.0.0.1:3306/test
[middlegen] No <table> elements specified. Reading all tables. This might take a while...
[middlegen] (middlegen.MiddlegenPopulator 207 ) WARNING: Middlegen couldn't find any relations between any tables
. This may be intentional from the design of the database, but it may also be because you have incorrectly defined the r
elationships. It could also be because the JDBC driver you're using doesn't correctly implement DatabaseMetaData. See th
e samples (for an example on how to define relationships) and verify that your driver correctly implements DatabaseMetaD
ata.
[middlegen] (middlegen.Middlegen 339 ) Validating hibernate
[middlegen] (middlegen.Middlegen 354 ) Invoking plugin hibernate
[middlegen] (middlegen.FileProducer 325 ) Generating C:\Lavoro\eclipse\workspace\hibernate-middlegen\build\
gen-src\hibernatemiddlegen\hibernate\Cat.hbm.xml using template from jar:file:C:\Lavoro\eclipse\workspace\hibernate-midd
legen\lib\middlegen-hibernate-plugin-2.2-dev.jar!/middlegen/plugins/hibernate/hibernate.vm
[middlegen] (middlegen.FileProducer 325 ) Generating C:\Lavoro\eclipse\workspace\hibernate-middlegen\build\
gen-src\hibernatemiddlegen\hibernate\Test.hbm.xml using template from jar:file:C:\Lavoro\eclipse\workspace\hibernate-mid
dlegen\lib\middlegen-hibernate-plugin-2.2-dev.jar!/middlegen/plugins/hibernate/hibernate.vm
[middlegen] Updated preferences in C:\Lavoro\eclipse\workspace\hibernate-middlegen\src\hibernatemiddlegen-prefs.properti
es
[mkdir] Created dir: C:\Lavoro\eclipse\workspace\hibernate-middlegen\build\classes
compile-hibernate:
hbm2java:
[hbm2java] Processing 2 mapping files.
[hbm2java] java.net.ConnectException: Connection timed out: connect
[hbm2java] at java.net.PlainSocketImpl.socketConnect(Native Method)
[hbm2java] at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
[hbm2java] at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
[hbm2java] at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
[hbm2java] at java.net.Socket.connect(Socket.java:452)
[hbm2java] at java.net.Socket.connect(Socket.java:402)
[hbm2java] at sun.net.NetworkClient.doConnect(NetworkClient.java:139)
[hbm2java] at sun.net.www.http.HttpClient.openServer(HttpClient.java:402)
[hbm2java] at sun.net.www.http.HttpClient.openServer(HttpClient.java:618)
[hbm2java] at sun.net.www.http.HttpClient.<init>(HttpClient.java:306)
[hbm2java] at sun.net.www.http.HttpClient.<init>(HttpClient.java:267)
[hbm2java] at sun.net.www.http.HttpClient.New(HttpClient.java:339)
[hbm2java] at sun.net.www.http.HttpClient.New(HttpClient.java:320)
[hbm2java] at sun.net.www.http.HttpClient.New(HttpClient.java:315)
[hbm2java] at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:521)
[hbm2java] at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:498)
[hbm2java] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:626)
[hbm2java] at java.net.URL.openStream(URL.java:913)
[hbm2java] at org.apache.xerces.readers.DefaultReaderFactory.createReader(DefaultReaderFactory.java:149)
[hbm2java] at org.apache.xerces.framework.XMLParser.startReadingFromExternalEntity(XMLParser.java:2652)
[hbm2java] at org.apache.xerces.framework.XMLParser.startReadingFromExternalSubset(XMLParser.java:2478)
[hbm2java] at org.apache.xerces.validators.dtd.DTDValidator.startReadingFromExternalSubset(DTDValidator.java:1672)
[hbm2java] at org.apache.xerces.framework.XMLDTDScanner.scanDoctypeDecl(XMLDTDScanner.java:1111)
[hbm2java] at org.apache.xerces.validators.dtd.DTDValidator.scanDoctypeDecl(DTDValidator.java:450)
[hbm2java] at org.apache.xerces.framework.XMLParser.scanDoctypeDecl(XMLParser.java:2102)
[hbm2java] at org.apache.xerces.framework.XMLDocumentScanner$PrologDispatcher.dispatch(XMLDocumentScanner.java:876)
[hbm2java] at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
[hbm2java] at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1208)
[hbm2java] at org.jdom.input.SAXBuilder.build(SAXBuilder.java:453)
[hbm2java] at org.jdom.input.SAXBuilder.build(SAXBuilder.java:810)
[hbm2java] at org.jdom.input.SAXBuilder.build(SAXBuilder.java:789)
[hbm2java] at net.sf.hibernate.tool.hbm2java.CodeGenerator.main(CodeGenerator.java:100)
[hbm2java] at net.sf.hibernate.tool.hbm2java.Hbm2JavaTask.processFile(Hbm2JavaTask.java:145)
[hbm2java] at net.sf.hibernate.tool.hbm2java.Hbm2JavaTask.execute(Hbm2JavaTask.java:93)
[hbm2java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
[hbm2java] at org.apache.tools.ant.Task.perform(Task.java:364)
[hbm2java] at org.apache.tools.ant.Target.execute(Target.java:301)
[hbm2java] at org.apache.tools.ant.Target.performTasks(Target.java:328)
[hbm2java] at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
[hbm2java] at org.apache.tools.ant.Project.executeTargets(Project.java:1063)
[hbm2java] at org.apache.tools.ant.Main.runBuild(Main.java:632)
[hbm2java] at org.apache.tools.ant.Main.startAnt(Main.java:183)
[hbm2java] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:197)
[hbm2java] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:56)
BUILD SUCCESSFUL
Total time: 23 seconds
Filename.hbm.xml:
Code:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd" >
hbm2java try to connect to
http://hibernate.sourceforge.net/hibern ... ng-3.0.dtd unsuccessfully cause proxy setting.
Any suggestion will be appreciated!!!
thanks in advance
Fabio Bianchi