我想实现调度程序到我的应用程序。我使用弹簧和石英支撑。 我测试了我的组件并完美运行。如何使用我们的Java应用程序的Java服务包装
我的主要方法是:
public class Main {
public static void main(String[] args) {
new ClassPathXmlApplicationContext("application-context.xml");
}
}
我使用包装 - 窗口x86-32-3.5.7,我配置wrapper.conf,并使用DemoApp.bat包装从控制台运行。 它的工作原理。
但是当我要安装的服务,我得到错误信息Startup failed: Timed out waiting for a signal from the JVM.
5次重复后,我收到错误消息
JVM did not exit on request, terminated
There were 5 failed launches in a row, each lasting less than 300 seconds. Giving up.
感谢您的帮助。
我做的时候我'cofigure wrapper.java.mainclass'一个错误,我设置主类成了我的应用程序的主类。感谢Leif的帮助 – 2011-04-05 15:38:24