Can you send me your project?  Running "mvn clean" first will make it
easier to squeeze it through the e-mail pipes.

Thanks,

Matt

On 1/22/07, rays <[EMAIL PROTECTED]> wrote:

Tried with 'mvn hibernate3:hbm2ddl'. It didn't seem to make much difference
to me. Here is the stack trace,

[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'hibernate3'.
[INFO]
----------------------------------------------------------------------------
[INFO] Building AppFuse Struts 2 Application
[INFO]    task-segment: [hibernate3:hbm2ddl]
[INFO]
----------------------------------------------------------------------------
[INFO] Preparing hibernate3:hbm2ddl
[WARNING] Removing: hbm2ddl from forked lifecycle, to prevent recursive
invocation.
[INFO] [warpath:add-classes {execution: default}]
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [hibernate3:hbm2ddl]
[INFO] Configuration XML file loaded:
/home/rayshi/data/projects/appfuse/2.0-m2/basic-struts/src/main/resources/hibernate.cfg.xml
[INFO] Configuration XML file loaded:
/home/rayshi/data/projects/appfuse/2.0-m2/basic-struts/src/main/resources/hibernate.cfg.xml
[INFO] Configuration Properties file loaded:
/home/rayshi/data/projects/appfuse/2.0-m2/basic-struts/target/classes/jdbc.properties
[WARNING] 1 errors occurred while performing <hbm2ddl>.
[ERROR] 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

STACKTRACE:

java.net.SocketException: java.net.ConnectException: Connection refused
        at
com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:156)
        at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:276)
        at com.mysql.jdbc.Connection.createNewIO(Connection.java:2666)
        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.getConnection(DriverManagerConnectionProvider.java:110)
        at
org.hibernate.tool.hbm2ddl.ManagedProviderConnectionHelper.prepare(ManagedProviderConnectionHelper.java:28)
        at 
org.hibernate.tool.hbm2ddl.SchemaExport.execute(SchemaExport.java:180)
        at
org.codehaus.mojo.hibernate3.exporter.Hbm2DDLExporterMojo.doExecute(Hbm2DDLExporterMojo.java:116)
        at
