Please do not send these types of e-mails to both lists and don't use Urgent in the subject - it's just rude. We're all volunteers here and just because this issue is urgent for you, it's not for anyone else.

As for your problem, have you run "appfuse:full-source" on it? If so, did you do the tutorials before running this? If so, you may need to change some package names.

Matt


On Mar 6, 2008, at 1:07 PM, Preetkanwal_Singh wrote:

Hi all,

I have created a Struts 2 application and had sucessfully run the basic CRUD application for the same.

Now i tried creating a New Class the appfuse:gen and then Install the same. Its working fine.


I want the full source so i run the command "mvn appfuse:full- source". After running this command when i run the server using command "mvn jetty:run-war" am getting this test Case Failure Error...PLz help me out.

<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

C:\CES\gms>mvn -e jetty:run-war
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'jetty'.
[INFO] ---------------------------------------------------------------------- --
[INFO] Building AppFuse Struts 2 Application
[INFO]    task-segment: [jetty:run-war]
[INFO] ---------------------------------------------------------------------- --
[INFO] Preparing jetty:run-war
[INFO] [aspectj:compile {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] [aspectj:compile {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] [hibernate3:hbm2ddl {execution: default}]
[INFO] Configuration XML file loaded: C:\CES\gms\src\main\resources \hibernate.cfg.xml [INFO] Configuration XML file loaded: C:\CES\gms\src\main\resources \hibernate.cfg.xml [INFO] Configuration Properties file loaded: C:\CES\gms\target \classes\jdbc.properties
alter table user_role drop foreign key FK143BF46A84754A42;
alter table user_role drop foreign key FK143BF46ADF4A8662;
drop table if exists app_user;
drop table if exists role;
drop table if exists user_role;
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)) ENGINE=InnoDB; ERROR [main] SchemaExport.create(274) | Unsuccessful: create table app_user (id bigint not null auto _increment, username varchar(50) not null unique, email varchar (255) not null unique, password_hint varchar(255), first_name varchar(50) not null, last_name varchar (50) not null, phone_number varchar( 255), website varchar(255), account_expired bit not null, account_locked bit not null, credentials_e xpired bit not null, city varchar(50) not null, province varchar (100), postal_code varchar(15) not n ull, address varchar(150), country varchar(100), account_enabled bit, version integer, password varc
har(255) not null, primary key (id)) ENGINE=InnoDB
ERROR [main] SchemaExport.create(275) | Table 'app_user' already exists create table role (id bigint not null auto_increment, name varchar (20), description varchar(64), pri
mary key (id)) ENGINE=InnoDB;
ERROR [main] SchemaExport.create(274) | Unsuccessful: create table role (id bigint not null auto_inc rement, name varchar(20), description varchar(64), primary key (id)) ENGINE=InnoDB
ERROR [main] SchemaExport.create(275) | Table 'role' already exists
create table user_role (user_id bigint not null, role_id bigint not null, primary key (user_id, role
_id)) ENGINE=InnoDB;
alter table user_role add index FK143BF46A84754A42 (user_id), add constraint FK143BF46A84754A42 fore
ign key (user_id) references app_user (id);
alter table user_role add index FK143BF46ADF4A8662 (role_id), add constraint FK143BF46ADF4A8662 fore
ign key (role_id) references role (id);
[WARNING] 6 errors occurred while performing <hbm2ddl>.
[ERROR] Error #1: java.sql.SQLException: Error on rename of '.\gms \user_role' to '.\gms\#sql2-258-24
' (errno: 152)
[ERROR] Error #1: java.sql.SQLException: Error on rename of '.\gms \user_role' to '.\gms\#sql2-258-24
' (errno: 152)
[ERROR] Error #1: com.mysql.jdbc.exceptions.MySQLIntegrityConstraintViolationException: Cannot delet
e or update a parent row: a foreign key constraint fails
[ERROR] Error #1: com.mysql.jdbc.exceptions.MySQLIntegrityConstraintViolationException: Cannot delet
e or update a parent row: a foreign key constraint fails
[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
[INFO] [compiler:testCompile]
[INFO] Compiling 22 source files to C:\CES\gms\target\test-classes
[INFO] [dbunit:operation {execution: test-compile}]
[INFO] [surefire:test]
[INFO] Surefire report directory: C:\CES\gms\target\surefire-reports
org.apache.maven.surefire.booter.SurefireExecutionException: org/ appfuse/webapp/action/BaseActionTes tCase; nested exception is java.lang.NoClassDefFoundError: org/ appfuse/webapp/action/BaseActionTestC
ase
java.lang.NoClassDefFoundError: org/appfuse/webapp/action/ BaseActionTestCase
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at java.security.SecureClassLoader.defineClass (SecureClassLoader.java:124) at java.net.URLClassLoader.defineClass(URLClassLoader.java: 260)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at org.apache.maven.surefire.booter.IsolatedClassLoader.loadClass (IsolatedClassLoader.java:1
03)
at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.locateTestS ets(AbstractDirecto
ryTestSuite.java:87)
at org.apache.maven.surefire.Surefire.createSuiteFromDefinition (Surefire.java:150)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:111)
        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.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess (SurefireBooter.java:29
0)
at org.apache.maven.surefire.booter.SurefireBooter.main (SurefireBooter.java:818) [INFO] ---------------------------------------------------------------------- --
[ERROR] BUILD FAILURE
[INFO] ---------------------------------------------------------------------- --
[INFO] There are test failures.
[INFO] ---------------------------------------------------------------------- --
[INFO] Trace
org.apache.maven.BuildFailureException: There are test failures.
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals (DefaultLifecycleExecutor
.java:560)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLif ecycle(DefaultLifec
ycleExecutor.java:480)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkProjectLifecyc le(DefaultLifecycle
Executor.java:896)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkLifecycle (DefaultLifecycleExecuto
r.java:739)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals (DefaultLifecycleExecutor
.java:510)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneG oal(DefaultLifecycl
eExecutor.java:493)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal (DefaultLifecycleExecutor.
java:463)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHand leFailures(DefaultL
ifecycleExecutor.java:311)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegment s(DefaultLifecycleE
xecutor.java:278)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute (DefaultLifecycleExecutor.java
:143)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:333) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java: 126)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:282)
        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.apache.maven.plugin.MojoFailureException: There are test failures. at org.apache.maven.plugin.surefire.SurefirePlugin.execute (SurefirePlugin.java:425) at org.apache.maven.plugin.DefaultPluginManager.executeMojo (DefaultPluginManager.java:447) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals (DefaultLifecycleExecutor
.java:539)
        ... 20 more
[INFO] ---------------------------------------------------------------------- --
[INFO] Total time: 13 seconds
[INFO] Finished at: Fri Mar 07 01:18:57 IST 2008
[INFO] Final Memory: 16M/43M
[INFO] ---------------------------------------------------------------------- --

<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>


Urgent Help required am i am doing some New Project POC.

Will really appriciate your efforts. Thanks in advance.


Thanks n Regards

Preet kanwal Singh


DISCLAIMER:
This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated..



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

Reply via email to