[appfuse-user] Cannot add new .jsp page to appfuse 1.9.4

2007-08-09 Thread BruceLee
Team, I tried to add a new page web/user/register.jsp to my project based on appfuse 1.9.4. When I submit a form on localhost:8080/myprj/user/register.jsp, it redirect to login.jsp. If I login with an active user first, then I get error org.acegisecurity.userdetails.UsernameNotFoundException:

Re: [appfuse-user] .vm content changed in copy task

2007-08-09 Thread Matt Raible
I would change the target to exclude your particular file - that way it doesn't get messed up by Ant. Matt On 8/9/07, kkus <[EMAIL PROTECTED]> wrote: > > I put some Chinese in .vm file and these Chinese charaters become monster > ones after .vm file was copied to Tomcat folder. I checked build f

Re: [appfuse-user] problem setting up greybox in appfuse

2007-08-09 Thread climbingrose
I think you have to disable the script in global.js which runs when the page load because it interferes with greybox. On 8/10/07, thinkboy <[EMAIL PROTECTED]> wrote: > > > hi matt > even I remove all sitemesh decorator from my jsp. it still show error: > seems having error on something else. never

[appfuse-user] .vm content changed in copy task

2007-08-09 Thread kkus
I put some Chinese in .vm file and these Chinese charaters become monster ones after .vm file was copied to Tomcat folder. I checked build file of 1.9.4(Spring+Hibernate, XP SP2), only place involving in .vm file is as below.

[appfuse-user] Time picker JSF component

2007-08-09 Thread p7k
Hello, Does anyone know of a simple (or not so simple) time picker component available free out there? Time picker - a way to select hours and minutes and store the value as an integer of minutes or seconds. I'm reluctant to write my own components, although this would be a good opportunity to s

[appfuse-user] MessageFilter Display twice for action return "";

2007-08-09 Thread jimmy6
MessageFilter problem for display info message. If my managed bean's action return empty string. The info will be displayed twice. Is it because i am using facelets. Thus, i deleted . Facelet does not support remove. -- View this message in context: http://www.nabble.com/MessageFilter-Dis

Re: [appfuse-user] Hibernate polymorphism issues

2007-08-09 Thread p7k
Since, this post the problem has dissolved. I have not been able to replicate the problem again. I suspect that the issue was with inherited implementation of Serializable interface. p7k wrote: > > Dear users, > > I have a polymorphic situation: a Location (abstract) superclass > with Depo

[appfuse-user] Export list problem

2007-08-09 Thread arvinder
I am trying to port an existing struts/hibernate application to Appfuse 1.9.4. I have created a new 1.9.4 project, but instead of adding code from my app. to new appfuse project, I am doing it other way around as my existing project is not using annotations. In display tag usage I am observing fol

[appfuse-user] null null in active user fullname

2007-08-09 Thread acao
Hi, I am using AppFuse 2.0 M5 latest download. I am using JSF Basic with full source. I run the war application using mvn cargo:start on windows XP. After login as admin, when I view the active users, I see admin user is in the list which is correct. However the fullname of admin user is "null nul

Re: [appfuse-user] checkstyle and cobertura plugin

2007-08-09 Thread Developer Abe
I tried upgrading to alpha-2 with the following: org.codehaus.mojo hibernate3-maven-plugin 2.0-alpha-2 ... But "mvn site" still returned the same error. Then I tried changing the flag in the hibernate3-maven-plugin componentProperties.

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

2007-08-09 Thread Abel Muiño
When you use the "Maven > Update Source Folders", the http://m2eclipse.codehaus.org/ m2eclipse plugin bundled with http://candy4appfuse.sourceforge.net Candy tries to set the eclipse build path exactly as the maven classpath. You should review the eclipse Build Path for the project and make s

Re: [appfuse-user] checkstyle and cobertura plugin

2007-08-09 Thread Developer Abe
Thanks Matt. I will try both. Regards, Abe On 8/9/07, Matt Raible <[EMAIL PROTECTED]> wrote: > > You also might try upgrading the hibernate3-maven-plugin to version > 2.0-alpha-2. > > Matt > > On 8/9/07, Matt Raible <[EMAIL PROTECTED]> wrote: > > If you look at the hibernate3-maven-plugin, you

