Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/apache/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java Websphere 7:META-INF/config/ibmaxis2.xml Axis2全局配置文件无法正确加载_Java_Apache_Websphere_Axis2_Websphere 7 - Fatal编程技术网

Java Websphere 7:META-INF/config/ibmaxis2.xml Axis2全局配置文件无法正确加载

Java Websphere 7:META-INF/config/ibmaxis2.xml Axis2全局配置文件无法正确加载,java,apache,websphere,axis2,websphere-7,Java,Apache,Websphere,Axis2,Websphere 7,我正在WAS 7上部署EAR文件,部署失败,我在中获得了以下信息: java.lang.Exception: WSWS7018E: The META-INF/config/ibmaxis2.xml Axis2 global configuration file cannot load correctly because of the following error: org.apache.axis2.deployment.DeploymentException: org.apache.axis

我正在WAS 7上部署EAR文件,部署失败,我在中获得了以下信息:

 java.lang.Exception: WSWS7018E: The META-INF/config/ibmaxis2.xml Axis2 global configuration file cannot load correctly because of the following error: org.apache.axis2.deployment.DeploymentException: org.apache.axis2.transport.jms.JMSSender
at com.ibm.ws.websvcs.component.WASAxis2ComponentImpl.loadAxis2ConfigurationContext(WASAxis2ComponentImpl.java:1133)
at com.ibm.ws.websvcs.deployment.WASAxis2MetaDataProcessor.loadConfiguration(WASAxis2MetaDataProcessor.java:471)
at com.ibm.ws.websvcs.deployment.WASAxis2MetaDataProcessor.processModuleMetadata(WASAxis2MetaDataProcessor.java:430)
at com.ibm.ws.websvcs.deployment.WASAxis2MetaDataProcessor.processApplicationMetaData(WASAxis2MetaDataProcessor.java:204)
at com.ibm.ws.websvcs.component.WASAxis2ComponentImpl.moduleMetaDataCreated(WASAxis2ComponentImpl.java:2228)
at com.ibm.ws.websvcs.component.WASAxis2ComponentImpl.metaDataCreated(WASAxis2ComponentImpl.java:930)
at com.ibm.ws.runtime.component.MetaDataMgrImpl.fireMetaDataCreated(MetaDataMgrImpl.java:190)
at com.ibm.ws.webcontainer.metadata.WebMetaDataFactory.createMetaData(WebMetaDataFactory.java:205)
at com.ibm.ws.runtime.component.MetaDataMgrImpl.createMetaDataFromFactories(MetaDataMgrImpl.java:174)
at com.ibm.ws.runtime.component.MetaDataMgrImpl.createMetaData(MetaDataMgrImpl.java:308)
at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:605)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:944)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:741)
at com.ibm.ws.runtime.component.ApplicationMgrImpl$1.run(ApplicationMgrImpl.java:1273)
at com.ibm.ws.security.auth.ContextManagerImpl.runAs(ContextManagerImpl.java:5305)
at com.ibm.ws.security.auth.ContextManagerImpl.runAsSystem(ContextManagerImpl.java:5483)
at com.ibm.ws.security.core.SecurityContext.runAsSystem(SecurityContext.java:255)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplicationDynamically(ApplicationMgrImpl.java:1278)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:2050)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:389)
at com.ibm.ws.runtime.component.CompositionUnitImpl.start(CompositionUnitImpl.java:123)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:332)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.startCompositionUnit(CompositionUnitMgrImpl.java:603)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.startCompositionUnit(CompositionUnitMgrImpl.java:565)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:1185)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:69)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:272)
at javax.management.modelmbean.RequiredModelMBean$4.run(RequiredModelMBean.java:1152)
at java.security.AccessController.doPrivileged(AccessController.java:298)
at com.ibm.oti.security.CheckedAccessControlContext.securityCheck(CheckedAccessControlContext.java:30)
at sun.misc.JavaSecurityAccessWrapper.doIntersectionPrivilege(JavaSecurityAccessWrapper.java:41)
at javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1146)
at javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:999)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:847)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:783)
at com.ibm.ws.management.AdminServiceImpl$1.run(AdminServiceImpl.java:1331)
at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118)
at com.ibm.ws.management.AdminServiceImpl.invoke(AdminServiceImpl.java:1224)
at com.ibm.ws.management.application.AppManagementImpl._startApplication(AppManagementImpl.java:1407)
at com.ibm.ws.management.application.AppManagementImpl.startApplication(AppManagementImpl.java:1303)
at com.ibm.ws.management.application.AppManagementImpl.startApplication(AppManagementImpl.java:1263)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:69)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:272)
at javax.management.modelmbean.RequiredModelMBean$4.run(RequiredModelMBean.java:1152)
at java.security.AccessController.doPrivileged(AccessController.java:298)
at com.ibm.oti.security.CheckedAccessControlContext.securityCheck(CheckedAccessControlContext.java:30)
at sun.misc.JavaSecurityAccessWrapper.doIntersectionPrivilege(JavaSecurityAccessWrapper.java:41)
at javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1146)
at javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:999)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:847)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:783)
at com.ibm.ws.management.AdminServiceImpl$1.run(AdminServiceImpl.java:1331)
at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118)
at com.ibm.ws.management.AdminServiceImpl.invoke(AdminServiceImpl.java:1224)
at com.ibm.ws.management.connector.AdminServiceDelegator.invoke(AdminServiceDelegator.java:181)
at com.ibm.ws.management.connector.ipc.CallRouter.route(CallRouter.java:242)
at com.ibm.ws.management.connector.ipc.IPCConnectorInboundLink.doWork(IPCConnectorInboundLink.java:353)
at com.ibm.ws.management.connector.ipc.IPCConnectorInboundLink$IPCConnectorReadCallback.complete(IPCConnectorInboundLink.java:595)
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:175)
at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1660)
Caused by: java.lang.Exception: WSWS7018E: The META-INF/config/ibmaxis2.xml Axis2 global configuration file cannot load correctly because of the following error: org.apache.axis2.deployment.DeploymentException: org.apache.axis2.transport.jms.JMSSender
at com.ibm.ws.websvcs.deployment.WASAxis2ConfigurationBuilder.loadAxisCfg(WASAxis2ConfigurationBuilder.java:520)
at com.ibm.ws.websvcs.deployment.WASAxis2ConfigurationBuilder.loadAxisServerConfiguration(WASAxis2ConfigurationBuilder.java:179)
at com.ibm.ws.websvcs.component.WASAxis2ComponentImpl.loadAxis2ConfigurationContext(WASAxis2ComponentImpl.java:1102)
... 81 more
这个问题发生在将maven插件添加到我的eclipse之后(尽管ear是一个旧插件,它不是使用maven生成的) 这个问题发生在不止一只耳朵上


