Results 1 to 4 of 4

Thread: Problems upgrading to the current release

  1. #1
    Join Date
    Jul 2005
    Posts
    5

    Default Problems upgrading to the current release

    Hi, I'm getting a strange error when I try to upgrade my spring jar from 2.0-m2 to the current production release 2.06. I have the following bean definition:

    <bean id="PASportJob" class="org.springframework.scheduling.quartz.Metho dInvokingJobDetailFactoryBean">
    <property name="targetObject"><ref bean="PASport_ConfigBean"/></property>
    <property name="targetMethod"><value>execute</value></property>
    <property name="concurrent"><value>false</value></property>
    </bean>

    Which gives the following error.

    Unexpected failure during bean definition parsing; nested exception is java.lang.NoSuchMethodError: org.springframework.util.ClassUtils.getConstructor IfAvailable(Ljava/lang/Class;[Ljava/lang/ClassLjava/lang/reflect/Constructor

    I cant see any reason why it should be any diffrerent, hope someone can help.

  2. #2
    Join Date
    Sep 2006
    Location
    UK
    Posts
    8,424

    Default

    Do you have duplicate JARs on the classpath?
    Last edited by karldmoore; Aug 27th, 2007 at 03:13 PM.
    Barracuda Networks SSL VPN Lead Developer
    http://pramatr.wordpress.com
    http://twitter.com/karldmoore
    http://www.linkedin.com/in/karldmoore
    Any postings are my own opinion, and should not be attributed to my employer or clients.

  3. #3
    Join Date
    Jul 2005
    Posts
    5

    Default

    No I removed the first jar and made sure that all the classes could not be found, then added the new one, re-compiled and redeployed

  4. #4
    Join Date
    Sep 2006
    Location
    UK
    Posts
    8,424

    Default

    Hmmm that's usually the cause of such issues. Is there any chance you can post the full stacktrace in [code] [ /code] tags.
    Last edited by karldmoore; Aug 27th, 2007 at 03:13 PM.
    Barracuda Networks SSL VPN Lead Developer
    http://pramatr.wordpress.com
    http://twitter.com/karldmoore
    http://www.linkedin.com/in/karldmoore
    Any postings are my own opinion, and should not be attributed to my employer or clients.

Posting Permissions

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