1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Maven で UnsatisfiedLinkError

Posted at

JenkinsでMavenを叩いた所 java.lang.UnsatisfiedLinkErrorがスローされた.
例外の内容を読んでみると出ていたのでlibXtstをインストールすることで解決!

libXtst.so.6: cannot open shared object

Scientific Linux 6.3だったのでyumのsl-securityリポジトリにlibXtstがあったのでそれをインストール

$ sudo yum install libXtst

元々、Mavenを使っていたのでpomにMavenのプラグインを追記して以降発生したようです.
具体的にはどのプラグインかは未確認です.

例外の内容

ERROR: Failed to parse POMs
java.io.IOException: Remote call on Channel to Maven [/usr/java/latest/bin/java, -cp, /var/lib/jenkins/plugins/maven-plugin/WEB-INF/lib/maven31-agent-1.4.jar:/var/lib/jenkins/tools/hudson.tasks.Maven_MavenInstallation/Maven3.1.1/boot/plexus-classworlds-2.5.1.jar:/var/lib/jenkins/tools/hudson.tasks.Maven_MavenInstallation/Maven3.1.1/conf/logging, jenkins.maven3.agent.Maven31Main, /var/lib/jenkins/tools/hudson.tasks.Maven_MavenInstallation/Maven3.1.1, /var/cache/jenkins/war/WEB-INF/lib/remoting-2.32.jar, /var/lib/jenkins/plugins/maven-plugin/WEB-INF/lib/maven31-interceptor-1.4.jar, /var/lib/jenkins/plugins/maven-plugin/WEB-INF/lib/maven3-interceptor-commons-1.4.jar, 41793] failed
	at hudson.remoting.Channel.call(Channel.java:723)
	at hudson.maven.ProcessCache$MavenProcess.call(ProcessCache.java:160)
	at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:813)
	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:586)
	at hudson.model.Run.execute(Run.java:1603)
	at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:506)
	at hudson.model.ResourceController.execute(ResourceController.java:88)
	at hudson.model.Executor.run(Executor.java:247)
Caused by: java.lang.UnsatisfiedLinkError: /usr/java/jdk1.7.0_45/jre/lib/amd64/xawt/libmawt.so: libXtst.so.6: cannot open shared object file: No such file or directory
	at java.lang.ClassLoader$NativeLibrary.load(Native Method)
	at java.lang.ClassLoader.loadLibrary1(ClassLoader.java:1965)
	at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1890)
	at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1851)
	at java.lang.Runtime.load0(Runtime.java:795)
	at java.lang.System.load(System.java:1062)
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?