-->
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.  [ 5 posts ] 
Author Message
 Post subject: Help with running samples
PostPosted: Tue Jan 27, 2004 12:46 pm 
Newbie

Joined: Tue Jan 27, 2004 12:41 pm
Posts: 4
Please help,

I have problems generating code under Middlegen-Hibernate-r4
with path not found, and nothing is generated.



[echo] Class path = C:\!\tmp\Middlegen-Hibernate-r4\Middlegen-Hibernate-r4
[middlegen] Database URL:jdbc:mysql://localhost:3306/airline?autoReconnect=true
[middlegen] No <table> elements specified. Reading all tables. This might take a while...
[middlegen] (middlegen.MiddlegenPopulator 929 ) The table named reservations was found in the schema named "null". However, Middlegen
was not configured to look for tables in a specific schema. You should consider specifying schema="null" in the middlegen task.
[middlegen] (middlegen.MiddlegenPopulator 929 ) The table named flights was found in the schema named "null". However, Middlegen was
not configured to look for tables in a specific schema. You should consider specifying schema="null" in the middlegen task.
[middlegen] (middlegen.MiddlegenPopulator 929 ) The table named persons was found in the schema named "null". However, Middlegen was
not configured to look for tables in a specific schema. You should consider specifying schema="null" in the middlegen task.
[middlegen] ********************************************************
[middlegen] * CTRL-Click relations to modify their cardinality *
[middlegen] * SHIFT-Click relations to modify their directionality *
[middlegen] ********************************************************
[middlegen] (middlegen.FileProducer 414 ) Le chemin d'acc


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 27, 2004 8:04 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
I don't use mySQL but there have been others with this problem on the forum. Two (possible) solutions:
1) Provide the schema name
2) Include the extra mySQL JAR that comes with the full Middlegen package.

I might just include that JAR with the next release (r5) comes out.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 28, 2004 5:31 am 
Newbie

Joined: Tue Jan 27, 2004 12:41 pm
Posts: 4
the GUI can get all relations and tables.
I've changed the mysql jar for mysql-connector-java-3.0.0-beta-bin.jar

but it is still the same problem:
path not found

it creates one empty file in
build\gen-src\airline\hibernate\Reservation.hbm.xml

I don't know what to do to resolve it

Jacques


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 28, 2004 5:40 am 
Newbie

Joined: Tue Jan 27, 2004 12:41 pm
Posts: 4
I've tried also
mysql-connector-java-2.0.14-bin.jar
mysql-connector-java-3.0.10-stable.zip

I've the same problem with middlegen-2.0-vo version
The GUI detects all 3 tables and relations but exception is thrown:

C:\!\tmp\middlegen-2.0-vo\middlegen-2.0-vo\samples>ant
Buildfile: build.xml

init:

fail-if-no-xdoclet-1.2:

check-driver-present:

panic-if-driver-not-present:

middlegen:
[middlegen] Database URL:jdbc:mysql://localhost:3306/airline
[middlegen] No <table> elements specified. Reading all tables. This might take a while...
[middlegen] (entitybean.JBoss ? ) WARNING (cmp20): JBoss 3.0 doesn't support fields that are part of CMR to be CMP at t
he same time. You might want to set fkcmp="false" in the cmp20 plugin.
[middlegen] ********************************************************
[middlegen] * CTRL-Click relations to modify their cardinality *
[middlegen] * SHIFT-Click relations to modify their directionality *
[middlegen] ********************************************************
[middlegen] (middlegen.FileProducer 414 ) Le chemin d'acc


Top
 Profile  
 
 Post subject: It works OK now
PostPosted: Fri Jan 30, 2004 4:49 am 
Newbie

Joined: Tue Jan 27, 2004 12:41 pm
Posts: 4
the problem was in the path, since it contained the '!' sign.
I've moved it away and it worked great.


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