RE: [appfuse-user] DWR and Appfuse tutorial? Matt Can You pls look at the problem

2007-06-22 Thread Srini Bobbala
Hi Matt, I am using DWR, comes default with appfuse 1.94, In my JSP file, I included java script file which supposed to generated dynamically,

[appfuse-user] set default value to column using xdoclet

2007-06-22 Thread jithesh
hai, I am using appfuse 1.9x. i would like to give some default values to a particular column while generating the hibernate mapping files using xdoclet. Is it possible? if yes how can i do that? for example i have a column with name "zipcode" and i want to fill that column by some val

Re: [appfuse-user] Redirect Action doesn't like in Struts 2 archetype

2007-06-22 Thread Michael Horwitz
You can add multiple resource sections in your pom. The trick is that you want the struts.xml in a resource (so that it gets copied) but one with the filter parameter turned off. As an example (this is untested, so might need a bit of tweaking): src/main/resourc

Re: [appfuse-user] DWR and Appfuse tutorial? Matt Can You pls look at the problem

2007-06-22 Thread Michael Horwitz
I think the easiest way to view the Javascript would be to set yourself up with FireFox and the FireBug debugger. Navigate to the page, fire up the debugger, and you should be able to see and browse the script. More details on how to set up FireFox with FireBug can be found here: http://www.appfus

Re: [appfuse-user] DWR and Appfuse tutorial? Matt Can You pls look at the problem

2007-06-22 Thread Matt Raible
You should also be able to go to http://localhost:8080/yourapp/dwr and see a screen that will allow you to manually invoke methods on DWR-exposed beans. Matt On 6/22/07, Michael Horwitz <[EMAIL PROTECTED]> wrote: I think the easiest way to view the Javascript would be to set yourself up with Fi

[appfuse-user] security.xml

2007-06-22 Thread tibi
with a fresh 2.0m5 i can't add a role to the security.xml like i used to do in 2.0m4 i tried to add myRole: class="org.acegisecurity.intercept.web.FilterSecurityInterceptor"> PATTERN_TYPE_APACHE_ANT /activeUsers.*=ROLE_ADMI

Re: [appfuse-user] security.xml

2007-06-22 Thread Matt Raible
If you add a new role, it needs to be prefixed with ROLE_ - so ROLE_myRole should work. We changed the RoleVoter from using a "" prefix to using the default "ROLE_". Matt On 6/22/07, tibi <[EMAIL PROTECTED]> wrote: with a fresh 2.0m5 i can't add a role to the security.xml like i used to do in 2

Re: [appfuse-user] security.xml

2007-06-22 Thread Matt Raible
Thanks for adding that note - more documentation is never a bad thing. ;-) Matt On 6/22/07, tibi <[EMAIL PROTECTED]> wrote: that works. if you don;'t mind i added an info about changeing your own roles: http://appfuse.org/display/APF/Release+Notes+2.0+M5 tibi Matt Raible wrote: > If you add

Re: [appfuse-user] security.xml

2007-06-22 Thread tibi
that works. if you don;'t mind i added an info about changeing your own roles: http://appfuse.org/display/APF/Release+Notes+2.0+M5 tibi Matt Raible wrote: If you add a new role, it needs to be prefixed with ROLE_ - so ROLE_myRole should work. We changed the RoleVoter from using a "" prefix to

Re: [appfuse-user] Email

2007-06-22 Thread Matt Raible
Here's an example of calling that method: // Send an account information e-mail mailMessage.setSubject(getText("signup.email.subject")); sendUserMessage(user, getText("newuser.email.message", args), RequestUtil.getAppURL(

[appfuse-user] Email

2007-06-22 Thread Martin Ravell
Can someone help me with the configuration requirements for an Action (2m5 Struts 2) so that I can send an email? I'm assuming that I can use the sendUserMessage method in the BaseAction class but have a strong suspicion that I need some wiring (Spring?). I've not found any mention of this on th

Re: [appfuse-user] upgrade m4 to m5

2007-06-22 Thread Matt Raible
Did you important AppFuse source into your code? If not, it looks like you're still depending on an M4 dependency somewhere. Maybe you need to run "mvn clean" first? Matt On 6/22/07, tibi <[EMAIL PROTECTED]> wrote: ok my applications seems to work fine. but when running mvn integration-test i

Re: [appfuse-user] upgrade m4 to m5

2007-06-22 Thread tibi
no source code into my project and i did a mvn clean which jar could be the problem?? tibi Matt Raible wrote: Did you important AppFuse source into your code? If not, it looks like you're still depending on an M4 dependency somewhere. Maybe you need to run "mvn clean" first? Matt On 6/2

[appfuse-user] RE: Email

