gpt4 book ai didi

java - Jenkins - 将 EAR 部署到 IBM WebSphere Application Server 时出错

转载 作者:太空宇宙 更新时间:2023-11-03 14:34:02 25 4
gpt4 key购买 nike

(2018 年 5 月 8 日更新)

这是关于使用“WebSphere Deployer Plugin”在 Jenkins 中将 EAR 部署到 WebSphere Application Server 时在连接阶段遇到的问题。

系统信息:

[ Jenkins ]
Jenkins 版本:2.107.2
java.runtime.version(从 Jenkins 管理界面看到):1.8.0_144-b01

[Jenkins - WebSphere Deployer 插件]
版本:1.6.1
将相关的 JAR 文件(从 C:\IBM\WebSphere\AppServer\runtimes 和 C:\IBM\WebSphere\AppServer\plugins)复制到 C:\Program Files (x86)\Jenkins\plugins\websphere-deployer\WEB-INF\lib.
单元/节点/服务器信息在插件配置中指定(与“显示可用目标”中显示的相同)。

[IBM WebSphere 应用服务器]
WAS版本:9.0.0.7
Java版本:1.8.0_151
管理安全:启用
应用程序安全性:已禁用
SOAP连接端口:8880(已检查未被防火墙拦截)
telnet到8880端口成功
通过8880端口命令行登录wsadmin成功

“测试连接”成功。不幸的是,在实际作业运行中,部署阶段在连接时仍然失败。

相关日志信息如下

[Jenkins 控制台日志/作业日志(显示在 Jenkins 管理界面“控制台输出”中)]

12:48:31 Connecting to IBM WebSphere Application Server...
12:48:31 The following artifacts will be deployed in this order...
12:48:31 -------------------------------------------
12:48:36 [EAR file path] Last modified on May 08, 2018 12:47:56
12:48:36 -------------------------------------------
12:48:59 Artifact is being deployed to virtual host: default_host
12:49:08 Error deploying to IBM WebSphere Application Server: Could not determine if artifact '[App name]' is installed: AdminException:
12:49:08 Performing rollback of '[App name]'
12:49:08 WARNING: Artifact doesn't exist rollback repository
12:49:08 Build step 'Deploy To IBM WebSphere Application Server' changed build result to FAILURE
12:49:12 Finished: FAILURE

[Jenkins 错误日志 (C:\Program Files (x86)\Jenkins\jenkins.err.log)]

