[appfuse-user] NodeAction name conflict with appfuse?

2007-04-02 Thread wnqq
Environment: appfuse v2.0m4 + struts2 + hibernate (+ eclipse) I wrote a very simple action class (NodeAction.java) and it could not function properly unless I rename it to something else (such as Node2Action.java). Not sure should I configure anything in appfuse environment in order to get it wor

Re: [appfuse-user] Tutorials using JDBC

2007-04-02 Thread Matt Raible
On 4/2/07, Nathan Anderson <[EMAIL PROTECTED]> wrote: Changing persistence mechanisms is one of the features that Matt was working quite recently. You should probably take a look at this page: http://appfuse.org/display/APF/Persistence I'm guessing that iBATIS would be easier to work with th

Re: [appfuse-user] Tutorials using JDBC

2007-04-02 Thread Nathan Anderson
Changing persistence mechanisms is one of the features that Matt was working quite recently. You should probably take a look at this page: http://appfuse.org/display/APF/Persistence I'm guessing that iBATIS would be easier to work with than Hibernate if you wanted something easier to learn. B

[appfuse-user] Tutorials using JDBC

2007-04-02 Thread meanpenguin
Hi, I was wondering if a tutorial can be made using jdbc for persistence. That way, at least I can get going without learning Hibernate. Trying to learn so many tools all at the same time is really hard. (Just would like to defer as many subcomponents as possible until I learn the core) Thank

Re: [appfuse-user] Mysql 4.1

2007-04-02 Thread appfused
Thanks. I'm definitely on 5.0.5. I'll try a lower driver version and see if that fixes the problem. Any other thoghts? mraible wrote: > > 2.0 M4 uses 5.0.5, but previous version used 5.0.4. Regardless of what > we use, you have full control over the version in your pom.xml - look > for for you

Re: [appfuse-user] Mysql 4.1

2007-04-02 Thread Matt Raible
2.0 M4 uses 5.0.5, but previous version used 5.0.4. Regardless of what we use, you have full control over the version in your pom.xml - look for for your version #. Matt On 4/2/07, appfused <[EMAIL PROTECTED]> wrote: I thought appfuse comes with the 5.0.5 driver? I'm relying on everything mav

Re: [appfuse-user] Mysql 4.1