我试图创建另一个配置文件,但遇到了相同的问题。

如果EAR是使用Maven构建的,则错误可能是由使用Maven下载的Axis2版本引起的。尝试将其从pom中排除,并仅使用WebSphereJRE提供的版本

但是如果你说耳朵不是用Maven制作的。。。WebSphere没有理由有其他行为。它独立于Eclipse插件。

经过调查

1-Ear文件正常。它很旧,我可以在另一台机器上成功地部署它

2-配置文件正常。我在创建新的配置文件后发现了相同的问题

所以,我确信这是我的生活中的一个问题。但我没有时间调查真正的原因


作为一个快速解决方案,我安装了WAS并重新安装了它。而且它工作得很好。

耳朵不是Maven造的。这是一个WAS问题,而不是maven Dependencies您以前没有将其部署到WAS,或者还更改了其他内容。将just maven插件安装到Eclipse不会对Ear产生任何影响。我以前部署过很多次。我同意你的看法,这不是maven插件。但我找不到问题的原因。请注意,这个问题发生在其他应用程序中,不仅仅是这个应用程序,还有像补丁包一样的更新吗?新的,不同的环境?应用程序库的更新?不,我记不起任何新内容,最后我卸载了WAS并重新安装了它。因为我没有时间在这个问题上做更多的调查。谢谢你的时间