Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: @Autowired issue

  1. #11

    Default

    That's a head-scratcher for sure.

    Is there anything special about your com.travel.nrtp.util.Test class? It's not abstract or anything like that, is it?

  2. #12
    Join Date
    Oct 2009
    Posts
    11

    Default Got it to work

    I got it to work by moving the bean definition of Test :

    <bean id ="test" class = "com.travel.nrtp.util.Test"/> from the GateAndTime-portlet.xml file to the common.xml file. For autowiring spring seems to only take the common or application file into picture and not the portlet specific file.
    The strange thing is if i dont use autowiring but use the no wiring using bean definitions i can place both the Controller definition and the Test definition in the GateAndTime-portlet.xml and it works.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •