[英]How to configure quartz job to run on terracotta cluster?
I am trying to configure our quartz job in Tomcat to run on terracotta cluster. 我正在尝试在Tomcat中配置我们的石英作业以在兵马俑群集上运行。 Spring terracotta prop config looks like this
春天兵马俑道具配置看起来像这样
<prop key="org.quartz.jobStore.class">org.terracotta.quartz.TerracottaJobStore</prop>
<prop key="org.quartz.jobStore.tcConfigUrl">localhost:9510</prop>
Terracotta server is running. Terracotta服务器正在运行。
When I start Tomcat instance I am getting following error 当我启动Tomcat实例时,出现以下错误
java.lang.ClassNotFoundException: org.terracotta.collections.LockStrategy
I can't find this class any where, neither in quartz-terracotta jar, or terracotta toolkit jar. 我在任何地方都找不到该类,无论是在石英陶罐或陶土工具包罐中。
What version of Terracotta are you using? 您正在使用哪个版本的Terracotta?
A quick Google search suggests the class is in net.sf.ehcache:ehcache-terracotta:2.1.0
- I'm not sure about later versions. Google快速搜索表明该类位于
net.sf.ehcache:ehcache-terracotta:2.1.0
-我不确定更高版本。 If it's not in the current version of the terracotta jar you are using, you might want to double-check that you aren't using incompatible versions of the various libraries. 如果您使用的不是当前版本的terracotta jar,则可能需要仔细检查一下您是否在使用各种库的不兼容版本。
This should be in your toolkit-runtime jar. 这应该在您的工具箱运行时jar中。 Are you saying this is not in there ?
您是说这不存在吗? Can you provide more info ?
您可以提供更多信息吗? Like versions and stacktrace ?
喜欢版本和stacktrace吗?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.