Re: [appfuse-user] lazy intialization problem

2009-09-16 Thread Anil Rawat
hi matt, i sorted out the problem as it was not of ram memory but of setting property lazy="false" in my .hbm.xml files in many places as it was done to get the associated records without doing extra wrok. So when the action was called the hibernate was executing all queries till the last hiearc

[appfuse-user] where are the DB settings specified for jetty:run?

2009-09-16 Thread measwel
When I just thought I had POM figured out reasonably well, I managed to destroy the data in my development DB by running jetty:run. Even though I have specified a seperate DB for the hibernate plugin, dbunit and the tests jetty:run still did run all tests on my development DB. I guess jetty overru

[appfuse-user] appfuse calendar

2009-09-16 Thread measwel
Does the appfuse calendar only produce a datepicker, or can it also show a monthly calendar fixed inside a JSP page? -- View this message in context: http://www.nabble.com/appfuse-calendar-tp25482803s2369p25482803.html Sent from the AppFuse - User mailing list archive at Nabble.com. --

[appfuse-user] how to test action method where user is determined from request

2009-09-16 Thread measwel
I have a method in my action wherin I determine the user from the request like: user = userManager.getUserByUsername(getRequest().getRemoteUser()); When testing this method, the test fails on the user being null; quite logical, as there is no request at test time. How should I implement the test,

Re: [appfuse-user] 1 db for testing 1 for development

2009-09-16 Thread measwel
I guess I can answer that one myself.. I will just make a profile for the test runs, specifying target DB. My main concern changing the db for the create and inserts to the test db and that is set now. So running mvn accidentally can do no harm to the data in my development db. -- View this messa

Re: [appfuse-user] 1 db for testing 1 for development

2009-09-16 Thread measwel
As always.. much obliged. I've changed the DB for hibernate and dbunit plugins, so the creates and inserts now run on a separate DB. The main reason is, that I wanted to use unsigned ID's in my development DB, while the tests typically use negative ID's. I know its kind of crazy to be paranoid abo

Re: [appfuse-user] PermGen Exception

2009-09-16 Thread Dale Newfield
tibi wrote: these work for me: export MAVEN_OPTS="-Xms556M -Xmx556M -XX:MaxPermSize=556M -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled" I see those are your MAVEN_OPTS, so they're only used while building, not for your web server, right? Do you know enough about those options to sug

Re: [appfuse-user] PermGen Exception

2009-09-16 Thread tibi
these work for me: export MAVEN_OPTS="-Xms556M -Xmx556M -XX:MaxPermSize=556M -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled" Matt Raible wrote: > Have you tried adjusting your JAVA_OPTS? If so, what do you have them > set to? > > On Wed, Sep 16, 2009 at 4:16 PM, ramzi khlil

Re: [appfuse-user] PermGen Exception

2009-09-16 Thread Matt Raible
Have you tried adjusting your JAVA_OPTS? If so, what do you have them set to? On Wed, Sep 16, 2009 at 4:16 PM, ramzi khlil wrote: > Hi Matt, > > I tried to deploy and undeploy appfuse several times, but after the third > one I got PermGen exception. > Some poeples suggest to increase the size of

[appfuse-user] PermGen Exception

2009-09-16 Thread ramzi khlil
Hi Matt, I tried to deploy and undeploy appfuse several times, but after the third one I got PermGen exception. Some poeples suggest to increase the size of PermGen to increase the number of cycle (dep/undep). It's good, but from what I read in this blog, http://blogs.sun.com/fkieviet/entry/how_to

Re: [appfuse-user] my tag

2009-09-16 Thread tibi
finally i seem to understand it by the help of a helping person ;) If ${jstlFoo} prints "FOO" then will test it tomorrow tibi tibi wrote: > for reference > > asked here: > > http://www.nabble.com/use-param-from-own-tag-in-struts-tag-td25477711.html > > > tibi wrote: > >> i was afraid

Re: [appfuse-user] my tag

2009-09-16 Thread tibi
for reference asked here: http://www.nabble.com/use-param-from-own-tag-in-struts-tag-td25477711.html tibi wrote: > i was afraid for that answer :( > > i will ask there. > > > > Matt Raible wrote: > >> I'm not sure of a solution, I'd try asking the Struts user mailing list. >> >> On Wed, Sep

Re: [appfuse-user] my tag

