sunggun-yu / jenkins-capitomcat-plugin

Jenkins plugin for Capitomcat
5 stars 5 forks source link

Trouble With Installation #12

Closed jwcarman closed 10 years ago

jwcarman commented 10 years ago

I am trying to install capitomcat on our Jenkins server and when the server starts, I see this in the log:

INFO: Injecting JRuby into XStream LoadError: load error: jenkins/model/build -- java.lang.IncompatibleClassChangeError: incompatible InnerClasses attribute between "hudson.model.Queue$Executable" and "hudson.model.Queue" require at org/jruby/RubyKernel.java:1027 require at jar:file:/var/lib/jenkins/plugins/ruby-runtime/WEB-INF/lib/jruby-complete-1.7.3.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/custom_require.rb:36 (root) at /var/lib/jenkins/plugins/capitomcat/WEB-INF/classes/vendor/gems/gems/jenkins-plugin-runtime-0.2.3/lib/jenkins/model.rb:70 require at org/jruby/RubyKernel.java:1027 (root) at jar:file:/var/lib/jenkins/plugins/ruby-runtime/WEB-INF/lib/jruby-complete-1.7.3.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/custom_require.rb:1 require at jar:file:/var/lib/jenkins/plugins/ruby-runtime/WEB-INF/lib/jruby-complete-1.7.3.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/custom_require.rb:36 require at org/jruby/RubyKernel.java:1027 (root) at /var/lib/jenkins/plugins/capitomcat/WEB-INF/classes/vendor/gems/gems/jenkins-plugin-runtime-0.2.3/lib/jenkins/plugin/runtime.rb:10 (root) at jar:file:/var/lib/jenkins/plugins/ruby-runtime/WEB-INF/lib/jruby-complete-1.7.3.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/custom_require.rb:1 Apr 1, 2014 10:38:12 AM jenkins.InitReactorRunner$1 onTaskFailed SEVERE: Failed Loading plugin capitomcat Throwable occurred: java.io.IOException: Failed to initialize at hudson.ClassicPluginStrategy.load(ClassicPluginStrategy.java:369) at hudson.PluginManager$2$1$1.run(PluginManager.java:353) at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169) at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282) at jenkins.model.Jenkins$7.runTask(Jenkins.java:899) at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:210) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:906) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:929) at java.lang.Thread.run(Thread.java:761) Caused by: org.jruby.embed.EvalFailedException: (LoadError) load error: jenkins/model/build -- java.lang.IncompatibleClassChangeError: incompatible InnerClasses attribute between "hudson.model.Queue$Executable" and "hudson.model.Queue" at org.jruby.embed.internal.EmbedEvalUnitImpl.run(EmbedEvalUnitImpl.java:133) at org.jruby.embed.ScriptingContainer.runUnit(ScriptingContainer.java:1264) at org.jruby.embed.ScriptingContainer.runScriptlet(ScriptingContainer.java:1257) at ruby.RubyPlugin.eval(RubyPlugin.java:244) at ruby.RubyPlugin.require(RubyPlugin.java:248) at ruby.RubyPlugin.initRubyNativePlugin(RubyPlugin.java:186) at ruby.RubyPlugin.start(RubyPlugin.java:163) at hudson.ClassicPluginStrategy.startPlugin(ClassicPluginStrategy.java:377) at hudson.ClassicPluginStrategy.load(ClassicPluginStrategy.java:366) ... 9 more Caused by: org.jruby.exceptions.RaiseException: (LoadError) load error: jenkins/model/build -- java.lang.IncompatibleClassChangeError: incompatible InnerClasses attribute between "hudson.model.Queue$Executable" and "hudson.model.Queue" at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1027) at RUBY.require(jar:file:/var/lib/jenkins/plugins/ruby-runtime/WEB-INF/lib/jruby-complete-1.7.3.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/custom_require.rb:36) at RUBY.(root)(/var/lib/jenkins/plugins/capitomcat/WEB-INF/classes/vendor/gems/gems/jenkins-plugin-runtime-0.2.3/lib/jenkins/model.rb:70) at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1027) at RUBY.(root)(jar:file:/var/lib/jenkins/plugins/ruby-runtime/WEB-INF/lib/jruby-complete-1.7.3.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/custom_require.rb:1) at RUBY.require(jar:file:/var/lib/jenkins/plugins/ruby-runtime/WEB-INF/lib/jruby-complete-1.7.3.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/custom_require.rb:36) at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1027) at RUBY.(root)(/var/lib/jenkins/plugins/capitomcat/WEB-INF/classes/vendor/gems/gems/jenkins-plugin-runtime-0.2.3/lib/jenkins/plugin/runtime.rb:10) at RUBY.(root)(jar:file:/var/lib/jenkins/plugins/ruby-runtime/WEB-INF/lib/jruby-complete-1.7.3.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/custom_require.rb:1) Apr 1, 2014 10:38:12 AM jenkins.InitReactorRunner$1 onAttained