May 08, 2018 12:43:47 PM hudson.WebAppMain$3 run
INFO: Jenkins is fully up and running
May 08, 2018 12:43:53 PM javax.jmdns.impl.DNSStatefulObject$DefaultImplementation waitForAnnounced WARNING: Wait for announced timed out: DNS: [Host name]. state: announcing 2 task: Announcer([Host name]) state: announcing
2 May 08, 2018 12:45:52 PM com.ibm.websphere.management.AdminClientFactory
WARNING: ADMC0046W: The system failed to load properties from com.ibm.SOAP.configURL: file:null/properties/soap.client.props
May 08, 2018 12:45:54 PM com.ibm.ws.ssl.config.SSLConfigManager
INFO: CWPKI0051I: The process has the java security property jdk.certpath.disabledAlgorithms set to [MD2, MD5, SHA1 jdkCA & usage TLSServer, RSA keySize < 1024, DSA keySize < 1024, EC keySize < 224]. The WebSphere Application server is setting the java security property jdk.certpath.disabledAlgorithms to [MD2, RSA keySize < 1024, MD5].
May 08, 2018 12:45:54 PM com.ibm.ws.ssl.config.SSLConfigManager
INFO: CWPKI0051I: The process has the java security property jdk.tls.disabledAlgorithms set to [SSLv3, RC4, MD5withRSA, DH keySize < 768, EC keySize < 224]. The WebSphere Application server is setting the java security property jdk.tls.disabledAlgorithms to [SSLv3, RC4, DH keySize < 768, MD5withRSA].
May 08, 2018 12:45:54 PM com.ibm.ws.ssl.config.SSLConfigManager
INFO: CWPKI0027I: Disabling default hostname verification for HTTPS URL connections.
May 08, 2018 12:45:54 PM com.ibm.ws.security.config.SecurityObjectLocator
INFO: CWSCF0002I: The client code is attempting to load the security configuration the server and this operation is not allowed.
May 08, 2018 12:45:56 PM com.ibm.ws.security.config.SecurityObjectLocator
INFO: CWSCF0002I: The client code is attempting to load the security configuration the server and this operation is not allowed.
May 08, 2018 12:46:06 PM com.ibm.websphere.management.AdminClientFactory
WARNING: ADMC0046W: The system failed to load properties from com.ibm.SOAP.configURL: file:null/properties/soap.client.props
May 08, 2018 12:46:32 PM org.jenkinsci.plugins.github.webhook.WebhookManager$1 run
INFO: GitHub webhooks activated for job [Jenkins Job name] with [GitHubRepositoryName[host=github.com,username=[GitHub user name],repository=[GitHub repository]]] (events: [PUSH])
May 08, 2018 12:46:37 PM com.squareup.okhttp.internal.Platform$JdkWithJettyBootPlatform getSelectedProtocol
INFO: ALPN callback dropped: SPDY and HTTP/2 are disabled. Is alpn-boot on the boot class path?
May 08, 2018 12:48:31 PM hudson.model.Run execute INFO: [Jenkins Job name] #38 main build action completed: SUCCESS
May 08, 2018 12:48:31 PM com.ibm.websphere.management.AdminClientFactory
WARNING: ADMC0046W: The system failed to load properties from com.ibm.SOAP.configURL: file:null/properties/soap.client.props
May 08, 2018 12:48:50 PM com.squareup.okhttp.internal.Platform$JdkWithJettyBootPlatform getSelectedProtocol
INFO: ALPN callback dropped: SPDY and HTTP/2 are disabled. Is alpn-boot on the boot class path?
com.ibm.websphere.management.exception.AdminException:
at com.ibm.websphere.management.application.AppManagementProxy.proxyInvoke(AppManagementProxy.java:192)
at com.ibm.websphere.management.application.AppManagementProxy.checkIfAppExists(AppManagementProxy.java:269)
at org.jenkinsci.plugins.websphere.services.deployment.WebSphereDeploymentService.isArtifactInstalled(WebSphereDeploymentService.java:468)
at org.jenkinsci.plugins.websphere_deployer.WebSphereDeployerPlugin.stopArtifact(WebSphereDeployerPlugin.java:409)
at org.jenkinsci.plugins.websphere_deployer.WebSphereDeployerPlugin.perform(WebSphereDeployerPlugin.java:245)
at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)
at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:1073)
at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635) at hudson.model.Run.execute(Run.java:1752)
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:543)
at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:429)
Caused by: java.lang.reflect.UndeclaredThrowableException
at com.sun.proxy.$Proxy67.invoke(Unknown Source)
at com.ibm.ws.management.AdminClientImpl.invoke(AdminClientImpl.java:224)
at com.ibm.websphere.management.application.AppManagementProxy.proxyInvoke(AppManagementProxy.java:186) ... 13 more
Caused by: [SOAPException: faultCode=SOAP-ENV:ServerException; msg=The Soap RPC call can't be unmarshalled.]
at com.ibm.ws.management.connector.soap.SOAPConnectorClient.handleAdminFault(SOAPConnectorClient.java:959)
at com.ibm.ws.management.connector.soap.SOAPConnectorClient.invokeTemplateOnce(SOAPConnectorClient.java:924)
at com.ibm.ws.management.connector.soap.SOAPConnectorClient.invokeTemplate(SOAPConnectorClient.java:689)
at com.ibm.ws.management.connector.soap.SOAPConnectorClient.invokeTemplate(SOAPConnectorClient.java:679)
at com.ibm.ws.management.connector.soap.SOAPConnectorClient.invoke(SOAPConnectorClient.java:665)
at com.ibm.ws.management.connector.soap.SOAPConnectorClient.invoke(SOAPConnectorClient.java:487) ... 16 more

[WAS 控制台日志 (SystemOut.log) (C:\IBM\WebSphere\AppServer\profiles\AppSrv01\logs\server1\SystemOut.log)]

[5/8/18 12:49:00:183 CST] 000000f7 LTPAServerObj E SECJ0369E: Authentication failed when using LTPA. The exception is com.ibm.websphere.wim.exception.PasswordCheckFailedException: CWWIM4513E The password match failed for the 'WASadmin' principal name..
[5/8/18 12:49:00:332 CST] 000000f6 LTPAServerObj E SECJ0369E: Authentication failed when using LTPA. The exception is com.ibm.websphere.wim.exception.PasswordCheckFailedException: CWWIM4513E The password match failed for the 'WASadmin' principal name..
[5/8/18 12:49:04:291 CST] 000000f7 LTPAServerObj E SECJ0369E: Authentication failed when using LTPA. The exception is com.ibm.websphere.wim.exception.PasswordCheckFailedException: CWWIM4513E The password match failed for the 'WASadmin' principal name..
[5/8/18 12:49:07:221 CST] 000000f7 FFDCJanitor I com.ibm.ws.ffdc.impl.FFDCJanitor doCleanupIfNeeded FFDC0004I: FFDC log file management removed 20 of 20 files that have reached their configured maximum age
[5/8/18 12:49:07:486 CST] 000000f7 FfdcProvider W com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: FFDC Incident emitted on C:\IBM\WebSphere\AppServer\profiles\AppSrv01\logs\ffdc\server1_f7987cd2_18.05.08_12.49.07.2212966399582449208005.txt Unable to authenticate incoming request 534
[5/8/18 12:49:07:489 CST] 000000f7 FfdcProvider W com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: FFDC Incident emitted on C:\IBM\WebSphere\AppServer\profiles\AppSrv01\logs\ffdc\server1_f7987cd2_18.05.08_12.49.07.4884954440341702141044.txt com.ibm.ws.management.connector.soap.SOAPUtils.extractSoapCall 157
[5/8/18 12:49:07:716 CST] 000000f7 FfdcProvider W com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: FFDC Incident emitted on C:\IBM\WebSphere\AppServer\profiles\AppSrv01\logs\ffdc\server1_f7987cd2_18.05.08_12.49.07.4909017290418303421157.txt com.ibm.ws.management.connector.soap.SOAPConnector.service 212

最佳答案

刚刚发布v1.5.6,请尝试升级到这个版本。如果您选择以下选项,您将不必再处理证书。

enter image description here

关于java - Jenkins - 将 EAR 部署到 IBM WebSphere Application Server 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49795262/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com