2016-05-11 29 views
2

Websphere Portal 8.5.5.2 2つのWindowsサーバー・ノードのクラスターがあります。 別のJenkins Build Server(Windowsも)があります。プラグインを正しく設定し、テスト接続をクリックすると接続が成功します。jenkins Websphereデプロイヤー・プラグインは接続に成功しましたが、デプロイメントに失敗します

13:51:31 Started by user Jenkins 
13:51:31 Building in workspace C:\Jenkins\workspace\Deploy 
13:51:31 Connecting to IBM WebSphere Application Server... 
13:51:31 The following artifacts will be deployed in this order... 
13:51:31 ------------------------------------------- 
13:51:31 AdvisorsThemeEAR_20160505.ear 
13:51:31 ------------------------------------------- 
13:51:31 Error deploying to IBM WebSphere Application Server: org.jenkinsci.plugins.websphere.services.deployment.DeploymentServiceException: ADMA0092E: An unexpected exception occurred while preparing task MapJaspiProvider. Check the server machine First Failure Data Capture tool (FFDC) for more information. 
13:51:31 at org.jenkinsci.plugins.websphere.services.deployment.WebSphereDeploymentService.getAppName(WebSphereDeploymentService.java:193) 
13:51:31 at org.jenkinsci.plugins.websphere.services.deployment.WebSphereDeploymentService.getAppName(WebSphereDeploymentService.java:169) 
13:51:31 at org.jenkinsci.plugins.websphere_deployer.WebSphereDeployerPlugin.getAppName(WebSphereDeployerPlugin.java:318) 
13:51:31 at org.jenkinsci.plugins.websphere_deployer.WebSphereDeployerPlugin.createArtifact(WebSphereDeployerPlugin.java:275) 
13:51:31 at org.jenkinsci.plugins.websphere_deployer.WebSphereDeployerPlugin.perform(WebSphereDeployerPlugin.java:197) 
13:51:31 at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45) 
13:51:31 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782) 
13:51:31 at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:723) 
13:51:31 at hudson.model.Build$BuildExecution.post2(Build.java:185) 
13:51:31 at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:668) 
13:51:31 at hudson.model.Run.execute(Run.java:1763) 
13:51:31 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) 
13:51:31 at hudson.model.ResourceController.execute(ResourceController.java:98) 
13:51:31 at hudson.model.Executor.run(Executor.java:410) 
13:51:31 Caused by: com.ibm.websphere.management.application.client.AppDeploymentException: ADMA0092E: An unexpected exception occurred while preparing task MapJaspiProvider. Check the server machine First Failure Data Capture tool (FFDC) for more information. [Root exception is java.lang.NoSuchMethodError: com.ibm.ejs.models.base.bindings.applicationbnd.ApplicationBinding.getJaspiRefBinding()Lcom/ibm/ejs/models/base/bindings/commonbnd/JaspiRefBinding;] 
13:51:31 at com.ibm.websphere.management.application.client.AppDeploymentController.getNthTask(AppDeploymentController.java:575) 
13:51:31 at com.ibm.websphere.management.application.client.AppDeploymentController.getNextTask(AppDeploymentController.java:611) 
13:51:31 at org.jenkinsci.plugins.websphere.services.deployment.WebSphereDeploymentService.getAppName(WebSphereDeploymentService.java:185) 
13:51:31 ... 13 more 
13:51:31 Caused by: java.lang.NoSuchMethodError: com.ibm.ejs.models.base.bindings.applicationbnd.ApplicationBinding.getJaspiRefBinding()Lcom/ibm/ejs/models/base/bindings/commonbnd/JaspiRefBinding; 
13:51:31 at com.ibm.ws.security.jaspi.MapJaspiHelper.prepareTask(MapJaspiHelper.java:148) 
13:51:31 at com.ibm.websphere.management.application.client.AppDeploymentController.prepareTask(AppDeploymentController.java:586) 
13:51:31 at com.ibm.websphere.management.application.client.AppDeploymentController.getNthTask(AppDeploymentController.java:567) 
13:51:31 ... 15 more 
13:51:31 
13:51:31 Build step 'Deploy To IBM WebSphere Application Server' changed build result to FAILURE 
13:51:31 Finished: FAILURE 

私はプラグイン(SOAPポート、セル、ノード、サーバーに設定したのと同じパラメータを使用してwsadminコマンドを使用してEARファイルをデプロイできることを確認:EARファイルをデプロイするために、今構築実行し、それがエラーを返し ...)それは成功しました。

私には何が欠けていますか?私は同様のエラーメッセージを検索しようとしましたが、何も見つかりませんでした。 また、ffdcログを検索しようとしましたが、プラグインを実行してもログが更新されないため、私は愚かです。