Re: [appfuse-user] checkstyle and cobertura plugin

2007-08-09 Thread Matt Raible
You also might try upgrading the hibernate3-maven-plugin to version 2.0-alpha-2. Matt On 8/9/07, Matt Raible <[EMAIL PROTECTED]> wrote: > If you look at the hibernate3-maven-plugin, you can change the > value to key off another parameter or simply change it to true in > order to not generate the

Re: [appfuse-user] checkstyle and cobertura plugin

2007-08-09 Thread Matt Raible
If you look at the hibernate3-maven-plugin, you can change the value to key off another parameter or simply change it to true in order to not generate the database tables. Matt On 8/9/07, Developer Abe <[EMAIL PROTECTED]> wrote: > Silly me. > > I was getting the Hibernate exception and was using

Re: [appfuse-user] checkstyle and cobertura plugin

2007-08-09 Thread Developer Abe
Silly me. I was getting the Hibernate exception and was using the -Dmaven.test.skip=true to get around it. But this leads to another question. when I run "mvn site" How do I get around the following (It looks like a chicken and egg problem). [INFO] Preparing hibernate3:hbm2ddl [WARNING] Remov

Re: [appfuse-user] Problem restarting webapp after change in watched files [in tutorial/archetype]

2007-08-09 Thread Matt Raible
I don't believe we need Xerces with Java 5 or Java 6. You might try running "mvn -X | mvn.log" and seeing which dependencies depend on it. Then exclude it from appfuse-webframework. If you find that works, we can make that change in the core. Matt On 8/9/07, jonlorusso <[EMAIL PROTECTED]> wrote:

Re: [appfuse-user] Problem restarting webapp after change in watched files [in tutorial/archetype]

2007-08-09 Thread jonlorusso
I could be wrong, but I believe this is related to: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6356487 jonlorusso wrote: > > Hi, > > I'm having trouble restarting the webapp after making a change in one > of the jetty watched files. In this case, I've made a inconsequential > change t

Re: [appfuse-user] checkstyle and cobertura plugin

2007-08-09 Thread Matt Raible
I don't believe you want to skip the tests to find out test coverage. ;-) On 8/9/07, Developer Abe <[EMAIL PROTECTED]> wrote: > I was wondering if any one else if having data in the reports generated by > checkstyle and cobertura. > > I generate the reports with > > mvn -Dmaven.test.skip=true site

Re: [appfuse-user] Correct way to override core behavior

2007-08-09 Thread Steve Jorgensen
Thanks Matt, That worked perfectly. The only additional step I had to do is remove the "Signup" test and remove "Signup" from run-all-tests in web-tests.xml, so the tests will still pass. Cheers, - Steve J. Matt Raible wrote: We should probably come up with some sort of Customization FAQ

[appfuse-user] checkstyle and cobertura plugin

2007-08-09 Thread Developer Abe
I was wondering if any one else if having data in the reports generated by checkstyle and cobertura. I generate the reports with mvn -Dmaven.test.skip=true site Regards, Abe

Re: [appfuse-user] Problem restarting webapp after change in watched files [in tutorial/archetype]

2007-08-09 Thread jonlorusso
Thanks! That worked. I don't know if it's a viable solution, but at least it's been narrowed down somewhat. --jon mraible wrote: > > You might try JDK 5 - I've seen some issues with Maven and JDK 6 in the > past. > > Matt > > On 8/9/07, jonlorusso <[EMAIL PROTECTED]> wrote: >> >> [EMAIL PR

Re: [appfuse-user] Problem restarting webapp after change in watched files [in tutorial/archetype]

2007-08-09 Thread Matt Raible
You might try JDK 5 - I've seen some issues with Maven and JDK 6 in the past. Matt On 8/9/07, jonlorusso <[EMAIL PROTECTED]> wrote: > > [EMAIL PROTECTED] ~/workspace/myproject > $ echo $CLASSPATH > > > [EMAIL PROTECTED] ~/workspace/myproject > $ mvn -version > Maven version: 2.0.7 > Java version:

Re: [appfuse-user] Problem restarting webapp after change in watched files [in tutorial/archetype]

2007-08-09 Thread jonlorusso
[EMAIL PROTECTED] ~/workspace/myproject $ echo $CLASSPATH [EMAIL PROTECTED] ~/workspace/myproject $ mvn -version Maven version: 2.0.7 Java version: 1.6.0_02 OS name: "windows vista" version: "6.0" arch: "x86" [EMAIL PROTECTED] ~/workspace/myproject $ ls -al /cygdrive/c/Program\ Files/Java/jdk1.

Re: [appfuse-user] Problem restarting webapp after change in watched files [in tutorial/archetype]

2007-08-09 Thread Matt Raible
On 8/9/07, jonlorusso <[EMAIL PROTECTED]> wrote: > > I deleted my maven settings.xml file (.m2/settings.xml) and > my local repository (.m2/repository), and tried again with M5. > > Same error. > > I am on Windows Vista. Well *that's* the problem then! Just kidding. ;-) It's probably a classpath

Re: [appfuse-user] Correct way to override core behavior

2007-08-09 Thread Matt Raible
We should probably come up with some sort of Customization FAQ to explain how to do these sorts of things. In the meantime, here's what you'll need to do: 1. Customize login.jsp to remove the signup link. 2. Modify faces-config.xml to remove the SignupForm managed bean. 3. Remove the signup.xhtml

Re: [appfuse-user] Problem restarting webapp after change in watched files [in tutorial/archetype]

2007-08-09 Thread jonlorusso
I deleted my maven settings.xml file (.m2/settings.xml) and my local repository (.m2/repository), and tried again with M5. Same error. I am on Windows Vista. --jon mraible wrote: > > I tried to reproduce with M5 and RC1-SNAPSHOT. Here's what I found: > > M5: > > 1. mvn archetype:create -D

[appfuse-user] Correct way to override core behavior

2007-08-09 Thread Steve Jorgensen
Hi all, I'm evaluating AppFuse 2.x (JSF) as the most likely framework to use for a new Web application I'll be building. One of the first things I'll need to do though, is change how new users are created, and I can't find anything by browsing the site to tell me how this should be done. Ba

Re: [appfuse-user] Problem restarting webapp after change in watched files [in tutorial/archetype]

2007-08-09 Thread Matt Raible
I tried to reproduce with M5 and RC1-SNAPSHOT. Here's what I found: M5: 1. mvn archetype:create -DarchetypeGroupId=org.appfuse -DarchetypeArtifactId=appfuse-basic-struts -DremoteRepositories=http://static.appfuse.org/repository -DarchetypeVersion=2.0-m5 -DgroupId=com.mycompany.app -DartifactId=my

[appfuse-user] Problem restarting webapp after change in watched files [in tutorial/archetype]

2007-08-09 Thread jonlorusso
Hi, I'm having trouble restarting the webapp after making a change in one of the jetty watched files. In this case, I've made a inconsequential change to pom.xml. I've replicated the behavior in the downloaded tutorial/archetype (archetypeArtifactId=appfuse-basic-struts). Stack trace is below.

Re: [appfuse-user] java.lang.NullPointerException on log4j

2007-08-09 Thread Matt Raible
I'd try installing Tomcat in a directory that doesn't have spaces in it. For example: c:\tools\apache-tomcat-5.5.17 Matt On 8/9/07, BruceLee <[EMAIL PROTECTED]> wrote: > > Yes. It happens always. Thank Matt for reply, > -Bruce > > > mraible wrote: > > > > Does this happen often? If you restart T

Re: [appfuse-user] java.lang.NullPointerException on log4j

2007-08-09 Thread BruceLee
Yes. It happens always. Thank Matt for reply, -Bruce mraible wrote: > > Does this happen often? If you restart Tomcat (stop/start), does it > happen. Can you reproduce the problem consistently? > > Thanks, > > Matt > > On 8/8/07, BruceLee <[EMAIL PROTECTED]> wrote: >> >> Team, >> When I star

Re: [appfuse-user] Disable Password Encoding ACEGI

2007-08-09 Thread Fred Forester
acegi already has a PlaintextPasswordEncoder available. our legacy passwords were Unix crypt format so it wouldn't help you in this case. try changing this org.acegisecurity.providers.encoding.ShaPasswordEncoder to this org.acegisecurity.providers.encoding.PlaintextPasswordEncoder and see w

Re: [appfuse-user] Disable Password Encoding ACEGI

2007-08-09 Thread APenrose
Actually if you just do not specify a passwordEncoder in the authenticationProvider it does the job. Obviously you end up with no encryption on your passwords...which of course is not great at all. ;-0 APenrose wrote: > > > Hi Fred, > Thanks for the reply. Th

Re: [appfuse-user] Disable Password Encoding ACEGI

2007-08-09 Thread APenrose
Hi Fred, Thanks for the reply. The legacy passwords are not ecrypted at all !! Could I bold and ask would you by any chance be able to attach your PasswordEncoder class? ;-) I'll try return the favour at some point. Andrew Fred Forester-2 wrote: > > > Im not sure about disabling the authent

