Re: How do i use the hibernate3 plugin from codehause
I had this problem too and it seems we're not alone. In my opinion an extra property should be added: executeOnDatabase (but with a better name) which defaults on false and outputFile should default on something like target/hibernate3/script.sql so a defaulted hbm2dll run would create scripts. It's *very* scary when you try to create script files and it starts doing things on the database. With kind regards, Geoffrey De Smet Charles Harvey III wrote: I'll be damned. I had outputFile setup before and it never did anything. Maybe because I had it as a .txt file. I don't care, as long as it is working now I feel much better. Sorry that I said it did not work correctly. Charlie Johann Reyes said the following on 10/20/2006 10:10 AM: Hello Charles To output to a file, you just need to check that you have configured the following parameter outputFile as described here: http://mojo.codehaus.org/hibernate3-maven-plugin/hbm2ddl-mojo.html Once the plugin sees that you have specified that parameter, it won't attempt to write in the database, instead it would do it in the file just specified. *note* Just specify a filename like dll-schema.sql not a file path. Regards Johann Reyes -Original Message- From: Charles Harvey III [mailto:[EMAIL PROTECTED] Sent: Friday, October 20, 2006 10:01 AM To: Maven Users List Subject: Re: How do i use the hibernate3 plugin from codehause You have been able to generate DDL files? See, I think I was mislead by what hibernate3:hbm2ddl is supposed to do. I wanted it to generate a bunch of text files with a bunch of CREATE statements. Instead, it connects to my database and creates the tables for me. I can't stop it from doing that. If I don't put in a connection URL to the database, it fails. And I have setup the outputDirectory correctly in the plugin setup, still nothing. Can someone send me their exact setup so that I can try this again. And, just to be sure. Is this possible? I do NOT want to have the tables created automatically. I just want text files. Thanks. Charlie Stefan Hübner said the following on 10/19/2006 1:34 PM: Hi Yves, 2006/10/19, Yves Van Steen [EMAIL PROTECTED]: I want to create ddl sql files from my hbm files but none of the goals of the hibernate3 plugin actually works? Is this plugin useable or still in development? I'm using it quite successfully to generate ddl-files with hibernate3:hbm2ddl. I was also trying to get hbm2doc running, but that one is not working as of now, because the Hibernate-libraries are not stable yet. Apperently there are some screwed up dependencies. It's in development (1.0-SNAPSHOT). There was an attempt to publish 1.0, but that process got stuck a while ago. there are still some bugs left - like your one. you might want to keep track of http://jira.codehaus.org/browse/MOJO-515. I think, whenever the Hibernate guys publish their 3.2 release, this plugin will be fixed. Even now it does a great job. jm2c -Stefan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:4538d73c241851913645530! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How do i use the hibernate3 plugin from codehause
Hi Yves, 2006/10/19, Yves Van Steen [EMAIL PROTECTED]: I want to create ddl sql files from my hbm files but none of the goals of the hibernate3 plugin actually works? Is this plugin useable or still in development? I'm using it quite successfully to generate ddl-files with hibernate3:hbm2ddl. I was also trying to get hbm2doc running, but that one is not working as of now, because the Hibernate-libraries are not stable yet. Apperently there are some screwed up dependencies. It's in development (1.0-SNAPSHOT). There was an attempt to publish 1.0, but that process got stuck a while ago. there are still some bugs left - like your one. you might want to keep track of http://jira.codehaus.org/browse/MOJO-515. I think, whenever the Hibernate guys publish their 3.2 release, this plugin will be fixed. Even now it does a great job. jm2c -Stefan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How do i use the hibernate3 plugin from codehause
[This discussion should really move to [EMAIL PROTECTED] On 19/10/06, Stefan Hübner [EMAIL PROTECTED] wrote: It's in development (1.0-SNAPSHOT). There was an attempt to publish 1.0, but that process got stuck a while ago. there are still some bugs left - like your one. you might want to keep track of http://jira.codehaus.org/browse/MOJO-515. This should be fixed with hibernate-tools 3.2.0.beta8. I think, whenever the Hibernate guys publish their 3.2 release, this plugin will be fixed. Even now it does a great job. Hibernate 3.2.0.ga is now out and uploaded to ibiblio, but a release of the hibernate3-maven-plugin is really waiting for hibernate-tools to use these new releases. See this thread: http://archive.mojo.codehaus.org/dev/c184d750610180649h22e63af0sdd427bd9f67a163%40mail.gmail.com Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How do i use the hibernate3 plugin from codehause
You have been able to generate DDL files? See, I think I was mislead by what hibernate3:hbm2ddl is supposed to do. I wanted it to generate a bunch of text files with a bunch of CREATE statements. Instead, it connects to my database and creates the tables for me. I can't stop it from doing that. If I don't put in a connection URL to the database, it fails. And I have setup the outputDirectory correctly in the plugin setup, still nothing. Can someone send me their exact setup so that I can try this again. And, just to be sure. Is this possible? I do NOT want to have the tables created automatically. I just want text files. Thanks. Charlie Stefan Hübner said the following on 10/19/2006 1:34 PM: Hi Yves, 2006/10/19, Yves Van Steen [EMAIL PROTECTED]: I want to create ddl sql files from my hbm files but none of the goals of the hibernate3 plugin actually works? Is this plugin useable or still in development? I'm using it quite successfully to generate ddl-files with hibernate3:hbm2ddl. I was also trying to get hbm2doc running, but that one is not working as of now, because the Hibernate-libraries are not stable yet. Apperently there are some screwed up dependencies. It's in development (1.0-SNAPSHOT). There was an attempt to publish 1.0, but that process got stuck a while ago. there are still some bugs left - like your one. you might want to keep track of http://jira.codehaus.org/browse/MOJO-515. I think, whenever the Hibernate guys publish their 3.2 release, this plugin will be fixed. Even now it does a great job. jm2c -Stefan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How do i use the hibernate3 plugin from codehause
Hello Charles To output to a file, you just need to check that you have configured the following parameter outputFile as described here: http://mojo.codehaus.org/hibernate3-maven-plugin/hbm2ddl-mojo.html Once the plugin sees that you have specified that parameter, it won't attempt to write in the database, instead it would do it in the file just specified. *note* Just specify a filename like dll-schema.sql not a file path. Regards Johann Reyes -Original Message- From: Charles Harvey III [mailto:[EMAIL PROTECTED] Sent: Friday, October 20, 2006 10:01 AM To: Maven Users List Subject: Re: How do i use the hibernate3 plugin from codehause You have been able to generate DDL files? See, I think I was mislead by what hibernate3:hbm2ddl is supposed to do. I wanted it to generate a bunch of text files with a bunch of CREATE statements. Instead, it connects to my database and creates the tables for me. I can't stop it from doing that. If I don't put in a connection URL to the database, it fails. And I have setup the outputDirectory correctly in the plugin setup, still nothing. Can someone send me their exact setup so that I can try this again. And, just to be sure. Is this possible? I do NOT want to have the tables created automatically. I just want text files. Thanks. Charlie Stefan Hübner said the following on 10/19/2006 1:34 PM: Hi Yves, 2006/10/19, Yves Van Steen [EMAIL PROTECTED]: I want to create ddl sql files from my hbm files but none of the goals of the hibernate3 plugin actually works? Is this plugin useable or still in development? I'm using it quite successfully to generate ddl-files with hibernate3:hbm2ddl. I was also trying to get hbm2doc running, but that one is not working as of now, because the Hibernate-libraries are not stable yet. Apperently there are some screwed up dependencies. It's in development (1.0-SNAPSHOT). There was an attempt to publish 1.0, but that process got stuck a while ago. there are still some bugs left - like your one. you might want to keep track of http://jira.codehaus.org/browse/MOJO-515. I think, whenever the Hibernate guys publish their 3.2 release, this plugin will be fixed. Even now it does a great job. jm2c -Stefan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:4538d73c241851913645530! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How do i use the hibernate3 plugin from codehause
I'll be damned. I had outputFile setup before and it never did anything. Maybe because I had it as a .txt file. I don't care, as long as it is working now I feel much better. Sorry that I said it did not work correctly. Charlie Johann Reyes said the following on 10/20/2006 10:10 AM: Hello Charles To output to a file, you just need to check that you have configured the following parameter outputFile as described here: http://mojo.codehaus.org/hibernate3-maven-plugin/hbm2ddl-mojo.html Once the plugin sees that you have specified that parameter, it won't attempt to write in the database, instead it would do it in the file just specified. *note* Just specify a filename like dll-schema.sql not a file path. Regards Johann Reyes -Original Message- From: Charles Harvey III [mailto:[EMAIL PROTECTED] Sent: Friday, October 20, 2006 10:01 AM To: Maven Users List Subject: Re: How do i use the hibernate3 plugin from codehause You have been able to generate DDL files? See, I think I was mislead by what hibernate3:hbm2ddl is supposed to do. I wanted it to generate a bunch of text files with a bunch of CREATE statements. Instead, it connects to my database and creates the tables for me. I can't stop it from doing that. If I don't put in a connection URL to the database, it fails. And I have setup the outputDirectory correctly in the plugin setup, still nothing. Can someone send me their exact setup so that I can try this again. And, just to be sure. Is this possible? I do NOT want to have the tables created automatically. I just want text files. Thanks. Charlie Stefan Hübner said the following on 10/19/2006 1:34 PM: Hi Yves, 2006/10/19, Yves Van Steen [EMAIL PROTECTED]: I want to create ddl sql files from my hbm files but none of the goals of the hibernate3 plugin actually works? Is this plugin useable or still in development? I'm using it quite successfully to generate ddl-files with hibernate3:hbm2ddl. I was also trying to get hbm2doc running, but that one is not working as of now, because the Hibernate-libraries are not stable yet. Apperently there are some screwed up dependencies. It's in development (1.0-SNAPSHOT). There was an attempt to publish 1.0, but that process got stuck a while ago. there are still some bugs left - like your one. you might want to keep track of http://jira.codehaus.org/browse/MOJO-515. I think, whenever the Hibernate guys publish their 3.2 release, this plugin will be fixed. Even now it does a great job. jm2c -Stefan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:4538d73c241851913645530! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How do i use the hibernate3 plugin from codehause
Hey, So the hbm2ddl goal creates the ddl sql script. But what does the schema-update schema-export goals do? They should then execute the sql script on the database but that don't seem to work for me. It just creates the sql script. Anybody have any ideas? The build just succeeds but no database changes present. Here is my configuration. I run the command mvn install. What is the objective: 1) create the sql file in the src/main/resources (this it does but not in the correct folder ) 2) execute the schema to the db plugin groupIdorg.codehaus.mojo/groupId artifactIdhibernate3-maven-plugin/artifactId version1.0-SNAPSHOT/version executions executionphaseinstall/phase goals goalhbm2ddl/goal goalschema-export/goal /goals /execution /executions configuration hibernateconfigurationFile/src/main/resources/hibernate.cfg.xml/configu rationFile/hibernate outputDirectory hbm2dllsrc/main/resources/hbm2dll /outputDirectory outputFiledbcreate.sql/outputFile updatetrue/update droptrue/drop formatfalse/format /configuration /plugin -Oorspronkelijk bericht- Van: Charles Harvey III [mailto:[EMAIL PROTECTED] Verzonden: vrijdag 20 oktober 2006 16:59 Aan: Maven Users List Onderwerp: Re: How do i use the hibernate3 plugin from codehause I'll be damned. I had outputFile setup before and it never did anything. Maybe because I had it as a .txt file. I don't care, as long as it is working now I feel much better. Sorry that I said it did not work correctly. Charlie Johann Reyes said the following on 10/20/2006 10:10 AM: Hello Charles To output to a file, you just need to check that you have configured the following parameter outputFile as described here: http://mojo.codehaus.org/hibernate3-maven-plugin/hbm2ddl-mojo.html Once the plugin sees that you have specified that parameter, it won't attempt to write in the database, instead it would do it in the file just specified. *note* Just specify a filename like dll-schema.sql not a file path. Regards Johann Reyes -Original Message- From: Charles Harvey III [mailto:[EMAIL PROTECTED] Sent: Friday, October 20, 2006 10:01 AM To: Maven Users List Subject: Re: How do i use the hibernate3 plugin from codehause You have been able to generate DDL files? See, I think I was mislead by what hibernate3:hbm2ddl is supposed to do. I wanted it to generate a bunch of text files with a bunch of CREATE statements. Instead, it connects to my database and creates the tables for me. I can't stop it from doing that. If I don't put in a connection URL to the database, it fails. And I have setup the outputDirectory correctly in the plugin setup, still nothing. Can someone send me their exact setup so that I can try this again. And, just to be sure. Is this possible? I do NOT want to have the tables created automatically. I just want text files. Thanks. Charlie Stefan Hübner said the following on 10/19/2006 1:34 PM: Hi Yves, 2006/10/19, Yves Van Steen [EMAIL PROTECTED]: I want to create ddl sql files from my hbm files but none of the goals of the hibernate3 plugin actually works? Is this plugin useable or still in development? I'm using it quite successfully to generate ddl-files with hibernate3:hbm2ddl. I was also trying to get hbm2doc running, but that one is not working as of now, because the Hibernate-libraries are not stable yet. Apperently there are some screwed up dependencies. It's in development (1.0-SNAPSHOT). There was an attempt to publish 1.0, but that process got stuck a while ago. there are still some bugs left - like your one. you might want to keep track of http://jira.codehaus.org/browse/MOJO-515. I think, whenever the Hibernate guys publish their 3.2 release, this plugin will be fixed. Even now it does a great job. jm2c -Stefan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:4538d73c241851913645530! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.408
Re: How do i use the hibernate3 plugin from codehause
No. It does not work. I have been trying to get that thing to generate SQL files for a month now. Don't bother wasting your time. Charlie Yves Van Steen said the following on 10/19/2006 1:00 PM: Hey, I want to create ddl sql files from my hbm files but none of the goals of the hibernate3 plugin actually works? Is this plugin useable or still in development? If possible I also want to execute these sql files to my database server. Anybody have any ideas? My configuration is the same as on the info site HYPERLINK http://mojo.codehaus.org/hibernate3-maven-plugin/howto.htmlhttp://mojo.cod ehaus.org/hibernate3-maven-plugin/howto.html OUTPUT Hibernate3:hbm2java = generates the java files but ends with an error hibernate3:schema-update = returns success but does nothing hibernate3:hbm2doc = class not found exception org/hibernate/engine/query/sql/NativeSQLQueryReturn hibernate3:hbm2hbmxml = class not found exception org/hibernate/engine/query/sql/NativeSQLQueryReturn Hibernate3:hbm2ddl hibernate3:schema-export (any difference between the 2 ???) returns this [INFO] Configuration XML file loaded: G:\PROJECTS\sw - admin baert\source\Common \src\main\resources\hibernate.cfg.xml [INFO] Configuration Properties file loaded: G:\PROJECTS\sw - admin baert\source \Common\src\main\resources\database.properties [WARNING] 1 error(s) occurred while performing hbm2ddl. [WARNING] Error #1: com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception: ** BEGIN NESTED EXCEPTION ** java.net.SocketException MESSAGE: java.net.ConnectException: Connection refused: connect STACKTRACE: java.net.SocketException: java.net.ConnectException: Connection refused: connect at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.ja va:156) at com.mysql.jdbc.MysqlIO.init(MysqlIO.java:276) at com.mysql.jdbc.Connection.createNewIO(Connection.java:2641) at com.mysql.jdbc.Connection.init(Connection.java:1531) at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java :266) at java.sql.DriverManager.getConnection(DriverManager.java:525) at java.sql.DriverManager.getConnection(DriverManager.java:140) at org.hibernate.connection.DriverManagerConnectionProvider.getConnectio n(DriverManagerConnectionProvider.java:110) at org.hibernate.tool.hbm2ddl.ManagedProviderConnectionHelper.prepare(Ma nagedProviderConnectionHelper.java:28) at org.hibernate.tool.hbm2ddl.SchemaExport.execute(SchemaExport.java:178 ) at org.codehaus.mojo.hibernate3.exporter.SchemaExportMojo.doSchemaExport (SchemaExportMojo.java:79) at org.codehaus.mojo.hibernate3.exporter.Hbm2DDLExporterMojo.doExecute(H bm2DDLExporterMojo.java:56) at org.codehaus.mojo.hibernate3.HibernateExporterMojo.execute(HibernateE xporterMojo.java:59) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi nManager.java:412) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa ultLifecycleExecutor.java:534) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone Goal(DefaultLifecycleExecutor.java:488) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau ltLifecycleExecutor.java:458) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan dleFailures(DefaultLifecycleExecutor.java:306) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen ts(DefaultLifecycleExecutor.java:273) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi fecycleExecutor.java:140) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:256) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) ** END NESTED EXCEPTION ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How do i use the hibernate3 plugin from codehause
Hello Yves To create sql from hbm.xml files it works, from the error message that you posted, it looks like it's failing to connect to your database server as it looks it's trying to create the database tables in it. The difference between hbm2ddl and schema-export is that hbm2ddl is used to create and update database schemas (thus you need to specify what action you are going to do in your pom.xml) while the schema-export you don't need to specify nothing in your pom.xml and it creates the tables in the database while schema-update it just update the schema in the database. About your error, it looks the database it's running because the database it's refusing the connection, so I would check the username and password that you are using to create the connection to see if they are the right ones. Regards Johann Reyes -Original Message- From: Yves Van Steen [mailto:[EMAIL PROTECTED] Sent: Thursday, October 19, 2006 1:01 PM To: Maven Users List Subject: How do i use the hibernate3 plugin from codehause Hey, I want to create ddl sql files from my hbm files but none of the goals of the hibernate3 plugin actually works? Is this plugin useable or still in development? If possible I also want to execute these sql files to my database server. Anybody have any ideas? My configuration is the same as on the info site HYPERLINK http://mojo.codehaus.org/hibernate3-maven-plugin/howto.htmlhttp://mojo.cod ehaus.org/hibernate3-maven-plugin/howto.html OUTPUT Hibernate3:hbm2java = generates the java files but ends with an error hibernate3:schema-update = returns success but does nothing hibernate3:hbm2doc = class not found exception org/hibernate/engine/query/sql/NativeSQLQueryReturn hibernate3:hbm2hbmxml = class not found exception org/hibernate/engine/query/sql/NativeSQLQueryReturn Hibernate3:hbm2ddl hibernate3:schema-export (any difference between the 2 ???) returns this [INFO] Configuration XML file loaded: G:\PROJECTS\sw - admin baert\source\Common \src\main\resources\hibernate.cfg.xml [INFO] Configuration Properties file loaded: G:\PROJECTS\sw - admin baert\source \Common\src\main\resources\database.properties [WARNING] 1 error(s) occurred while performing hbm2ddl. [WARNING] Error #1: com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception: ** BEGIN NESTED EXCEPTION ** java.net.SocketException MESSAGE: java.net.ConnectException: Connection refused: connect STACKTRACE: java.net.SocketException: java.net.ConnectException: Connection refused: connect at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.ja va:156) at com.mysql.jdbc.MysqlIO.init(MysqlIO.java:276) at com.mysql.jdbc.Connection.createNewIO(Connection.java:2641) at com.mysql.jdbc.Connection.init(Connection.java:1531) at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java :266) at java.sql.DriverManager.getConnection(DriverManager.java:525) at java.sql.DriverManager.getConnection(DriverManager.java:140) at org.hibernate.connection.DriverManagerConnectionProvider.getConnectio n(DriverManagerConnectionProvider.java:110) at org.hibernate.tool.hbm2ddl.ManagedProviderConnectionHelper.prepare(Ma nagedProviderConnectionHelper.java:28) at org.hibernate.tool.hbm2ddl.SchemaExport.execute(SchemaExport.java:178 ) at org.codehaus.mojo.hibernate3.exporter.SchemaExportMojo.doSchemaExport (SchemaExportMojo.java:79) at org.codehaus.mojo.hibernate3.exporter.Hbm2DDLExporterMojo.doExecute(H bm2DDLExporterMojo.java:56) at org.codehaus.mojo.hibernate3.HibernateExporterMojo.execute(HibernateE xporterMojo.java:59) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi nManager.java:412) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa ultLifecycleExecutor.java:534) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone Goal(DefaultLifecycleExecutor.java:488) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau ltLifecycleExecutor.java:458) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan dleFailures(DefaultLifecycleExecutor.java:306) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen ts(DefaultLifecycleExecutor.java:273) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi fecycleExecutor.java:140) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:256) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at
RE: How do i use the hibernate3 plugin from codehause
Hello Charles From hbm.xml files it works sql generation. From annotated classes also it does. For JPA classes not sure yet as they are something new and I'm looking into it. I have checked my messages and haven't found a message from you reporting a problem, so if you like I can help you with it. Regards Johann Reyes -Original Message- From: Charles Harvey III [mailto:[EMAIL PROTECTED] Sent: Thursday, October 19, 2006 1:04 PM To: Maven Users List Subject: Re: How do i use the hibernate3 plugin from codehause No. It does not work. I have been trying to get that thing to generate SQL files for a month now. Don't bother wasting your time. Charlie Yves Van Steen said the following on 10/19/2006 1:00 PM: Hey, I want to create ddl sql files from my hbm files but none of the goals of the hibernate3 plugin actually works? Is this plugin useable or still in development? If possible I also want to execute these sql files to my database server. Anybody have any ideas? My configuration is the same as on the info site HYPERLINK http://mojo.codehaus.org/hibernate3-maven-plugin/howto.htmlhttp://mo jo.cod ehaus.org/hibernate3-maven-plugin/howto.html OUTPUT Hibernate3:hbm2java = generates the java files but ends with an error hibernate3:schema-update = returns success but does nothing hibernate3:hbm2doc = class not found exception org/hibernate/engine/query/sql/NativeSQLQueryReturn hibernate3:hbm2hbmxml = class not found exception org/hibernate/engine/query/sql/NativeSQLQueryReturn Hibernate3:hbm2ddl hibernate3:schema-export (any difference between the 2 ???) returns this [INFO] Configuration XML file loaded: G:\PROJECTS\sw - admin baert\source\Common \src\main\resources\hibernate.cfg.xml [INFO] Configuration Properties file loaded: G:\PROJECTS\sw - admin baert\source \Common\src\main\resources\database.properties [WARNING] 1 error(s) occurred while performing hbm2ddl. [WARNING] Error #1: com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception: ** BEGIN NESTED EXCEPTION ** java.net.SocketException MESSAGE: java.net.ConnectException: Connection refused: connect STACKTRACE: java.net.SocketException: java.net.ConnectException: Connection refused: connect at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.ja va:156) at com.mysql.jdbc.MysqlIO.init(MysqlIO.java:276) at com.mysql.jdbc.Connection.createNewIO(Connection.java:2641) at com.mysql.jdbc.Connection.init(Connection.java:1531) at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java :266) at java.sql.DriverManager.getConnection(DriverManager.java:525) at java.sql.DriverManager.getConnection(DriverManager.java:140) at org.hibernate.connection.DriverManagerConnectionProvider.getConnectio n(DriverManagerConnectionProvider.java:110) at org.hibernate.tool.hbm2ddl.ManagedProviderConnectionHelper.prepare(Ma nagedProviderConnectionHelper.java:28) at org.hibernate.tool.hbm2ddl.SchemaExport.execute(SchemaExport.java:178 ) at org.codehaus.mojo.hibernate3.exporter.SchemaExportMojo.doSchemaExport (SchemaExportMojo.java:79) at org.codehaus.mojo.hibernate3.exporter.Hbm2DDLExporterMojo.doExecute(H bm2DDLExporterMojo.java:56) at org.codehaus.mojo.hibernate3.HibernateExporterMojo.execute(HibernateE xporterMojo.java:59) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi nManager.java:412) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa ultLifecycleExecutor.java:534) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone Goal(DefaultLifecycleExecutor.java:488) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau ltLifecycleExecutor.java:458) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan dleFailures(DefaultLifecycleExecutor.java:306) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen ts(DefaultLifecycleExecutor.java:273) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi fecycleExecutor.java:140) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:256) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585