当我试图启动tomcat时,在部署axis2模块时,我得到类强制转换异常.
我已经启用了EnableChildfirstClassLoading财产。当我检查类加载(使用-verbose)时,有些类被加载了两次。[Loaded org.apache.axis2.engine.MessageReceiver from file:/irv_test/cipsm/SecureLinkTestingNEW/SLInstaller1/app4.0/tomcat/webapps/axis2/WEB-INF/lib/axis2-kernel-1.6.2.jar]
这个类从同一个jar位置加载两次。
Axis Version: 1.6.2
Tomcat: 8
OS: Redhat Linux
下面是跟踪:
[ERROR] soapmonitor-1.6.2。一个无效的模块导致org.apache.axis2.handlers.soapmonitor。SOAPMonitorModule不能强制转换为org.apache.axis2.modules.Moduleorg.apache.axis2.deployment.DeploymentException: org.apache.axis2.handlers.soapmonitor。SOAPMonitorModule不能强制转换为org.apache.axis2.modules.Moduleorg.apache.axis2.deployment.repository.util.ArchiveReader.readModuleArchive (ArchiveReader.java: 527)org.apache.axis2.deployment.ModuleDeployer.deploy (ModuleDeployer.java: 77)org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy (DeploymentFileData.java: 136)org.apache.axis2.deployment.DeploymentEngine.doDeploy (DeploymentEngine.java: 813)org.apache.axis2.deployment.RepositoryListener.init (RepositoryListener.java: 264)org.apache.axis2.deployment.RepositoryListener.init2 (RepositoryListener.java: 69)在org.apache.axis2.deployment.RepositoryListener。(RepositoryListener.java: 64)org.apache.axis2.deployment.DeploymentEngine.loadRepository (DeploymentEngine.java: 158)org.apache.axis2.deployment.WarBasedAxisConfigurator.getAxisConfiguration (WarBasedAxisConfigurator.java: 228)org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext (ConfigurationContextFactory.java: 64)org.apache.axis2.transport.http.AxisServlet.initConfigContext (AxisServlet.java: 584)org.apache.axis2.transport.http.AxisServlet.init (AxisServlet.java: 454)org.apache.axis2.webapp.AxisAdminServlet.init (AxisAdminServlet.java: 60)org.apache.catalina.core.StandardWrapper.initServlet (StandardWrapper.java: 1231)org.apache.catalina.core.StandardWrapper.loadServlet (StandardWrapper.java: 1144)org.apache.catalina.core.StandardWrapper.allocate (StandardWrapper.java: 817)org.apache.catalina.core.StandardWrapperValve.invoke (StandardWrapperValve.java: 135)org.apache.catalina.core.StandardContextValve.invoke (StandardContextValve.java: 106)org.apache.catalina.authenticator.AuthenticatorBase.invoke (AuthenticatorBase.java: 501)org.apache.catalina.core.StandardHostValve.invoke (StandardHostValve.java: 142)org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java: 79)org.apache.catalina.core.StandardEngineValve.invoke (StandardEngineValve.java: 88)org.apache.catalina.connector.CoyoteAdapter.service (CoyoteAdapter.java: 516)org.apache.coyote.http11.AbstractHttp11Processor.process (AbstractHttp11Processor.java: 1086)org.apache.coyote.AbstractProtocol AbstractConnectionHandler.process美元(AbstractProtocol.java: 659)org.apache.coyote.http11.Http11NioProtocol Http11ConnectionHandler.process美元(Http11NioProtocol.java: 223)org.apache.tomcat.util.net.NioEndpoint SocketProcessor.doRun美元(NioEndpoint.java: 1558)org.apache.tomcat.util.net.NioEndpoint SocketProcessor.run美元(NioEndpoint.java: 1515)java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java: 1142)java.util.concurrent.ThreadPoolExecutor Worker.run美元(ThreadPoolExecutor.java: 617)org.apache.tomcat.util.threads.TaskThread WrappingRunnable.run美元(TaskThread.java: 61)java.lang.Thread.run (Thread.java: 745)造成原因:org.apache.axis2. deploymentexception: org.apache.axis2.handlers.soapmonitor。SOAPMonitorModule不能强制转换为org.apache.axis2.modules.Moduleorg.apache.axis2.deployment.ModuleBuilder.populateModule (ModuleBuilder.java: 233)org.apache.axis2.deployment.repository.util.ArchiveReader.readModuleArchive (ArchiveReader.java: 514)…31日更造成原因:org.apache.axis2. deploymentexception: org.apache.axis2.handlers.soapmonitor。SOAPMonitorModule不能强制转换为org.apache.axis2.modules.Moduleorg.apache.axis2.deployment.ModuleBuilder.loadModuleClass (ModuleBuilder.java: 86)org.apache.axis2.deployment.ModuleBuilder.populateModule (ModuleBuilder.java: 121)…32更多造成原因:java.lang.ClassCastException: org.apache.axis2.handlers.soapmonitor。SOAPMonitorModule不能强制转换为org.apache.axis2.modules.Module在org.apache.axis2.deployment.ModuleBuilder 1.美元运行(ModuleBuilder.java: 76)org.apache.axis2.java.security.AccessController.doPrivileged (AccessController.java: 132)org.apache.axis2.deployment.ModuleBuilder.loadModuleClass (ModuleBuilder.java: 74)…33更多'
EnableChildFirstClassLoading
在Axis2 1.6.2和1.6.3中被破坏。看到axis2 - 5720。