[appfuse-user] app:gen Unable to load class declared as mapping class="xyz" in the configuration

2007-10-26 Thread mschipperheyn
Hi, I have a fresh modular Spring project where I'm trying to run appfuse:gen -Dentity=xyz.core.model.Barrio from the web directory. The database is getting generated fine and all that but generating the CRUD screens fails. I keep getting [WARNING] POM for 'org.hibernate:jtidy:pom:r8-20060801

[appfuse-user] Duplicate Users in List

2007-10-26 Thread George.Francis
I'm getting some strange behaviour. I find that if I assign two Roles to User 'admin' then when I call userManager.getAll() I get two instances of the admin user in the List. Has anyone else seen this kind of behaviour? What causes it? -- View this message in context: http://www.nabble.com/Dup

[appfuse-user] Help! mvn jetty:run-war failed

2007-10-26 Thread Robert Han
Environment: AppFuse 2.0,Spring MVC Modular,full-source Log info: [INFO] Starting jetty 6.1.5 ... 2007-10-26 10:38:35.815::INFO: Extract jar:file:/D:/Source/sample/web/target/sample-webapp-1.0-SNAPSHOT.war!/ to D:\Source\sample\web\target\work\webapp 2007-10-26 10:38:47.996::INFO: No Transactio

Re: [appfuse-user] How to get labels and fields side-by-side

2007-10-26 Thread Matt Raible
You may be able to modify the forms.css to do this. If that doesn't work - use Struts' simple theme and you'll have full control of the HTML produced. Matt On 10/26/07, Rob Hills <[EMAIL PROTECTED]> wrote: > Hi All, > > I'm using AppFuse 2.0 and Struts and I'm wondering how to get my labels > an

[appfuse-user] How to get labels and fields side-by-side

2007-10-26 Thread Rob Hills
Hi All, I'm using AppFuse 2.0 and Struts and I'm wondering how to get my labels and fields side-by-side rather than labels on top of fields as is the default in AppFuse. I assume there's a single change I can make somewhere, but I've not been able to work out what that is. According to the S

[appfuse-user] Cannot access database with remote shared web hosting

2007-10-26 Thread BruceLee
Dear Team, I'm new with Appfuse 1.9.4 with WW2. We have a weird problem: When I test our website locally with Tomcat & MySQL, everything is OK. But after I copy our webapp under Tomcat to remote web hosting, I can only access the JSP pages, not able to access data from database. The error on pag

Re: [appfuse-user] Many-to-many collection problem

2007-10-26 Thread syg6
Hmmm. Yea, I already had this set at one time and it didn't seem to be doing anything so I got rid of it. Looking again at the documentation it seems DELETE_ORPHAN isn't only for deleting from Collections when the Parent object is deleted (as I thought) but is also used when any element is removed

Re: [appfuse-user] Quick start not working 100%

2007-10-26 Thread Matt Raible
On 10/26/07, Setomidor <[EMAIL PROTECTED]> wrote: > > Hi! > > Been trying out AppFuse and ran into some problems: > > 1) Ran the following on a freshly installed Ubuntu gutsy box, maven 2.0.7: > > mvn archetype:create -DarchetypeGroupId=org.appfuse.archetypes > -DarchetypeArtifactId=appfuse-modular

Re: [appfuse-user] null pointer exception !!

2007-10-26 Thread Matt Raible
Is your ImageServlet a servlet or a POJO? Is fileManager a bean defined in your Spring context files. Matt On Oct 26, 2007, at 8:53 AM, kace wrote: Hi guys ive got a bean imageServlet which dishes out images managed bean looks like: imageServlet class>com.mobileanarchy.gym.we

Re: [appfuse-user] JspTagException in PickList

2007-10-26 Thread Matt Raible
You might want to change from using to - I've seen issues with the former providing good error messages. Matt On Oct 26, 2007, at 8:10 AM, George.Francis wrote: I have an entity 'Application' which has a ManyToMany association with Users. I've been trying to get a pick-list up on the Ap

Re: [appfuse-user] Many-to-many collection problem

2007-10-26 Thread Michael Horwitz
You may want to try adding the org.hibernate.annotations.CascadeType.DELETE_ORPHAN ( a Hibernate specific annotation) that should do what you want. See here for more details: http://tinyurl.com/29m6ek. Mike. On 10/26/07, syg6 <[EMAIL PROTECTED]> wrote: > > > Well I've been playing with this all w

Re: [appfuse-user] Many-to-many collection problem

2007-10-26 Thread syg6
Well I've been playing with this all week and, quite honestly, I was very close to a nervous breakdown and was cursing Hibernate up and down. I gave up on relying on Cascade and decided to manually manage my associated Set of AAndBJoin Objects. This proved to be a royal pain in the a$$. I was get

[appfuse-user] null pointer exception !!

2007-10-26 Thread kace
Hi guys ive got a bean imageServlet which dishes out images managed bean looks like: imageServlet com.mobileanarchy.gym.webapp.action.ImageServlet session fileManager #{fileManager} and I am setting t

[appfuse-user] JspTagException in PickList

2007-10-26 Thread George.Francis
I have an entity 'Application' which has a ManyToMany association with Users. I've been trying to get a pick-list up on the ApplicationForm so that this relationship can be managed. I'm following the example of userRoles in the default userForm, but whenever I send a non-empty list for available