Re: [appfuse-user] problem setting up greybox in appfuse

2007-08-09 Thread thinkboy
hi matt even I remove all sitemesh decorator from my jsp. it still show error: seems having error on something else. never mind, hopefully, I will get it work someday. btw, greybox is really nice. i am so sad that I could not get it running :-( sorry to trouble u friends .. error message in

Re: [appfuse-user] Disable Password Encoding ACEGI

2007-08-09 Thread Fred Forester
Im not sure about disabling the authentication but it was pretty easy to implement my own PasswordEncoder for my legacy passwords. do you know what format the old one are in? the alternative would be to probably have your own encoder just always return true for the comparison. APenrose wrot

[appfuse-user] Disable Password Encoding ACEGI

2007-08-09 Thread APenrose
Hi, I have password encoding off for the user sign up but I am looking to disable it for the when a user logs in. I see in the security.xml file I have the following. How do I disable the password encoder and is this the right place ? Oh..I need to disable password encoding to allow for legacy pa

Re: [appfuse-user] Data binding errors and java.util.Date

2007-08-09 Thread Developer Abe
I appreciate your help. I gave up on Valang. I don't think it works. Here is what I did for others using Spring MVC: Created a new class which implemented Validator with the following validate method: public void validate(Object target, Errors errors) { KeyMetadata givenData = (Key

Re: [appfuse-user] Struts Menu Details for http://demo.appfuse.org/appfuse-spring/mainMenu.html

2007-08-09 Thread Michael Horwitz
What happens when you try? And are you logged in as a user with admin role when you try? On 8/9/07, Imran Amajd <[EMAIL PROTECTED]> wrote: > > Hello! I am using appfuse-struts application. I have a problem > implementing dynamic themes ['simplicity','andreas01','puzzlewithstyle'] > support in appl

Re: [appfuse-user] Struts Menu Details for http://demo.appfuse.org/appfuse-spring/mainMenu.html

2007-08-09 Thread Imran Amajd
Hello! I am using appfuse-struts application. I have a problem implementing dynamic themes ['simplicity','andreas01','puzzlewithstyle'] support in application. when i use following http://demo.appfuse.org/appfuse-jsf/mainMenu.html with ?theme=puzzlewithstyle it works.. but when i append same p

RE: [appfuse-user] EJB 3.0 vs Spring

2007-08-09 Thread benoit moraillon
Thanks Matt, i'll read the pitchfork link. -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Matt Raible Envoyé : jeudi 9 août 2007 16:27 À : users@appfuse.dev.java.net Objet : Re: [appfuse-user] EJB 3.0 vs Spring What's your use case? Why do you feel tha

Re: [appfuse-user] Unicode problem in applicationContext-resources.xml

2007-08-09 Thread kkus
I appreciate your reply. Actually it is easy to duplicate. Create a test bean with my entry value in resource xml file, deploy it to tomcat and then in your tomcat web folder check if your characters are changed. One entry with value is fine, but the other blows up. Not sure why. Even I don't go d

Re: [appfuse-user] EJB 3.0 vs Spring

2007-08-09 Thread Matt Raible
What's your use case? Why do you feel that EJB 3.0 might be more appropriate than Spring? If you'd like to use EJB 3.0 and JSF, I'd suggest looking at Seam. That being said, you can (apparently) use EJB 3 with Spring. http://interface21.com/pitchfork/ Matt On 8/9/07, benoit moraillon <[EMAIL PRO

[appfuse-user] EJB 3.0 vs Spring

2007-08-09 Thread benoit moraillon
Hi appfusers, What is your opinion on using EJB 3.0 instead of using Spring IoC ? Best regards, Benoît Moraillon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [appfuse-user] Unicode problem in applicationContext-resources.xml

2007-08-09 Thread Matt Raible
I wish I had an answer for you, but I don't. I've never tried to use Chinese characters as text values in my Spring XML files. Matt On 8/8/07, kkus <[EMAIL PROTECTED]> wrote: > > Env. is 1.9.4 Spring+Hibernate, XP SP2 and JDK5 Update 11. Chinese characters > in that file became monster characters

Re: [appfuse-user] Data binding errors and java.util.Date

2007-08-09 Thread Matt Raible
On 8/8/07, Developer Abe <[EMAIL PROTECTED]> wrote: > Hi Matt, > > I read that post and it was helpful but I still don't think I understand > what is meant by > > "use a String property, and then do some custom formatting (after > validation) to make it into a date". > > If I understand correctly w

Re: [appfuse-user] problem setting up greybox in appfuse

2007-08-09 Thread Matt Raible
You might try disabling SiteMesh on your page (by excluding it in decorators.xml or commenting out the filter-mapping in web.xml). That should allow you to view things w/o worrying about AppFuse's default JavaScript or CSS. Matt On 8/9/07, Thinkboy <[EMAIL PROTECTED]> wrote: > hi, > > sorry, this

Re: [appfuse-user] jQuery + scriptaculous + datePicker = frustration

2007-08-09 Thread Matt Raible
On 8/9/07, syg6 <[EMAIL PROTECTED]> wrote: > > Howdy Matt, > > Well, if I comment out scriptaculous I get two errors: > > >form.findFirstElement is not a function > >form.findFirstElement().activate(); > > >Effect is not defined > >new Effect.Highlight('successMessages'); > > The first one is becau

Re: [appfuse-user] java.lang.NullPointerException on log4j

2007-08-09 Thread Matt Raible
Does this happen often? If you restart Tomcat (stop/start), does it happen. Can you reproduce the problem consistently? Thanks, Matt On 8/8/07, BruceLee <[EMAIL PROTECTED]> wrote: > > Team, > When I start tomcat, I got java.lang.NullPointerException on log4j. But I > didn't change anything on lo

Re: [appfuse-user] legacy passwords

2007-08-09 Thread Fred Forester
hi Matt, I found some code on the net that encrypted in Unix crypt format. Implemented my own PasswordEncoder and it worked like a charm. Thanx Fred Fred Forester wrote: Thanx a bunch Matt Matt Raible wrote: StringUtil.encodePassword is used for encoding passwords on user signup - at l

[appfuse-user] problem setting up greybox in appfuse

2007-08-09 Thread Thinkboy
hi, sorry, this issue may not be very much about appfuse problem. anyone has successfully setup greybox in appfuse? it is very beauiful for popup windows: http://orangoo.com/labs/GreyBox/ however. I am unable to set it up in appfuse and not able to find any solution via google. i just doubt

Re: [appfuse-user] jQuery + scriptaculous + datePicker = frustration

2007-08-09 Thread syg6
Howdy Matt, Well, if I comment out scriptaculous I get two errors: >form.findFirstElement is not a function >form.findFirstElement().activate(); >Effect is not defined >new Effect.Highlight('successMessages'); The first one is because of the Form.focusFirstElement() line at the bottom of the p

Re: [appfuse-user] Error 404 & Build Failed under apache-tomcat-1.6.0

2007-08-09 Thread Arkumik Raneas
i have already know the problem, as my gratitude to this forum i will tell the how to solve my problem(may be there is someone that have similiar problem like me), the answer of the problem(if you already configuring as the example in Mr Matt Raible Wiki) is the apache-tomcat that i use, which is