org.codehaus.mojo.hibernate3.HibernateExporterMojo.execute(HibernateExporterMojo.java:133)
        at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:488)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:458)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.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(DelegatingMethodAccessorImpl.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 **



Last packet sent to the server was 17 ms ago.
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 20 seconds
[INFO] Finished at: Tue Jan 23 07:24:49 EST 2007
[INFO] Final Memory: 10M/19M
[INFO]
------------------------------------------------------------------------

Cheers
Ray


Matt Raible-3 wrote:
>
> This may be related to the following issue.  Can you try running "mvn
> hibernate3:hbm2ddl" before running "mvn integrationt-test"?
>
> http://issues.appfuse.org/browse/APF-585
>
> Matt
>
> On 1/22/07, Michael Horwitz <[EMAIL PROTECTED]> wrote:
>> It could be one of two things:
>>
>> 1) The JDBC URL is wrong. Are you running MySql on the same box on which
>> you
>> are doing the build? If not you will need to change the URL appropriately
>> in
>> the top level pom.
>> 2) The driver used in AppFuse is not compatible with the version of MySql
>> that you are using. Please check compatibility.
>>
>> Mike
>>
>>
>> On 1/22/07, rays <[EMAIL PROTECTED]> wrote:
>> >
>> > Hi there,
>> >
>> > I am trrying  to run 'mvn -e integration-test" in 2.0-m2 basic-strusts
>> app,
>> > and am getting the following mysql connection refused error. Mysql
>> serve
>> > works fine as I am able to do the manual login on the Linux box.
>> >
>> > I would really appreciate if someone could have a look at the following
>> > stack trace and point me to the right direction.
>> >
>> > Thanks in advance
>> > Ray[INFO] Scanning for projects...
>> > [INFO]
>> >
>> ----------------------------------------------------------------------------
>> > [INFO] Building AppFuse Struts 2 Application
>> > [INFO]    task-segment: [integration-test]
>> > [INFO]
>> >
>> ----------------------------------------------------------------------------
>> > [INFO] [warpath:add-classes {execution: default}]
>> > [INFO] [resources:resources]
>> > [INFO] Using default encoding to copy filtered resources.
>> > [INFO] [compiler:compile]
>> > [INFO] Nothing to compile - all classes are up to date
>> > [INFO] [resources:testResources]
>> > [INFO] Using default encoding to copy filtered resources.
>> > [INFO] [compiler:testCompile]
>> > [INFO] Nothing to compile - all classes are up to date
>> > [INFO] [dbunit:operation {execution: default}]
>> > [INFO]
>> >
>> ------------------------------------------------------------------------
>> > [ERROR] BUILD ERROR
>> > [INFO]
>> >
>> ------------------------------------------------------------------------
>> > [INFO] Error executing database operation: CLEAN_INSERT
>> >
>> > Embedded error: Communications link failure due to underlying
>> exception:
>> >
>> > ** BEGIN NESTED EXCEPTION **
>> >
>> > java.net.SocketException
>> > MESSAGE: java.net.ConnectException: Connection refused
>> >
>> > STACKTRACE:
>> >
>> > java.net.SocketException: java.net.ConnectException: Connection refused
>> >        at
>> >
>> com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:156)
>> >        at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:276)
>> >        at
>> com.mysql.jdbc.Connection.createNewIO(Connection.java
>> :2666)
>> >        at com.mysql.jdbc.Connection.<init>(Connection.java:1531)
>> >        at
>> >
>> com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:266)
>> >        at
>> >
>> org.codehaus.mojo.dbunit.AbstractDbUnitMojo.createConnection
>> (AbstractDbUnitMojo.java:169)
>> >        at
>> >
>> org.codehaus.mojo.dbunit.OperationMojo.execute(OperationMojo.java:93)
>> >        at
>> >
>> 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
>> >        at
>> >
>> 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
>> >        at
>> >
>> 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java
>> :475)
>> >        at
>> >
>> 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
>> >        at
>> >
>> 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java
>> :306)
>> >        at
>> >
>> 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
>> >        at
>> >
>> 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.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.N        at
>> >
>> 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.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 **
>> >
>> >
>> >
>> > Last packet sent to the server was 25 ms ago.
>> > [INFO]
>> >
>> ------------------------------------------------------------------------
>> > [INFO] For more information, run Maven with the -e switch
>> > [INFO]
>> >
>> ------------------------------------------------------------------------
>> > [INFO] Total time: 9 seconds
>> > [INFO] Finished at: Mon Jan 22 22:58:34 EST 2007
>> > [INFO] Final Memory: 10M/19M
>> > [INFO]
>> >
>> ------------------------------------------------------------------------
>> > ativeMethodAccessorImpl.invoke0(Native Method)
>> >        at
>> >
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>> >
>> >
>> > Stack trace from 'mvn integration-test',
>> > =================================
>> >
>> >
>> > --
>> > View this message in context:
>> 
http://www.nabble.com/Mysql-Exception-in-2.0-m2-basic-struts-tf3053403s2369.html#a8487854
>> > Sent from the AppFuse - User mailing list archive at Nabble.com.
>> >
>> >
>> ---------------------------------------------------------------------
>> > To unsubscribe, e-mail:
>> [EMAIL PROTECTED]
>> > For additional commands, e-mail: [EMAIL PROTECTED]
>> >
>> >
>>
>>
>
>
> --
> http://raibledesigns.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>

--
View this message in context: 
http://www.nabble.com/Mysql-Exception-in-2.0-m2-basic-struts-tf3053403s2369.html#a8509191
Sent from the AppFuse - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
http://raibledesigns.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to