+0

シン・クライアントのJARが何らかの不一致で使用されていると思います(MapJaspiHelperとApplicationBindingは両方とも内部WebSphere Application Serverクラスです)。 JenkinsサーバーをWebSphere JARで構成していますか? '-verbose:class' JVM引数を使ってJenkinsプロセスを実行すると、それらのクラスがどのJARからロードされているのかが分かります。他のすべてが失敗した場合は、障害がIBMクラスにあるため、IBMとPMRを開く必要があります。 –

答えて

0

あなたのログを読むのは難しいですが、どの行がどのステートメントに合っているのか分からないからです。それは...

ここでのキーは13です。13:51:31原因:java.lang.NoSuchMethodError: これは、getAppName()が不足していますか?

私はJenkinsについて何も知らないが、それはJenkinsのWebSphereDeploymentServiceクラスの間違ったバージョンのように見える?またはgetAppName()を持たないもの?

少なくとも、WASで何が起こっているのかを確認し、それをJenkinsのものと相関させるためにWASトレースを取得してみてください。 https://www-01.ibm.com/support/docview.wss?uid=swg21199344

おそらくクラスパスの問題が間違ったクラスのクラスを指しているのでしょうか?トレースには何が欠落しているかの表示が必要です。

+0

ログスニペットを書式設定済みのテキストとしてフォーマットする質問を編集しました。 –

+0

良いニュースと悪いニュース、それが良いニュース、悪い知らせ、なぜそれが働き始めたのかわからない、私はジェンキンズを-verboseで実行しようとしていました。上記の両方のクラス。なんらかの理由でwebsphere [リンク](https://www-01.ibm.com/support/docview.wss?uid=swg21199344#show-hide)のログとトレースを変更しました.Jenkins websphereのwebsphere jarファイルデプロイヤープラグインがどこかで削除され、それらをもう一度コピーしてジョブを再構築し、正常に接続してデプロイしました。ありがとうBrettKailと@Alexandre –

0

問題は、私はjarファイルが7であり、同時にwebsphereデプロイヤープラグインフォルダに8.5だったと考えられます。今私は8.5のjarファイルしか持っていないし、動作している。 しかし、正常にデプロイした後、アプリケーションの起動に失敗します。私は持っていた2つの異なるアプリでそれをテストしました。

<code> 
09:49:17 Started by user Jenkins 
09:49:17 Building in workspace C:\Jenkins\workspace\Deploy 
09:49:17 Connecting to IBM WebSphere Application Server... 
09:49:17 The following artifacts will be deployed in this order... 
09:49:17 ------------------------------------------- 
09:49:17 Calculator_20160505.war 
09:49:17 ------------------------------------------- 
09:49:17 Generating EAR For Artifact: Calculator_20160505 
09:49:17 Deploying 'Calculator_20160505' to IBM WebSphere Application Server 
09:49:18 InstallApplication] ADMA5003I: The JavaServer Pages (JSP) files in the Web Archive (WAR) Calculator_20160505.war compiled successfully.[InProgress] 
09:49:19 InstallApplication] ADMA0215I: The JavaServer Pages (JSP) compile task completed.[InProgress] 
09:49:19 InstallApplication] ADMA5005I: The application Calculator_20160505 is configured in the WebSphere Application Server repository.[InProgress] 
09:49:19 InstallApplication] ADMA5005I: The application Calculator_20160505 is configured in the WebSphere Application Server repository.[InProgress] 
09:49:19 InstallApplication] ADMA5081I: The bootstrap address for client module is configured in the WebSphere Application Server repository.[InProgress] 
09:49:19 InstallApplication] ADMA5053I: The library references for the installed optional package are created.[InProgress] 
09:49:19 InstallApplication] ADMA5005I: The application Calculator_20160505 is configured in the WebSphere Application Server repository.[InProgress] 
09:49:19 InstallApplication] ADMA5001I: The application binaries are saved in c:\IBM\WebSphere\AppServer\profiles\dmgr01\wstemp\154b32d16e5\workspace\cells\dmgrCell01\applications\Calculator_20160505.ear\Calculator_20160505.ear[InProgress] 
09:49:19 InstallApplication] ADMA5005I: The application Calculator_20160505 is configured in the WebSphere Application Server repository.[InProgress] 
09:49:19 InstallApplication] SECJ0400I: Successfully updated the application Calculator_20160505 with the appContextIDForSecurity information.[InProgress] 
09:49:19 InstallApplication] ADMA5005I: The application Calculator_20160505 is configured in the WebSphere Application Server repository.[InProgress] 
09:49:19 InstallApplication] ADMA5005I: The application Calculator_20160505 is configured in the WebSphere Application Server repository.[InProgress] 
09:49:20 InstallApplication] ADMA5113I: Activation plan created successfully.[InProgress] 
09:49:20 InstallApplication] ADMA5011I: The cleanup of the temp directory for application Calculator_20160505 is complete.[InProgress] 
09:49:22 InstallApplication] ADMA5013I: Application Calculator_20160505 installed successfully.[Completed] 
09:49:22 Starting Application 'Calculator_20160505'... 
09:49:22 Error deploying to IBM WebSphere Application Server: java.lang.NumberFormatException: For input string: "" 
09:49:22 at java.lang.NumberFormatException.forInputString(Unknown Source) 
09:49:22 at java.lang.Integer.parseInt(Unknown Source) 
09:49:22 at java.lang.Integer.parseInt(Unknown Source) 
09:49:22 at org.jenkinsci.plugins.websphere_deployer.WebSphereDeployerPlugin.startArtifact(WebSphereDeployerPlugin.java:239) 
09:49:22 at org.jenkinsci.plugins.websphere_deployer.WebSphereDeployerPlugin.perform(WebSphereDeployerPlugin.java:209) 
09:49:22 at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45) 
09:49:22 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782) 
09:49:22 at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:723) 
09:49:22 at hudson.model.Build$BuildExecution.post2(Build.java:185) 
09:49:22 at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:668) 
09:49:22 at hudson.model.Run.execute(Run.java:1763) 
09:49:22 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) 
09:49:22 at hudson.model.ResourceController.execute(ResourceController.java:98) 
09:49:22 at hudson.model.Executor.run(Executor.java:410) 
09:49:22 
09:49:22 Build step 'Deploy To IBM WebSphere Application Server' changed build result to FAILURE 
09:49:22 Finished: FAILURE 
</code> 