Re: [appfuse-user] cargo-maven2-plugin: Configuration for seperate test database?

2007-10-26 Thread Michael Horwitz
On 10/26/07, jimpo <[EMAIL PROTECTED]> wrote: > > > And have two installations of my application server - server A with > datasourceX => unit test db - and server B with datasourceX => the other > db? > And run the tests by deploying the war to server A and the actual > deployment > to server B? Ri

Re: [appfuse-user] cargo-maven2-plugin: Configuration for seperate test database?

2007-10-26 Thread jimpo
Wait a minutesrc/test/resources contains jdbc.properties jdbc.driverClassName=${jdbc.driverClassName} jdbc.url=${jdbc.url} jdbc.username=${jdbc.username} jdbc.password=${jdbc.password} hibernate.dialect=${hibernate.dialect} # Needed by Hibernate3 Maven Plugin defined in pom.xml hibernate.co

Re: [appfuse-user] Trouble with the tutorial

2007-10-26 Thread Michael Horwitz
On 10/26/07, Setomidor <[EMAIL PROTECTED]> wrote: > > > Hi again! > > I continued my journey into AppFuse / Maven / Struts / Spring / Hibernate > land, an ran into a wall when trying the PersonActionTest part of the > tutorial. > > 1) I'm in the web directory (using modular) and run: > mvn test -Dt

Re: [appfuse-user] cargo-maven2-plugin: Configuration for seperate test database?

2007-10-26 Thread jimpo
And have two installations of my application server - server A with datasourceX => unit test db - and server B with datasourceX => the other db? And run the tests by deploying the war to server A and the actual deployment to server B? Right? That's probably one good way to do it - what if you wan

[appfuse-user] Trouble with the tutorial

2007-10-26 Thread Setomidor
Hi again! I continued my journey into AppFuse / Maven / Struts / Spring / Hibernate land, an ran into a wall when trying the PersonActionTest part of the tutorial. 1) I'm in the web directory (using modular) and run: mvn test -Dtest=PersonActionTest result is : Results : Tests in error: te

Re: [appfuse-user] cargo-maven2-plugin: Configuration for seperate test database?

2007-10-26 Thread Michael Horwitz
The easiest way to do this is to configure the database connection as part of the container (as a JNDI resource) rather than embed it in the war file. In applicationContext-resources.xml uncomment the JNDI lookup and comment out the datasource. Mike. On 10/26/07, jimpo <[EMAIL PROTECTED]> wrote:

Re: [appfuse-user] can DBUNIT maven plugin load data from multiple files?

2007-10-26 Thread ros
Hi All! An isse submited to http://jira.codehaus.org/browse/MOJO-941 Thanks! ros Rob Hills wrote: > > Hi All, > > On 24 Oct 2007 at 13:22, Dale Newfield wrote: > >> DBUnit has the ability to "stream" the execution of certain tasks so >> that ginormous collections of data should be able to

Re: [appfuse-user] cargo-maven2-plugin: Configuration for seperate test database?

2007-10-26 Thread jimpo
*bump* this one because I think a question still remains unanswered. There is a need for have a) unit tests run against database settings 1 (populated by dbUnit) and b) the real application deployment war run against a different database settings 2 The whole point of dbUnit is to run against a d

Re: [appfuse-user] Accessing user info on main menu page

2007-10-26 Thread Michael Horwitz
The best way is probably to build your own custom JSP tag that knows how to extract you User object from the ACEGI authentication context. Mike On 10/26/07, Rob Hills <[EMAIL PROTECTED]> wrote: > > Hi All, > > I need to display some information from my user class on the page header. > My modifica

[appfuse-user] Accessing user info on main menu page

2007-10-26 Thread Rob Hills
Hi All, I need to display some information from my user class on the page header. My modifications to header.jsp work for everything except the main menu page after first login and it quickly became obvious that it is because no action class has been called to load up the user object. I have

Re: [appfuse-user] Problem in Role based Sub Menu Configuration

2007-10-26 Thread Michael Horwitz
You problem may be related to this issue: http://issues.appfuse.org/browse/APF-879 (you do not give any details as to what you mean by distorted). Mike. On 10/26/07, Sunandha Ramasamy <[EMAIL PROTECTED]> wrote: > > > I created a new project with appfuse 2.0 with Struts-Menu 2.4.3. I am > trying

[appfuse-user] Problem in Role based Sub Menu Configuration

2007-10-26 Thread Sunandha Ramasamy
I created a new project with appfuse 2.0 with Struts-Menu 2.4.3. I am trying to create Sub-Menus under a Main Menu. The Menu which comes up is distorted. Please let me know how to give role based access to sub menus. My Menu-Config looks like the following:

[appfuse-user] Quick start not working 100%

2007-10-26 Thread Setomidor
Hi! Been trying out AppFuse and ran into some problems: 1) Ran the following on a freshly installed Ubuntu gutsy box, maven 2.0.7: mvn archetype:create -DarchetypeGroupId=org.appfuse.archetypes -DarchetypeArtifactId=appfuse-modular-struts -DremoteRepositories=http://static.appfuse.org/releases

Re: [appfuse-user] SQLServer setup?

2007-10-26 Thread Michael Horwitz
In terms of changing your ip/port for each deployment you may be better off if you configure the JDBC connection as a JNDI data source rather than build the database connection details into the binary war file. In our environment we are not allowed to change the binary between deployment environmen