sunggun-yu commented 10 years ago

Hi James,

Could you please provide the version for Jenkins version and ruby-runtime? and what kind of OS(version) do you use for Jenkins server?

Thank you.

jwcarman commented 10 years ago

/proc/version: Linux version 3.0.93-0.8-default (geeko@buildhost) (gcc version 4.3.4 [gcc-4_3-branch revision 152973](SUSE Linux) ) #1 SMP Tue Aug 27 08:44:18 UTC 2013 (70ed288)

jenkins version: 1.557-1.2 ruby-runtime version: 0.12

sunggun-yu commented 10 years ago

James,

Is that SUSE linux? can I get a name of your linux box? I'd like test installation with same box.

by the way, I made a snapshot that ruby-runtime dependency version has updated to 0.12 http://repo.jenkins-ci.org/snapshots/org/jenkins-ci/ruby-plugins/capitomcat/0.0.5.1-SNAPSHOT/

could you please test this version? (if you have a time :+1: ) you can install capitomcat-0.0.5.1-20140402.024913-2.hpi file at "Manage Jenkins > Manage Plugins > Advanced"

Thank you.

jwcarman commented 10 years ago

It is SUSE, yes. What do you mean by name? Hostname? I'll try the SNAPSHOT and let you know.

jwcarman commented 10 years ago

The SNAPSHOT didn't work. Here's what I got in the log:

