内容简介:我有同样的问题,并通过复制xmlschema-core – * .jar form axis2 – * / lib /到my_project_root_directory / WebContent / WEB-INF / lib /成功解决了它.翻译自:https://stackoverflow.com/questions/35188087/java-lang-noclassdeffounderror-org-apache-ws-commons-schema-resolver-uriresolve
type Exception report message Servlet.init() for servlet AxisServlet threw exception description The server encountered an internal error that prevented it from fulfilling this request. exception javax.servlet.ServletException: Servlet.init() for servlet AxisServlet threw exception org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:956) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:423) org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1079) org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625) org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:318) java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) java.lang.Thread.run(Thread.java:745) root cause java.lang.NoClassDefFoundError: org/apache/ws/commons/schema/resolver/URIResolver org.apache.axis2.deployment.ModuleDeployer.deploy(ModuleDeployer.java:128) org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:144) org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:585) org.apache.axis2.deployment.RepositoryListener.init(RepositoryListener.java:264) org.apache.axis2.deployment.RepositoryListener.init2(RepositoryListener.java:66) org.apache.axis2.deployment.RepositoryListener.<init>(RepositoryListener.java:61) org.apache.axis2.deployment.DeploymentEngine.loadRepository(DeploymentEngine.java:152) org.apache.axis2.deployment.WarBasedAxisConfigurator.getAxisConfiguration(WarBasedAxisConfigurator.java:233) org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:64) org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:620) org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:471) org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:956) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:423) org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1079) org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625) org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:318) java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) java.lang.Thread.run(Thread.java:745) root cause java.lang.ClassNotFoundException: org.apache.ws.commons.schema.resolver.URIResolver org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1856) org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1705) org.apache.axis2.deployment.ModuleDeployer.deploy(ModuleDeployer.java:128) org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:144) org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:585) org.apache.axis2.deployment.RepositoryListener.init(RepositoryListener.java:264) org.apache.axis2.deployment.RepositoryListener.init2(RepositoryListener.java:66) org.apache.axis2.deployment.RepositoryListener.<init>(RepositoryListener.java:61) org.apache.axis2.deployment.DeploymentEngine.loadRepository(DeploymentEngine.java:152) org.apache.axis2.deployment.WarBasedAxisConfigurator.getAxisConfiguration(WarBasedAxisConfigurator.java:233) org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:64) org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:620) org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:471) org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:956) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:423) org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1079) org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625) org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:318) java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) java.lang.Thread.run(Thread.java:745)
有人可以帮忙吗?我在互联网上搜索,发现有一个文件httpcore-xx.jar必须放在apache tomcat lib目录中.我尝试过,但它没有用.我正在使用ubuntu 14.04 LTS和eclipse.我还尝试清理我的项目并再次构建.它没用.我面临的是页面正在加载到Web浏览器上,但是当我点击服务时,会出现上一个错误.我试图实现的教程是 http://codeoncloud.blogspot.gr/2012/12/create-java-web-service-in-eclipse_3982.html
我有同样的问题,并通过复制xmlschema-core – * .jar form axis2 – * / lib /到my_project_root_directory / WebContent / WEB-INF / lib /成功解决了它.
翻译自:https://stackoverflow.com/questions/35188087/java-lang-noclassdeffounderror-org-apache-ws-commons-schema-resolver-uriresolve
以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,也希望大家多多支持 码农网
猜你喜欢:本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
UML用户指南
[美] Grady Booch、James Rumbaugh、Ivar Jacobson / 邵维忠、麻志毅、马浩海、刘辉 / 人民邮电出版社 / 2006-6 / 49.00元
《UML用户指南》(第2版)是UML方面最权威的一本著作,三位作者是面向对象方法最早的倡导者,是UML的创始人。本版涵盖了UML 2.0。书中为具体的UML特征提供了参考,描述了一个使用UML进行开发的过程,旨在让读者掌握UML的术语、规则和语言特点,以及如何有效地使用这种语言,知道如何应用UML去解决一些常见的建模问题。《UML用户指南》(第2版)由7个部分组成,而且每章都描述了一个特定UML特......一起来看看 《UML用户指南》 这本书的介绍吧!