Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General forum!
  • 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

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
 
WHAT is your favorite color? Blue, no yellow, ahhhhhhh! Tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic