java.lang.NoClassDefFoundError:failed resolution of :Lorg/apache/http/ProtocolVersion?

版权声明:本文为博主原创文章,遵循 CC 4.0 by-sa 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/yuge8930/article/details/85620560

这是GooglePlay Services方面的一个bug,在修复之前,可以通过将此添加到AndroidManifest.xml内部<application>标签:<uses-library android:name="org.apache.http.legacy" android:required="false" />

展开阅读全文

java.lang.NoClassDefFoundError: org/apache/http/conn/ssl/X509HostnameVerifier

03-26

Exception in thread "Thread-16" java.lang.NoClassDefFoundError: org/apache/http/conn/ssl/X509HostnameVerifierrn at java.lang.ClassLoader.defineClass1(Native Method)rn at java.lang.ClassLoader.defineClass(ClassLoader.java:621)rn at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)rn at weblogic.utils.classloaders.GenericClassLoader.defineClass(GenericClassLoader.java:344)rn at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:301)rn at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:269)rn at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:55)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:307)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:252)rn at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:177)rn at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:36)rn at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)rn at java.lang.ClassLoader.defineClass1(Native Method)rn at java.lang.ClassLoader.defineClass(ClassLoader.java:621)rn at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)rn at weblogic.utils.classloaders.GenericClassLoader.defineClass(GenericClassLoader.java:344)rn at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:301)rn at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:269)rn at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:55)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:307)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:252)rn at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:177)rn at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:36)rn at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)rn at org.apache.http.conn.ssl.SSLSocketFactory.(SSLSocketFactory.java:154)rn at org.apache.http.impl.client.DefaultHttpClient.createClientConnectionManager(DefaultHttpClient.java:219)rn at org.apache.http.impl.client.AbstractHttpClient.getConnectionManager(AbstractHttpClient.java:312)rn at org.apache.http.impl.client.DefaultHttpClient.createHttpContext(DefaultHttpClient.java:254)rn at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:618)rn at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:576)rn at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:554)rn at boda.utility.HttpsUtil.doPost(HttpsUtil.java:109)rn at boda.third.javabean.OGThird.GetVideoOrder(OGThird.java:619)rn at boda.third.javabean.RefreshOGRecord.run(RefreshOGRecord.java:99)rnCaused by: java.lang.ClassNotFoundException: org.apache.http.conn.ssl.X509HostnameVerifierrn at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:296)rn at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:269)rn at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:55)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:307)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:252)rn at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:177)rn at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:36)rn at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)rn ... 34 morern 论坛

java.lang.NoClassDefFoundError: org/apache/http/client/HttpClient

08-22

2014-08-22 18:07:10,341[pool-1-thread-1] ERROR org.springframework.scheduling.support.TaskUtils$LoggingErrorHandler - Unexpected error occurred in scheduled task.rnjava.lang.NoClassDefFoundError: org/apache/http/client/HttpClientrn at com.jala.isv.yhd.common.api.YHDClientFactory.buildYHDClient(YHDClientFactory.java:16)rn at com.jala.isv.yhd.common.api.YHDClientConfigService.getYHDClient(YHDClientConfigService.java:83)rn at com.jala.isv.yhd.goods.service.impl.ItemSkuGetServiceImpl.saveShopSku(ItemSkuGetServiceImpl.java:55)rn at com.jala.isv.yhd.goods.task.YhdGoodsGetTask.doExcute(YhdGoodsGetTask.java:40)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)rn at java.lang.reflect.Method.invoke(Method.java:601)rn at org.springframework.scheduling.support.ScheduledMethodRunnable.run(ScheduledMethodRunnable.java:64)rn at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:53)rn at org.springframework.scheduling.concurrent.ReschedulingRunnable.run(ReschedulingRunnable.java:81)rn at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)rn at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)rn at java.util.concurrent.FutureTask.run(FutureTask.java:166)rn at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)rn at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)rn at java.lang.Thread.run(Thread.java:722)rnCaused by: java.lang.ClassNotFoundException: org.apache.http.client.HttpClientrn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1645)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1491)rn ... 19 morernrnrncommons-httpclient.jar commons-codec.jar commons-logging.jar都有。rn调用的一号店API接口 论坛

java.lang.NoClassDefFoundError: org/apache/http/impl/client/HttpClients

12-26

后台代码用到了httpclient,project里有httpclient-4.3.4.jar 包,一点登录就报这个错了,有人遇到过这个问题吗,恳请帮忙解答:rn[size=12px] Exception thrown by application class 'org.apache.wink.server.internal.RequestProcessor.handleRequest:195'rnjavax.servlet.ServletException: java.lang.NoClassDefFoundError: org/apache/http/impl/client/HttpClientsrnat org.apache.wink.server.internal.RequestProcessor.handleRequest(RequestProcessor.java:195)rnat org.apache.wink.server.internal.servlet.RestServlet.service(RestServlet.java:124)rnat javax.servlet.http.HttpServlet.service(HttpServlet.java:668)rnat com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1275)rnat [internal classes]rnCaused by: java.lang.NoClassDefFoundError: org/apache/http/impl/client/HttpClientsrnat com.ibm.bluemix.rest.api.Oauth2Callback.handleLogin(Oauth2Callback.java:56)rnat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rnat sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)rnat sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rnat java.lang.reflect.Method.invoke(Unknown Source)rnat org.apache.wink.server.internal.handlers.InvokeMethodHandler.handleRequest(InvokeMethodHandler.java:63)rnat org.apache.wink.server.handlers.AbstractHandler.handleRequest(AbstractHandler.java:33)rnat org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)rnat org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)rnat org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:75)rnat org.apache.wink.server.internal.handlers.CreateInvocationParametersHandler.handleRequest(CreateInvocationParametersHandler.java:54)rnat org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)rnat org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)rnat org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:75)rnat org.apache.wink.server.internal.handlers.FindResourceMethodHandler.handleResourceMethod(FindResourceMethodHandler.java:151)rnat org.apache.wink.server.internal.handlers.FindResourceMethodHandler.handleRequest(FindResourceMethodHandler.java:65)rnat org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)rnat org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)rnat org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:75)rnat org.apache.wink.server.internal.handlers.FindRootResourceHandler.handleRequest(FindRootResourceHandler.java:95)rnat org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)rnat org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)rnat org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:75)rnat org.apache.wink.server.internal.handlers.HeadMethodHandler.handleRequest(HeadMethodHandler.java:53)rnat org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)rnat org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)rnat org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:75)rnat org.apache.wink.server.internal.handlers.OptionsMethodWADLHandler.handleRequest(OptionsMethodWADLHandler.java:51)rnat org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)rnat org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)rnat org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:75)rnat org.apache.wink.server.internal.handlers.SearchResultHandler.handleRequest(SearchResultHandler.java:33)rnat org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)rnat org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)rnat org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:75)rnat org.apache.wink.server.internal.log.ResourceInvocation.handleRequest(ResourceInvocation.java:92)rnat org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)rnat org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)rnat org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:75)rnat org.apache.wink.server.internal.log.Requests.handleRequest(Requests.java:76)rnat org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)rnat org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)rnat org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:75)rnat org.apache.wink.server.handlers.AbstractHandlersChain.run(AbstractHandlersChain.java:60)rnat org.apache.wink.server.internal.RequestProcessor.handleRequestWithoutFaultBarrier(RequestProcessor.java:207)rnat org.apache.wink.server.internal.RequestProcessor.handleRequest(RequestProcessor.java:154)rn... 4 more[/size] 论坛

HTTP Status 500 - java.lang.NoClassDefFoundError

05-18

报错是:HTTP Status 500 - java.lang.NoClassDefFoundError: Could not initialize class org.apache.jasper.el.ELContextImplrnrntype Exception reportrnrnmessage java.lang.NoClassDefFoundError: Could not initialize class org.apache.jasper.el.ELContextImplrnrndescription The server encountered an internal error that prevented it from fulfilling this request.rnrnexception rnrnjavax.servlet.ServletException: java.lang.NoClassDefFoundError: Could not initialize class org.apache.jasper.el.ELContextImplrn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:343)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:728)rnrnrnroot cause rnrnjava.lang.NoClassDefFoundError: Could not initialize class org.apache.jasper.el.ELContextImplrn org.apache.jasper.compiler.Validator$ValidateVisitor.prepareExpression(Validator.java:1568)rn org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:747)rn org.apache.jasper.compiler.Node$ELExpression.accept(Node.java:954)rn org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2376)rn org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2428)rn org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2434)rn org.apache.jasper.compiler.Node$Root.accept(Node.java:475)rn org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2376)rn org.apache.jasper.compiler.Validator.validateExDirectives(Validator.java:1795)rn org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:217)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:373)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:353)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:340)rn org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:646)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:357)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:728)rnrnrnnote The full stack trace of the root cause is available in the Apache Tomcat/7.0.39 logs.rnrn请问问题出在哪儿了。rnrn哦,我的class包el-api已经复制到jre里面去了 论坛

