-->
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: Proxy settings cause hbm2java Connection timed out Exception
PostPosted: Fri Sep 09, 2005 11:19 am 
Newbie

Joined: Thu Sep 08, 2005 11:37 am
Posts: 8
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


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 09, 2005 3:34 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
you are using hibernate2 hbm2java with a hibernate3 mapping file...not good

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 12, 2005 3:21 am 
Newbie

Joined: Thu Sep 08, 2005 11:37 am
Posts: 8
I'm using Hibernate3 package and only 2 classes from the Hibernate2 package:

HibernateException.class and MappingException.class

(because the hbm2java tool seems to works only with Hibernate2).

So all the building process is made by Hibernate3 with hbm2java after using the MiddlegenCVS.

So, is there a new version of hbm2java that works with Hibernate3 ?

or there is a different way to use middlegenCVS Hibernate3 and Hbm2java ?


thanks in advance

Fabio


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 12, 2005 3:35 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
tools.hibernate.org

_________________
Max
Don't forget to rate


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.