2009-09-16 Thread tibi
i was afraid for that answer :( i will ask there. Matt Raible wrote: > I'm not sure of a solution, I'd try asking the Struts user mailing list. > > On Wed, Sep 16, 2009 at 9:58 AM, tibi > wrote: > > and to be more precies it will print out: > > value="Bewaren"

Re: [appfuse-user] my tag

2009-09-16 Thread Matt Raible
I'm not sure of a solution, I'd try asking the Struts user mailing list. On Wed, Sep 16, 2009 at 9:58 AM, tibi wrote: > and to be more precies it will print out: > > value="Bewaren" class="buttonheading medium"/> > > so no method is printed... > > tibi > > tibi wrote: > > i call my tag with thi

Re: [appfuse-user] my tag

2009-09-16 Thread tibi
and to be more precies it will print out: so no method is printed... tibi tibi wrote: > i call my tag with this: > > > the text 'saveMnager' > must go into the s:sumbit tag in my own tag > > > <%@ include file="/common/taglibsForTags.jsp"%> > <%@ attribute name="saveMethod" %> > > ${saveM

Re: [appfuse-user] my tag

2009-09-16 Thread tibi
i call my tag with this: the text 'saveMnager' must go into the s:sumbit tag in my own tag <%@ include file="/common/taglibsForTags.jsp"%> <%@ attribute name="saveMethod" %> ${saveMethod} but nothing is there tibi the Matt Raible wrote: > I don't understand your question. Wh

Re: [appfuse-user] my tag

2009-09-16 Thread Matt Raible
I don't understand your question. What's the problem you're experiencing? On Wed, Sep 16, 2009 at 9:38 AM, tibi wrote: > hi list, > > for struts i create my own tag > > like this: > > <%@ include file="/common/taglibsForTags.jsp"%> > <%@ attribute name="saveMethod" %> > > method="%{saveMet

[appfuse-user] my tag

2009-09-16 Thread tibi
hi list, for struts i create my own tag like this: <%@ include file="/common/taglibsForTags.jsp"%> <%@ attribute name="saveMethod" %> this will not work because %{saveMehtod} will be empty when i try this i hit the security issue i keep on running into these issue's grrr

Re: [appfuse-user] Error Could not load AbstractTransactionalDataSourceSpringContextTests

2009-09-16 Thread Matt Raible
It looks like you might have one of your Action tests in src/main/java instead of src/main/test. On Wed, Sep 16, 2009 at 9:18 AM, Oscar Rodriguez wrote: > Hello people, I have next error in a Modular Struts 2 AppFuse Project. > I'm using Struts 2.1.6 > The project works from Eclipse and Jetty. >

[appfuse-user] Error Could not load AbstractTransactionalDataSourceSpringContextTests

2009-09-16 Thread Oscar Rodriguez
Hello people, I have next error in a Modular Struts 2 AppFuse Project. I'm using Struts 2.1.6 The project works from Eclipse and Jetty. But when I'm executing mvn in root project dir and i get this error: java.lang.Exception: Could not load org/springframework/test/AbstractTransactionalDataSourc

Re: [appfuse-user] 1 db for testing 1 for development

2009-09-16 Thread Matt Raible
On Wed, Sep 16, 2009 at 8:05 AM, measwel wrote: > > Yes, good call, this seems to be a problem with Netbeans 6.7. I am > reluctant > to upgrade as it once broke my other projects. I will return to it later. > > right now I want to fix pom execution. Lately I incidentally typed mvn at > command lin

Re: [appfuse-user] 1 db for testing 1 for development

2009-09-16 Thread measwel
Yes, good call, this seems to be a problem with Netbeans 6.7. I am reluctant to upgrade as it once broke my other projects. I will return to it later. right now I want to fix pom execution. Lately I incidentally typed mvn at command line and he started to install. Thankfully I have removed DROP p

Re: [appfuse-user] 1 db for testing 1 for development

2009-09-16 Thread tibi
could be run mvn eclipse:eclipse Matt Raible wrote: > If jetty is not reloading automatically for you, I suspect it's > because your IDE is not compiling your classes to target/classes when > you save them. > > On Wed, Sep 16, 2009 at 7:29 AM, tibi > wrote: > > jetty:run

Re: [appfuse-user] 1 db for testing 1 for development

2009-09-16 Thread Matt Raible
If jetty is not reloading automatically for you, I suspect it's because your IDE is not compiling your classes to target/classes when you save them. On Wed, Sep 16, 2009 at 7:29 AM, tibi wrote: > jetty:run will do that. > > i didn't do any thing apart from the stuff which is in the appfuse > qui

Re: [appfuse-user] 1 db for testing 1 for development

2009-09-16 Thread tibi
jetty:run will do that. i didn't do any thing apart from the stuff which is in the appfuse quickstart tibi measwel wrote: > In my case I have to restart jetty after a class change. I understand you > dont have to? How can I set this up? > -

Re: [appfuse-user] lazy intialization problem

2009-09-16 Thread Matt Raible
What do you have your memory settings at? I generally recommend at least 256MB of RAM for Java applications. The JAVA_OPTS on appfuse.org (to run the demos) is set to: -Xms256M -Xmx256M -XX:PermSize=128m -XX:MaxPermSize=128m -Djava.awt.headless=true -XX:+CMSClassUnloadingEnabled -XX:+CMSPermGenSwe

Re: [appfuse-user] 1 db for testing 1 for development

2009-09-16 Thread measwel
In my case I have to restart jetty after a class change. I understand you dont have to? How can I set this up? -- View this message in context: http://www.nabble.com/1-db-for-testing-1-for-development-tp25418927s2369p25470446.html Sent from the AppFuse - User mailing list archive at Nabble.com.

Re: [appfuse-user] 1 db for testing 1 for development

2009-09-16 Thread tibi
look at your logging you will see reloaded messages tibi measwel wrote: > tibi, > > do you have to restart jetty:run after changing a class, or does it do hot > reload? > - To unsubscribe, e-mail: users-unsubscr...@appfuse.d

Re: [appfuse-user] 1 db for testing 1 for development

2009-09-16 Thread measwel
tibi, do you have to restart jetty:run after changing a class, or does it do hot reload? -- View this message in context: http://www.nabble.com/1-db-for-testing-1-for-development-tp25418927s2369p25470377.html Sent from the AppFuse - User mailing list archive at Nabble.com. ---