java.lang.NoClassDefFoundError: org/apache/log4j/Layout

04-26

小弟刚接触hibernate,遇见个问题,望高手解答一下,谢谢rnpackage cn.suqiang.hibernate;rn//测试类rnpublic class Test rnrnpublic static void main(String[] args) rnrn People people = new People();rn people.setId("4030417");rn people.setName("suqiang");rn people.setPassword("fengbin");rn people.setAge(18);rn people.setEmail("suqiang@sina.com"); rn PeopleOperater po = new PeopleOperater();rn po.insert(people);rnrnrnrnpackage cn.suqiang.hibernate;rnrnimport org.hibernate.Session;rnimport org.hibernate.SessionFactory;rnimport org.hibernate.cfg.Configuration;rnrnpublic class PeopleOperater rnrn private Session session = null ;rn rn // 在构造方法之中实例化session对象rn public PeopleOperater()rn rn // 找到Hibernate配置rn Configuration config = new Configuration().configure() ;rn // 从配置中取出SessionFactoryrn SessionFactory factory = config.buildSessionFactory() ;rn // 从SessionFactory中取出一个Sessionrn this.session = factory.openSession() ;rn rnrn public void insert(People people)rn rn session.save(people);rn rn rnrnrnConfiguration config = new Configuration().configure() ;句rn出现异常:rnrnjava.lang.NoClassDefFoundError: org/apache/log4j/Layoutrn at org.apache.commons.logging.impl.Log4jFactory.getInstance(Log4jFactory.java:140)rn at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:257)rn at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:390)rn at org.hibernate.cfg.Configuration.(Configuration.java:110)rn at cn.suqiang.hibernate.PeopleOperater.(PeopleOperater.java:22)rn at cn.suqiang.hibernate.Test.main(Test.java:16)rnException in thread "main" rn什么原因啊?小第初学,不太懂org/apache/log4j/Layout是干什么的?在哪?为什么出现这个情况,谢谢 论坛

java.lang.NoClassDefFoundError: org/apache/el/ExpressionFactoryImpl

04-21

tomcat能够正常启动,但是就一直报这个错误,怎么解决啊,高手指教rn致命的: サーブレット jsp のServlet.service()が例外を投げましたrnjava.lang.NoClassDefFoundError: org/apache/el/ExpressionFactoryImplrn at org.apache.jasper.JspCompilationContext.getServletClassName(JspCompilationContext.java:371)rn at org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:619)rn at org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:144)rn at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:480)rn at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:353)rn at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)rn at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)rn at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:465)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)rn at java.lang.Thread.run(Thread.java:595) 论坛

java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet

06-21

