I created a modular struts project using AppFuse 2.0.2.

After run "appfuse:gen" in the core part of the project, I got Daos and
Managers generated by AppFuse,
but when I run "appfuse:gen-web" in the web part of the project, I got
messages generated by Maven console as follows:


D:\Workstation\workspaces\workspace-research\myproject-webapp>mvn
appfuse:gen-web -Dentity=Employee -Dentity.check=false
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'appfuse'.
[INFO]
------------------------------------------------------------------------
[INFO] Building My Project - Web (Struts 2)
[INFO]    task-segment: [appfuse:gen-web]
[INFO]
------------------------------------------------------------------------
[INFO] Preparing appfuse:gen-web
[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] [appfuse:gen-web]
[INFO] [AppFuse] Assuming '../myproject-core' has hibernate.cfg.xml in its
src/main/resources directory
[INFO] [AppFuse] Adding 'Employee' to hibernate.cfg.xml...
[INFO]
D:\Workstation\workspaces\workspace-research\myproject-webapp/../myproject/../myproject-core/src/main/resources/hibernate.cfg.xml
not found within the project. Trying absolute path.
[INFO] Configuration XML file loaded:
file:/D:/Workstation/workspaces/workspace-research/myproject-webapp/../myproject/../myproject-core/src/main/resources/hibernate.cfg.xml
[INFO]
D:\Workstation\workspaces\workspace-research\myproject-webapp/../myproject/../myproject-core/src/main/resources/hibernate.cfg.xml
not found within the project. Trying absolute path.
[INFO] Configuration XML file loaded:
file:/D:/Workstation/workspaces/workspace-research/myproject-webapp/../myproject/../myproject-core/src/main/resources/hibernate.cfg.xml
[INFO] src/main/resources/database.properties not found within the project.
Trying absolute path.
[INFO] No hibernate properties file loaded.
[info] [AppFuse] Installing generated files (pattern: **/*.java)...
[info] [AppFuse] Installing sample data for DbUnit...
[INFO]
------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO]
------------------------------------------------------------------------
[INFO]
D:\Workstation\workspaces\workspace-research\myproject-webapp\target\appfuse\generated-sources\src\test\resources\Employee-sample-data.xml
doesn't exist
[INFO]
------------------------------------------------------------------------
[INFO] Trace
D:\Workstation\workspaces\workspace-research\myproject-webapp\target\appfuse\generated-sources\src\test\resources\Employee-sample-data.xml
doesn't exist
        at
org.apache.tools.ant.taskdefs.LoadResource.execute(LoadResource.java:142)
        at
org.appfuse.tool.ArtifactInstaller.installSampleData(ArtifactInstaller.java:135)
        at
org.appfuse.tool.ArtifactInstaller.execute(ArtifactInstaller.java:47)
        at
org.appfuse.mojo.exporter.AppFuseGeneratorMojo.doExecute(AppFuseGeneratorMojo.java:270)
        at
org.appfuse.mojo.HibernateExporterMojo.execute(HibernateExporterMojo.java:138)
        at
org.appfuse.mojo.exporter.AppFuseGeneratorMojo.execute(AppFuseGeneratorMojo.java:210)
        at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:512)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:482)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
        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: 13 seconds
[INFO] Finished at: Fri May 23 10:38:01 CST 2008
[INFO] Final Memory: 20M/37M
[INFO]
------------------------------------------------------------------------
-- 
View this message in context: 
http://www.nabble.com/appfuse%3Agen-web-doesn%27t-work-in-my-modular-project-with-AppFuse-2.0.2-tp17417658s2369p17417658.html
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