尝试运行Hudson Starteam任务时获取NoClassDefFoundError

时间:2011-05-18 21:20:59

标签: hudson starteam

  

可能重复:
  How to configure Jenkins StarTeam plugin?

我正在使用Hudson 2.0,Solaris 10和最新版本的Starteam插件。我正在尝试运行StarTeam任务来检查我的项目。可悲的是,我收到了这个错误...

FATAL: com/starbase/starteam/Folder
java.lang.NoClassDefFoundError: com/starbase/starteam/Folder
at hudson.plugins.starteam.StarTeamSCM.checkout(StarTeamSCM.java:127)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1180)
at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:506)
at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:422)
at hudson.model.Run.run(Run.java:1362)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:145)
Caused by: java.lang.ClassNotFoundException: com.starbase.starteam.Folder
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:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
... 8 more

我在/ apps / hudson / WEB-INF / lib目录中有starteam110.jar文件(包含有问题的类)以及我通过将该文件放入类路径来启动Hudson的事实...... / p>

            <exec_method type="method" name="start" exec="/usr/bin/java -Xmx512m -DHUDSON_HOME=/apps/hudson/ -classpath /apps/hudson/WEB-INF/lib/starteam110.jar -jar /apps/hudson/hudson.war --prefix=/hudson" timeout_seconds="0"/>

如何解决此错误或进一步排除故障?谢谢, - 戴夫

0 个答案:

没有答案