Tomcat6.0运行提示rn2008-6-21 17:06:56 org.apache.catalina.core.AprLifecycleListener initrn[color=#FF0000]信息: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\Borland\JBuilder2006\jdk1.5\bin;D:\Apache Software Foundation\Tomcat 6.0\bin[/color]rn2008-6-21 17:06:56 org.apache.coyote.http11.Http11Protocol initrn信息: Initializing Coyote HTTP/1.1 on http-9090rn2008-6-21 17:06:56 org.apache.catalina.startup.Catalina loadrn信息: Initialization processed in 880 msrn2008-6-21 17:06:56 org.apache.catalina.core.StandardService startrn信息: Starting service Catalinarn2008-6-21 17:06:56 org.apache.catalina.core.StandardEngine startrn信息: Starting Servlet Engine: Apache Tomcat/6.0.14rn2008-6-21 17:07:00 org.apache.catalina.startup.HostConfig deployDirectoryrn[color=#800000]严重: Error deploying web application directory tepairnjava.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet[/color] at java.lang.ClassLoader.defineClass1(Native Method)rn at java.lang.ClassLoader.defineClass(ClassLoader.java:620)rn at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)rn at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)rn at java.net.URLClassLoader.access$100(URLClassLoader.java:56)rn at java.net.URLClassLoader$1.run(URLClassLoader.java:195)rn at java.security.AccessController.doPrivileged(Native Method)rn at java.net.URLClassLoader.findClass(URLClassLoader.java:188)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:306)rn at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:251)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1273)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)rn at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1083)rn at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)rn at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4045)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4351)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:516)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:566)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:585)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rn2008-6-21 17:07:00 org.apache.coyote.http11.Http11Protocol startrn信息: Starting Coyote HTTP/1.1 on http-9090rn2008-6-21 17:07:00 org.apache.jk.common.ChannelSocket initrn信息: JK: ajp13 listening on /0.0.0.0:8009rn2008-6-21 17:07:00 org.apache.jk.server.JkMain startrn信息: Jk running ID=0 time=0/47 config=nullrn2008-6-21 17:07:00 org.apache.catalina.startup.Catalina startrn信息: Server startup in 3817 msrnrn该怎样解决?rn 论坛

NoClassDefFoundError: Failed resolution of: Landroid/support/v4/animation/AnimatorCompatHelper;

10-24

最近想买一直报这个问题 希望有大神帮我解决一下 导致崩溃 在多种地方都会显示这个错误 也没有提示哪行带拿错了 rn rn java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v4/animation/AnimatorCompatHelper;rn at android.support.v7.widget.DefaultItemAnimator.resetAnimation(DefaultItemAnimator.java:515)rn at android.support.v7.widget.DefaultItemAnimator.animateAdd(DefaultItemAnimator.java:218)rn at android.support.v7.widget.SimpleItemAnimator.animateAppearance(SimpleItemAnimator.java:114)rn at android.support.v7.widget.RecyclerView.animateAppearance(RecyclerView.java:3804)rn at android.support.v7.widget.RecyclerView$4.processAppeared(RecyclerView.java:521)rn at android.support.v7.widget.ViewInfoStore.process(ViewInfoStore.java:247)rn at android.support.v7.widget.RecyclerView.dispatchLayoutStep3(RecyclerView.java:3653)rn at android.support.v7.widget.RecyclerView.dispatchLayout(RecyclerView.java:3323)rn at android.support.v7.widget.RecyclerView.onLayout(RecyclerView.java:3844)rn at android.view.View.layout(View.java:16673)rn at android.view.ViewGroup.layout(ViewGroup.java:5476)rn at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1743)rn at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1586)rn at android.widget.LinearLayout.onLayout(LinearLayout.java:1495)rn at android.view.View.layout(View.java:16673)rn at android.view.ViewGroup.layout(ViewGroup.java:5476)rn at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1743)rn at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1586)rn at android.widget.LinearLayout.onLayout(LinearLayout.java:1495)rn at android.view.View.layout(View.java:16673)rn at android.view.ViewGroup.layout(ViewGroup.java:5476)rn at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1743)rn at android.widget.LinearLayout.layoutHorizontal(LinearLayout.java:1732)rn at android.widget.LinearLayout.onLayout(LinearLayout.java:1497)rn at android.view.View.layout(View.java:16673)rn at android.view.ViewGroup.layout(ViewGroup.java:5476)rn at android.widget.FrameLayout.layoutChildren(FrameLayout.java:336)rn at android.widget.FrameLayout.onLayout(FrameLayout.java:273)rn at android.view.View.layout(View.java:16673)rn at android.view.ViewGroup.layout(ViewGroup.java:5476)rn at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1743)rn at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1586)rn at android.widget.LinearLayout.onLayout(LinearLayout.java:1495)rn at android.view.View.layout(View.java:16673)rn at android.view.ViewGroup.layout(ViewGroup.java:5476)rn at android.widget.FrameLayout.layoutChildren(FrameLayout.java:336)rn at android.widget.FrameLayout.onLayout(FrameLayout.java:273)rn at android.view.View.layout(View.java:16673)rn at android.view.ViewGroup.layout(ViewGroup.java:5476)rn at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1743)rn at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1586)rn at android.widget.LinearLayout.onLayout(LinearLayout.java:1495)rn at android.view.View.layout(View.java:16673)rn at android.view.ViewGroup.layout(ViewGroup.java:5476)rn at android.widget.FrameLayout.layoutChildren(FrameLayout.java:336)rn at android.widget.FrameLayout.onLayout(FrameLayout.java:273)rn at com.android.internal.policy.PhoneWindow$DecorView.onLayout(PhoneWindow.java:2727)rn at android.view.View.layout(View.java:16673)rn at android.view.ViewGroup.layout(ViewGroup.java:5476)rn at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2304)rn at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2033)rn at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1209)rn at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6330)rn at android.view.Choreographer$CallbackRecord.run(Choreographer.java:862)rn at android.view.Choreographer.doCallbacks(Choreographer.java:674)rn at android.view.Choreographer.doFrame(Choreographer.java:610)rn at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:848)rn at android.os.Handler.handleCallback(Handler.java:739)rn at android.os.Handler.dispatchMessage(Handler.java:95)rn at android.os.Looper.loo 问答

java.lang.NoSuchMethodError: org.hibernate.event.PreInsertEvent.getSource()Lorg/

04-18

求解![img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/001/face/9.gif][/img]rn用的SSH框架,添加用户时提示:rnroot causernrnjava.lang.NoSuchMethodError: org.hibernate.event.PreInsertEvent.getSource()Lorg/hibernate/engine/SessionImplementor;rn org.hibernate.validator.event.ValidateEventListener.onPreInsert(ValidateEventListener.java:172)rn org.hibernate.action.EntityInsertAction.preInsert(EntityInsertAction.java:178)rn org.hibernate.action.EntityInsertAction.execute(EntityInsertAction.java:72)rn org.hibernate.engine.ActionQueue.execute(ActionQueue.java:279)rn org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:263)rn org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:167)rn org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:321)rn org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:50)rn org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1028)rn org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:366)rn org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:137)rn org.springframework.orm.hibernate3.HibernateTransactionManager.doCommit(HibernateTransactionManager.java:606)rn org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:709)rn org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:678)rn org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:321)rn org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:116)rn org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)rn org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)rn org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)rn org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)rn $Proxy33.regUser(Unknown Source)rn com.eng.action.UserAction.regUser(UserAction.java:68)rn sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn java.lang.reflect.Method.invoke(Method.java:597)rn com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:441)rn com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:280)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:243)rn com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:165)rn com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:252)rn org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68)rn com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:122)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195)rn com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195)rn com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:179)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:75)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:94)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:306)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:89)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:130)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:267)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:126)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:138)rn com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:165)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:179)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:176)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:306)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:52)rn org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:488)rn org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)rn org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:91)rn org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:96)rn org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)rn应该怎么解决呢?添加过hibernate-validator-4.0.0.Beta1.jar包了 论坛

java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory

07-31

在用ireport做报表时,出现如下错误rnjava.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactoryrn at net.sf.jasperreports.engine.fill.JRBaseFiller.(JRBaseFiller.java:95)rn at net.sf.jasperreports.engine.fill.JRFiller.createFiller(JRFiller.java:147)rn at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:57)rn at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:402)rn at net.sf.jasperreports.engine.JasperRunManager.runReportToHtmlFile(JasperRunManager.java:441)rn at org.apache.jsp.ireportTest.ireportTest_jsp._jspService(org.apache.jsp.ireportTest.ireportTest_jsp:86)rn at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rn at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325)rn at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)rn at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:738)rn at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:526)rn at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)rn at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)rn at java.lang.Thread.run(Thread.java:619)rn怀疑是没有加commons-logging.jar,但是下了好几个版本,都不管用rn请高手指点啊。。。 论坛

java.lang.NoClassDefFoundError: org/apache/commons/lang3/StringUtils错误异常

04-28

