Forum Discussion

dahil's avatar
dahil
New Contributor
16 years ago

groovy.time.*

Hi!

I am trying to use

use ( TimeCategory ) {
    // application on dates
  arrivalDate[1] = String.format ('%tT', newDate + timeChange.hours)
}

works fine in eclipse but when i try to deploy it to soap ui i get

java.lang.NoClassDefFoundError for the TimeCategory.

Do I need to put something else in the ext folder or am I missing a jar?

I am using soapUI pro 3.0.1 and eclipse groovy plugin 2.0.xx

BR
Daniel
  • Hi,

    add import org.codehaus.groovy.runtime.TimeCategory;
    and this should resolve your problem.

    Soapui uses groovy 1.6.4 and TimeCategory is in org.codehaus.groovy.runtime package.
    I suppose that you are using groovy 1.6.5 where TimeCategory is moved to groovy.time.


    Regards Nebojsa
    eviware.com