Re: [appfuse-user] Reg: Hibernate config file

2007-03-01 Thread Matt Raible
The bean definition for the datasource is in web/WEB-INF/applicationContext-resources.xml. Matt On 3/2/07, Devpradhangr <[EMAIL PROTECTED]> wrote: Hi, There is no property name tag which includes the driver name for mysql, but it contains only session factory tag which specifies the .hbm

Re: [appfuse-user] Reg: Hibernate config file

2007-03-01 Thread Devpradhangr
Hi, There is no property name tag which includes the driver name for mysql, but it contains only session factory tag which specifies the .hbm files with the path. I want to know about the file for hibernate configuration with the database. applicationContext-hibernate.xml contains t

Re: [appfuse-user] Reg: Hibernate config file

2007-03-01 Thread Matt Raible
The SessionFactory is configured in a Spring bean and this has a list of all the mapping files in it. See src/dao/yourpackage/dao/hibernate/applicationContext-hibernate.xml to view the sessionFactory bean definition. Matt On 3/2/07, Devpradhangr <[EMAIL PROTECTED]> wrote: Hi all, I have

[appfuse-user] Reg: Hibernate config file

2007-03-01 Thread Devpradhangr
Hi all, I have created one sample application in appfuse 1.9.3 with hibernate. In that application I had looked for the hibernate.cfg.xml file, which includes the hibernate-configuration and session factory tag. But this file is missing in my application and without that file, the applica

Re: [appfuse-user] Junit testing

2007-03-01 Thread Matt Raible
It looks like it may be one of your Hibernate mapping files. Have you checked those? Matt On 3/2/07, Jolly <[EMAIL PROTECTED]> wrote: Hello Matt I checked all applicationContext-hibatis.xml in I.E but there is no error. Again i get the same error. Regards Jolly mraible wrote: > > The fol

Re: [appfuse-user] Junit testing

2007-03-01 Thread Jolly
Hello Matt I checked all applicationContext-hibatis.xml in I.E but there is no error. Again i get the same error. Regards Jolly mraible wrote: > > The following error means that you have invalid XML: > > > >> XML document structures must start and end within the same entity. >> > > I'd

Re: [appfuse-user] Tomcat 6.0.10

2007-03-01 Thread Rob van Oostrum
Have you tried this: - have 2 profiles: one for tomcat 5.5 and one for 6 - the profile for 6 sets a property - the profile for 5 activates whenever that property isn't set The dependency you need for 5.5 goes in its profile and isn't picked up whenever the profile for 6 is active. Haven't tried

Re: [appfuse-user] IllegatlArgumentException with hibernate

2007-03-01 Thread 23455432
I get the same error with id removed from those methods. IllegalArgumentException occurred calling getter of org.appfuse.model.Person.id; nested exception is org.hibernate.PropertyAccessException: IllegalArgumentException occurred calling getter of org.appfuse.model.Person.id Could it be that

Re: [appfuse-user] IllegatlArgumentException with hibernate

2007-03-01 Thread Matt Raible
If you remove id from your equals, toString() and hashCode() methods, does that solve anything? Matt On 3/2/07, 23455432 <[EMAIL PROTECTED]> wrote: Here it is. I am sorry if I happened to ignore any code posting rules. I am not aware of any as of now package org.appfuse.model; import jav

Re: [appfuse-user] IllegatlArgumentException with hibernate

2007-03-01 Thread 23455432
Here it is. I am sorry if I happened to ignore any code posting rules. I am not aware of any as of now package org.appfuse.model; import java.io.Serializable; import java.util.List; import org.apache.commons.lang.builder.CompareToBuilder; import org.apache.commons.lang.builder.EqualsBuilder

Re: [appfuse-user] IllegatlArgumentException with hibernate

2007-03-01 Thread Matt Raible
Can you post your Person.java? On 3/1/07, 23455432 <[EMAIL PROTECTED]> wrote: I have the following setup: User has one to many calls, user has many to many roles, user has one to many persons, call has many to many persons I am trying to model the call to person (many to many) the same way a

[appfuse-user] IllegatlArgumentException with hibernate

2007-03-01 Thread 23455432
I have the following setup: User has one to many calls, user has many to many roles, user has one to many persons, call has many to many persons I am trying to model the call to person (many to many) the same way as the user to roles. When I create a new call object and try to save it I ge

[appfuse-user] different problems with 1.0-m4-SNAPSHOT

2007-03-01 Thread Christopher Mason
I'm extremely new to AppFuse. I'm having problems getting the quick start instructions to work for the modular archetype. I'm using 1.0-m4-SNAPSHOT (which is really AppFuse 2.0, right? why the differing version numbers?) and h2. The most relevant error messages are immediately below, follow

Re: [appfuse-user] Tomcat 6.0.10

2007-03-01 Thread Matt Raible
That's certainly a reasonable suggestion - I'm just trying to circumvent the "this doesn't work on the latest and greatest version" issues. I'm fine with remaining on 5.5.17, I just wish there was a way to exclude/include a dependency in a profile. If anyone knows how to do this, we can add a pr

Re: [appfuse-user] Appfuse 2.0 Latest

2007-03-01 Thread Matt Raible
The wiki has a QuickStart Guide that should help you out. http://appfuse.org/display/APF/AppFuse+QuickStart You might want to use 1.0-m4-SNAPSHOT for the version as we've fixed quite a few things since the last release. I hope to push out an M4 release in the next 24 hours. Unfortunately, this

Re: [appfuse-user] Tomcat 6.0.10

2007-03-01 Thread Tim Azzopardi
-1 from me, too much change. With appfuse2 release there will inevitablably be plenty of problems to overcome. More variables in the equation makes it harder to work out what is going wrong. Surely sticking to as many knows as possible until after appfuse2 is released and settled would be sensib

[appfuse-user] Appfuse 2.0 Latest

2007-03-01 Thread Doug Pham
I have not followed the list for a while. Where can I get the latest snapshot of appfuse 2.0? Thanks, Doug - Be a PS3 game guru. Get your game face on with the latest PS3 news and previews at Yahoo! Games.

Re: [appfuse-user] error in downloading version 2.0-m4-SNAPSHOT

2007-03-01 Thread Matt Raible
Are you behind a proxy server? On 3/1/07, sxm <[EMAIL PROTECTED]> wrote: Tried that too, didnt work. I just upgraded from 2.0.4 to 2.0.5 and from java 1.5 to java 1.6. I dont believe that should have anything to do with this. -Shailesh melinate wrote: > > I believe Matt said that the curren

Re: [appfuse-user] error in downloading version 2.0-m4-SNAPSHOT

2007-03-01 Thread sxm
java 1.6 was the culprit, as soon as moved to 1.5.0.10, things became better again. -Shailesh sxm wrote: > > Tried that too, didnt work. I just upgraded from 2.0.4 to 2.0.5 and from > java 1.5 to java 1.6. I dont believe that should have anything to do with > this. > > -Shailesh > > > meli

Re: [appfuse-user] error in downloading version 2.0-m4-SNAPSHOT

2007-03-01 Thread sxm
Tried that too, didnt work. I just upgraded from 2.0.4 to 2.0.5 and from java 1.5 to java 1.6. I dont believe that should have anything to do with this. -Shailesh melinate wrote: > > I believe Matt said that the current snapshot version [what will be M4] > is "1.0-m3-SNAPSHOT" > > Try that a

Re: [appfuse-user] error in downloading version 2.0-m4-SNAPSHOT