[code=html]2013-4-28 13:17:57 org.apache.catalina.core.StandardContext filterStartrn严重: Exception starting filter struts2rnjava.lang.NoClassDefFoundError: org/apache/commons/lang3/StringUtilsrn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:211)rn at org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:102)rn at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:226)rn at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:67)rn at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:429)rn at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:473)rn at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:74)rn at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51)rn at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:295)rn at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:422)rn at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:115)rn at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4072)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4726)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1079)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1002)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:506)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)rn at org.apache.catalina.core.StandardService.start(StandardService.java:525)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:595)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)rnCaused by: java.lang.ClassNotFoundException: org.apache.commons.lang3.StringUtilsrn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)rn at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)rn ... 35 more[/code]rnrn[size=24px]出现这个问题 ,郁闷了很久, 用了网上大神的各种方法 ,都没有解决。rnrn后来我又删除了这个struts2项目 运行时居然又出现相同的异常,真心感觉这异常很蛋疼 rnrn原来的时候没有错误,就是最近几天做hibernate时出现,rnrn求各路大神支招 要不帮我解决异常, 要不帮我直接彻底删除rnrn鄙人不胜感激![/size] rnrn 论坛

java.lang.NoClassDefFoundError: org/apache/axis/client/Service

06-12

我要做一个在手机上调用webservice的程序(使用wsdl),调用的程序在webProject中可以正常完成。但我建立一个J2me的J2ME Midlet Suite时把调用的项关代码考入Midlet中,并已把相应jar包导入工程,但运行是提示错误:rnjava.lang.NoClassDefFoundError: org/apache/axis/client/Servicern at Hello.call(+4)rn at Hello.commandAction(+18)rn at javax.microedition.lcdui.Display$DisplayAccessor.commandAction(+282)rn at javax.microedition.lcdui.Display$DisplayManagerImpl.commandAction(+10)rn at com.sun.midp.lcdui.DefaultEventHandler.commandEvent(+68)rn at com.sun.midp.lcdui.AutomatedEventHandler.commandEvent(+47)rn at com.sun.midp.lcdui.DefaultEventHandler$QueuedEventHandler.handleVmEvent(+186)rn at com.sun.midp.lcdui.DefaultEventHandler$QueuedEventHandler.run(+57)rnExecution completed.rn请问高手要怎样解决呢?rnMidlet程序如下:rn[code=Java]rnimport javax.microedition.lcdui.Command;rnimport javax.microedition.lcdui.CommandListener;rnimport javax.microedition.lcdui.Display;rnimport javax.microedition.lcdui.Displayable;rnimport javax.microedition.lcdui.TextBox;rnimport javax.microedition.midlet.MIDlet;rnimport javax.microedition.midlet.MIDletStateChangeException;rn//以下三个为调用webservice的包rnimport org.apache.axis.client.Call;rnimport org.apache.axis.client.Service;rnimport javax.xml.namespace.QName;rnrnrnrnpublic class Hello extends MIDlet implements CommandListenerrnpublic void commandAction(Command c, Displayable d) rn if(c==comm)rn //调用webservice,测试数据是可以得到结果的数据rn String[] s=call("2010-4-5", "2010-6-3", "1587");rn if(s.length>0)rn textbox1.setString(s[0]);rn System.out.println(s[0]);rn rn rn rn rnrnprivate TextBox textbox1;rnprivate Command comm=new Command("TEST",Command.SCREEN,1);rn public Hello() rn super();rn textbox1=new TextBox("测试","textbox1",20,0);rn rnrn protected void destroyApp(boolean arg0) throws MIDletStateChangeException rnrn rnrn protected void pauseApp() rnrn rnrn protected void startApp() throws MIDletStateChangeException rn Display.getDisplay(this).setCurrent(textbox1);rn textbox1.addCommand(comm);rn textbox1.setCommandListener(this);rn rn //调用函数,已通过测试函数本身没问题rn public String[] call(String startDate,String endDate,String cardid)rn tryrn rn String endpoint ="http://localhost:8080/Axis/foodWebService.jws";rn Service service = new Service();rn Call call = null;rn call = (Call) service.createCall();rn call.setOperationName(new QName("http://localhost:8080/Axis/foodWebService.jws",rn "function"));rn call.setTargetEndpointAddress(new java.net.URL(endpoint));rn String[] ret = (String[]) call.invoke(new Object[]startDate,endDate,cardid);rn return ret;rn rn catch (Exception ex)rn rn System.out.println(ex.getMessage());rn return null;rn rn rnrnrn[/code] 论坛

java.lang.NoClassDefFoundError: org/apache/struts/taglib/html/HtmlTag