2007-06-22 Thread Martin Ravell
Am I correct in thinking that I just needed to add these lines into my applicationContext.xml like so: Damn thing gives me an exception like this (but doesn't really tell me what is going on: 2007-06-22 22:07:18.027::W

Re: [appfuse-user] upgrade m4 to m5

2007-06-22 Thread Matt Raible
appfuse-service.jar - look in your target/app/WEB-INF/lib after running "mvn package" to see what version of the JAR is in there. Matt On 6/22/07, tibi <[EMAIL PROTECTED]> wrote: no source code into my project and i did a mvn clean which jar could be the problem?? tibi Matt Raible wrote:

Re: [appfuse-user] RE: Email

2007-06-22 Thread Matt Raible
The problem is at: com.rave.chester.webapp.action.PlayAction.save(PlayAction.java:168) Did you add setters for the variables you're trying to use? Matt On 6/22/07, Martin Ravell <[EMAIL PROTECTED]> wrote: Am I correct in thinking that I just needed to add these lines into my applicationContex

Re: [appfuse-user] upgrade m4 to m5

2007-06-22 Thread tibi
i have a appfuse-service-2.0-m5.jar file. that looks good. when i run mvn jetty:run signup gives (as expected) the same error... -- side track: org.appfuse maven-warpath-plugin

Re: [appfuse-user] upgrade m4 to m5

2007-06-22 Thread tibi
ok my applications seems to work fine. but when running mvn integration-test i still have this error: and signup will not work: Signup: [INFO] [talledLocalContainer] [topnet] ERROR [http-8081-Processor22] [default].invoke(250) | Servlet.service() for servlet default threw exception [INFO] [ta

Re: [appfuse-user] upgrade m4 to m5

2007-06-22 Thread tibi
don't understand it. when i comapere the lib dir between a fresh m5 and my upgrade i notice this dif: commons_lang2.3 ipv 2.1 ehcach and jsr173_api are different tibi tibi wrote: i have a appfuse-service-2.0-m5.jar file. that looks good. when i run mvn jetty:run signup gives (as expected) t

Re: [appfuse-user] upgrade m4 to m5

2007-06-22 Thread Matt Raible
It may be a bug, but I was successful in upgrading the appfuse-demo projects from m4 to m5. I'd blame the following change, but I haven't had any issues with it myself: http://appfuse.org/display/APF/Release+Notes+2.0+M5#ReleaseNotes2.0M5-manageranddaousage Matt On 6/22/07, tibi <[EMAIL PROTEC

Re: [appfuse-user] upgrade m4 to m5

2007-06-22 Thread tibi
but it is strange. because it should all be in the jars. my own code will not have anything to do with it. what can be the diff between a fresh install and an update? tibi Matt Raible wrote: It may be a bug, but I was successful in upgrading the appfuse-demo projects from m4 to m5. I'd blame

Re: [appfuse-user] upgrade m4 to m5

2007-06-22 Thread Matt Raible
There shouldn't be any difference - does it work for a fresh install? If so, there's probably still something somewhere that's referring to the old JARs. At least that's the only thing I can think of. Matt On 6/22/07, tibi <[EMAIL PROTECTED]> wrote: but it is strange. because it should all be

Re: [appfuse-user] upgrade m4 to m5

2007-06-22 Thread tibi
or could it be some kind of config files somewhere?? tibi Matt Raible wrote: There shouldn't be any difference - does it work for a fresh install? If so, there's probably still something somewhere that's referring to the old JARs. At least that's the only thing I can think of. Matt On 6/22/0

Re: [appfuse-user] upgrade m4 to m5

2007-06-22 Thread Matt Raible
Possibly - I'd search through all your *.xml files and look for m4 and change it to m5. Matt On 6/22/07, tibi <[EMAIL PROTECTED]> wrote: or could it be some kind of config files somewhere?? tibi Matt Raible wrote: > There shouldn't be any difference - does it work for a fresh install? > If so

Re: [appfuse-user] upgrade m4 to m5

2007-06-22 Thread Matt Raible
You could also try m5-SNAPSHOT to see if it's a bug in m5. On 6/22/07, Matt Raible <[EMAIL PROTECTED]> wrote: Possibly - I'd search through all your *.xml files and look for m4 and change it to m5. Matt On 6/22/07, tibi <[EMAIL PROTECTED]> wrote: > or could it be some kind of config files some

Re: [appfuse-user] upgrade m4 to m5

2007-06-22 Thread tibi
only find old poms with m4 in my META-INF tibi Matt Raible wrote: Possibly - I'd search through all your *.xml files and look for m4 and change it to m5. Matt On 6/22/07, tibi <[EMAIL PROTECTED]> wrote: or could it be some kind of config files somewhere?? tibi Matt Raible wrote: > There s

Re: [appfuse-user] upgrade m4 to m5

2007-06-22 Thread tibi
how can it be that i get commons_lang2.1 instead of 2.3? i removed the signin test to check for the other tests. this is the next test that fails: SearchUser: [INFO] [talledLocalContainer] [topnet] ERROR [http-8081-Processor20] [jsp].invoke(723) | Servlet.service() for servlet jsp threw exce

Re: [appfuse-user] upgrade m4 to m5

2007-06-22 Thread tibi
have no clue need. will copy my upgraded project step by step over my fresh m5 to see where things go wrongp and my arms hurt already.. tibi wrote: how can it be that i get commons_lang2.1 instead of 2.3? i removed the signin test to check for the other tests. this is the next test

RE: [appfuse-user] DWR and Appfuse tutorial? Matt Can You pls look at the problem

2007-06-22 Thread Srini Bobbala
Thanks matt, -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matt Raible Sent: 22 June 2007 12:40 PM To: [email protected] Subject: Re: [appfuse-user] DWR and Appfuse tutorial? Matt Can You pls look at the problem You should also be able to go

Re: [appfuse-user] upgrade m4 to m5

2007-06-22 Thread Michael Horwitz
Easier way is to run mvn with -X switch (debug) and pipe the output to a file: mvn -X install > build.log Open the file in a text editor and you should see where commons-lang 2.1 is comming from. In all likelihood there is a dependency you have added that is pulling it in and overriding the one

Re: [appfuse-user] upgrade m4 to m5

2007-06-22 Thread tibi
found one thing; the applicationContext-struts.xml needs to be updated as well updated the docs.. tibi Matt Raible wrote: On 6/22/07, Michael Horwitz <[EMAIL PROTECTED]> wrote: Easier way is to run mvn with -X switch (debug) and pipe the output to a file: mvn -X install > build.log

Re: [appfuse-user] upgrade m4 to m5

2007-06-22 Thread Matt Raible
On 6/22/07, Michael Horwitz <[EMAIL PROTECTED]> wrote: Easier way is to run mvn with -X switch (debug) and pipe the output to a file: mvn -X install > build.log Open the file in a text editor and you should see where commons-lang 2.1 is comming from. In all likelihood there is a dependency you

[appfuse-user] Cobertura and Maven Hibernate plugin

2007-06-22 Thread Jean-Eric Cuendet
Hi, I have the same issue as http://jira.codehaus.org/browse/MCOBERTURA-26 http://www.nabble.com/cobertura-conflicts-with-hibernate3-t3837112s2369.html To workaround that, I'd disable the hibernate plugin if we are running cobertura. In fact, the normal testing is working fine, calling hibernate

Re: [appfuse-user] upgrade m4 to m5

2007-06-22 Thread jtushman
> Has anyone else upgraded m4 to m5 successfully? I upgraded yesterday successfully. I run a springmvc appfuse app. Had a similar problem with my IDEA installation referring to the m4 jars, but mvn idea:idea, seem to clean that right up. I also was required to change the use of the Managers an

[appfuse-user] Unusual compilation error in 2.0M5

2007-06-22 Thread John Coleman
I'm trying out appfuse 2.0 m5 on my work machine (MacBook Pro) after successfully creating, compiling, and testing a struts-basic archetype on my home machine (Mac Pro). Both machines are essentially configured identically, but my work machine cannot compile the project (the difference is

Re: [appfuse-user] upgrade m4 to m5

2007-06-22 Thread tibi
ok good lesson for next time ;) allways compare mvn integration-test mvn jetty:run mvn jetty:run-war (this one would have worked i guess) somehow the: mvn war:inplace did not update the class files gr tibi tibi wrote: i think i have it... there were classes in my web-inf removed those

Re: [appfuse-user] upgrade m4 to m5

2007-06-22 Thread tibi
about the docs is the best thing to do 1. Backup your project on your local file system or (even better) in your source control system. 2. In pom.xml, change 2.0-m4 to 2.0-m5 3. run: rm -r src/main/webapp/WEB-INF/classes mvn war:inplace rm -r src/main/webapp/WEB-INF/lib rm src/ma

Re: [appfuse-user] Unusual compilation error in 2.0M5

2007-06-22 Thread John Coleman
Just for kicks I tried a new project with mvn 2.0.6. This is from integration-test after creating a straight up struts 2 basic (no code) : [INFO] [talledLocalContainer] [myproject] ERROR [http-8081- Processor24] [jsp].invoke(250) | Servlet.service() for servlet jsp threw exception [INFO] [ta

Re: [appfuse-user] upgrade m4 to m5

2007-06-22 Thread tibi
i think i have it... there were classes in my web-inf removed those and now it works... pff stupid and yes i will add a note to the docs ;) tibi jtushman wrote: Has anyone else upgraded m4 to m5 successfully? I upgraded yesterday successfully. I run a springmvc appfuse app. Had a simi

Re: [appfuse-user] Unusual compilation error in 2.0M5

2007-06-22 Thread Matt Raible
Do you see jstl listed as a dependency in your pom.xml? Matt On 6/22/07, John Coleman <[EMAIL PROTECTED]> wrote: Just for kicks I tried a new project with mvn 2.0.6. This is from integration-test after creating a straight up struts 2 basic (no code) : [INFO] [talledLocalContainer] [myproject]

Re: [appfuse-user] upgrade m4 to m5

2007-06-22 Thread Matt Raible
I would add a {warning} or {note} to the release notes that mentions if you've run "war:inplace", you may have to remove WEB-INF/classes to pick up the new web artifacts. Matt On 6/22/07, tibi <[EMAIL PROTECTED]> wrote: about the docs is the best thing to do 1. Backup your project on your l

Re: [appfuse-user] Unusual compilation error in 2.0M5

2007-06-22 Thread John Coleman
In the first case (app deployed but could not test and then would not compile after running appfuse:full-source), yes. On my second try, I do not, but I have to assume that's b/c I didn't run the appfuse:full- source phase. I should probably also mention that I have a number of AppFuse 1.9.

[appfuse-user] Sample-data.xml need to insert timestamp ?

2007-06-22 Thread Tuncay A.
Hi, I really really need a timestamp next to a date in sample-data.xml. Like this: 2007-06-15 10:00:00 2007-06-15 23:00:00 It only inserts date without timestamp, how can I persist a date with timestamp ? Thanks in advance. -- View this message in context: http://www.nabble.com/Sample-d

Re: [appfuse-user] Sample-data.xml need to insert timestamp ?

2007-06-22 Thread Dale Newfield
Tuncay A. wrote: how can I persist a date with timestamp ? You almost had it: -Dale - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [appfuse-user] Unusual compilation error in 2.0M5 SOLVED

2007-06-22 Thread John Coleman
Weird...so I got a wild hair to delete the jstl directory from my M2 repo : run-all-tests: [INFO] Executed tasks [INFO] [INFO] BUILD SUCCESSFUL [INFO] --

Re: [appfuse-user] Unusual compilation error in 2.0M5 SOLVED

2007-06-22 Thread Matt Raible
On 6/22/07, John Coleman <[EMAIL PROTECTED]> wrote: Weird...so I got a wild hair to delete the jstl directory from my M2 repo : run-all-tests: [INFO] Executed tasks [INFO] [INFO] BUILD SUCCESSFUL [INFO]

Re: [appfuse-user] Sample-data.xml need to insert timestamp ?

2007-06-22 Thread Tuncay A.
Hi, Thank you very much, but I can't get it to work ?? It still stores the date without timestamp ? I use appfuse 2.04 Is there any configuration setup ? DNewfield wrote: > > Tuncay A. wrote: >> how can I persist a date with timestamp ? > > You almost had it: > > > > > -Dale > > --

Re: [appfuse-user] Sample-data.xml need to insert timestamp ?

2007-06-22 Thread Dale Newfield
Tuncay A. wrote: Thank you very much, but I can't get it to work ?? It still stores the date without timestamp ? What is the type of the db column you're putting this information into? -Dale - To unsubscribe, e-mail: [EMAIL P

Re: [appfuse-user] Sample-data.xml need to insert timestamp ?

2007-06-22 Thread Tuncay A.
I use Oracle and field data type is: Date DNewfield wrote: > > Tuncay A. wrote: >> Thank you very much, but I can't get it to work ?? It still stores the >> date >> without timestamp ? > > What is the type of the db column you're putting this information into? > > -Dale > > -

Re: [appfuse-user] Sample-data.xml need to insert timestamp ?

2007-06-22 Thread Dale Newfield
Tuncay A. wrote: I use Oracle and field data type is: Date Then that field will only store date information. If you want it to store higher resolution, look into other types http://www.devx.com/dbzone/Article/30501 One gotcha I remember figuring out a few years back regarding oracle date t

Re: [appfuse-user] appfuse2 struts2 m5 error by add a new user

2007-06-22 Thread smithla
I am also getting this error even though maven has just dropped the tables and sequence and recreated them. I am using Oracle 9.2. The fix that worked for me is: 1) run "mvn appfuse:full-source 2) edit the User and Role java files as follows Add "import javax.persistence.SequenceGenerator

Re: [appfuse-user] Sample-data.xml need to insert timestamp ?

2007-06-22 Thread Tuncay A.
Ok, maybe I should use Timestamp ?? Thank you very much!! DNewfield wrote: > > Tuncay A. wrote: >> I use Oracle and field data type is: Date > > Then that field will only store date information. If you want it to > store higher resolution, look into other types > http://www.devx.com/dbzone