It's not a secret anymore!
The moose likes Spring and the fly likes no bean named 'crontrigger' is defined Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "no bean named Watch "no bean named New topic

no bean named 'crontrigger' is defined

Shajid Johnny
Ranch Hand

Joined: May 15, 2010
Posts: 34
Hello dear members,
I am working on modifying and enhancing an existing application which is built on Struts (for MVC) , Spring (for Service layer), Tomcat App Server.
in the application, there is a Job Scheduler defined if the ApplicationContext.xml which i am showing bellow:

when i run the application, it shows the following error:

even if i remove the reference , still it shows the above error.

i am new to Spring, and all i have is a basic knowledge on Spring Job scheduler. but i don't get the clue what to do here.

would anybody please give me some hint?
Thanks in advance
Tom Reilly

Joined: Jun 01, 2010
Posts: 618
I don't see a bean defined with id = "cronTrigger". You need one of these when you useAs for still seeing the error after you removed the above line, I would look at the possibility that you removed it from the wrong file or a file in the wrong directory. Or perhaps there is another XML file that has those same lines?
Mark Spritzler

Joined: Feb 05, 2001
Posts: 17276

Or after removing it, he didn't redeploy his app with the changes. ;)


Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
I agree. Here's the link:
subject: no bean named 'crontrigger' is defined
It's not a secret anymore!