Re: [appfuse-user] Error when run mvn site command

2009-05-05 Thread Matt Raible
On Tue, May 5, 2009 at 9:28 PM, Kenny Ha wrote: > > > mraible wrote: > > > > I think you need more RAM. I'd suggest at least 2 GB for Java > development. > > My "slow" machine has 3 GB and I typically use the following JAVA_OPTS > > settings on my machines. > > > > -Xms512M -Xmx768M -XX:PermSize=

[appfuse-user] Error relating to Enums Persistence with Hibernate

2009-05-05 Thread Greenhorn2005
Hello all, I am trying to implement Enums using the code given as from website http://appfuse.org/display/APF/Java+5+Enums+Persistence+with+Hibernate But I found error which is given below. Invocation of init method failed; nested exception is org.hibernate.MappingException: Could

Re: [appfuse-user] Error when run mvn site command

2009-05-05 Thread Kenny Ha
mraible wrote: > > I think you need more RAM. I'd suggest at least 2 GB for Java development. > My "slow" machine has 3 GB and I typically use the following JAVA_OPTS > settings on my machines. > > -Xms512M -Xmx768M -XX:PermSize=256m -XX:MaxPermSize=512m > -Djava.awt.headless=true -XX:+CMSClass

Re: [appfuse-user] Error when run mvn site command

2009-05-05 Thread Matt Raible
I think you need more RAM. I'd suggest at least 2 GB for Java development. My "slow" machine has 3 GB and I typically use the following JAVA_OPTS settings on my machines. -Xms512M -Xmx768M -XX:PermSize=256m -XX:MaxPermSize=512m -Djava.awt.headless=true -XX:+CMSClassUnloadingEnabled -XX:+CMSPermGen

Re: [appfuse-user] Error when run mvn site command

2009-05-05 Thread DUSTIN PEARCE
What does it hang in? Which messages in the console last the longest before another pops up? On May 5, 2009, at 6:22 PM, Kenny Ha wrote: My hardware specifications are : Intel Core 2 Duo CPU 2.21 GHz, 1 GB Ram, Microsoft Windows Professional 2002 service pack 2 Is it ok?? mraible wrot

Re: [appfuse-user] Error when run mvn site command

2009-05-05 Thread Kenny Ha
My hardware specifications are : Intel Core 2 Duo CPU 2.21 GHz, 1 GB Ram, Microsoft Windows Professional 2002 service pack 2 Is it ok?? mraible wrote: > > I don't think anything is wrong except that you might have a slow machine. > What are your hardware specifications? > > Matt > > On Tue, M

Re: [appfuse-user] HelloWorld Tutorial Question

2009-05-05 Thread Matt Raible
I would try adding the block to your web.xml and see if that fixes the problem. Matt On Tue, May 5, 2009 at 2:32 PM, Marc StPierre wrote: > 1. Yes I have my action class in that package > > 2. That block is not in the web.xml file I am looking at, but there are > lots of web.xml files in the dir

Re: [appfuse-user] Failed to build AppFuse 2.1-SNAPSHOT

2009-05-05 Thread Matt Raible
I was unable to reproduce this issue on Windows. On Tue, May 5, 2009 at 8:49 AM, Matt Raible wrote: > I will try to reproduce on Windows today. I don't believe the changes you > made are necessary. > > > On Tue, May 5, 2009 at 1:15 AM, George Wei wrote: > >> >> Matt, >> >> I modified /appfuse/a

Re: [appfuse-user] Request CSSTHEME

2009-05-05 Thread Matt Raible
Unfortunately, this theme has not been ported to an official AppFuse theme. If you're familiar with CSS and the CSS Framework, I don't believe it would be that difficult to do. On Tue, May 5, 2009 at 2:26 PM, Ricardo wrote: > I have a resquest about current AppFuse css style. I'd like to use >

[appfuse-user] Request CSSTHEME

2009-05-05 Thread Ricardo
I have a resquest about current AppFuse css style. I'd like to use "madeyourcss" style. Where can I get the necessary resources and will it work if I copy the files in the directory and replace the "csstheme" in web.xml. Thank you in advance. It is not the first time you hear this, but I wanted

Re: [appfuse-user] HelloWorld Tutorial Question

2009-05-05 Thread Marc StPierre
1. Yes I have my action class in that package 2. That block is not in the web.xml file I am looking at, but there are lots of web.xml files in the directory so maybe I am looking at the wrong one. I am looking at \src\main\webapp\WEB-INF\web.xml contents of file below - To my knowledge I never

Re: [appfuse-user] HelloWorld Tutorial Question

2009-05-05 Thread Matt Raible
It looks like the value is present in web.xml: struts org.apache.struts2.dispatcher.FilterDispatcher actionPackages com.mycompany.app.webapp.action Are you creating your HelloWorldAction in this package? On Tue, May 5, 2009 at 2:15 PM,

Re: [appfuse-user] HelloWorld Tutorial Question

2009-05-05 Thread Marc StPierre
This is what I ran today to get started. mvn archetype:create -DarchetypeGroupId=org.appfuse.archetypes -DarchetypeArtifactId=appfuse-basic-struts -DremoteRepositories=http://static.appfuse.org/releases -DarchetypeVersion=2.0.2 -DgroupId=com.mycompany.app -DartifactId=myproject >>> Matt Raible

Re: [appfuse-user] HelloWorld Tutorial Question

2009-05-05 Thread Matt Raible
What version of AppFuse are you using? The codebehind plugin should be configured in any 2.0.x archetype. http://struts.apache.org/2.0.11/docs/codebehind-plugin.html Matt On Tue, May 5, 2009 at 2:08 PM, Marc StPierre wrote: > No it doesn't appear so. > > >>> Matt Raible 5/5/2009 12:58 PM >>> >

Re: [appfuse-user] HelloWorld Tutorial Question

2009-05-05 Thread Marc StPierre
No it doesn't appear so. >>> Matt Raible 5/5/2009 12:58 PM >>> Do you have actionPackages defined in your web.xml? On Tue, May 5, 2009 at 1:42 PM, Marc StPierre wrote: > Matt, I was just wondering if I missed a step or something on the > HelloWorld Tutorial. I followed all the steps only I used

Re: [appfuse-user] HelloWorld Tutorial Question

2009-05-05 Thread Matt Raible
Do you have actionPackages defined in your web.xml? On Tue, May 5, 2009 at 1:42 PM, Marc StPierre wrote: > Matt, I was just wondering if I missed a step or something on the > HelloWorld Tutorial. I followed all the steps only I used eclipse, which > that was no problem. But when I went to run it

[appfuse-user] HelloWorld Tutorial Question

2009-05-05 Thread Marc StPierre
Matt, I was just wondering if I missed a step or something on the HelloWorld Tutorial. I followed all the steps only I used eclipse, which that was no problem. But when I went to run it I kept getting the following error: ERROR [btpool0-1] ActionComponent.executeAction(259) | Could not execute

Re: [appfuse-user] Adding new menu items

2009-05-05 Thread Bini MukundanVisalakshy
Thank you very much. It worked out. I used the condition in the header.jsp to add new menu that should display when logged as admin only.   It was really a quick reply.  Thanks again, Bini>>> Matt Raible 5/5/2009 11:09 AM >>> From menu.jsp: " class="current"> On Tue, May 5, 2009 at 12:03 PM, Bin

Re: [appfuse-user] Adding new menu items

2009-05-05 Thread Matt Raible
>From menu.jsp: " class="current"> On Tue, May 5, 2009 at 12:03 PM, Bini MukundanVisalakshy < bini.mukundanvisalak...@doj.ca.gov> wrote: > Do you know how I can determine if the current user is logged in? I > can't seem to find that variable if I google. > > ${isLoggedIn} or something similar

Re: [appfuse-user] Google app engine

2009-05-05 Thread Matt Raible
It's not so much about AppFuse, but more about the frameworks that it depends on. For example, they only support JPA as the persistence mechanism, so you'd have to use JPA. I do believe Spring works, so it's just a matter of whether your chosen web framework works. Here's a list of supported framew

Re: [appfuse-user] Adding new menu items

2009-05-05 Thread Bini MukundanVisalakshy
Do you know how I can determine if the current user is logged in?  I can't seem to find that variable if I google.   ${isLoggedIn} or something similar is what I'm looking for.  Does it exist?   Thanks>>> Matt Raible 5/5/2009 10:16 AM >>> Do you want them in the top-menu or in the side-menu? If

[appfuse-user] Google app engine

2009-05-05 Thread Ime Asangansi
Hi gang, Have you guys seen this? "With the announcementthat Google App Engine is now supporting Java as its second language, Google has significantly altered the face of web development." http://newfoo.net

[appfuse-user] How to Implement unauthenticated multithreaded access to database via web layer

2009-05-05 Thread Ime Asangansi
Hi appfuse gang, I have a design question to ask. I have an appfuse web app (basic-spring mvc-hibernate) which takes in form data from an external source like an external html form - external as it is not in my application. I would like to expose my web app to be able to process this. My app is

Re: [appfuse-user] Adding new menu items

2009-05-05 Thread Matt Raible
Do you want them in the top-menu or in the side-menu? If you want them in either of these, you should modify menu-config.xml. However, if you only want a particular menu to show on that page, I'd 1) create links and show them on the page as a new menu (outside of Struts Menu) or 2) modify menu.jsp

[appfuse-user] Adding new menu items

2009-05-05 Thread Bini MukundanVisalakshy
  I need to add 2 menuitems which i required on view users page only. How can i add meuitems which should display on 1-2 pages  only? I am using,   Appfuse2.0 Struts 2 + Spring + Hibernate Thanks,   Bini CONFIDENTIALITY NOTICE: This communication with its contents may contain confide

Re: [appfuse-user] Handling MaxUploadSizeExceededException

2009-05-05 Thread Matt Raible
I don't know why your problem is occurring. It sounds like it should work. Matt On Tue, May 5, 2009 at 9:33 AM, Carlos Ortiz wrote: > Well, thanks. That is not what I want. > It is this what's happening? > > I try to upload a file. > The exception occurs and the Exception Resolver I implemented

Re: [appfuse-user] fresh project

2009-05-05 Thread Matt Raible
Yes, but we did it this way to make things simpler from a distribution perspective. http://issues.appfuse.org/browse/APF-478 In 2.1, we've moved it to src/test/java in the archetype. Matt On Tue, May 5, 2009 at 9:54 AM, Marian wrote: > Hello, > > When creating a fresh project (mvn archetype:c

[appfuse-user] fresh project

2009-05-05 Thread Marian
Hello, When creating a fresh project (mvn archetype:create -DarchetypeGroupId=org.appfuse.archetypes \ -DarchetypeArtifactId=appfuse-basic-struts \ -DarchetypeVersion=2.0.2...) there's a file BaseActionTestCase.java created in src/main/java/.../webapp/action folder; wouldn't be it more app

Re: [appfuse-user] Handling MaxUploadSizeExceededException

2009-05-05 Thread Carlos Ortiz
Well, thanks. That is not what I want. It is this what's happening? I try to upload a file. The exception occurs and the Exception Resolver I implemented that traps this one redirects to the page where the upload originated with a parameter in the URL indicating that file is too big. Everything he

Re: [appfuse-user] Hibernate JMX

2009-05-05 Thread Matt Raible
Thanks Marian! It'd be awesome if you could put this information in AppFuse's documentation. I'd suggest creating a child page under "Using Hibernate". http://appfuse.org/display/APF/Using+Hibernate Matt On Tue, May 5, 2009 at 4:15 AM, Marian wrote: > >If you can get it to work, we should pro

Re: [appfuse-user] Surefire report

2009-05-05 Thread Matt Raible
This seems like more of a Maven question than an AppFuse question - I'd suggest asking on the Maven user list. Nabble.com works well for that. On Tue, May 5, 2009 at 1:21 AM, Kenny Ha wrote: > > Hi all, > > I want to build a surefire report test unit and performance, so I config > surefire plugi

Re: [appfuse-user] Error when run mvn site command

2009-05-05 Thread Matt Raible
I don't think anything is wrong except that you might have a slow machine. What are your hardware specifications? Matt On Tue, May 5, 2009 at 1:04 AM, Kenny Ha wrote: > > I removed corbertura plugin in ,except depency corbertura in > hibernate plugin > It still run slowly, takes about 15 minut

Re: [appfuse-user] Failed to build AppFuse 2.1-SNAPSHOT

2009-05-05 Thread Matt Raible
I will try to reproduce on Windows today. I don't believe the changes you made are necessary. On Tue, May 5, 2009 at 1:15 AM, George Wei wrote: > > Matt, > > I modified /appfuse/archetypes/build.xml to make it working. I'm not sure > if > these modifications correct (I don't use JSF), so I attac

[appfuse-user] Hibernate JMX

2009-05-05 Thread Marian
>If you can get it to work, we should probably >create a page in the 2.x wiki. I've succeeded in a freshly new created project, by modifying the following two files: - src/main/resources/applicationContext-dao.xml - src/main/resources/hibernate.cfg.xml In the first file I've added (just before t

Re: [appfuse-user] [appfuse-users] Error when making two related tables by appfuse:gen

2009-05-05 Thread tibi
yes you can do it. but you need to add the getComunaList() method to your action. tibi Leonardo Castaño wrote: > can I do this ??? > Call a comunaList from Other pojo ?? > this is a good idea?? to show a list of selectItems? > > > > > id="comuna" required="true" styleClass="select"> > >

[appfuse-user] Surefire report

2009-05-05 Thread Kenny Ha
Hi all, I want to build a surefire report test unit and performance, so I config surefire plugin like this : [...] org.apache.maven.plugins maven-surefire-report-plugin unit ${project.build.directory}/surefire-r

Re: [appfuse-user] Failed to build AppFuse 2.1-SNAPSHOT

2009-05-05 Thread George Wei
Matt, I modified /appfuse/archetypes/build.xml to make it working. I'm not sure if these modifications correct (I don't use JSF), so I attach the diff file here for your reference. George http://www.nabble.com/file/p23382254/diff.txt diff.txt mraible wrote: > > Yes. In 2.1, all we store in th

Re: [appfuse-user] Error when run mvn site command

2009-05-05 Thread Kenny Ha
I removed corbertura plugin in ,except depency corbertura in hibernate plugin It still run slowly, takes about 15 minutes to build successfully Anything wrong?? mraible wrote: > > You could remove the code coverage (corbertura) plugin - I believe it > makes > everything run twice. > > On Sun,