INFO: Starting the installation of capitomcat on behalf of anonymous Apr 2, 2014 8:00:20 AM hudson.model.UpdateCenter$UpdateCenterConfiguration download INFO: Downloading capitomcat Apr 2, 2014 8:00:20 AM hudson.PluginManager dynamicLoad INFO: Attempting to dynamic load /var/lib/jenkins/plugins/capitomcat.jpi LoadError: load error: jenkins/model/build -- java.lang.IncompatibleClassChangeError: incompatible InnerClasses attribute between "hudson.model.Queue$Executable" and "hudson.model.Queue" require at org/jruby/RubyKernel.java:1027 require at jar:file:/var/lib/jenkins/plugins/ruby-runtime/WEB-INF/lib/jruby-complete-1.7.3.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/custom_require.rb:36 (root) at /var/lib/jenkins/plugins/capitomcat/WEB-INF/classes/vendor/gems/gems/jenkins-plugin-runtime-0.2.3/lib/jenkins/model.rb:70 require at org/jruby/RubyKernel.java:1027 (root) at jar:file:/var/lib/jenkins/plugins/ruby-runtime/WEB-INF/lib/jruby-complete-1.7.3.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/custom_require.rb:1 require at jar:file:/var/lib/jenkins/plugins/ruby-runtime/WEB-INF/lib/jruby-complete-1.7.3.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/custom_require.rb:36 require at org/jruby/RubyKernel.java:1027 (root) at /var/lib/jenkins/plugins/capitomcat/WEB-INF/classes/vendor/gems/gems/jenkins-plugin-runtime-0.2.3/lib/jenkins/plugin/runtime.rb:10 (root) at jar:file:/var/lib/jenkins/plugins/ruby-runtime/WEB-INF/lib/jruby-complete-1.7.3.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/custom_require.rb:1 Apr 2, 2014 8:00:44 AM hudson.model.UpdateCenter$DownloadJob run SEVERE: Failed to install capitomcat Throwable occurred: java.io.IOException: Failed to dynamically deploy this plugin at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:1304) at hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:1103) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:450) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:314) at java.util.concurrent.FutureTask.run(FutureTask.java:149) at hudson.remoting.AtmostOneThreadExecutor$Worker.run(AtmostOneThreadExecutor.java:104) at java.lang.Thread.run(Thread.java:761) Caused by: java.io.IOException: Failed to install capitomcat plugin at hudson.PluginManager.dynamicLoad(PluginManager.java:440) at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:1300) ... 6 more Caused by: java.io.IOException: Failed to initialize at hudson.ClassicPluginStrategy.load(ClassicPluginStrategy.java:369) at hudson.PluginManager.dynamicLoad(PluginManager.java:431) ... 7 more Caused by: org.jruby.embed.EvalFailedException: (LoadError) load error: jenkins/model/build -- java.lang.IncompatibleClassChangeError: incompatible InnerClasses attribute between "hudson.model.Queue$Executable" and "hudson.model.Queue" at org.jruby.embed.internal.EmbedEvalUnitImpl.run(EmbedEvalUnitImpl.java:133) at org.jruby.embed.ScriptingContainer.runUnit(ScriptingContainer.java:1264) at org.jruby.embed.ScriptingContainer.runScriptlet(ScriptingContainer.java:1257) at ruby.RubyPlugin.eval(RubyPlugin.java:244) at ruby.RubyPlugin.require(RubyPlugin.java:248) at ruby.RubyPlugin.initRubyNativePlugin(RubyPlugin.java:186) at ruby.RubyPlugin.start(RubyPlugin.java:163) at hudson.ClassicPluginStrategy.startPlugin(ClassicPluginStrategy.java:377) at hudson.ClassicPluginStrategy.load(ClassicPluginStrategy.java:366) ... 8 more Caused by: org.jruby.exceptions.RaiseException: (LoadError) load error: jenkins/model/build -- java.lang.IncompatibleClassChangeError: incompatible InnerClasses attribute between "hudson.model.Queue$Executable" and "hudson.model.Queue" at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1027) at RUBY.require(jar:file:/var/lib/jenkins/plugins/ruby-runtime/WEB-INF/lib/jruby-complete-1.7.3.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/custom_require.rb:36) at RUBY.(root)(/var/lib/jenkins/plugins/capitomcat/WEB-INF/classes/vendor/gems/gems/jenkins-plugin-runtime-0.2.3/lib/jenkins/model.rb:70) at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1027) at RUBY.(root)(jar:file:/var/lib/jenkins/plugins/ruby-runtime/WEB-INF/lib/jruby-complete-1.7.3.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/custom_require.rb:1) at RUBY.require(jar:file:/var/lib/jenkins/plugins/ruby-runtime/WEB-INF/lib/jruby-complete-1.7.3.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/custom_require.rb:36) at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1027) at RUBY.(root)(/var/lib/jenkins/plugins/capitomcat/WEB-INF/classes/vendor/gems/gems/jenkins-plugin-runtime-0.2.3/lib/jenkins/plugin/runtime.rb:10) at RUBY.(root)(jar:file:/var/lib/jenkins/plugins/ruby-runtime/WEB-INF/lib/jruby-complete-1.7.3.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/custom_require.rb:1)

jwcarman commented 10 years ago

By the way, there are no available updates in the plugin manager, so everything should be up-to-date. Would you like a list of the installed plugins and their versions? Here's a copy/paste:

