We haven't yet figured out a good way to allow users to override the
default behavior in AppFuse's  core files.  If you want to fully
customize AppFuse, the best thing to do is to use 1.9.4.

With 2.x, it's easy to customize JSPs, CSS and JavaScript, but not so
easy to customize .java files in AppFuse. For customizing UI files,
I'd suggest the following:

1. Download or copy/paste the contents of the file you want to
customize.  Put it in your project in the same place it exists in
AppFuse. For example, creating src/main/webapp/decorators/default.jsp
will allow you to override the default decorator.

2. Run "mvn war:inplace" to get all of the files from AppFuse into
your project. You won't get source files for .java code, but you will
get JSPs and such you can delete.

Option #2 is discussed in the QuickStart Guide
(http://appfuse.org/display/APF/AppFuse+QuickStart):

<quote>
To override files from AppFuse, run "mvn war:inplace". This will
extract the dependent WARs into src/main/webapp, where you can change
files to your hearts content. When you have the war expanded in your
source tree, you can run "mvn jetty:run". This will allow you to
change files on-the-fly and Jetty will reload them as needed. The only
problem with this approach is you end up with an "exploded AppFuse" in
your project, which won't bode well for upgrading. We recommend you
check your project into source control before running "mvn
war:inplace". That way, it'll be easier for you to decide what needs
to be checked in (over written) and what can be deleted.
<quote>

Hope this helps,

Matt


On 1/12/07, Jaymin Shah <[EMAIL PROTECTED]> wrote:

Thanks for the information. I have successfully created and deployed project
on TOMCAT.

I have observed that the project has not placed or generated source/java
code for org/appfuse/webapp/action, filter, listener, spring, taglib and
util. I want enhance user UI's. Could you please let me know, how can I get
the source/java code for above mentioned packages.

Jaymin


Matt Raible-3 wrote:
>
> For some reason, sometimes the hbm2ddl execution is skipped.  Try
> running "mvn hibernate3:hbm2dll".  After running this once, it should
> continue to run after that.
>
> Matt
>
> On 1/11/07, Jaymin Shah <[EMAIL PROTECTED]> wrote:
>>
>> I have tried executing above steps after deleting project folder and
>> mySql
>> database but it still continues to give me errors.
>>
>>
>>
>> Jaymin Shah wrote:
>> >
>> > I have successfully created a new Project using following command –
>> >
>> > F:\>mvn archetype:create -DarchetypeGroupId=org.appfuse
>> > -DarchetypeArtifactId=ap
>> > pfuse-basic-struts
>> > -DremoteRepositories=http://static.appfuse.org/repository -Da
>> > rchetypeVersion=1.0-SNAPSHOT -DgroupId=com.james -DartifactId=RealTrade
>> >
>> > I then executed "mvn –e install" from "F:\ RealTrade>" folder and got
>> > following error.
>> >
>> > F:\RealTrade>mvn -e install
>> > + Error stacktraces are turned on.
>> > [INFO] Scanning for projects...
>> > [INFO]
>> >
>> ----------------------------------------------------------------------------
>> > [INFO] Building AppFuse Struts 2 Application
>> > [INFO]    task-segment: [install]
>> > [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: user_role
>> > [INFO]
>> >
>> ------------------------------------------------------------------------
>> > [INFO] Trace
>> > org.apache.maven.lifecycle.LifecycleExecutionException: Error executing
>> > database operation: CLEAN_INSERT
>> >         at
>> >
>> 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)
>> >         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.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.MojoExecutionException: Error
>> executing
>> > database operation: CLEAN_INSERT
>> >         at
>> > org.codehaus.mojo.dbunit.OperationMojo.execute(OperationMojo.java:110)
>> >         at
>> >
>> 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
>> >         at
>> >
>> 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
>> >         ... 16 more
>> > Caused by: org.dbunit.dataset.NoSuchTableException: user_role
>> >         at
>> >
>> 
org.dbunit.database.DatabaseDataSet.getTableMetaData(DatabaseDataSet.java:192)
>> >         at
>> >
>> org.dbunit.operation.DeleteAllOperation.execute(DeleteAllOperation.java:98)
>> >         at
>> >
>> org.dbunit.operation.CompositeOperation.execute(CompositeOperation.java:67)
>> >         at org.dbunit.ant.Operation.execute(Operation.java:183)
>> >         at
>> > org.codehaus.mojo.dbunit.OperationMojo.execute(OperationMojo.java:101)
>> >         ... 18 more
>> > [INFO]
>> >
>> ------------------------------------------------------------------------
>> > [INFO] Total time: 9 seconds
>> > [INFO] Finished at: Fri Jan 12 10:10:48 GMT+05:30 2007
>> > [INFO] Final Memory: 11M/20M
>> > [INFO]
>> >
>> ------------------------------------------------------------------------
>> >
>> > F:\RealTrade>
>> >
>> > Thanks in advance for all your help,
>> > Jaymin
>> >
>>
>> --
>> View this message in context:
>> 
http://www.nabble.com/Struts-2-Basic---build-issue-tf2963969s2369.html#a8292727
>> 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
>
>

--
View this message in context: 
http://www.nabble.com/Struts-2-Basic---build-issue-tf2963969s2369.html#a8297345
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

Reply via email to