Re: [appfuse-user] Email Generation

2007-07-02 Thread Msarda
Thanks Sanjiv. Sanjiv Jivan wrote: > > So that means you don't have an SMTP server running on your machine. Talk > to > you sys admin on setting it up or google on how to do it. Its a bad idea > to > silently swallow exceptions. > > Sanjiv > > On 7/3/07, Msarda <[EMAIL PROTECTED]> wrote: >>

Re: [appfuse-user] Email Generation

2007-07-02 Thread Sanjiv Jivan
So that means you don't have an SMTP server running on your machine. Talk to you sys admin on setting it up or google on how to do it. Its a bad idea to silently swallow exceptions. Sanjiv On 7/3/07, Msarda <[EMAIL PROTECTED]> wrote: When i uncommented the line,i was getting error like.. org

Re: [appfuse-user] Email Generation

2007-07-02 Thread Sanjiv Jivan
Whats the configuration of your 'mailSender' bean. Have you confirmed that its pointing to a valid SMTP server? Also if you uncomment the line where you're swallowing the exception you'll have a better idea of what the problem is. } catch (MailException ex) { //log.error(ex.getMessage()); }

Re: [appfuse-user] Email Generation

2007-07-02 Thread Msarda
When i uncommented the line,i was getting error like.. org.springframework.mail.MailSendException; nested exceptions (0) are: Caused by: javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 25; nested exception is: java.net.ConnectException: Connection refused

[appfuse-user] Email Generation

2007-07-02 Thread Msarda
Hi all, I am implementing send email functionality in my spring application.I have created a class that implements this functionality.Following is the code of that method.. public Long sendEmailNotification(String name,String title,String emailID) throws NamingException, SQLException {

Re: [appfuse-user] Puzzles on DAO & Service layer?

2007-07-02 Thread jiangshachina
Hello, I just be curious with the matter, anybody can give me some explanation? Thanks! a cup of Java, cheers! Sha Jiang jiangshachina wrote: > > I'm new to AppFuse, and want to use AppFuse 1.9.4 > (Webwork+Spring+Hibernate). > > UserDao interface extends Dao interface, and BaseDaoHibernate

Re: [appfuse-user] Problem with ManyToMany Mapping

2007-07-02 Thread Msarda
Thanks Mike for your reply. Actually i am not getting a clear idea about how to implement PropertyEditorSupport Class excatly in my form controller. It will be very helpful if u can explore about it a bit more. Michael Horwitz wrote: > > You need to register a custom editor inside your form co

Re: [appfuse-user] Drop down list population

2007-07-02 Thread Aled Rhys Jones
Seems I spoke too soon. Although the list of countries displays correctly, it never gets saved. I have a CountryEditor that has the methods required. public class CountryEditor extends PropertyEditorSupport { private GenericManager countryManager = null; public void setCountryManager

Re: [appfuse-user] InvocationTargetException on ConvertUtil.convert

2007-07-02 Thread Sanjiv Jivan
The root problem is caused by: java.lang.NoSuchMethodError: com.sumware.model.Option .getHibernateLazyInitializer()Lorg/hibernate/proxy/LazyInitializer; at com.sumware.model.Option$$EnhancerByCGLIB$$678eee6.getHibernateLazyInitializer () at org.hibernate.type.EntityType.resolveIdentifier(Entity

[appfuse-user] InvocationTargetException on ConvertUtil.convert

2007-07-02 Thread peebrayne
Hi, My application can't access certain methods after about 24 hours after restarting Tomcat. Whenever it enters an action which contains the "convert" method, I receive an error like this. This has occurred multiple times now and I am forced to restart Tomcat each time and the problem disappears

Re: [appfuse-user] Drop down list population

2007-07-02 Thread Aled Rhys Jones
Nice one Mike, finally got it working after spending most of yesterday scratching my head and cursing google for not finding exactly what I wanted ;-) Cheers Aled Michael Horwitz wrote: You are going to need to provide Spring MVC with a way to get from an id to a country and vice-versa. As yo

Re: [appfuse-user] Deployment destroys Umlaute

2007-07-02 Thread Jason Brice
So it looks like the filterset task was causing the problem. I've had a similar issue where filterset was corrupting image files. I did the same as you and created separate copy tasks and the problem went away. Jason On 7/2/07, René Günther <[EMAIL PROTECTED]> wrote: The error was in the co

[appfuse-user] Appfuse gen-model

2007-07-02 Thread Doug Pham
Hi All, I am trying to test out the "mvn appfuse:gen-model" command and it claimed that I cannot find the database.properties file. Does anyone know what the format of that file should be like? Thanks, Doug - Food fight? Enjoy some healthy debate in the Ya

Re: [appfuse-user] How to implement an observer in the web layer

2007-07-02 Thread Sanjiv Jivan
I've used Spring event mechanism successfully in propagating events from the service layer to the web layer. Basically have your Controller implement ApplicationListener and in your implmentation of ApplicationListener#onApplicationEvent carry out the logic pertaining to the event you're going to

[appfuse-user] How to implement an observer in the web layer

2007-07-02 Thread mda
Hello, we would like to implement for the course an application with a web interface which gets updated after certain events are received in service layer. We are developing our application based on Appfuse2.0 w. Spring MVC, and we would actually like to have a list of users and their status info

Re: [appfuse-user] Question/Problem with Loading Context and Importing Libraries into Appfuse 2.0

2007-07-02 Thread mda
Hello, Thank you all for the answers. It seems that sometimes it is not enough to install jar in the maven repository, but also needs to be included in pom.xml . What does it depend on? The smack library that is already in public maven repository is 1.x, we need to use the version 3.0.3. Does

[appfuse-user] User/Role Scheme with ACEGI

2007-07-02 Thread Doug Pham
Hi All, The application I am writing is allowing the administrators to create groups dynamically and add the functions/actions that each group can perform. Will ACEGI allow this? From what I have seen so far, it's set in the config file, can this be dynamic? Thanks, Doug -

[appfuse-user] AppFuse 1.9.4 without sitemesh and struts menu but with facelets

2007-07-02 Thread Irshad Buchh
Hi All, We have a JSF project coming up based on ApppFuse 1.9.4. We are planning to use Facelets instead of Sitemesh and struts menu. Has anybody tried this combination? We would like to hear from you all. --Irshad. -- View this message in context: http://www.nabble.com/AppFuse-1.9.4-without-s

Re: [appfuse-user] logout problem with remember me option

2007-07-02 Thread tibi
so finally i upgraded from m4 to m5 but now i still have the logout problem. i tried to make a dif between a fresh m5 (wihout the bug) and my m4tom5 project but in eclipse that is a lot of work. so anyone an idea where to look? thanks, tibi climbingrose wrote: I've noticed that if I delete

[appfuse-user] embedding login panel in pages

2007-07-02 Thread kace
Hi fellas, I am looking to be able to login from any of my pages but the problem is all the pages are in xhtml. What can i do here? Has anyone modified it so it can be used in this manner? Thanks for your time, kace -- View this message in context: http://www.nabble.com/embedding-login-panel

Re: [appfuse-user] Command object null

2007-07-02 Thread Msarda
Hi Dusty, Thank for your reply. I tried removing underscore(_) and it worked. :) Thanks, Meena dusty wrote: > > Sadly, I am a Webwork guy, so I can only help you in general direction > rather than specific detail. > > So when you edit an existing record you can edit values, post to the > ser

AW: [appfuse-user] Deployment destroys Umlaute

2007-07-02 Thread René Günther
The error was in the copy task I added a

Re: [appfuse-user] Regarding anonymous access

2007-07-02 Thread Michael Horwitz
Please do not double post. We try and answer as many questions as we can - duplicate posts just make our work that much harder! I have posted a reply to the original thread. Thanks Mike. On 7/2/07, ujjala <[EMAIL PROTECTED]> wrote: How can i mark /myaction.html as having anonymous access i

Re: [appfuse-user] To go in a action after authenticationfailure

2007-07-02 Thread Michael Horwitz
Look for the bean called "filterInvocationInterceptor" in the file sercurity.xml. You should have a line in the property called "objectDefintionSource" that looks like: /myaction.html*=ROLE_ANONYMOUS Note that this line should appear before the line /**/*.html*=ROLE_ADMIN,ROLE_USER Mike.

[appfuse-user] Regarding anonymous access

2007-07-02 Thread ujjala
How can i mark /myaction.html as having anonymous access in my security.xml. please give me the proper syntax. -- View this message in context: http://www.nabble.com/Regarding-anonymous-access-tf4010938s2369.html#a11390498 Sent from the AppFuse - User mailing list archive at Nabble.com.

Re: [appfuse-user] how to config more than one hibernate.cfg.xml ?

2007-07-02 Thread Michael Horwitz
You need to make two changes: Note that it may not match wildcard patterns placed in the root of the classpath: see the warnings here for a more detailed explanation: http://tinyurl.com/2uaxbl Mike. On 7/2/07, chino fish <[EMAIL PROTECTED]> wrote: May I user more than one hibernate.cfg.x

Re: [appfuse-user] Problem with ManyToMany Mapping

2007-07-02 Thread Michael Horwitz
You need to register a custom editor inside your form controller so that Spring can convert your model object to/from text. Please see this thread for further details: http://www.nabble.com/Add-ManyToOne-relationship-between-user-and-a-new-pojo-tf3993393s2369.html Mike. On 7/2/07, Msarda <[EMA

[appfuse-user] TOmahawk error, TOmcat, jsf, hibernate

2007-07-02 Thread chichi
Hello everyone! I'm using 1.9.4 version of sprint + hibernate + jsf and I'm, getting this error on part IV of the tutorial. I've read that this has got something to do with tomahawk. http://issues.apache.org/jira/browse/TOMAHAWK-466 http://issues.apache.org/jira/browse/TOMAHAWK-466 But I can'

Re: [appfuse-user] To go in a action after authenticationfailure

2007-07-02 Thread ujjala
How can i mark /myaction.html as having anonymous access in mu security.xml. please give me the proper syntax. Michael Horwitz wrote: > > You may need to mark /myaction.html as having anonymous access in your > security.xml configuration. > > Mike. > > On 6/28/07, ujjala <[EMAIL PROTECTED]> wr