本帖最后由 java2000_net 于 2008-08-05 14:16:38 编辑

解决方案 »

  1.   

    Could not instantiate bean class [org.springframework.scheduling.quartz.JobDetailBean]: 好像不是你程序问题,可能是环境问题,你在myeclipse中点Navigate-Open Type再输入JobDetailBean,打开,看它属于哪个包的.把那个包换了试试?
      

  2.   

    按你的办法,查到用到的包是org.springframework.scheduling.quartz,然后把quartz-all-1.6.0.jar替换成spring1.2下正常的,错误还是那样
      

  3.   

    code是应该没问题的,因为是在spring1.2正常运行的,到到spring2.0就不行,总不至于让我倒回去用吧
      

  4.   

    你看一下里面的是否有个getJobDetail的方法,Error creating bean with name 'jobDetail' defined in class path resource 这个错误应该是你applicationContext.xml里面的<bean id="jobDetail" class="org.springframework.scheduling.quartz.JobDetailBean"> 名字有问题.
      

  5.   

    I have said the code can be running under spring 1.2