Hi, Matt

I found that the problem was with the configuration of cargo.port

 <!-- Cargo settings -->
    <cargo.container>tomcat5x</cargo.container>
    <cargo.container.home>${env.CATALINA_HOME}</cargo.container.home>           
<cargo.container.url>http://apache.org/dist/tomcat/tomcat-5/v5.5.17/bin/apache-tomcat-5.5.17.zip</cargo.container.url>
        <cargo.host>localhost</cargo.host>
        <cargo.port>8090</cargo.port> 
        <cargo.wait>false</cargo.wait>

The old value of cargo.port=8081, now
mvn integration-test works fine!!!


Thanks
JV



Matt Raible-3 wrote:
> 
> It looks like the Tomcat download might have failed, or the starting
> of Tomcat.  Do you have something running on port 8080?  This may help
> if you want to use an existing version of Tomcat:
> 
> http://appfuse.org/display/APF/FAQ#FAQ-useexistingtomcat
> 
> Matt
> 
> On 2/19/07, jv <[EMAIL PROTECTED]> wrote:
>>
>> Hello,
>> I following this QuickStart
>> http://appfuse.org/display/APF/AppFuse+QuickStart
>>
>>
>> But when I try to run the command
>>
>> >mvn integration-test
>>
>> I obtain the following exception
>>
>>
>> C:\Development\test\wretail>mvn integration-test
>> [INFO] Scanning for projects...
>> [INFO]
>> ----------------------------------------------------------------------------
>> [INFO] Building AppFuse Spring MVC Application
>> [INFO]    task-segment: [integration-test]
>> [INFO]
>> ----------------------------------------------------------------------------
>> [INFO] [warpath:add-classes {execution: default}]
>> [INFO] [native2ascii:native2ascii {execution: native2ascii-utf8}]
>> [INFO] [native2ascii:native2ascii {execution: native2ascii-8859_1}]
>> [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] Preparing hibernate3:hbm2ddl
>> [WARNING] Removing: hbm2ddl from forked lifecycle, to prevent recursive
>> invocation.
>> [INFO] [warpath:add-classes {execution: default}]
>> [INFO] [native2ascii:native2ascii {execution: native2ascii-utf8}]
>> [INFO] [native2ascii:native2ascii {execution: native2ascii-8859_1}]
>> [INFO] [resources:resources]
>> [INFO] Using default encoding to copy filtered resources.
>> [WARNING] POM for 'org.hibernate:jtidy:pom:r8-20060801:runtime' is
>> invalid.
>> It will be ignored for a
>> rtifact resolution. Reason: Parse error reading POM. Reason: TEXT must be
>> immediately followed by EN
>> D_TAG and not START_TAG (position: START_TAG seen
>> ...<licenses>\n\t\t\t<license>... @12:13)
>> [WARNING] POM for 'org.hibernate:jtidy:pom:r8-20060801:runtime' is
>> invalid.
>> It will be ignored for a
>> rtifact resolution. Reason: Parse error reading POM. Reason: TEXT must be
>> immediately followed by EN
>> D_TAG and not START_TAG (position: START_TAG seen
>> ...<licenses>\n\t\t\t<license>... @12:13)
>> [INFO] [hibernate3:hbm2ddl {execution: default}]
>> [INFO] Configuration XML file loaded:
>> C:\Development\test\wretail\src\main\resources\hibernate.cfg.x
>> ml
>> [INFO] Configuration XML file loaded:
>> C:\Development\test\wretail\src\main\resources\hibernate.cfg.x
>> ml
>> [INFO] Configuration Properties file loaded:
>> C:\Development\test\wretail\target\classes\jdbc.propert
>> ies
>> create table app_user (id bigint not null auto_increment, username
>> varchar(50) not null unique, emai
>> l varchar(255) not null unique, password_hint varchar(255), first_name
>> varchar(50) not null, last_na
>> me varchar(50) not null, phone_number varchar(255), website varchar(255),
>> account_expired bit not nu
>> ll, account_locked bit not null, credentials_expired bit not null, city
>> varchar(50) not null, provin
>> ce varchar(100), postal_code varchar(15) not null, address varchar(150),
>> country varchar(100), accou
>> nt_enabled bit, version integer, password varchar(255) not null, primary
>> key
>> (id)) type=InnoDB;
>> [ERROR] SchemaExport - Unsuccessful: create table app_user (id bigint not
>> null auto_increment, usern
>> ame varchar(50) not null unique, email varchar(255) not null unique,
>> password_hint varchar(255), fir
>> st_name varchar(50) not null, last_name varchar(50) not null,
>> phone_number
>> varchar(255), website var
>> char(255), account_expired bit not null, account_locked bit not null,
>> credentials_expired bit not nu
>> ll, city varchar(50) not null, province varchar(100), postal_code
>> varchar(15) not null, address varc
>> har(150), country varchar(100), account_enabled bit, version integer,
>> password varchar(255) not null
>> , primary key (id)) type=InnoDB
>> [ERROR] SchemaExport - Table 'app_user' already exists
>> create table role (id bigint not null auto_increment, name varchar(20),
>> description varchar(64), pri
>> mary key (id)) type=InnoDB;
>> [ERROR] SchemaExport - Unsuccessful: create table role (id bigint not
>> null
>> auto_increment, name varc
>> har(20), description varchar(64), primary key (id)) type=InnoDB
>> [ERROR] SchemaExport - Table 'role' already exists
>> create table user_role (user_id bigint not null, role_id bigint not null,
>> primary key (user_id, role
>> _id)) type=InnoDB;
>> [ERROR] SchemaExport - Unsuccessful: create table user_role (user_id
>> bigint
>> not null, role_id bigint
>>  not null, primary key (user_id, role_id)) type=InnoDB
>> [ERROR] SchemaExport - Table 'user_role' already exists
>> alter table user_role add index FK143BF46AF503D155 (user_id), add
>> constraint
>> FK143BF46AF503D155 fore
>> ign key (user_id) references app_user (id);
>> [ERROR] SchemaExport - Unsuccessful: alter table user_role add index
>> FK143BF46AF503D155 (user_id), a
>> dd constraint FK143BF46AF503D155 foreign key (user_id) references
>> app_user
>> (id)
>> [ERROR] SchemaExport - Duplicate key name 'FK143BF46AF503D155'
>> alter table user_role add index FK143BF46A4FD90D75 (role_id), add
>> constraint
>> FK143BF46A4FD90D75 fore
>> ign key (role_id) references role (id);
>> [ERROR] SchemaExport - Unsuccessful: alter table user_role add index
>> FK143BF46A4FD90D75 (role_id), a
>> dd constraint FK143BF46A4FD90D75 foreign key (role_id) references role
>> (id)
>> [ERROR] SchemaExport - Duplicate key name 'FK143BF46A4FD90D75'
>> [WARNING] 5 errors occurred while performing <hbm2ddl>.
>> [ERROR] Error #1: com.mysql.jdbc.exceptions.MySQLSyntaxErrorException:
>> Table
>> 'app_user' already exis
>> ts
>> [ERROR] Error #1: com.mysql.jdbc.exceptions.MySQLSyntaxErrorException:
>> Table
>> 'role' already exists
>> [ERROR] Error #1: com.mysql.jdbc.exceptions.MySQLSyntaxErrorException:
>> Table
>> 'user_role' already exi
>> sts
>> [ERROR] Error #1: com.mysql.jdbc.exceptions.MySQLSyntaxErrorException:
>> Duplicate key name 'FK143BF46
>> AF503D155'
>> [ERROR] Error #1: com.mysql.jdbc.exceptions.MySQLSyntaxErrorException:
>> Duplicate key name 'FK143BF46
>> A4FD90D75'
>> [INFO] [compiler:testCompile]
>> [INFO] Nothing to compile - all classes are up to date
>> [INFO] [dbunit:operation {execution: test-compile}]
>> [INFO] [surefire:test]
>> [INFO] Surefire report directory:
>> C:\Development\test\wretail\target\surefire-reports
>>
>> -------------------------------------------------------
>>  T E S T S
>> -------------------------------------------------------
>> Running com.mycompany.AppTest
>> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.05 sec
>>
>> Results :
>> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
>>
>> [INFO] [dbunit:operation {execution: test}]
>> [INFO] [war:war]
>> [INFO] Exploding webapp...
>> [INFO] Assembling webapp wretail in
>> C:\Development\test\wretail\target\wretail-1.0-SNAPSHOT
>> [INFO] Copy webapp webResources to
>> C:\Development\test\wretail\target\wretail-1.0-SNAPSHOT
>> [INFO] Overlaying 2 war(s).
>> [INFO] Generating war
>> C:\Development\test\wretail\target\wretail-1.0-SNAPSHOT.war
>> [INFO] Building war:
>> C:\Development\test\wretail\target\wretail-1.0-SNAPSHOT.war
>> [INFO] [cargo:start {execution: start-container}]
>> [INFO] [talledLocalContainer] Tomcat 5.5.17 starting...
>> [INFO] [CopyingLocalDeployer] Deploying
>> [C:\Development\test\wretail\target\wretail-1.0-SNAPSHOT.war
>> ] to [C:\Development\test\wretail\target\tomcat5x\container\webapps]...
>> [INFO]
>> ------------------------------------------------------------------------
>> [ERROR] FATAL ERROR
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Failed to start the Tomcat 5.5.17 container.
>> Deployable failed to finish deploying within the timeout period [120000].
>> The Deployable state is th
>> us unknown.
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Trace
>> org.codehaus.cargo.container.ContainerException: Failed to start the
>> Tomcat
>> 5.5.17 container.
>>         at
>> org.codehaus.cargo.container.spi.AbstractLocalContainer.start(AbstractLocalContainer.java
>> :154)
>>         at
>> org.codehaus.cargo.maven2.ContainerStartMojo.execute(ContainerStartMojo.java:62)
>>         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(DefaultLifec
>> ycleExecutor.java:475)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.
>> java:454)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultL
>> ifecycleExecutor.java:306)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleE
>> xecutor.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)
>> Caused by: org.codehaus.cargo.container.ContainerException: Deployable
>> failed to finish deploying wi
>> thin the timeout period [120000]. The Deployable state is thus unknown.
>>         at
>> org.codehaus.cargo.container.spi.deployer.DeployerWatchdog.watch(DeployerWatchdog.java:10
>> 9)
>>         at
>> org.codehaus.cargo.container.spi.AbstractLocalContainer.waitForCompletion(AbstractLocalCo
>> ntainer.java:205)
>>         at
>> org.codehaus.cargo.container.spi.AbstractLocalContainer.start(AbstractLocalContainer.java
>> :149)
>>         ... 19 more
>> org.codehaus.cargo.container.ContainerException: Deployable failed to
>> finish
>> deploying within the ti
>> meout period [120000]. The Deployable state is thus unknown.
>>         at
>> org.codehaus.cargo.container.spi.deployer.DeployerWatchdog.watch(DeployerWatchdog.java:10
>> 9)
>>         at
>> org.codehaus.cargo.container.spi.AbstractLocalContainer.waitForCompletion(AbstractLocalCo
>> ntainer.java:205)
>>         at
>> org.codehaus.cargo.container.spi.AbstractLocalContainer.start(AbstractLocalContainer.java
>> :149)
>>         at
>> org.codehaus.cargo.maven2.ContainerStartMojo.execute(ContainerStartMojo.java:62)
>>         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(DefaultLifec
>> ycleExecutor.java:475)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.
>> java:454)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultL
>> ifecycleExecutor.java:306)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleE
>> xecutor.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)
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Total time: 3 minutes 56 seconds
>> [INFO] Finished at: Mon Feb 19 16:55:37 ART 2007
>> [INFO] Final Memory: 16M/30M
>> [INFO]
>> ------------------------------------------------------------------------
>>
>>
>> What do you suggest I do?
>>
>> Thanks
>> Javier
>> --
>> View this message in context:
>> http://www.nabble.com/AppFuse-Integration-Test-error-tf3255076s2369.html#a9049248
>> 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/AppFuse-Integration-Test-error-tf3255076s2369.html#a9068269
Sent from the AppFuse - User mailing list archive at Nabble.com.

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

Reply via email to