[appfuse-user] Re: ActionTest FAILURE on Db2

2010-02-08 Thread johnydz
I know How to fix it, add next bold code public void testSaveConflictingUser() throws Exception { UserManager userManager = (UserManager) applicationContext.getBean("userManager"); User user = userManager.getUserByUsername("user"); user.setPassword("user"); user.se

[appfuse-user] ActionTest FAILURE on Db2

2010-02-08 Thread johnydz
I try it on the 2.1.0-M2-SNAPSHOT. 1,change Database settings : org.dbunit.ext.db2.Db2DataTypeFactory CLEAN_INSERT org.hibernate.dialect.DB2Dialect com.ibm db2jcc 3.58.82 com.ibm.db2.jcc.DB2Driver jdbc:db2://localhost:5/test1

[appfuse-user] ActionTest Error on H2

2010-02-08 Thread johnydz
1,change Database settings org.dbunit.ext.h2.H2DataTypeFactory CLEAN_INSERT org.hibernate.dialect.H2Dialect com.h2database h2 1.2.127 org.h2.Driver jdbc:h2:~/h2/${db.name} sa sa 2,run mvn on core C:\Users\Yen\works\myproject

[appfuse-user] Re: ActionTest FAILURE on Db2

2010-02-08 Thread johnydz
IN MYSQL testSaveConflictingUser() action.save() will fail because Duplicate entry 'm...@raibledesigns.com' for key 'email' but,in Db2 ,action.save() is success??? weird! -- View this message in context: http://n4.nabble.com/ActionTest-FAILURE-on-Db2-tp1472754p1472868.html Sent from the AppF

[appfuse-user] Re: ActionTest Error on H2

2010-02-08 Thread johnydz
I know how to fix it, add bold code in pom.xml file h2 org.dbunit.ext.h2.H2DataTypeFactory org.hibernate.dialect.H2Dialect com.h2database h2 1.0.79 org.h2.Driver

[appfuse-user] Re: Unable to read TLD "META-INF/c.tld" from JAR file

2010-02-08 Thread Rachid Chalh
Hi all, I use ANT to deploy appfuse application under Tomcat 6. But when I enter the url I get this error : javax.servlet.ServletException: org.apache.jasper.JasperException: /index.jsp(1,1) Unable to read TLD "META-INF/displaytag.tld" from JAR file "file:/C:/Tools/Tomcat%206.0/webapps/ChalhzSit

[appfuse-user] Understanding Appfuse2 for Struts2

2010-02-08 Thread Viki2
Hi, I am working with Appfuse Struts2 Basic/Modular. This contains functionality for User administration. I wonder what part of code is dropping/creating tables and inserting sample data. Can anyone tell? I need to understand because I want to avoid inserting data and creating tables everytime t

Re: [appfuse-user] Re: ActionTest FAILURE on Db2

2010-02-08 Thread Matt Raible
Can you please enter this as an issue in JIRA and include steps to reproduce (or a link to this thread)? http://issues.appfuse.org Thanks! Matt On Mon, Feb 8, 2010 at 6:16 AM, johnydz wrote: > > I know How to fix it, add next bold code > > public void testSaveConflictingUser() throws Exceptio

Re: [appfuse-user] Re: ActionTest Error on H2

2010-02-08 Thread Matt Raible
Thanks for providing the fix. If you enter an issue in JIRA, I'll be happy to fix this before the next release. http://issues.appfuse.org On Mon, Feb 8, 2010 at 8:27 AM, johnydz wrote: > > I know how to fix it, > > add bold code in pom.xml file > > >h2 > > > > org.dbu

Re: [appfuse-user] Re: Unable to read TLD "META-INF/c.tld" from JAR file

2010-02-08 Thread Matt Raible
I haven't seen this and I've used Tomcat 6 for quite some time. I'd suggest deleting your "work" directory and trying again. Matt On Sun, Feb 7, 2010 at 2:46 PM, Rachid Chalh wrote: > > Hi all, > > I use ANT to deploy appfuse application under Tomcat 6. But when I enter > the > url I get this e

Re: [appfuse-user] Understanding Appfuse2 for Struts2

2010-02-08 Thread Matt Raible
The Hibernate plugin in your pom.xml is creating the tables. The dbunit plugin is inserting data every time. To skip tests when running the build, use -DskipTests=true. Another option is to use the JRebel plugin and you won't ever need to run Maven commands - you can do everything from your IDE and

[appfuse-user] Different types of User

2010-02-08 Thread Arash
Hi, This is general design question related to the tools Appfuse provide that might support or conflict with what you have in mind. My application needs to have several different users i.e. Manager, Accountant, Buyer, Seller. Each of which could be treated as a person or user and might have extr

Re: [appfuse-user] Different types of User

2010-02-08 Thread ramzi khlil
Hi, You can look at them as roles and implements all business methods in user class and protect them by roles. You can do this either through xml or by using annotations. Ramzi On Mon, Feb 8, 2010 at 2:15 PM, Arash wrote: > > Hi, > > This is general design question related to the tools Appfuse

[appfuse-user] Re: Different types of User

2010-02-08 Thread Arash
Thanks for your response. I am not trying to force myself to utilize relationship in AppFuse, I'm asking if there are any advantages over having an entity called Manager or Accountant that extends User. The approach you mentioned has an immediate flaw of cluttering the user code and having tha