• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

spring bean property is not writable or has an invalid setter method

 
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am using spring in my application and m facing this problem:



The code of class MCQSingleAnsController.java is:



And spring config file is:




Here,

MCQSingleAnsValidator implements questionValidatorInterface
MCQSingleAnsmanager implements questionmanagerInterface



What is the problem...all setters are correct...
 
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
config file
questionValidatorInterface :com.infosys.enr.question.validator.MCQSingleAnsValidator
In java file
questionValidatorInterface:com.infosys.enr.question.validator.QuestionValidatorInterface

change code in java file as

private MCQSingleAnsValidator questionValidatorInterface;

 
Kshitiz Agarwal
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Murali Ranga wrote:config file
questionValidatorInterface :com.infosys.enr.question.validator.MCQSingleAnsValidator
In java file
questionValidatorInterface:com.infosys.enr.question.validator.QuestionValidatorInterface

change code in java file as

private MCQSingleAnsValidator questionValidatorInterface;



Thanks for the reply.. I did it but the same error is coming



The modified java file is:



Is the problem related to jar files...like any compatibiloty issue or something...? I am using Tomcat 6, spring 3.0.6, spring-webmvc 3.0.3 and web module 2.5
 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Use MCQSingleAnsmanager instead of questionmanagerInterface in your java code

 
Kshitiz Agarwal
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

svm muni wrote:Use MCQSingleAnsmanager instead of questionmanagerInterface in your java code



I did it...but no effect ...what can be the cause of error...jar files, xml config...??? I have pasted the entire code here http://forum.springsource.org/showthread.php?121005-Webpage-not-running-in-tomcat-6&p=397016#post397016
 
Arthur, where are your pants? Check under this tiny ad.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic