Re: [appfuse-user] Re: Managers For Nested objects

2007-04-06 Thread Richard G. Reyes
Thanks Ron. On 4/6/07, Ron Anderson <[EMAIL PROTECTED]> wrote: You don't need managers for each object unless you have business logic you want to add for the object that isn't handled by the generic manager. You should first try to use the generic managers and dao's then if you need add a mana

Re: [appfuse-user] hibernate3 and cobertura plugins not getting along

2007-04-06 Thread Rob van Oostrum
add this to your pom.xml (for a modular archetype use the pom in the core module): test !nodb and cut/paste the hibernate3-maven-plu

Re: [appfuse-user] fileupload Size greater than 2 GB ?

2007-04-06 Thread thrasher
The "int -> long" issue likely lives in many parts of the code, and in some third party libs as well. What is "-ve"? Have you considered creating a signed applet that acts as an "upload manager" on the client side. Many of the video-sharing websites use these for large files. Google has one, t

Re: [appfuse-user] fileupload Size greater than 2 GB ?

2007-04-06 Thread PSI
Yeah i did modified the file to use "long" instead!, but as i said later thread, i think it is browser issue, it some how sets content-length to -ve and then this error ! thanks PSI thrasher wrote: > > I wonder in the AppFuse code, or your code, uses an "int" to count the > number of bytes? 2^

Re: [appfuse-user] fileupload Size greater than 2 GB ?

2007-04-06 Thread thrasher
I wonder in the AppFuse code, or your code, uses an "int" to count the number of bytes? 2^32 = 4GB, unsigned. Signed it would be 2GB. Since int is "signed" in Java, could you be going "negative" in length? Use a long to get around it, if this is the problem. -Jason PSI wrote: > > Hi >

Re: [appfuse-user] fileupload Size greater than 2 GB ?

2007-04-06 Thread Nathan Anderson
I'm grasping at straws here... but have you tried a different browser then? Nathan PSI wrote: Strange thing is there is no log, I think this is an issue with browser content-length? maybe there is work-around to this... cause problem is i get immediately "page-not-found" error page on browser,

Re: [appfuse-user] fileupload Size greater than 2 GB ?

2007-04-06 Thread PSI
Strange thing is there is log, I think this is an issue with browser content-length? maybe there is work-around to this... cause problem is i get immediately "page-not-found" error page on browser, without hitting servlet at all! melinate wrote: > > Without seeing any logs, I would have to gue

Re: [appfuse-user] fileupload Size greater than 2 GB ?

2007-04-06 Thread Nathan Anderson
Without seeing any logs, I would have to guess it has something to do with an environment limitation. Filesystem perhaps? Nathan PSI wrote: Hi I am using appfuse 1.9.4, and the requirement is that i need to upload file of size @2.5 GB, everything works if file is 1.99GB but anything greater

[appfuse-user] hibernate config overwriting entity

2007-04-06 Thread tibi
i'm looking into overwriting the entity settings of the role object* i have changed the hibernate.cfg.xml to: and i made the role.hbm.xml: http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd";> hibernate

[appfuse-user] Missing Velocity Bit

2007-04-06 Thread Adam Sherman
I just created a new project: $ mvn archetype:create -DarchetypeGroupId=org.appfuse - DarchetypeArtifactId=appfuse-basic-jsf -DremoteRepositories=http:// static.appfuse.org/repository -DarchetypeVersion=2.0-m4 - DgroupId=com.versature.hellofuse -DartifactId=hellofuse Then ran the integration

[appfuse-user] nullpointer struts tag utils

