maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geoffrey De Smet <ge0ffrey.s...@gmail.com>
Subject Re: How do i use the hibernate3 plugin from codehause
Date Thu, 19 Oct 2006 19:10:39 GMT
I made patch MOJO-517 to make it work for me.

With kind regards,
Geoffrey De Smet


Charles Harvey III wrote:
> 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.html"http://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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message