2007-03-01 Thread sxm
What characters. Could u pl send me the command line. My Feeling is that its pointing to wrong repository. -Shailesh mraible wrote: > > The version is correct but it looks like you have some extra > characters in the version value. > > Matt > > > On 3/1/07, Nathan Anderson <[EMAIL PROTEC

Re: [appfuse-user] error in downloading version 2.0-m4-SNAPSHOT

2007-03-01 Thread Matt Raible
The version is correct but it looks like you have some extra characters in the version value. Matt On 3/1/07, Nathan Anderson <[EMAIL PROTECTED]> wrote: I believe Matt said that the current snapshot version [what will be M4] is "1.0-m3-SNAPSHOT" Try that and see if it fixes the problem... Na

Re: [appfuse-user] error in downloading version 2.0-m4-SNAPSHOT

2007-03-01 Thread Nathan Anderson
I believe Matt said that the current snapshot version [what will be M4] is "1.0-m3-SNAPSHOT" Try that and see if it fixes the problem... Nathan sxm wrote: I tried to use the latest snapshot of m4 but got error. Do I have to change my settings.xml? Command C:\Flex\appfuse> mvn archetype:crea

[appfuse-user] error in downloading version 2.0-m4-SNAPSHOT

2007-03-01 Thread sxm
I tried to use the latest snapshot of m4 but got error. Do I have to change my settings.xml? Command C:\Flex\appfuse> mvn archetype:create -DarchetypeGroupId=org.appfuse -DarchetypeArtifactId=appfuse-modular-spring -DremoteRepositories=http://static.appfuse.org/repository -DarchetypeVersion=1.0-m

Re: [appfuse-user] Date Handling in Spring MVC

2007-03-01 Thread Philip Barlow
Hi Michael/Matt, I implemented the initBuilder method as detailed below and my test case now passes but when i try to save the date through the web interface in the format i specified (MM/dd/) i get a hibernate JDBC exception. It is a problem with the date field being truncated! Anyone see

Re: [appfuse-user] Tomcat 6.0.10

2007-03-01 Thread Nathan Anderson
Bleeding edge baby!.. +1 make it work for the latest/greatest stuff. [Although I don't think Ubuntu has a Tomcat6 package yet ;) ] Matt Raible wrote: All, I've done some testing with Tomcat 6.0.10 and AppFuse 2.0. Everything works fine, including Cargo, but it does have some issues with JSF.

Re: [appfuse-user] Time Handling in Spring

2007-03-01 Thread J. David Mendoza
Save the hole date and just display the hh:MM in the JSP with a formatter (java.util.SimpleDateFormat) David M. hquinn wrote: Greetings everyone! I have a very simple question... how does hibernate & spring handle a time property?? In my pojo I have a time property called "hour" which is type

[appfuse-user] Tomcat 6.0.10

2007-03-01 Thread Matt Raible
All, I've done some testing with Tomcat 6.0.10 and AppFuse 2.0. Everything works fine, including Cargo, but it does have some issues with JSF. The solution seems to be removing the el-api dependency. Does anyone see a problem with making Tomcat 6 the default? For those that want to deploy a JS

[appfuse-user] Time Handling in Spring

2007-03-01 Thread hquinn
Greetings everyone! I have a very simple question... how does hibernate & spring handle a time property?? In my pojo I have a time property called "hour" which is type Date... how can I save just the time ("HH:ss") with hibernate and display just the time in the JSP?? Any ideas... thanx Hazel Q.

Re: [appfuse-user] Why is userCache in userManager and UserSecurityAdvice?

2007-03-01 Thread Matt Raible
The userCache is not injected into UserManager, only UserSecurityAdvice. It's also used by Acegi and basically maintains a cache of the users. UserSecurityAdvice uses it to expire cache items when a user is updated. Now that we use our own Dao (instead of Acegi's), it may be possible to remove

Re: [appfuse-user] Date Handling in Spring MVC

2007-03-01 Thread Philip Barlow
Thanks Matt Matt Raible wrote: This may help: http://www.jroller.com/page/raible?entry=validating_dates_with_commons_validator Also, if you extend BaseFormController, there's already a registered binder for dates that takes the date.format as specified in ApplicationResources.properties. H

Re: [appfuse-user] Date Handling in Spring MVC

2007-03-01 Thread Matt Raible
This may help: http://www.jroller.com/page/raible?entry=validating_dates_with_commons_validator Also, if you extend BaseFormController, there's already a registered binder for dates that takes the date.format as specified in ApplicationResources.properties. HTH, Matt On 3/1/07, Philip Barlow

Re: [appfuse-user] Appfuse 2.0 country list

2007-03-01 Thread Matt Raible
This is a known issue, although I don't think there's an issue in JIRA. We can get all the locales from the JDK, but it doesn't have all the countries. Apparently, some countries share the same locale. Matt On 3/1/07, Fan <[EMAIL PROTECTED]> wrote: In the protected List buildCountryList(Local

Re: [appfuse-user] Appfuse 2.0 country list

2007-03-01 Thread Fan
In the protected List buildCountryList(Locale locale) of CountryTag, it has the following code to get the locale final Locale[] available = Locale.getAvailableLocales(); how could I know my locale setting in my machine then ? Because it does not contain Malaysia in the country list mraible wr

[appfuse-user] Why is userCache in userManager and UserSecurityAdvice?

2007-03-01 Thread tonyl
I haven't been able to find any clear explanations of the userCache - what it is, why use it, etc. And I really don't understand the purpose of having a userCache in 2 places. What's going on? Thanks, Tony -- View this message in context: http://www.nabble.com/Why-is-userCache-in-userManager-

[appfuse-user] maven goals issue and intelliJ IDEA 6

2007-03-01 Thread kace
Hi I am using jsf-basic M3 and although the maven goals work using the command line when I try them in IntelliJ IDEA it seems to hang at a certain point. I am using Idea-maven-plugin. Ive set M2_HOME to poin to the maven installation. If I run integration-test for the first time in IDEA (whe

[appfuse-user] generic converter

2007-03-01 Thread Benoit Moraillon
Hi everybody, 1) i'm using jsf converter in order to create a many-to-one relationship from for a lot of my pojo... Have you got an other solution ? (Generic Converter ?) 2) Is it correct to group my getAvailableXXX in one JSF SelectStore.java wich can be called from will be replaced by :

Re: [appfuse-user] Date Handling in Spring MVC

2007-03-01 Thread Philip Barlow
Thanks Michael, i'll have a go at that and post again if i need further assistance. Philip Michael Horwitz wrote: Hi Philip, On 3/1/07, *Philip Barlow* <[EMAIL PROTECTED] > wrote: Hi, I recently set up Appfuse 2.0M3 on my machine at home so i could play

Re: [appfuse-user] Date Handling in Spring MVC

2007-03-01 Thread Michael Horwitz
Hi Philip, On 3/1/07, Philip Barlow <[EMAIL PROTECTED]> wrote: Hi, I recently set up Appfuse 2.0M3 on my machine at home so i could play around with it a bit. Coming from a Struts background i decided to try out Spring MVC and so i downloaded and ran the Spring MVC Basic package. All is workin

[appfuse-user] Date Handling in Spring MVC

2007-03-01 Thread Philip Barlow
Hi, I recently set up Appfuse 2.0M3 on my machine at home so i could play around with it a bit. Coming from a Struts background i decided to try out Spring MVC and so i downloaded and ran the Spring MVC Basic package. All is working fine after following the excellent quickstart guide on the a