2007-04-06 Thread tibi
hi i get this nullpointer. probably its a problem in struts2. the problem is that my user has no role attached ( a bug i'm working on). but the displaying of the error is not possible because this nullpointer happens. as matt ones told me this can be avoided if by removing: <%@ include file="

[appfuse-user] fileupload Size greater than 2 GB ?

2007-04-06 Thread PSI
Hi I am using appfuse 1.9.4, and the requirement is that i need to upload file of size @2.5 GB, everything works if file is 1.99GB but anything greater than 2 GB throws weird exception!. following is the setting in struts controller: Any idea why this is happening? Thanks, PSI -- View this

Re: [appfuse-user] database settings multi user

2007-04-06 Thread Nathan Anderson
The 1.9.x branch has a way to have system/user specific properties like database settings, but I believe it was tied closely to the way Ant works. I don't know if this functionality is in 2.0 yet, but I expect it will be if it isn't already [Matt, let me know if I should make a JIRA issue on t

Re: [appfuse-user] Chane default sql error messages

2007-04-06 Thread Nathan Anderson
I believe the way to do that is to catch the Exception and then output an i18n message. But since the Exception happens in the Model [DAO], you probably need to catch the exception in your Manager class and throw your own exception to the view layer. At least that would be the way to maintain

[appfuse-user] steps that appfuse is following to perform tests

2007-04-06 Thread Abdul Qayyum
Can you please give me an overview of how testing is achieved . Any similar link would be much of help. Some think like steps that appfuse is following to perform tests. thanks

[appfuse-user] urlrewrite problems

2007-04-06 Thread sarat.pediredla
Hi, I am just diving into URL rewrite as I want my app to have RoR style pretty URLS. I noticed there is an existing rule for users as below, ^/user/(.*).html$ /editUser.html\?username=$1 But when i type http://localhost:8080/user/tomcat.html , I get the following, http://

[appfuse-user] ClassNotFoundException:

2007-04-06 Thread Abdul Qayyum
from which directory does ant takes test classes for testing. I have compiled the tes classes and used this to copy them to test/data

Re: [appfuse-user] database table names

2007-04-06 Thread tibi
ok sory i only read your post i changed the database table names without any problem as long as you add things i expect everything will koop working. luckaly it there are tests ;) tibi nmall wrote: Hi, What if we want to change the column names in the table or add a few new column names

[appfuse-user] struts2-crud.mov jetty:run doesn't walk

2007-04-06 Thread thrasher
When running "mvn jetty:run" on a fresh AppFuse project (both Struts 2 basic, and modular) just like in the "struts2-crud.mov" demo, Jetty fails with this error: Cannot find class [org.appfuse.webapp.interceptor.UserRoleAuthorizationInterceptor] for bean with name 'adminInterceptor' defined in Se

Re: [appfuse-user] database table names

2007-04-06 Thread tibi
did you look at this guide?? http://appfuse.org/display/APF/AppFuse+Core+Classes tibi nmall wrote: Hi, What if we want to change the column names in the table or add a few new column names. I know we would need to change the Core classes that are based on these definitions. Is it possible to

Re: [appfuse-user] database table names

2007-04-06 Thread nmall
Hi, What if we want to change the column names in the table or add a few new column names. I know we would need to change the Core classes that are based on these definitions. Is it possible to do this w/o breaking anything else. Thanks for your help Niru mraible wrote: > > If you want to c

Re: [appfuse-user] database settings multi user

2007-04-06 Thread tibi
mmm is everyone working allone?? tibi tibi wrote: hi i have a project with two users, continuum and the life site. all four need different database settings. these settings are now in the pom file and i need to change them for each. is there a better way?? thanks tibi

Re: [appfuse-user] Re: Managers For Nested objects

2007-04-06 Thread Ron Anderson
You don't need managers for each object unless you have business logic you want to add for the object that isn't handled by the generic manager. You should first try to use the generic managers and dao's then if you need add a manager and/or dao for the object with most specialization required a

[appfuse-user]

2007-04-06 Thread Abdul Qayyum
Thanks for the link Matt, I still can't get what exactly we want to do with this If silect="true" is removed , the test gives error: cannot find. We did not define any package with name like dao-testcase or so then why is it used.

[appfuse-user] Test Failed : Incompatible magic value -272646673 in class file AddressDaoTest

2007-04-06 Thread Abdul Qayyum
I am writing test class for AddressDao . When I run the ant command ant test-dao the following exception has occurred [junit] Running AddressDaoTest [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec [junit] Testsuite: AddressDaoTest [junit] Tests run: 1, Failures: 0, Errors: 1, Tim

[appfuse-user] CRUD to handle multi line (Record)

2007-04-06 Thread James74
Hi, We have initiated our new project by extending AppFuse CRUD module with Model driven implementation (exposing Hibernate as Model in action class). It is working really well for us. Now we want to have following things implemented. I would appreciate your thoughts on implementing it. 1) We wa

Re: [appfuse-user] hibernate3 and cobertura plugins not getting along

2007-04-06 Thread sarat.pediredla
Rob, I am not too clued into maven but how do I do this? Rob van Oostrum-2 wrote: > > I worked around this by adding a profile to the pom and move the > hibernate3 and dbunit plugins into it. The profile deactivates when I > pass -Dnodb. So whenever I want to run the cobertura stuff I make it

Re: [appfuse-user] Many-to-Many Users/Roles

2007-04-06 Thread Luke McLean
Thanks for that, however all the examples I have seen specifically state NOT to do that from the non-owning side of the relationship, instead private Set users; @ManyToMany(mappedBy="roles") public Set getUsers(){ return users; } Perhaps if I cut and pasted my actual classes when I