05-21

java.lang.NoClassDefFoundError: org/apache/struts/taglib/html/HtmlTagrn at java.lang.Class.getDeclaredConstructors0(Native Method)rn at java.lang.Class.privateGetDeclaredConstructors(Class.java:2328)rn at java.lang.Class.getConstructor0(Class.java:2640)rn at java.lang.Class.newInstance0(Class.java:321)rn at java.lang.Class.newInstance(Class.java:303)rn at org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:148)rn at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:315)rn at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)rn at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)rn at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)rn at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)rn at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)rn at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)rn at java.lang.Thread.run(Thread.java:595)rnrnrn请问这个是什么原因呢,我的项目的lib下面有这个类阿? 论坛

java.lang.NoClassDefFoundError: org/apache/commons/lang3/StringUtils

05-19

做一个从网页输入信息,然后传到数据库里面。struts2+hibernate+tomcat7。rn账号跟员工是一对一的,员工跟部门是多对一的。rn以下是注册的代码:[img=https://img-bbs.csdn.net/upload/201305/19/1368960667_551820.png][/img]rn然后是对应的action:rnpublic class SaveAction extends ActionSupportrn Yuangong yg;rn Zhanghao zh;rn Bumen bm;rn public Yuangong getYg() rn return yg;rn rn public void setYg(Yuangong yg) rn this.yg = yg;rn rn public Zhanghao getZh() rn return zh;rn rn public void setZh(Zhanghao zh) rn this.zh = zh;rn rn public Bumen getBumen() rn return bm;rn rn public void setBumen(Bumen bm) rn this.bm = bm;rn rn public String execute() throws Exceptionrn Session session=HibernateSessionFactory.getSession();rn Transaction ts=session.beginTransaction();rn Yuangong yuangong=new Yuangong(yg.getYgh(),yg.getXm(),yg.getXb());rn yuangong.setCssj(yg.getCssj());rn yuangong.setDh(yg.getDh());rn yuangong.setJg(yg.getJg());rn yuangong.setBz(yg.getBz());rn rn Zhanghao zhanghao=new Zhanghao();rn zhanghao.setYgh(yg.getYgh());rn zhanghao.setMm(zh.getMm()); rn rn Bumen bumen=new Bumen();rn bumen.setBmh(bm.getBmh());rn rn zhanghao.setYuangong(yuangong);rn yuangong.setZhanghao(zhanghao);rnrn yuangong.setBumen(bumen);rn /*if()rn return SUCCESS;rn */rn session.save(yuangong);rn ts.commit();rn HibernateSessionFactory.closeSession();rn return SUCCESS;rn rnweb.xml:rn[img=https://img-bbs.csdn.net/upload/201305/19/1368963189_287213.png][/img]rnstruts.xml:rn[img=https://img-bbs.csdn.net/upload/201305/19/1368963238_824869.png][/img]rnjar包:rn[img=https://img-bbs.csdn.net/upload/201305/19/1368963306_310460.png][/img]rn点击服务器运行后,可以登录到register.jsp页面,但是输入信息无法传入到数据库rnconsole有如下错误:rn[img=https://img-bbs.csdn.net/upload/201305/19/1368963462_511377.png][/img]rnrnrnrn 论坛

java.lang.NoClassDefFoundError: org/apache/struts/legacy/GenericDataSource

03-25

我用的是Struts1.1 rnrn rn rn rn rn rn rn rn rn rn rn rnrnrn在JSP页面里出错rnexception rnrnjavax.servlet.ServletException: Servlet.init() for servlet action threw exceptionrn org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164)rn org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:211)rn org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:805)rn org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:696)rn org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:605)rn org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:677)rn java.lang.Thread.run(Thread.java:536)rnrnrnroot cause rnrnjava.lang.NoClassDefFoundError: org/apache/struts/legacy/GenericDataSourcern java.lang.ClassLoader.defineClass0(Native Method)rn java.lang.ClassLoader.defineClass(ClassLoader.java:502)rn java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)rn org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1653)rn org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:883)rn org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1333)rn org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1213)rn java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)rn org.apache.struts.action.ActionServlet.initModuleDataSources(ActionServlet.java:1084)rn org.apache.struts.action.ActionServlet.init(ActionServlet.java:472)rn javax.servlet.GenericServlet.init(GenericServlet.java:256)rn org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164)rn org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:211)rn org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:805)rn org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:696)rn org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:605)rn org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:677)rn java.lang.Thread.run(Thread.java:536)rnrn我应该怎么配置,还需要哪些类?rn 论坛