Ant Plugin This plugin adds Apache Ant support to Jenkins. 1.2

AntiSamy Markup Formatter Plugin Uses OWASP AntiSamy to allow safe-seeming HTML markup to be entered in project descriptions and the like. 1.0

Credentials Plugin This plugin allows you to store credentials in Jenkins. 1.10
Downgrade to 1.9.4 Unpin

CVS Plug-in Integrates Jenkins with CVS version control system using a modified version of the Netbeans cvsclient. 2.11

Dashboard View Customizable dashboard that can present various views of job information. 2.9.2

External Monitor Job Type Plugin Adds the ability to monitor the result of externally executed jobs. 1.2

Javadoc Plugin This plugin adds Javadoc support to Jenkins. 1.1

LDAP Plugin Security realm based on LDAP authentication. 1.8 Downgrade to 1.6 Unpin

Mailer Plugin This plugin allows you to configure email notifications. This is a break-out of the original core based email component. 1.8 Downgrade to 1.6 Unpin

Matrix Authorization Strategy Plugin Offers matrix-based security authorization strategies (global and per-project). 1.1

Maven Integration plugin Jenkins plugin for building Maven 2/3 jobs via a special project type. 2.1

Maven Release Plug-in Plug-in A plug-in that enables you to perform releases using the maven-release-plugin from Jenkins. 0.14.0
Downgrade to 0.13.0

PAM Authentication plugin Adds Unix Pluggable Authentication Module (PAM) support to Jenkins. 1.1

Publish Over SSH Send build artifacts over SSH 1.11

ruby-runtime Hosts runtime for enabling pure-Ruby plugins 0.12

SCM API Plugin This plugin provides a new enhanced API for interacting with SCM systems. 0.2

Sonar Plugin Quickly benefit from Sonar, the open source platform for Continuous Inspection of code quality. 2.1

SSH Credentials Plugin This plugin allows you to store SSH credentials in Jenkins. 1.6.1
Downgrade to 1.6.1 Unpin

SSH plugin This plugin executes shell commands remotely using SSH protocol. 2.4

SSH Slaves plugin This plugin allows you to manage slaves running on *nix machines over SSH. 1.6 Downgrade to 1.5 Unpin

Subversion Plug-in This plugin adds the Subversion support (via SVNKit) to Jenkins. 2.2 Downgrade to 1.54 Unpin

Translation Assistance plugin This plugin adds an additional dialog box in every page, which enables people to contribute localizations for the messages they are seeing in the current page. 1.11
Downgrade to 1.10 Unpin

Windows Slaves Plugin Allows you to connect to Windows machines and start slave agents on them. 1.0

sunggun-yu commented 10 years ago

I'm sorry about that.

I'm testing on openSUSE 13.1. is this version same to yours?

sunggun-yu commented 10 years ago

Hi James

I tested installing Capitomcat 0.0.5 on OpenSUSE 13.1(VMWare Fusion) and Jenkins1.557-1.2. and it was purely Jenkins and Capitomcat only. also, I didn't test its functionality but I checked UI has shown.

However, I didn't see any trouble on installing Capitomcat 0.0.5 I'll keep testing after installing some other plugin which is you had provided.

Thank you.

image

jwcarman commented 10 years ago

Did you have any luck with other plugins? I'm trying to install Capitomcat on another SUSE box. The funny thing is that we have Capitomcat working using a stand-alone installation (running the war file). So, there must be something different about the zypper-installed version of Jenkins perhaps? Were you installing into the zypper-provided Jenkins when you tried it?

jwcarman commented 10 years ago

I think I figured it out. By default, we were using whatever the default JVM was for SUSE (looked to be an IBM JVM). So, when I set JAVA_HOME using the config file to a proper JDK (a Sun-provided one), it works just fine!

jglick commented 10 years ago

Then you probably hit some variant of JENKINS-22525.