quartz scheduler sample program giving error

孤街浪徒 提交于 2019-12-21 08:07:53

问题


I am trying to run the sample helloworld program for quartz scheduling given on roseindi.net http://www.roseindia.net/quartz/quartz-scheduler-tutorial.shtml

I have both the classes given there exactly similar setup in my java projecy with quartz version 1.6 - all.jar in the project library. When I try to run the application I get the following Exception

Exception in thread "main" java.lang.NoClassDefFoundError: javax/transaction/UserTransaction
    at org.quartz.impl.StdSchedulerFactory.instantiate(StdSchedulerFactory.java:1104)
    at org.quartz.impl.StdSchedulerFactory.getScheduler(StdSchedulerFactory.java:1355)
    at oiaoerpdataconnector.HelloSchedule.HelloScheduleRun(HelloSchedule.java:25)
    at oiaoerpdataconnector.HelloSchedule.main(HelloSchedule.java:37)
Caused by: java.lang.ClassNotFoundException: javax.transaction.UserTransaction
    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    ... 4 more
Java Result: 1

What am I missing here?
Thanks,
Priyank


回答1:


What am I missing here?

jta.jar



来源:https://stackoverflow.com/questions/9608256/quartz-scheduler-sample-program-giving-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!