java.lang.NoClassDefFoundError: org/apache/axiom/om/OMNode

04-15

论坛里的高手们,帮我看看这个问题!rn我想通过java编一个soap通信的程序,我独立建一个SoapClient工程(java,上位机是客户端)可以连接到远程(ARM,服务器端),我想实现的功能都可以正常实现!rn问题出在:我之前已经编好了一个RCP工程,现在想把Soap功能添加到现有的RCP里,但是会报错错误如下:rn[img=http://img.my.csdn.net/uploads/201304/15/1366023803_2638.JPG][/img]rn!ENTRY org.eclipse.jface 4 2 2013-04-15 19:02:21.463rn!MESSAGE 从插件调用代码时出现问题:“org.eclipse.jface”。rn!STACK 0rnjava.lang.NoClassDefFoundError: org/apache/axiom/om/OMNodern at com.psw.atsmanager.views.InstrumentView$1.doubleClick(InstrumentView.java:111)rn at org.eclipse.jface.viewers.StructuredViewer$1.run(StructuredViewer.java:845)rn at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)rn at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)rn at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)rn at org.eclipse.jface.viewers.StructuredViewer.fireDoubleClick(StructuredViewer.java:843)rn at org.eclipse.jface.viewers.StructuredViewer.handleDoubleSelect(StructuredViewer.java:1134)rn at org.eclipse.jface.viewers.StructuredViewer$4.widgetDefaultSelected(StructuredViewer.java:1246)rn at org.eclipse.jface.util.OpenStrategy.fireDefaultSelectionEvent(OpenStrategy.java:249)rn at org.eclipse.jface.util.OpenStrategy.access$0(OpenStrategy.java:246)rn at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:307)rn at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)rn at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)rn at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)rn at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)rn at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)rn at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)rn at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)rn at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)rn at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)rn at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)rn at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)rn at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)rn at com.psw.atsmanager.Application.start(Application.java:24)rn at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)rn at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)rn at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)rn at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)rn at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn at java.lang.reflect.Method.invoke(Unknown Source)rn at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)rn at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)rn at org.eclipse.equinox.launcher.Main.run(Main.java:1438)rn at org.eclipse.equinox.launcher.Main.main(Main.java:1414)rnCaused by: java.lang.ClassNotFoundException: org.apache.axiom.om.OMNodern at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)rn at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)rn at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)rn at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)rn at java.lang.ClassLoader.loadClass(Unknown Source)rn ... 37 morern我猜想,既然,在SoapClient工程里能成功,那在我RCP工程里是不是添加库的时候出问题了,可是我把SoapClient工程里里所有jar包到构建路径了!应该是不会有问题的!高手们,碰到过这个问题吗?谢谢啦!!!rn这是我的SoapClient工程,没问题!rn[img=http://img.my.csdn.net/uploads/201304/15/1366024182_4395.JPG][/img]rn这是我的RCP工程,出现了上述错误rn[img=http://img.my.csdn.net/uploads/201304/15/1366024212_8167.JPG][/img]rn 论坛

java.lang.NoClassDefFoundError: org/apache/log4j/Level 异常

01-04

java.lang.NoClassDefFoundError: org/apache/log4j/Levelrn at com.handsome.ip.util.Util.getIpByteArrayFromString(Util.java:28)rn at com.handsome.ip.IPSeeker.getArea(IPSeeker.java:250)rn at com.handsome.ip.IPSeeker.getIPLocation(IPSeeker.java:126)rn at org.apache.jsp.index_jsp._jspService(index_jsp.java:431)rn at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)rn at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)rn at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at com.iprecare.util.EncodingFilter.doFilter(EncodingFilter.java:36)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)rn at java.lang.Thread.run(Thread.java:619)rn谁见过啊。在以前的电脑上没的出现 。在win7下出现了这个问题。是版本的问题吗?rn是这个包 handsome-ipaddress-bin的问题吗? 论坛

没有更多推荐了,返回首页