2007-04-02 Thread appfused
I thought appfuse comes with the 5.0.5 driver? I'm relying on everything maven pulls down when i build the application Let me know if i'm missing something. mraible wrote: > > You might try upgrading to the 5.0.5 version of the MySQL JDBC Driver > (if you're not already using it). > > Matt >

Re: [appfuse-user] Mysql 4.1

2007-04-02 Thread Matt Raible
You might try upgrading to the 5.0.5 version of the MySQL JDBC Driver (if you're not already using it). Matt On 4/2/07, appfused <[EMAIL PROTECTED]> wrote: I just tried to install appfuse on a linux box that has tomcat 5,mysql4.1 however when it comes to do the dbunit task, it can't connect to

[appfuse-user] Mysql 4.1

2007-04-02 Thread appfused
I just tried to install appfuse on a linux box that has tomcat 5,mysql4.1 however when it comes to do the dbunit task, it can't connect to the database although the user name and password work from the command line. I use mysql -uusername -ppassword Any thoughts? should i be using a driver diff

Re: [appfuse-user] execute junit tests in eclipse

2007-04-02 Thread wnqq
Dear Matt, Thanks for the guidance. I haven't got any luck yet. Anyway, I will give it some more tries later. mraible wrote: > > You may need to turn off "build automatically" in Eclipse. It's > likely overriding your target/classes/jdbc.properties with the > unparsed one in src/main/resource

Re: [appfuse-user] execute junit tests in eclipse

2007-04-02 Thread Matt Raible
You may need to turn off "build automatically" in Eclipse. It's likely overriding your target/classes/jdbc.properties with the unparsed one in src/main/resources/jdbc.properties. Another option (which I haven't tried) is to make src/main/resources/jdbc.properties the source and modify pom.xml to

Re: [appfuse-user] execute junit tests in eclipse

2007-04-02 Thread wnqq
I tried "mvn clean compile" and refresh eclipse, but still got the "circular placeholder reference" errors. It looks like it has nothing to do with jdbc.properties. mraible wrote: > > You probably need to run "mvn compile" from the command line first - > so jdbc.properties gets copied to the ta

Re: [appfuse-user] Strange error at the end of jsf tutorial

2007-04-02 Thread Matt Raible
You might try comparing your code to the one in the tutorial. The bottom of the tutorial has a link to the Subversion repository where this tutorial's code is stored. Matt On 4/2/07, lk <[EMAIL PROTECTED]> wrote: Now I cannot anymore pass the PersonDaoTest. Here is the error in sure-reports/or

Re: [appfuse-user] Where is BasePageTestCase?

2007-04-02 Thread Matt Raible
The problem is likely caused by NetBeans not adding the warpath dependencies to you classpath. If you run "mvn package" and add target/warpath/*.jar to your project, it should fix the problem. Matt On 4/2/07, lk <[EMAIL PROTECTED]> wrote: Hi, I'm using Netbeans to build the tutorial Person e

Re: [appfuse-user] Strange error at the end of jsf tutorial

2007-04-02 Thread lk
Now I cannot anymore pass the PersonDaoTest. Here is the error in sure-reports/org.appfuse.tutorial.dao.PersonDaoTest.txt --- Test set: org.appfuse.tutorial.dao.PersonDaoTest --

[appfuse-user] Where is BasePageTestCase?

2007-04-02 Thread lk
Hi, I'm using Netbeans to build the tutorial Person example, but when I try to write the PersonListTest I get this error: cannot find symbol symbol: class BasePageTestCase I'm newbie to Netbeans, but I found that that class (BasePageTestCase) is present in myproject-1.0-SNAPSHOT/WEB-INF/cl

Re: [appfuse-user] error integeration test

2007-04-02 Thread tibi
strange seems to have been a broken download. deleted the zip file and after a new download all works great! tibi tibi wrote: zip seems to be corrupt... tibi tibi wrote: i started a new project did: mvn archetype:create -DarchetypeGroupId=org.appfuse -DarchetypeArtifactId=appfuse-basic-st

Re: [appfuse-user] error integeration test

2007-04-02 Thread tibi
zip seems to be corrupt... tibi tibi wrote: i started a new project did: mvn archetype:create -DarchetypeGroupId=org.appfuse -DarchetypeArtifactId=appfuse-basic-struts -DremoteRepositories=http://static.appfuse.org/repository -DarchetypeVersion=2.0-m4 -DgroupId=nl.foo.bla -DartifactId=bla

[appfuse-user] error integeration test

2007-04-02 Thread tibi
i started a new project did: mvn archetype:create -DarchetypeGroupId=org.appfuse -DarchetypeArtifactId=appfuse-basic-struts -DremoteRepositories=http://static.appfuse.org/repository -DarchetypeVersion=2.0-m4 -DgroupId=nl.foo.bla -DartifactId=bla and did a cd bla and did a mvn integration-tes

Re: [appfuse-user] dynamic roles

2007-04-02 Thread tibi
cool thanks for the info!! (and fast a real plus for appfuse) ciao tibi Matt Raible wrote: Acegi's default implementation uses XML, but you could probably write your own FilterSecurityInterceptor that reads the configuration from a database. http://63.246.29.165/multiproject/acegi-security/xr

Re: [appfuse-user] dynamic roles

2007-04-02 Thread Matt Raible
Acegi's default implementation uses XML, but you could probably write your own FilterSecurityInterceptor that reads the configuration from a database. http://63.246.29.165/multiproject/acegi-security/xref/org/acegisecurity/intercept/web/FilterSecurityInterceptor.html After you've written your cl

[appfuse-user] dynamic roles

2007-04-02 Thread tibi
when using struts 2 with appfuse 2 is it posible to have dynamic roles. that an administrator can dynamicaly give access to pages or function to a role? or is it always hard coded in the xml files?? thanks tibi - To unsubsc

Re: [appfuse-user] execute junit tests in eclipse

2007-04-02 Thread Matt Raible
You probably need to run "mvn compile" from the command line first - so jdbc.properties gets copied to the target directory and its values get replaced. Matt On 4/2/07, wnqq <[EMAIL PROTECTED]> wrote: Have anyone successfully executed junit tests in eclipse? My environment: * Appfuse v2.0M4 +

Re: [appfuse-user] java.lang.IllegalArgumentException: MessageSource is required

2007-04-02 Thread Matt Raible
Why are you manually instantiating a new view? Can you just do something like: return new ModelAndView(view); ? Matt On 4/2/07, pguillard <[EMAIL PROTECTED]> wrote: Hi, I've just installed appfuse-springmvc-1.9.4, and i'm a newbie. As soon as i write my own controller and define explicitly

Re: [appfuse-user] Strange error at the end of jsf tutorial

2007-04-02 Thread Matt Raible
We need to know the error in order to help you. What happens if you run "mvn test -Dsurefire.useFile=false"? Matt On 4/2/07, lk <[EMAIL PROTECTED]> wrote: Hi Matt, thanks for the answer. The problem happens when I try to deploy the application with the command mvn jetty:run-war. All the tes

[appfuse-user] how to enable HTTP digest authorization in appfuse?

2007-04-02 Thread thinkboy
hi sorry that i aware this may be more a acegi question. but I really hope someone here can help me too. pls guide me on how to setup Digest correctly in appfuse! pls advise I tried to setup my digestAuthorization and chellenge from my firefox 2.0, but failed my scenario: 1) firefox send reque

[appfuse-user] execute junit tests in eclipse

2007-04-02 Thread wnqq
Have anyone successfully executed junit tests in eclipse? My environment: * Appfuse v2.0M4 + struts + hibernate * eclipse v3.2.1 I can successfully run PersonManagerTest, however, I am unable to finish the tests of PersonDaoTest nor PersonActionTest. The steps I did are: right click on PersonDao

[appfuse-user] java.lang.IllegalArgumentException: MessageSource is required

2007-04-02 Thread pguillard
Hi, I've just installed appfuse-springmvc-1.9.4, and i'm a newbie. As soon as i write my own controller and define explicitly a view or model or both, for instance this: JstlView view = new JstlView(); view.setUrl("myview.jsp");//Just a hello jsp page return new ModelAndV

Re: [appfuse-user] Strange error at the end of jsf tutorial

2007-04-02 Thread lk
Hi Matt, thanks for the answer. The problem happens when I try to deploy the application with the command mvn jetty:run-war. All the test runs well, but something goes wrong when I deploy the app. I looked at the target/surefire-reports but I didn't find anything useful. The output of mvn j

Re: [appfuse-user] private Class persistentClass;

2007-04-02 Thread wnqq
Thank you for the clear explanations. Michael Horwitz wrote: > > Under Java 1.5 the Class class is generic. Using Class firmly declares > that the variable can only be populated with an instance of the class of > the > type being persisted, T. > > Mike. > > On 4/2/07, wnqq <[EMAIL PROTECTED]>

Re: [appfuse-user] private Class persistentClass;

2007-04-02 Thread Michael Horwitz
Under Java 1.5 the Class class is generic. Using Class firmly declares that the variable can only be populated with an instance of the class of the type being persisted, T. Mike. On 4/2/07, wnqq <[EMAIL PROTECTED]> wrote: In line 30 of GenericDaoHibernate.java (under data/hibernate/src/main/j