事先使用kettle的工具寫好一個轉換.xml,然後使用java執行它,完全沒問題。但是我把調用代碼移到web應用中調用就出錯了。求大神解答。
錯誤:
Caused by: java.lang.NoClassDefFoundError: org/scannotation/AnnotationDB
at org.pentaho.di.core.plugins.BasePluginType.findAnnotatedClassFiles(BasePluginType.java:237)
at org.pentaho.di.core.plugins.BasePluginType.registerPluginJars(BasePluginType.java:500)
at org.pentaho.di.core.plugins.BasePluginType.searchPlugins(BasePluginType.java:115)
at org.pentaho.di.core.plugins.PluginRegistry.init(PluginRegistry.java:420)
at org.pentaho.di.core.KettleEnvironment.init(KettleEnvironment.java:121)
at org.pentaho.di.core.KettleEnvironment.init(KettleEnvironment.java:68)
at com.zj.kettle.KettleRunner.runTransformation(KettleRunner.java:53)
at com.zj.quartz.KettleQuartzJob.execute(KettleQuartzJob.java:31)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
... 1 more
Caused by: java.lang.ClassNotFoundException: org.scannotation.AnnotationDB
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1856)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1705)
... 10 more
缺少jar包吧,,找個jar包放進去不就行了嗎