に従ってジェンキンスジョブにタイムアウトパラメータを追加した後:アプリの一つのジェンキンスログで以下 [リンク](https://issues.jenkins-ci.org/browse/JENKINS-30093)エラーが変更された:

<code> 
10:20:01 Started by user Jenkins 
10:20:01 Building in workspace C:\Jenkins\workspace\Deploy 
10:20:02 Connecting to IBM WebSphere Application Server... 
10:20:02 The following artifacts will be deployed in this order... 
10:20:02 ------------------------------------------- 
10:20:02 Calculator_20160505.war 
10:20:02 ------------------------------------------- 
10:20:02 Generating EAR For Artifact: Calculator_20160505 
10:20:02 Deploying 'Calculator_20160505' to IBM WebSphere Application Server 
10:20:05 Error deploying to IBM WebSphere Application Server: org.jenkinsci.plugins.websphere.services.deployment.DeploymentServiceException: Failed to install artifact: 
10:20:05 at org.jenkinsci.plugins.websphere.services.deployment.WebSphereDeploymentService.installArtifact(WebSphereDeploymentService.java:251) 
10:20:05 at org.jenkinsci.plugins.websphere_deployer.WebSphereDeployerPlugin.deployArtifact(WebSphereDeployerPlugin.java:227) 
10:20:05 at org.jenkinsci.plugins.websphere_deployer.WebSphereDeployerPlugin.perform(WebSphereDeployerPlugin.java:201) 
10:20:05 at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45) 
10:20:05 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782) 
10:20:05 at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:723) 
10:20:05 at hudson.model.Build$BuildExecution.post2(Build.java:185) 
10:20:05 at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:668) 
10:20:05 at hudson.model.Run.execute(Run.java:1763) 
10:20:05 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) 
10:20:05 at hudson.model.ResourceController.execute(ResourceController.java:98) 
10:20:05 at hudson.model.Executor.run(Executor.java:410) 
10:20:05 
10:20:05 Build step 'Deploy To IBM WebSphere Application Server' changed build result to FAILURE 
10:20:05 Finished: FAILURE 
</code> 

私が持って推測します私はすべてのデバッグのステップを投稿する前に、この問題を深く掘り下げることができます。しかし助けはまだ評価される。ありがとう

+0

私はコンソールに移動し、手動でアプリケーションを起動する場合は正常に開始されます。 –

+0

1.4.2ベータプラグインを試して問題が解決するかどうか確認してください。 WDPによって生成されたEARを導入する際に、この問題に対処するのに役立つプルリクエストがありました – gpeters

0

あなたが言及したように、websphere jarファイルの2つの異なるバージョンを同時に持つことはできません。

設定でデプロイメントタイムアウトを指定する必要があるため、ヌルポインタが取得されています。私は、クラスタ展開のために「30」秒以上を提案します。

関連する問題