IDEA Maven调用webservice,报错java.lang.NoClassDefFoundError: org/apache/axis/client [问题点数:50分]

Bbs1
本版专家分:0
结帖率 53.57%
Bbs1
本版专家分:0
Bbs6
本版专家分:5307
Blank
红花 2018年3月 Java大版内专家分月排行榜第一
Blank
黄花 2018年2月 Java大版内专家分月排行榜第二
javaweb项目出现java.lang.NoClassDefFoundError解决方法
前几天被一个问题卡了两三天,在网上找也看到很多人在求助,解决方法也很多,最普遍的方案是: 1、将需要的第三方包拷贝进libs 文件夹。 2、将引用的第三方包,添加进工作的build path -->工程上右键 Properties Java Build Path Libraries add jars 添加进对应jar包 3、(关键的一步)将lib设为源文件夹
webservice报错:java.lang.NoClassDefFoundError: com/sun/mail/util/LineInputStream
小弟我第一次接触<em>webservice</em>,按照O'REILLY那本书上的例子。做了个通过javamail和soap协议发送一个xml给一个servlet的例子,报了个如题错误,事先我已经把mail.jar
Android使用KSOAP2等第三方jar包调用WebService出现java.lang.NoClassDefFoundError.的解决办法
Simba: 引用第三方jar包时,会出现如上图所示的错误。其原因是因为,ADT的版本过高,与环境中的路径不再符合。 纠正方法有两个: 第一个: 1》将程序中bin包下生成的apk文件删除。 2》在项目上点击右键,选择属性选项(Properties),选择java Build Path,选择order and Export,勾选上导入的Ksoap包,选
java.lang.NoClassDefFoundError: org/apache/axis/client/Service
我要做一个在手机上<em>调用</em><em>webservice</em>的程序(使用wsdl),<em>调用</em>的程序在webProject中可以正常完成。但我建立一个J2me的J2ME Midlet Suite时把<em>调用</em>的项关代码考入Midlet中,并已把相应jar包导入工程,但运行是提示错误:rnjava.lang.NoClassDefFoundError: <em>org</em>/<em>apache</em>/<em>axis</em>/<em>client</em>/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//以下三个为<em>调用</em><em>webservice</em>的包rnimport <em>org</em>.<em>apache</em>.<em>axis</em>.<em>client</em>.Call;rnimport <em>org</em>.<em>apache</em>.<em>axis</em>.<em>client</em>.Service;rnimport javax.xml.namespace.QName;rnrnrnrnpublic class Hello extends MIDlet implements CommandListenerrnpublic void commandAction(Command c, Displayable d) rn if(c==comm)rn //<em>调用</em><em>webservice</em>,测试数据是可以得到结果的数据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 //<em>调用</em>函数,已通过测试函数本身没问题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/axis/wsdl/WSDL2Java
我Down下一个wsdl文件,用java %Java_Cmd% <em>org</em>.<em>apache</em>.<em>axis</em>.wsdl.WSDL2Java -%Output_Path% gimisGPS.wsdl 命令生成java文件时出现的错,在网上找了好多,都没发解决!!rn请大家帮帮忙rn谢谢rn
java.lang.NoClassDefFoundError: org/apache/http/client/HttpClient
2014-08-22 18:07:10,341[pool-1-thread-1] ERROR <em>org</em>.springframework.scheduling.support.TaskUtils$LoggingErrorHandler - Unexpected error occurred in scheduled task.rnjava.lang.NoClassDefFoundError: <em>org</em>/<em>apache</em>/http/<em>client</em>/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 <em>org</em>.springframework.scheduling.support.ScheduledMethodRunnable.run(ScheduledMethodRunnable.java:64)rn at <em>org</em>.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:53)rn at <em>org</em>.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: <em>org</em>.<em>apache</em>.http.<em>client</em>.HttpClientrn at <em>org</em>.<em>apache</em>.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1645)rn at <em>org</em>.<em>apache</em>.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1491)rn ... 19 morernrnrncommons-http<em>client</em>.jar commons-codec.jar commons-logging.jar都有。rn<em>调用</em>的一号店API接口
java.lang.NoClassDefFoundError: org/apache/http/impl/client/HttpClients
后台代码用到了http<em>client</em>,project里有http<em>client</em>-4.3.4.jar 包,一点登录就报这个错了,有人遇到过这个问题吗,恳请帮忙解答:rn[size=12px] Exception thrown by application class '<em>org</em>.<em>apache</em>.wink.server.internal.RequestProcessor.handleRequest:195'rnjavax.servlet.ServletException: java.lang.NoClassDefFoundError: <em>org</em>/<em>apache</em>/http/impl/<em>client</em>/HttpClientsrnat <em>org</em>.<em>apache</em>.wink.server.internal.RequestProcessor.handleRequest(RequestProcessor.java:195)rnat <em>org</em>.<em>apache</em>.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: <em>org</em>/<em>apache</em>/http/impl/<em>client</em>/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 <em>org</em>.<em>apache</em>.wink.server.internal.handlers.InvokeMethodHandler.handleRequest(InvokeMethodHandler.java:63)rnat <em>org</em>.<em>apache</em>.wink.server.handlers.AbstractHandler.handleRequest(AbstractHandler.java:33)rnat <em>org</em>.<em>apache</em>.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)rnat <em>org</em>.<em>apache</em>.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)rnat <em>org</em>.<em>apache</em>.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:75)rnat <em>org</em>.<em>apache</em>.wink.server.internal.handlers.CreateInvocationParametersHandler.handleRequest(CreateInvocationParametersHandler.java:54)rnat <em>org</em>.<em>apache</em>.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)rnat <em>org</em>.<em>apache</em>.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)rnat <em>org</em>.<em>apache</em>.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:75)rnat <em>org</em>.<em>apache</em>.wink.server.internal.handlers.FindResourceMethodHandler.handleResourceMethod(FindResourceMethodHandler.java:151)rnat <em>org</em>.<em>apache</em>.wink.server.internal.handlers.FindResourceMethodHandler.handleRequest(FindResourceMethodHandler.java:65)rnat <em>org</em>.<em>apache</em>.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)rnat <em>org</em>.<em>apache</em>.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)rnat <em>org</em>.<em>apache</em>.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:75)rnat <em>org</em>.<em>apache</em>.wink.server.internal.handlers.FindRootResourceHandler.handleRequest(FindRootResourceHandler.java:95)rnat <em>org</em>.<em>apache</em>.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)rnat <em>org</em>.<em>apache</em>.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)rnat <em>org</em>.<em>apache</em>.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:75)rnat <em>org</em>.<em>apache</em>.wink.server.internal.handlers.HeadMethodHandler.handleRequest(HeadMethodHandler.java:53)rnat <em>org</em>.<em>apache</em>.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)rnat <em>org</em>.<em>apache</em>.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)rnat <em>org</em>.<em>apache</em>.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:75)rnat <em>org</em>.<em>apache</em>.wink.server.internal.handlers.OptionsMethodWADLHandler.handleRequest(OptionsMethodWADLHandler.java:51)rnat <em>org</em>.<em>apache</em>.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)rnat <em>org</em>.<em>apache</em>.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)rnat <em>org</em>.<em>apache</em>.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:75)rnat <em>org</em>.<em>apache</em>.wink.server.internal.handlers.SearchResultHandler.handleRequest(SearchResultHandler.java:33)rnat <em>org</em>.<em>apache</em>.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)rnat <em>org</em>.<em>apache</em>.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)rnat <em>org</em>.<em>apache</em>.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:75)rnat <em>org</em>.<em>apache</em>.wink.server.internal.log.ResourceInvocation.handleRequest(ResourceInvocation.java:92)rnat <em>org</em>.<em>apache</em>.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)rnat <em>org</em>.<em>apache</em>.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)rnat <em>org</em>.<em>apache</em>.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:75)rnat <em>org</em>.<em>apache</em>.wink.server.internal.log.Requests.handleRequest(Requests.java:76)rnat <em>org</em>.<em>apache</em>.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)rnat <em>org</em>.<em>apache</em>.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)rnat <em>org</em>.<em>apache</em>.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:75)rnat <em>org</em>.<em>apache</em>.wink.server.handlers.AbstractHandlersChain.run(AbstractHandlersChain.java:60)rnat <em>org</em>.<em>apache</em>.wink.server.internal.RequestProcessor.handleRequestWithoutFaultBarrier(RequestProcessor.java:207)rnat <em>org</em>.<em>apache</em>.wink.server.internal.RequestProcessor.handleRequest(RequestProcessor.java:154)rn... 4 more[/size]
报错java.lang.NoClassDefFoundError: org/bouncyc
是运行在ubuntu16.4.04 上的eclipse,具体<em>报错</em>信息如下:n Exception in thread "main" java.lang.NoClassDefFoundError: <em>org</em>/bouncycastle/jce/provider/BouncyCastleProvidern at com.arxanfintech.sdk.wallet.Wallet.(Wallet.java:48)n at clclcl.upload.App.main(App.java:23)nCaused by: java.lang.ClassNotFoundException: <em>org</em>.bouncycastle.jce.provider.BouncyCastleProvidern at java.net.URLClassLoader.findClass(URLClassLoader.java:381)n at java.lang.ClassLoader.loadClass(ClassLoader.java:424)n at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)n at java.lang.ClassLoader.loadClass(ClassLoader.java:357)n ... 2 morenn看到有的答案说是下载bcprov-jdk14-127.jar,但我在Maven Dependencies里已经有了bcprov-jdk15on-155.jar。并且对于后面的那个ClassNotFoundException,我在Maven Dependencies里也可以找到Wallet类。第一次用Maven,希望各位大佬赐教
webservice 调用 报NoClassDefFoundError错误
-
IDEA中maven添加了依赖也报错java.lang.NoClassDefFoundError解决
问题描述:pom文件里已经添加依赖,编译时没有问题,运行时出现java.lang.NoClassDefFoundError问题。 解决方法:先clean再package如图中1和2,这样就把包强行下载下来了 ...
java.lang.NoClassDefFoundError: org/apache/log4j/Layout
小弟刚接触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 <em>org</em>.hibernate.Session;rnimport <em>org</em>.hibernate.SessionFactory;rnimport <em>org</em>.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: <em>org</em>/<em>apache</em>/log4j/Layoutrn at <em>org</em>.<em>apache</em>.commons.logging.impl.Log4jFactory.getInstance(Log4jFactory.java:140)rn at <em>org</em>.<em>apache</em>.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:257)rn at <em>org</em>.<em>apache</em>.commons.logging.LogFactory.getLog(LogFactory.java:390)rn at <em>org</em>.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什么原因啊?小第初学,不太懂<em>org</em>/<em>apache</em>/log4j/Layout是干什么的?在哪?为什么出现这个情况,谢谢
java.lang.NoClassDefFoundError: org/apache/log4j/Level
Exception in thread "main" java.lang.NoClassDefFoundError: <em>org</em>/<em>apache</em>/log4j/Levelrn at <em>org</em>.slf4j.LoggerFactory.getSingleton(LoggerFactory.java:223)rn at <em>org</em>.slf4j.LoggerFactory.bind(LoggerFactory.java:120)rn at <em>org</em>.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:111)rn at <em>org</em>.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:269)rn at <em>org</em>.slf4j.LoggerFactory.getLogger(LoggerFactory.java:242)rn at <em>org</em>.slf4j.LoggerFactory.getLogger(LoggerFactory.java:255)rn at <em>org</em>.hibernate.cfg.Configuration.(Configuration.java:152)rn at com.lee.hibernate.impl.Base.main(Base.java:14)
java.lang.NoClassDefFoundError: org/apache/el/ExpressionFactoryImpl
tomcat能够正常启动,但是就一直报这个错误,怎么解决啊,高手指教rn致命的: サーブレット jsp のServlet.service()が例外を投げましたrnjava.lang.NoClassDefFoundError: <em>org</em>/<em>apache</em>/el/ExpressionFactoryImplrn at <em>org</em>.<em>apache</em>.jasper.JspCompilationContext.getServletClassName(JspCompilationContext.java:371)rn at <em>org</em>.<em>apache</em>.jasper.JspCompilationContext.load(JspCompilationContext.java:619)rn at <em>org</em>.<em>apache</em>.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:144)rn at <em>org</em>.<em>apache</em>.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:480)rn at <em>org</em>.<em>apache</em>.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:353)rn at <em>org</em>.<em>apache</em>.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)rn at <em>org</em>.<em>apache</em>.jasper.servlet.JspServlet.service(JspServlet.java:260)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn at <em>org</em>.<em>apache</em>.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)rn at <em>org</em>.<em>apache</em>.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at <em>org</em>.<em>apache</em>.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)rn at <em>org</em>.<em>apache</em>.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)rn at <em>org</em>.<em>apache</em>.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:465)rn at <em>org</em>.<em>apache</em>.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)rn at <em>org</em>.<em>apache</em>.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)rn at <em>org</em>.<em>apache</em>.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at <em>org</em>.<em>apache</em>.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)rn at <em>org</em>.<em>apache</em>.coyote.http11.Http11Processor.process(Http11Processor.java:852)rn at <em>org</em>.<em>apache</em>.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)rn at <em>org</em>.<em>apache</em>.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)rn at java.lang.Thread.run(Thread.java:595)
java.lang.NoClassDefFoundError: org/apache/log4j/Logger
一个小应用,在MyEclipse+tomcat环境使用没有问题,但是部署到weblogic后报:rnjava.lang.NoClassDefFoundError: <em>org</em>/<em>apache</em>/log4j/Loggerrnrn使用commands-log和log4j是可以启动起来使用的,但是如果用commands-log和log4j的话,weblogic后台会输出很多一大推的信息,所以不想用这两个包,rn所以weblogic启动起来报那个错误,有没有高手指教下如何解决,谢谢!
axis报错 java.lang.NoClassDefFoundError: javax.mail.internet.MimeMultipart
执行OrderService service = new OrderServiceLocator();的时候报如下错误:rnCaused by: java.lang.NoClassDefFoundError: javax.mail.internet.MimeMultipartrn at <em>org</em>.<em>apache</em>.<em>axis</em>.encoding.DefaultTypeMappingImpl.class$(DefaultTypeMappingImpl.java:120)rn at <em>org</em>.<em>apache</em>.<em>axis</em>.encoding.DefaultTypeMappingImpl.initMappings(DefaultTypeMappingImpl.java:308)rn at <em>org</em>.<em>apache</em>.<em>axis</em>.encoding.DefaultTypeMappingImpl.(DefaultTypeMappingImpl.java:91)rn at <em>org</em>.<em>apache</em>.<em>axis</em>.encoding.DefaultTypeMappingImpl.getSingletonDelegate(DefaultTypeMappingImpl.java:85)rn at <em>org</em>.<em>apache</em>.<em>axis</em>.encoding.TypeMappingRegistryImpl.(TypeMappingRegistryImpl.java:155)rn at <em>org</em>.<em>apache</em>.<em>axis</em>.encoding.TypeMappingRegistryImpl.(TypeMappingRegistryImpl.java:149)rn at <em>org</em>.<em>apache</em>.<em>axis</em>.deployment.wsdd.WSDDDeployment.(WSDDDeployment.java:449)rn at <em>org</em>.<em>apache</em>.<em>axis</em>.deployment.wsdd.WSDDDocument.setDocument(WSDDDocument.java:139)rn at <em>org</em>.<em>apache</em>.<em>axis</em>.deployment.wsdd.WSDDDocument.(WSDDDocument.java:65)rn at <em>org</em>.<em>apache</em>.<em>axis</em>.configuration.FileProvider.configureEngine(FileProvider.java:179)rn at <em>org</em>.<em>apache</em>.<em>axis</em>.AxisEngine.init(AxisEngine.java:172)rn at <em>org</em>.<em>apache</em>.<em>axis</em>.AxisEngine.(AxisEngine.java:156)rn at <em>org</em>.<em>apache</em>.<em>axis</em>.<em>client</em>.AxisClient.(AxisClient.java:52)rn at <em>org</em>.<em>apache</em>.<em>axis</em>.<em>client</em>.Service.getAxisClient(Service.java:104)rn at <em>org</em>.<em>apache</em>.<em>axis</em>.<em>client</em>.Service.(Service.java:113)rn at com.zving.shop.<em>webservice</em>.order.OrderServiceLocator.(OrderServiceLocator.java:14)rn我反编译了一下代码,是在DefaultTypeMappingImpl类中的这个地方报的错:rnmyRegister(Constants.MIME_MULTIPART, MimeMultipart.class, new JAFDataHandlerSerializerFactory(MimeMultipart.class, Constants.MIME_MULTIPART), new JAFDataHandlerDeserializerFactory(MimeMultipart.class, Constants.MIME_MULTIPART));rn我已经有了mail.jar和activation.jar而且在 new OrderServiceLocator();如果<em>调用</em>System.out.println(MimeMultipart.class)是可以正常输出的,求大神解答,急。。。rn环境:eclipse jdk1.5
idea启动web项目tomcat报错:java.lang.NoClassDefFoundError: org/apache/commons/beanutils
之前lib目录下是commons-beanutils-1.8.0.jar版本,现在导入了commons-beanutils-1.8.3.jar包还是一样<em>报错</em>。rn[img=https://img-bbs.csdn.net/upload/201903/18/1552895998_489506.png][/img]rnrnCaused by: java.lang.NoClassDefFoundError: <em>org</em>/<em>apache</em>/commons/beanutils/Converterrn at java.lang.Class.getDeclaredFields0(Native Method)rn at java.lang.Class.privateGetDeclaredFields(Class.java:2583)rn at java.lang.Class.getDeclaredFields(Class.java:1916)rn at <em>org</em>.<em>apache</em>.catalina.util.Introspection.getDeclaredFields(Introspection.java:110)rn at <em>org</em>.<em>apache</em>.catalina.startup.WebAnnotationSet.loadFieldsAnnotation(WebAnnotationSet.java:269)rn at <em>org</em>.<em>apache</em>.catalina.startup.WebAnnotationSet.loadApplicationListenerAnnotations(WebAnnotationSet.java:89)rn at <em>org</em>.<em>apache</em>.catalina.startup.WebAnnotationSet.loadApplicationAnnotations(WebAnnotationSet.java:67)rn at <em>org</em>.<em>apache</em>.catalina.startup.ContextConfig.applicationAnnotationsConfig(ContextConfig.java:328)rn at <em>org</em>.<em>apache</em>.catalina.startup.ContextConfig.configureStart(ContextConfig.java:772)rn at <em>org</em>.<em>apache</em>.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:299)rn at <em>org</em>.<em>apache</em>.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:94)rn at <em>org</em>.<em>apache</em>.catalina.core.StandardContext.startInternal(StandardContext.java:5176)rn at <em>org</em>.<em>apache</em>.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
连接webservice报错java.lang.NoClassDefFoundError: org/xmlpull/v1/XmlPullParserExcept
代码如下rnpackage com.smart_home;rnrnimport java.io.IOException;rnimport javax.microedition.lcdui.Command;rnimport javax.microedition.lcdui.CommandListener;rnimport javax.microedition.lcdui.Display;rnimport javax.microedition.lcdui.Displayable;rnimport javax.microedition.lcdui.Form;rnimport javax.microedition.lcdui.TextField;rnimport javax.microedition.midlet.MIDlet;rnimport javax.microedition.midlet.MIDletStateChangeException;rnimport <em>org</em>.ksoap2.SoapEnvelope;rnimport <em>org</em>.ksoap2.serialization.SoapObject;rnimport <em>org</em>.ksoap2.serialization.SoapSerializationEnvelope;rnimport <em>org</em>.ksoap2.transport.HttpTransportSE;rnimport <em>org</em>.xmlpull.v1.XmlPullParserException;rnrnrnpublic class SHMIDlet extends MIDlet rn rn private Display display;rn private TextField tfURL, tfUN, tfPW;rn private Command cmdLogin, cmdExit;rn private Form loginForm;rnrn private String URL;rn private String NAMESPACE;rn private String SOAP_ACTION;rn private String METHOD_NAME;rn private SoapSerializationEnvelope envelope;rn private SoapObject rpc;rn private HttpTransportSE ht;rnrn protected void destroyApp(boolean arg0) throws MIDletStateChangeException rn rnrn protected void pauseApp() rn rnrn protected void startApp() throws MIDletStateChangeException rn display = Display.getDisplay(this);rn loginFace();rn display.setCurrent(loginForm);rn rn rnrn private class LoginListener implements CommandListenerrn public void commandAction(Command c, Displayable d) rn if (c == cmdLogin) rn Thread thread = new Thread()rn public void run() rn URL = "http://cjf780426.xicp.net:803/Demo/DEMO1/GBSvr.dll/soap/IGBSvr/";rn NAMESPACE = "http://tempuri.<em>org</em>/";rn METHOD_NAME = "GBlogin";rn SOAP_ACTION = "urn:GBSvrIntf-IGBSvr#GBlogin";rn String response = null;rn envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);rn rpc = new SoapObject(NAMESPACE, METHOD_NAME);rn ht = new HttpTransportSE(URL);rn rpc.addProperty("UserName", "9990520777");rn rpc.addProperty("UserPWD", "123");rn envelope.dotNet = true;rn envelope.bodyOut = rpc;rn envelope.setOutputSoapObject(rpc);rn try rn ht.debug = true;rn ht.call(SOAP_ACTION, envelope);rn response = (String) envelope.getResponse();rn catch (IOException e) rn e.printStackTrace();rn catch (XmlPullParserException e) rn e.printStackTrace();rn rn System.out.println(response);rn rn ;rn thread.start();rn rn rn rn rn public void loginFace() rn loginForm = new Form("登陆");rn tfURL = new TextField("地址:", "", 150, TextField.ANY);rn tfUN = new TextField("用户名:", "", 20, TextField.ANY);rn tfPW = new TextField("密码:", "", 20, TextField.ANY);rn cmdLogin = new Command("登陆", Command.OK, 1);rn cmdExit = new Command("退出", Command.EXIT, 1);rn loginForm.append(tfURL);rn loginForm.append(tfUN);rn loginForm.append(tfPW);rn loginForm.addCommand(cmdLogin);rn loginForm.addCommand(cmdExit);rn loginForm.setCommandListener(new LoginListener());rn rn rnrn
tomcat7.0下运行jsp报错java.lang.NoClassDefFoundError: org/apache/juli/logging/LogFact
我用的是tomcat7.0,运行jsp后<em>报错</em>,说不能找到主方法,然后报标题上的异常。到网上查添加tomcat-juli.jar到Preferentces->MyEclipse->Servers->Tomcat->Tomcat 6.x下,可是我的tomcatperferentces就没有myeclipse这一项啊,不知道怎么改,昨晚纠结了一晚上,求大神帮忙。。。
服务器报错java.lang.NoClassDefFoundError: org/apache/struts/actions/DispatchAction
以前可以重新运行的项目现在报这个错,不知道怎么解决,麻烦高手看1下指点。rnrn[code=Java]严重: Exception sending context initialized event to listener instance of class <em>org</em>.springframework.web.context.ContextLoaderListenerrn<em>org</em>.springframework.beans.factory.BeanDefinitionStoreException: Error registering bean with name '/department' defined in ServletContext resource [/WEB-INF/classes/applicationContext.xml]: Class that bean class [com.shili2.action.DeptAction] depends on not found; nested exception is java.lang.NoClassDefFoundError: <em>org</em>/<em>apache</em>/struts/actions/DispatchActionrnjava.lang.NoClassDefFoundError: <em>org</em>/<em>apache</em>/struts/actions/DispatchActionrn 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 <em>org</em>.<em>apache</em>.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2733)rn at <em>org</em>.<em>apache</em>.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1124)rn at <em>org</em>.<em>apache</em>.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1612)rn at <em>org</em>.<em>apache</em>.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1491)rn at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)rn at java.lang.Class.forName0(Native Method)rn at java.lang.Class.forName(Class.java:242)rn at <em>org</em>.springframework.util.ClassUtils.forName(ClassUtils.java:127)rn at <em>org</em>.springframework.beans.factory.support.BeanDefinitionReaderUtils.createBeanDefinition(BeanDefinitionReaderUtils.java:65)rn at <em>org</em>.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.parseBeanDefinitionElement(DefaultXmlBeanDefinitionParser.java:466)rn at <em>org</em>.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.parseBeanDefinitionElement(DefaultXmlBeanDefinitionParser.java:432)rn at <em>org</em>.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.parseBeanDefinitions(DefaultXmlBeanDefinitionParser.java:347)rn at <em>org</em>.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.registerBeanDefinitions(DefaultXmlBeanDefinitionParser.java:197)rn at <em>org</em>.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:295)rn at <em>org</em>.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:223)rn at <em>org</em>.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:173)rn at <em>org</em>.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:148)rn at <em>org</em>.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:129)rn at <em>org</em>.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:145)rn at <em>org</em>.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:126)rn at <em>org</em>.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:94)rn at <em>org</em>.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:89)rn at <em>org</em>.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:270)rn at <em>org</em>.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:139)rn at <em>org</em>.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:252)rn at <em>org</em>.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:190)rn at <em>org</em>.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)rn at <em>org</em>.<em>apache</em>.catalina.core.StandardContext.listenerStart(StandardContext.java:4135)rn at <em>org</em>.<em>apache</em>.catalina.core.StandardContext.start(StandardContext.java:4630)rn at <em>org</em>.<em>apache</em>.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)rn at <em>org</em>.<em>apache</em>.catalina.core.ContainerBase.addChild(ContainerBase.java:771)rn at <em>org</em>.<em>apache</em>.catalina.core.StandardHost.addChild(StandardHost.java:546)rn at <em>org</em>.<em>apache</em>.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1041)rn at <em>org</em>.<em>apache</em>.catalina.startup.HostConfig.deployDirectories(HostConfig.java:964)rn at <em>org</em>.<em>apache</em>.catalina.startup.HostConfig.deployApps(HostConfig.java:502)rn at <em>org</em>.<em>apache</em>.catalina.startup.HostConfig.start(HostConfig.java:1277)rn at <em>org</em>.<em>apache</em>.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)rn at <em>org</em>.<em>apache</em>.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)rn at <em>org</em>.<em>apache</em>.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at <em>org</em>.<em>apache</em>.catalina.core.StandardHost.start(StandardHost.java:785)rn at <em>org</em>.<em>apache</em>.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at <em>org</em>.<em>apache</em>.catalina.core.StandardEngine.start(StandardEngine.java:445)rn at <em>org</em>.<em>apache</em>.catalina.core.StandardService.start(StandardService.java:519)rn at <em>org</em>.<em>apache</em>.catalina.core.StandardServer.start(StandardServer.java:710)rn at <em>org</em>.<em>apache</em>.catalina.startup.Catalina.start(Catalina.java:581)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 <em>org</em>.<em>apache</em>.catalina.startup.Bootstrap.start(Bootstrap.java:289)rn at <em>org</em>.<em>apache</em>.catalina.startup.Bootstrap.main(Bootstrap.java:414)rn2011-1-15 9:35:30 <em>org</em>.<em>apache</em>.catalina.core.StandardContext startrn严重: Error listenerStartrn2011-1-15 9:35:30 <em>org</em>.<em>apache</em>.catalina.core.StandardContext startrn严重: Context [/Shilikaifa2] startup failed due to previous errorsrn2011-1-15 9:35:30 <em>org</em>.<em>apache</em>.catalina.core.ApplicationContext logrn信息: Closing Spring root WebApplicationContextrnlog4j:WARN No appenders could be found for logger (<em>org</em>.springframework.web.context.ContextLoader).rnlog4j:WARN Please initialize the log4j system properly.[/code]
SSH框架,报错 [java.lang.NoClassDefFoundError: org/apache/struts2/json/JSONException]
各位前辈、大神,本人在使用ssh开发项目时,遇到一个json的<em>报错</em>,jsp页面<em>报错</em>如下,控制台无<em>报错</em>打印。rn想请教各位前辈,这是什么原因?rnrn[b][size=14px]Struts Problem Report[/size]rn[/b]rnStruts has detected an unhandled exception:rnMessages: rnrn <em>org</em>.<em>apache</em>.struts2.json.JSONExceptionrn <em>org</em>/<em>apache</em>/struts2/json/JSONExceptionrn Method "execute" failed for object com.h.merchant.portal.web.actions.merchant.report.card.sales.ListAction@4446a2c4rnrnFile: <em>org</em>/<em>apache</em>/catalina/loader/WebappClassLoaderBase.javarnLine number: 1,305rnrnStacktracesrnognl.MethodFailedException: Method "execute" failed for object com.h.merchant.portal.web.actions.merchant.report.card.sales.ListAction@4446a2c4 [java.lang.NoClassDefFoundError: <em>org</em>/<em>apache</em>/struts2/json/JSONException]rnrn ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:1534)rn ognl.ObjectMethodAccessor.callMethod(ObjectMethodAccessor.java:68)rn com.opensymphony.xwork2.ognl.accessor.XWorkMethodAccessor.callMethodWithDebugInfo(XWorkMethodAccessor.java:96)rn com.opensymphony.xwork2.ognl.accessor.XWorkMethodAccessor.callMethod(XWorkMethodAccessor.java:88)rn ognl.OgnlRuntime.callMethod(OgnlRuntime.java:1598)rn ognl.ASTMethod.getValueBody(ASTMethod.java:91)rn ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:212)rn ognl.SimpleNode.getValue(SimpleNode.java:258)rn ognl.Ognl.getValue(Ognl.java:494)rn ognl.Ognl.getValue(Ognl.java:458)rnrn
java.lang.NoClassDefFoundError: org/apache/commons/lang3/StringUtils
做一个从网页输入信息,然后传到数据库里面。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
我用的是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 <em>org</em>.<em>apache</em>.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164)rn <em>org</em>.<em>apache</em>.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:211)rn <em>org</em>.<em>apache</em>.coyote.http11.Http11Processor.process(Http11Processor.java:805)rn <em>org</em>.<em>apache</em>.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:696)rn <em>org</em>.<em>apache</em>.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:605)rn <em>org</em>.<em>apache</em>.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:677)rn java.lang.Thread.run(Thread.java:536)rnrnrnroot cause rnrnjava.lang.NoClassDefFoundError: <em>org</em>/<em>apache</em>/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 <em>org</em>.<em>apache</em>.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1653)rn <em>org</em>.<em>apache</em>.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:883)rn <em>org</em>.<em>apache</em>.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1333)rn <em>org</em>.<em>apache</em>.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1213)rn java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)rn <em>org</em>.<em>apache</em>.struts.action.ActionServlet.initModuleDataSources(ActionServlet.java:1084)rn <em>org</em>.<em>apache</em>.struts.action.ActionServlet.init(ActionServlet.java:472)rn javax.servlet.GenericServlet.init(GenericServlet.java:256)rn <em>org</em>.<em>apache</em>.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164)rn <em>org</em>.<em>apache</em>.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:211)rn <em>org</em>.<em>apache</em>.coyote.http11.Http11Processor.process(Http11Processor.java:805)rn <em>org</em>.<em>apache</em>.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:696)rn <em>org</em>.<em>apache</em>.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:605)rn <em>org</em>.<em>apache</em>.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:677)rn java.lang.Thread.run(Thread.java:536)rnrn我应该怎么配置,还需要哪些类?rn
java.lang.NoClassDefFoundError: org/apache/jasper/JspC 什么错误?
jbuilder + jboss 3.2.3 ,wizard生成的jsp程序出错。rnrn"jsp1.jsp": java.lang.NoClassDefFoundError: <em>org</em>/<em>apache</em>/jasper/JspCrnException in thread "main" rnrn怎样改?
解决报错java.lang.NoClassDefFoundError: org/apache/james/mime4j/MimeException
该jar包解决<em>报错</em>java.lang.NoClassDefFoundError: <em>org</em>/<em>apache</em>/james/mime4j/MimeException,亲测可用。
java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
在用ireport做报表时,出现如下错误rnjava.lang.NoClassDefFoundError: <em>org</em>/<em>apache</em>/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 <em>org</em>.<em>apache</em>.jsp.ireportTest.ireportTest_jsp._jspService(<em>org</em>.<em>apache</em>.jsp.ireportTest.ireportTest_jsp:86)rn at <em>org</em>.<em>apache</em>.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rn at <em>org</em>.<em>apache</em>.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325)rn at <em>org</em>.<em>apache</em>.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)rn at <em>org</em>.<em>apache</em>.jasper.servlet.JspServlet.service(JspServlet.java:245)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rn at <em>org</em>.<em>apache</em>.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)rn at <em>org</em>.<em>apache</em>.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)rn at <em>org</em>.<em>apache</em>.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)rn at <em>org</em>.<em>apache</em>.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)rn at <em>org</em>.<em>apache</em>.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)rn at <em>org</em>.<em>apache</em>.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)rn at <em>org</em>.<em>apache</em>.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)rn at <em>org</em>.<em>apache</em>.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)rn at <em>org</em>.<em>apache</em>.coyote.http11.Http11Processor.process(Http11Processor.java:825)rn at <em>org</em>.<em>apache</em>.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:738)rn at <em>org</em>.<em>apache</em>.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:526)rn at <em>org</em>.<em>apache</em>.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)rn at <em>org</em>.<em>apache</em>.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/struts2/util/ObjectFactoryDestroyable
初次使用struts2,遇到了一个很奇怪的异常。我只是运用struts2做了一个简单的登录界面,可以按照预想的结果正常运行,rn没有任何错误,但是,将项目remove出Tomcat时,居然报异常,rnrnjava.lang.NoClassDefFoundError: <em>org</em>/<em>apache</em>/struts2/util/ObjectFactoryDestroyablern at <em>org</em>.<em>apache</em>.struts2.dispatcher.Dispatcher.cleanup(Dispatcher.java:254)rn at <em>org</em>.<em>apache</em>.struts2.dispatcher.FilterDispatcher.destroy(FilterDispatcher.java:233)rn rn 。。。。。。rn然后再重新部署,发现原来的程序竟运行不了了,也<em>报错</em>:rnjavax.management.RuntimeErrorException: Error thrown in preDeregister methodrn。。。。。。。。rnCaused by: java.lang.NoClassDefFoundError: <em>org</em>/<em>apache</em>/struts2/util/ObjectFactoryDestroyablern。。。。。rn然后我把Tomcat关闭,再重新部署,发现异常又消失了,程序依旧正常,然后,我反复地部署,关闭,打开TOMCAT,我发现这竟然不是偶然,居然每次都出现上述情况,只要将项目remove出tomcat就报异常,必须重启tomcat才可以恢复正常
java.lang.NoClassDefFoundError: org/apache/commons/lang3/StringUtils错误异常
[code=html]2013-4-28 13:17:57 <em>org</em>.<em>apache</em>.catalina.core.StandardContext filterStartrn严重: Exception starting filter struts2rnjava.lang.NoClassDefFoundError: <em>org</em>/<em>apache</em>/commons/lang3/StringUtilsrn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:211)rn at <em>org</em>.<em>apache</em>.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 <em>org</em>.<em>apache</em>.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:429)rn at <em>org</em>.<em>apache</em>.struts2.dispatcher.Dispatcher.init(Dispatcher.java:473)rn at <em>org</em>.<em>apache</em>.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:74)rn at <em>org</em>.<em>apache</em>.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51)rn at <em>org</em>.<em>apache</em>.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:295)rn at <em>org</em>.<em>apache</em>.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:422)rn at <em>org</em>.<em>apache</em>.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:115)rn at <em>org</em>.<em>apache</em>.catalina.core.StandardContext.filterStart(StandardContext.java:4072)rn at <em>org</em>.<em>apache</em>.catalina.core.StandardContext.start(StandardContext.java:4726)rn at <em>org</em>.<em>apache</em>.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)rn at <em>org</em>.<em>apache</em>.catalina.core.ContainerBase.addChild(ContainerBase.java:779)rn at <em>org</em>.<em>apache</em>.catalina.core.StandardHost.addChild(StandardHost.java:601)rn at <em>org</em>.<em>apache</em>.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1079)rn at <em>org</em>.<em>apache</em>.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1002)rn at <em>org</em>.<em>apache</em>.catalina.startup.HostConfig.deployApps(HostConfig.java:506)rn at <em>org</em>.<em>apache</em>.catalina.startup.HostConfig.start(HostConfig.java:1317)rn at <em>org</em>.<em>apache</em>.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)rn at <em>org</em>.<em>apache</em>.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)rn at <em>org</em>.<em>apache</em>.catalina.core.ContainerBase.start(ContainerBase.java:1065)rn at <em>org</em>.<em>apache</em>.catalina.core.StandardHost.start(StandardHost.java:840)rn at <em>org</em>.<em>apache</em>.catalina.core.ContainerBase.start(ContainerBase.java:1057)rn at <em>org</em>.<em>apache</em>.catalina.core.StandardEngine.start(StandardEngine.java:463)rn at <em>org</em>.<em>apache</em>.catalina.core.StandardService.start(StandardService.java:525)rn at <em>org</em>.<em>apache</em>.catalina.core.StandardServer.start(StandardServer.java:754)rn at <em>org</em>.<em>apache</em>.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 <em>org</em>.<em>apache</em>.catalina.startup.Bootstrap.start(Bootstrap.java:289)rn at <em>org</em>.<em>apache</em>.catalina.startup.Bootstrap.main(Bootstrap.java:414)rnCaused by: java.lang.ClassNotFoundException: <em>org</em>.<em>apache</em>.commons.lang3.StringUtilsrn at <em>org</em>.<em>apache</em>.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)rn at <em>org</em>.<em>apache</em>.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/commons/lang/StringUtils
[img=http://hi.csdn.net/attachment/201105/12/9864590_1305177906kGL1.png][/img]rn[img=http://hi.csdn.net/attachment/201105/12/9864590_1305177905M3oO.png][/img]rn请问这是为什么啊?
java.lang.NoClassDefFoundError: org/apache/struts/taglib/html/HtmlTag
java.lang.NoClassDefFoundError: <em>org</em>/<em>apache</em>/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 <em>org</em>.<em>apache</em>.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:148)rn at <em>org</em>.<em>apache</em>.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:315)rn at <em>org</em>.<em>apache</em>.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)rn at <em>org</em>.<em>apache</em>.jasper.servlet.JspServlet.service(JspServlet.java:264)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rn at <em>org</em>.<em>apache</em>.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)rn at <em>org</em>.<em>apache</em>.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)rn at <em>org</em>.<em>apache</em>.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)rn at <em>org</em>.<em>apache</em>.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)rn at <em>org</em>.<em>apache</em>.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)rn at <em>org</em>.<em>apache</em>.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)rn at <em>org</em>.<em>apache</em>.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)rn at <em>org</em>.<em>apache</em>.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)rn at <em>org</em>.<em>apache</em>.coyote.http11.Http11Processor.process(Http11Processor.java:869)rn at <em>org</em>.<em>apache</em>.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)rn at <em>org</em>.<em>apache</em>.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)rn at <em>org</em>.<em>apache</em>.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)rn at <em>org</em>.<em>apache</em>.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/httpclient/Credentials
java.lang.NoClassDefFoundError: <em>org</em>/<em>apache</em>/commons/http<em>client</em>/Credentialsrn请问导致这个异常的原因?
java.lang.NoClassDefFoundError: org/apache/commons/digester/Digester
java.lang.NoClassDefFoundError: <em>org</em>/<em>apache</em>/commons/digester/Digester
java.lang.NoClassDefFoundError: org/apache/http/conn/ssl/X509HostnameVerifier
Exception in thread "Thread-16" java.lang.NoClassDefFoundError: <em>org</em>/<em>apache</em>/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 <em>org</em>.<em>apache</em>.http.conn.ssl.SSLSocketFactory.(SSLSocketFactory.java:154)rn at <em>org</em>.<em>apache</em>.http.impl.<em>client</em>.DefaultHttpClient.createClientConnectionManager(DefaultHttpClient.java:219)rn at <em>org</em>.<em>apache</em>.http.impl.<em>client</em>.AbstractHttpClient.getConnectionManager(AbstractHttpClient.java:312)rn at <em>org</em>.<em>apache</em>.http.impl.<em>client</em>.DefaultHttpClient.createHttpContext(DefaultHttpClient.java:254)rn at <em>org</em>.<em>apache</em>.http.impl.<em>client</em>.AbstractHttpClient.execute(AbstractHttpClient.java:618)rn at <em>org</em>.<em>apache</em>.http.impl.<em>client</em>.AbstractHttpClient.execute(AbstractHttpClient.java:576)rn at <em>org</em>.<em>apache</em>.http.impl.<em>client</em>.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: <em>org</em>.<em>apache</em>.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/log4j/Layout
我在用ant去跑Junit. 但是总是得到这个错误java.lang.NoClassDefFoundError: <em>org</em>/<em>apache</em>/log4j/Layout rn而我在eclipse里跑Junit是通过的,不知道为什么。各位大虾指教!多谢。rnbuild.xml内容rn rn rn rn rn rn rn rn rnrn rn rn rn rn rn rn rnrn rn rn rn rnrn rn rn
java.lang.NoClassDefFoundError: org/apache/commons/io/FileUtils
麻烦哪位高人帮帮忙,我在工程里导入了<em>org</em>/<em>apache</em>/commons/io这个包,main方法所在的类也import了<em>org</em>/<em>apache</em>/commons/io/FileUtils这个类,可还是报如图所示错误,这个问题该如何解决啊,先谢谢各位~rn[img=file:///C:/Users/cocky/Desktop/1.jpg][/img]
错误:java.lang.NoClassDefFoundError: org/apache/commons/lang3/StringUtils
我明明已经把commons-lang-2.5.jar包导入web项目了,并且也配置好了build path,部署后,启动服务器出现以下错误:java.lang.NoClassDefFoundError: <em>org</em>/<em>apache</em>/commons/lang3/StringUtils,请求高手帮忙,有相同经历的你们,是如何解决该问题的?
org/apache/jasper/JspC??">"jsp1.jsp": java.lang.NoClassDefFoundError: org/apache/jasper/JspC??
新建工程--》新建WEB模块--》新建JSP文件rnrn调试出现:rn"jsp1.jsp": java.lang.NoClassDefFoundError: <em>org</em>/<em>apache</em>/jasper/JspCrnrn"jsp1.jsp": Invocation Errorrnrnrn怎么解决?
部署报错:java.lang.NoClassDefFoundError: org/apache/struts2/dispatcher/RequestMap
项目在本地开发测试通过,部署到linux服务器上之后会间歇性的出现如下<em>报错</em>:rn[color=#FF0000]<em>org</em>.<em>apache</em>.catalina.core.StandardWrapperValve invokernSEVERE: Servlet.service() for servlet default threw exceptionrnjava.lang.NoClassDefFoundError: <em>org</em>/<em>apache</em>/struts2/dispatcher/RequestMaprn at <em>org</em>.<em>apache</em>.struts2.dispatcher.Dispatcher.createContextMap(Dispatcher.java:525)rn at <em>org</em>.<em>apache</em>.struts2.dispatcher.ng.PrepareOperations.createActionContext(PrepareOperations.jarnva:78)rn at <em>org</em>.<em>apache</em>.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPreparrneAndExecuteFilter.java:78)rn at <em>org</em>.<em>apache</em>.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.javrna:235)[/color]rn......rnrn导致服务不可用。rn请问这是什么原因?rnrn
java.lang.NoClassDefFoundError: org/apache/poi/hssf/usermodel/HSSFWorkbook
Caused by: java.lang.NoClassDefFoundError: <em>org</em>/<em>apache</em>/poi/hssf/usermodel/HSSFWorkbookrn at com.surekam.picc.util.XLSReader.open(XLSReader.java:57)rn at com.surekam.picc.system.<em>org</em>an.web.OrganAction.<em>org</em>anImport(OrganAction.java:352)rn ... 104 morernCaused by: java.lang.ClassNotFoundException: <em>org</em>.<em>apache</em>.poi.hssf.usermodel.HSSFWorkbookrn at <em>org</em>.<em>apache</em>.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)rn at <em>org</em>.<em>apache</em>.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)rn ... 106 morernrnrn说明:rn在main函数里面可以运行,但是在web项目中不能运行!rn我用的版本为3.7,在<em>maven</em>中配置如下:rnrn rn rn <em>org</em>.<em>apache</em>.poirn poirn 3.7rn rn rn <em>org</em>.<em>apache</em>.poirn poi-examplesrn 3.7rn rn rn <em>org</em>.<em>apache</em>.poirn poi-scratchpadrn 3.7rn rn rn <em>org</em>.<em>apache</em>.poirn poi-ooxmlrn 3.7rn rn rn <em>org</em>.<em>apache</em>.poirn poi-ooxml-schemasrn 3.7rn rnrn
java.lang.NoClassDefFoundError: org/apache/axiom/om/OMNode
论坛里的高手们,帮我看看这个问题!rn我想通过java编一个soap通信的程序,我独立建一个SoapClient工程(java,上位机是客户端)可以连接到远程(ARM,服务器端),我想实现的功能都可以正常实现!rn问题出在:我之前已经编好了一个RCP工程,现在想把Soap功能添加到现有的RCP里,但是会<em>报错</em>错误如下:rn[img=http://img.my.csdn.net/uploads/201304/15/1366023803_2638.JPG][/img]rn!ENTRY <em>org</em>.eclipse.jface 4 2 2013-04-15 19:02:21.463rn!MESSAGE 从插件<em>调用</em>代码时出现问题:“<em>org</em>.eclipse.jface”。rn!STACK 0rnjava.lang.NoClassDefFoundError: <em>org</em>/<em>apache</em>/axiom/om/OMNodern at com.psw.atsmanager.views.InstrumentView$1.doubleClick(InstrumentView.java:111)rn at <em>org</em>.eclipse.jface.viewers.StructuredViewer$1.run(StructuredViewer.java:845)rn at <em>org</em>.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)rn at <em>org</em>.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)rn at <em>org</em>.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)rn at <em>org</em>.eclipse.jface.viewers.StructuredViewer.fireDoubleClick(StructuredViewer.java:843)rn at <em>org</em>.eclipse.jface.viewers.StructuredViewer.handleDoubleSelect(StructuredViewer.java:1134)rn at <em>org</em>.eclipse.jface.viewers.StructuredViewer$4.widgetDefaultSelected(StructuredViewer.java:1246)rn at <em>org</em>.eclipse.jface.util.OpenStrategy.fireDefaultSelectionEvent(OpenStrategy.java:249)rn at <em>org</em>.eclipse.jface.util.OpenStrategy.access$0(OpenStrategy.java:246)rn at <em>org</em>.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:307)rn at <em>org</em>.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)rn at <em>org</em>.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)rn at <em>org</em>.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)rn at <em>org</em>.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)rn at <em>org</em>.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)rn at <em>org</em>.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)rn at <em>org</em>.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)rn at <em>org</em>.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)rn at <em>org</em>.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)rn at <em>org</em>.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)rn at <em>org</em>.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)rn at <em>org</em>.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)rn at com.psw.atsmanager.Application.start(Application.java:24)rn at <em>org</em>.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)rn at <em>org</em>.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)rn at <em>org</em>.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)rn at <em>org</em>.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)rn at <em>org</em>.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 <em>org</em>.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)rn at <em>org</em>.eclipse.equinox.launcher.Main.basicRun(Main.java:584)rn at <em>org</em>.eclipse.equinox.launcher.Main.run(Main.java:1438)rn at <em>org</em>.eclipse.equinox.launcher.Main.main(Main.java:1414)rnCaused by: java.lang.ClassNotFoundException: <em>org</em>.<em>apache</em>.axiom.om.OMNodern at <em>org</em>.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)rn at <em>org</em>.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)rn at <em>org</em>.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)rn at <em>org</em>.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 异常
java.lang.NoClassDefFoundError: <em>org</em>/<em>apache</em>/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 <em>org</em>.<em>apache</em>.jsp.index_jsp._jspService(index_jsp.java:431)rn at <em>org</em>.<em>apache</em>.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn at <em>org</em>.<em>apache</em>.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)rn at <em>org</em>.<em>apache</em>.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)rn at <em>org</em>.<em>apache</em>.jasper.servlet.JspServlet.service(JspServlet.java:267)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn at <em>org</em>.<em>apache</em>.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)rn at <em>org</em>.<em>apache</em>.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at com.iprecare.util.EncodingFilter.doFilter(EncodingFilter.java:36)rn at <em>org</em>.<em>apache</em>.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at <em>org</em>.<em>apache</em>.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at <em>org</em>.<em>apache</em>.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)rn at <em>org</em>.<em>apache</em>.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)rn at <em>org</em>.<em>apache</em>.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)rn at <em>org</em>.<em>apache</em>.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)rn at <em>org</em>.<em>apache</em>.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at <em>org</em>.<em>apache</em>.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)rn at <em>org</em>.<em>apache</em>.coyote.http11.Http11Processor.process(Http11Processor.java:845)rn at <em>org</em>.<em>apache</em>.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)rn at <em>org</em>.<em>apache</em>.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)rn at java.lang.Thread.run(Thread.java:619)rn谁见过啊。在以前的电脑上没的出现 。在win7下出现了这个问题。是版本的问题吗?rn是这个包 handsome-ipaddress-bin的问题吗?
java.lang.NoClassDefFoundError: org/apache/commons/beanutils/Converter
这个包我都加上来了 怎么还有问题说 java.lang.NoClassDefFoundError: <em>org</em>/<em>apache</em>/commons/beanutils/Converterrnrn更新啊 什么我都搞了 怎么还有这问题
java.lang.NoClassDefFoundError: org/apacorg/apache/commons/dbutils/QueryRunner
[size=x-large][color=blue]rn程序片段rnDataSource ds = null; rntry rnContext context = new InitialContext(); rnds = (DataSource) context.lookup("java:/comp/env/jdbc/mysqlds"); rn catch (Exception e) rnSystem.out.println("获取数据源时出错"); rn rnint result = 0; rnrntry rnString sql = "insert into blog (name,age,height,time) values (?,?,?,now())"; rnString params[] = name,age,height; rnQueryRunner qr = new QueryRunner(ds); rnresult = qr.update(sql, params); // query() rn catch (SQLException e) rne.printStackTrace(); rn rncommons dbutils 1.3 包已经引入 rn数据源连接没有问题 rn数据库连接没有问题 rn一用这个组件就报如下错误rn java.lang.NoClassDefFoundError: <em>org</em>/<em>apache</em>/commons/dbutils/QueryRunner [/color][/size]
IDEA:java.lang.NoClassDefFoundError: org/hibernate/cfg/Configuration
java.lang.NoClassDefFoundError: <em>org</em>/hibernate/cfg/Configuration 出现这样的错误rn [size=16px]我使用的IDEA 在External Libraries导入struts2HibernateSpring/hibernate-core-5.1.0.Final.jar/<em>org</em>.hibernate/cfg/Configutionrn包如下图[/size]rnrn然后下的rnrn在<em>org</em>.hibernate下的cfg下的rnrnrn代码中确定是 Configuration config= new Configuration().configure(); 出问题
java.lang.NoClassDefFoundError: org/apache/commons/collections/map/MultiKeyMap
java.lang.NoClassDefFoundError: <em>org</em>/<em>apache</em>/commons/collections/map/MultiKeyMaprn net.sf.json.JsonConfig.(JsonConfig.java:56)rn net.sf.json.JSONArray.fromObject(JSONArray.java:120)rn privilege.action.LevelAction.jsonExecute(LevelAction.java:53)rn sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)rn sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn java.lang.reflect.Method.invoke(Unknown Source)rn com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:440)rn com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:279)rnrn请求解决以上问题,谢谢!rn是不是因为我的包有冲突?rn环境:Spring2.5 Struts2 hibernate3.2 Extjs2.2 json myeclipse7.0
java.lang.NoClassDefFoundError: org/apache/juli/logging/LogFactory的提问
rnjava.lang.NoClassDefFoundError: <em>org</em>/<em>apache</em>/juli/logging/LogFactoryrn at <em>org</em>.<em>apache</em>.jasper.JspC.(JspC.java:97)rnCaused by: java.lang.ClassNotFoundException: <em>org</em>.<em>apache</em>.juli.logging.LogFactoryrn at java.net.URLClassLoader$1.run(URLClassLoader.java:202)rn at java.security.AccessController.doPrivileged(Native Method)rn at java.net.URLClassLoader.findClass(URLClassLoader.java:190)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:306)rn at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:247)rn ... 1 morernException in thread "main" rn出现这种错误,然后下载了commons-logging.jar包导入后还是不行。导入tomat/bin/tomcat-juli.jar也不能解决
org/apache/log4j/Appender"异常">"java.lang.NoClassDefFoundError: org/apache/log4j/Appender"异常
大家好,rn 在开发过程中,我的一个程序中使用了log4j,可是它报了异常“java.lang.NoClassDefFoundError: <em>org</em>/<em>apache</em>/log4j/Appender”,我觉得我该做的事情都已经做了,可是还是不能够解决此问题,希望得到高手帮忙,谢谢!
java.lang.NoClassDefFoundError: org/apache/velocity/context/Context
在java EE 项目中用到了velocity jar 包 引进了velocity-1.7-dep.jar;velocity-1.7.jarrnrn在单独写方法测试时能通过,当放进项目时报如下错误,是不是jar包冲突了??怎样解决,谢谢!rnrnjava.lang.reflect.InvocationTargetExceptionrnrn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rnrn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rnrn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rnrn at java.lang.reflect.Method.invoke(Method.java:597)rnrn at com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:452)rnrn at com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:291)rnrn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:254)rnrn at com.csValue.common.interceptor.MenuIdInterceptor.intercept(MenuIdInterceptor.java:34)rnrn 。。。。。。。。。。。。。rnrnat <em>org</em>.<em>apache</em>.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)rnrn at <em>org</em>.<em>apache</em>.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rnrn at <em>org</em>.<em>apache</em>.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)rnrn at <em>org</em>.<em>apache</em>.coyote.http11.Http11Processor.process(Http11Processor.java:859)rnrn at <em>org</em>.<em>apache</em>.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)rnrn at <em>org</em>.<em>apache</em>.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:396)rnrn at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)rnrn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)rnrn at java.lang.Thread.run(Thread.java:662)rnrnCaused by: java.lang.NoClassDefFoundError: <em>org</em>/<em>apache</em>/velocity/context/Contextrnrn at com.csValue.front.frontwaybillManage.web.FrontwaybillAction.save(FrontwaybillAction.java:112)rnrn ... 81 morernrnCaused by: java.lang.ClassNotFoundException: <em>org</em>.<em>apache</em>.velocity.context.Contextrnrn at <em>org</em>.<em>apache</em>.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)rnrn at <em>org</em>.<em>apache</em>.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)rnrn ... 82 more
java.lang.NoClassDefFoundError: org/apache/commons/lang/exception/NestableRuntim
14:56:10.093 WARN!! Error for /butterfly/plugins/zhonghang/UsefulData/save_usefuldata.bshrnjava.lang.NoClassDefFoundError: <em>org</em>/<em>apache</em>/commons/lang/exception/NestableRuntimeExceptionrn at java.lang.ClassLoader.defineClass1(Native Method)rn at java.lang.ClassLoader.defineClass(ClassLoader.java:616)rn at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)rn at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)rn at java.net.URLClassLoader.access$000(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:303)rn at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:248)rn at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316)rn at java.lang.Class.forName0(Native Method)rn at java.lang.Class.forName(Class.java:247)rn at bsh.classpath.ClassManagerImpl.plainClassForName(Unknown Source)rn at bsh.classpath.ClassManagerImpl.classForName(Unknown Source)rn at bsh.NameSpace.classForName(Unknown Source)rn at bsh.NameSpace.getImportedClassImpl(Unknown Source)rn at bsh.NameSpace.getClassImpl(Unknown Source)rn at bsh.NameSpace.getClass(Unknown Source)rn at bsh.Name.toClass(Unknown Source)rn at bsh.BSHAmbiguousName.toClass(Unknown Source)rn at bsh.BSHType.getType(Unknown Source)rn at bsh.BSHTypedVariableDeclaration.eval(Unknown Source)rn at bsh.Interpreter.eval(Unknown Source)rn at bsh.Interpreter.source(Unknown Source)rn at bsh.Interpreter.source(Unknown Source)rn at com.hansky.apps.butterfly.pub.BshServlet.evalScript(BshServlet.java:77)rn at com.hansky.apps.butterfly.pub.BshServlet.service(BshServlet.java:40)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)rn at <em>org</em>.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358)rn at <em>org</em>.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:380rn)rn at com.hansky.apps.butterfly.plugin.PluginFilter.doFilter(PluginFilter.java:73)rn at <em>org</em>.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:372rn)rn at com.hansky.apps.butterfly.<em>client</em>mainform.webhandler.LicenseFilter.doFilter(LicenseFilter.javarn:103)rn at <em>org</em>.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:372rn)rn at com.hansky.apps.butterfly.<em>client</em>mainform.webhandler.LoginFilter.doFilter(LoginFilter.java:215rn)rn at <em>org</em>.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:372rn)rn at com.hansky.apps.butterfly.<em>client</em>mainform.webhandler.ServerMaintainFilter.doFilter(ServerMaintrnainFilter.java:101)rn at <em>org</em>.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:372rn)rn at <em>org</em>.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:324)rn at <em>org</em>.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567)rn at <em>org</em>.mortbay.http.HttpContext.handle(HttpContext.java:1807)rn at <em>org</em>.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:535)rn at <em>org</em>.mortbay.http.HttpContext.handle(HttpContext.java:1757)rn at <em>org</em>.mortbay.http.HttpServer.service(HttpServer.java:879)rn at <em>org</em>.mortbay.http.HttpConnection.service(HttpConnection.java:790)rn at <em>org</em>.mortbay.http.HttpConnection.handleNext(HttpConnection.java:961)rn at <em>org</em>.mortbay.http.HttpConnection.handle(HttpConnection.java:807)rn at <em>org</em>.mortbay.http.SocketListener.handleConnection(SocketListener.java:218)rn at <em>org</em>.mortbay.util.ThreadedServer.handle(ThreadedServer.java:300)rn at <em>org</em>.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:511)rnCaused by: java.lang.ClassNotFoundException: <em>org</em>.<em>apache</em>.commons.lang.exception.NestableRuntimeExceptionrn at java.net.URLClassLoader$1.run(URLClassLoader.java:200)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:303)rn at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:248)rn at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316)rn ... 52 morernrn14:56:10.093 EVENT errorPageHandler: initrnjava.lang.NoClassDefFoundError: <em>org</em>/<em>apache</em>/commons/lang/exception/NestableRuntimeExceptionrn at java.lang.ClassLoader.defineClass1(Native Method)rn at java.lang.ClassLoader.defineClass(ClassLoader.java:616)rn at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)rn at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)rn at java.net.URLClassLoader.access$000(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:303)rn at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:248)rn at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316)rn at java.lang.Class.forName0(Native Method)rn at java.lang.Class.forName(Class.java:247)rn at bsh.classpath.ClassManagerImpl.plainClassForName(Unknown Source)rn at bsh.classpath.ClassManagerImpl.classForName(Unknown Source)rn at bsh.NameSpace.classForName(Unknown Source)rn at bsh.NameSpace.getImportedClassImpl(Unknown Source)rn at bsh.NameSpace.getClassImpl(Unknown Source)rn at bsh.NameSpace.getClass(Unknown Source)rn at bsh.Name.toClass(Unknown Source)rn at bsh.BSHAmbiguousName.toClass(Unknown Source)rn at bsh.BSHType.getType(Unknown Source)rn at bsh.BSHTypedVariableDeclaration.eval(Unknown Source)rn at bsh.Interpreter.eval(Unknown Source)rn at bsh.Interpreter.source(Unknown Source)rn at bsh.Interpreter.source(Unknown Source)rn at com.hansky.apps.butterfly.pub.BshServlet.evalScript(BshServlet.java:77)rn at com.hansky.apps.butterfly.pub.BshServlet.service(BshServlet.java:40)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)rn at <em>org</em>.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358)rn at <em>org</em>.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:380rn)rn at com.hansky.apps.butterfly.plugin.PluginFilter.doFilter(PluginFilter.java:73)rn at <em>org</em>.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:372rn)rn at com.hansky.apps.butterfly.<em>client</em>mainform.webhandler.LicenseFilter.doFilter(LicenseFilter.javarn:103)rn at <em>org</em>.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:372rn)rn at com.hansky.apps.butterfly.<em>client</em>mainform.webhandler.LoginFilter.doFilter(LoginFilter.java:215rn)rn at <em>org</em>.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:372rn)rn at com.hansky.apps.butterfly.<em>client</em>mainform.webhandler.ServerMaintainFilter.doFilter(ServerMaintrnainFilter.java:101)rn at <em>org</em>.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:372rn)rn at <em>org</em>.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:324)rn at <em>org</em>.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567)rn at <em>org</em>.mortbay.http.HttpContext.handle(HttpContext.java:1807)rn at <em>org</em>.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:535)rn at <em>org</em>.mortbay.http.HttpContext.handle(HttpContext.java:1757)rn at <em>org</em>.mortbay.http.HttpServer.service(HttpServer.java:879)rn at <em>org</em>.mortbay.http.HttpConnection.service(HttpConnection.java:790)rn at <em>org</em>.mortbay.http.HttpConnection.handleNext(HttpConnection.java:961)rn at <em>org</em>.mortbay.http.HttpConnection.handle(HttpConnection.java:807)rn at <em>org</em>.mortbay.http.SocketListener.handleConnection(SocketListener.java:218)rn at <em>org</em>.mortbay.util.ThreadedServer.handle(ThreadedServer.java:300)rn at <em>org</em>.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:511)rnCaused by: java.lang.ClassNotFoundException: <em>org</em>.<em>apache</em>.commons.lang.exception.NestableRuntimeExceptionrn at java.net.URLClassLoader$1.run(URLClassLoader.java:200)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:303)rn at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:248)rn at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316)rn ... 52 more
java.lang.NoClassDefFoundError: org/apache/catalina/startup/Bootstrap
我的JBuilder重装后,运行servlet出现如下提示:rnjava.lang.NoClassDefFoundError: <em>org</em>/<em>apache</em>/catalina/startup/BootstraprnException in thread "main"rn是什么问题呀?谢谢!!
java.lang.NoClassDefFoundError: org/apache/xerces/util/EncodingMap
这个项目是直接从公司svn上下的,下了后就出现下面的问题了,项目要求是jdk1.5和tomcat5.5,本机装的是1.6版本的,jdk1.5是在eclipse里直接引入的。也在网上查了很多,但是还是不对,我在tomcat里也把关于xerces.jar放到tomcat的lib下了,也尝试在工程里删除重新导入,但是还是不行。求大神指导。忘了补充了,这是2个项目中的其中一个,另外一个部署没问题的,就这个出问题了,所以我认为jdk1.5我应该部署正确了,<em>org</em>.<em>apache</em>.xerces.util.EncodingMap这里有这个包的。rnrn严重: Error listenerStartrn2013-5-27 1:38:07 <em>org</em>.<em>apache</em>.catalina.core.StandardContext startrn严重: Context [/ajdining] startup failed due to previous errorsrn2013-5-27 1:38:09 <em>org</em>.<em>apache</em>.catalina.loader.WebappClassLoader loadClassrn信息: Illegal access: this web application instance has been stopped already. Could not load <em>org</em>.<em>apache</em>.xerces.util.EncodingMap. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact.rnjava.lang.IllegalStateExceptionrn at <em>org</em>.<em>apache</em>.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1245)rn at <em>org</em>.<em>apache</em>.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1205)rn at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)rn at <em>org</em>.<em>apache</em>.xerces.impl.XMLEntityManager.createReader(Unknown Source)rn at <em>org</em>.<em>apache</em>.xerces.impl.XMLEntityManager$ScannedEntity.setReader(Unknown Source)rn at <em>org</em>.<em>apache</em>.xerces.impl.XMLEntityScanner.setEncoding(Unknown Source)rn at <em>org</em>.<em>apache</em>.xerces.impl.XMLDocumentFragmentScannerImpl.scanXMLDeclOrTextDecl(Unknown Source)rn at <em>org</em>.<em>apache</em>.xerces.impl.XMLDocumentScannerImpl$XMLDeclDispatcher.dispatch(Unknown Source)rn at <em>org</em>.<em>apache</em>.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)rn at <em>org</em>.<em>apache</em>.xerces.parsers.XML11Configuration.parse(Unknown Source)rn at <em>org</em>.<em>apache</em>.xerces.parsers.XML11Configuration.parse(Unknown Source)rn at <em>org</em>.<em>apache</em>.xerces.parsers.XMLParser.parse(Unknown Source)rn at <em>org</em>.<em>apache</em>.xerces.parsers.AbstractSAXParser.parse(Unknown Source)rn at <em>org</em>.<em>apache</em>.tomcat.util.digester.Digester.parse(Digester.java:1562)rn at <em>org</em>.<em>apache</em>.catalina.startup.ContextConfig.applicationWebConfig(ContextConfig.java:352)rn at <em>org</em>.<em>apache</em>.catalina.startup.ContextConfig.start(ContextConfig.java:1044)rn at <em>org</em>.<em>apache</em>.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:261)rn at <em>org</em>.<em>apache</em>.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)rn at <em>org</em>.<em>apache</em>.catalina.core.StandardContext.start(StandardContext.java:4148)rn at <em>org</em>.<em>apache</em>.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)rn at <em>org</em>.<em>apache</em>.catalina.core.ContainerBase.addChild(ContainerBase.java:740)rn at <em>org</em>.<em>apache</em>.catalina.core.StandardHost.addChild(StandardHost.java:544)rn at <em>org</em>.<em>apache</em>.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)rn at <em>org</em>.<em>apache</em>.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)rn at <em>org</em>.<em>apache</em>.catalina.startup.HostConfig.deployApps(HostConfig.java:492)rn at <em>org</em>.<em>apache</em>.catalina.startup.HostConfig.start(HostConfig.java:1138)rn at <em>org</em>.<em>apache</em>.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)rn at <em>org</em>.<em>apache</em>.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)rn at <em>org</em>.<em>apache</em>.catalina.core.ContainerBase.start(ContainerBase.java:1022)rn at <em>org</em>.<em>apache</em>.catalina.core.StandardHost.start(StandardHost.java:736)rn at <em>org</em>.<em>apache</em>.catalina.core.ContainerBase.start(ContainerBase.java:1014)rn at <em>org</em>.<em>apache</em>.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at <em>org</em>.<em>apache</em>.catalina.core.StandardService.start(StandardService.java:448)rn at <em>org</em>.<em>apache</em>.catalina.core.StandardServer.start(StandardServer.java:700)rn at <em>org</em>.<em>apache</em>.catalina.startup.Catalina.start(Catalina.java:552)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 <em>org</em>.<em>apache</em>.catalina.startup.Bootstrap.start(Bootstrap.java:295)rn at <em>org</em>.<em>apache</em>.catalina.startup.Bootstrap.main(Bootstrap.java:433)rnjava.lang.NoClassDefFoundError: <em>org</em>/<em>apache</em>/xerces/util/EncodingMaprn at <em>org</em>.<em>apache</em>.xerces.impl.XMLEntityManager.createReader(Unknown Source)rn at <em>org</em>.<em>apache</em>.xerces.impl.XMLEntityManager$ScannedEntity.setReader(Unknown Source)rn at <em>org</em>.<em>apache</em>.xerces.impl.XMLEntityScanner.setEncoding(Unknown Source)rn at <em>org</em>.<em>apache</em>.xerces.impl.XMLDocumentFragmentScannerImpl.scanXMLDeclOrTextDecl(Unknown Source)rn at <em>org</em>.<em>apache</em>.xerces.impl.XMLDocumentScannerImpl$XMLDeclDispatcher.dispatch(Unknown Source)rn at <em>org</em>.<em>apache</em>.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)rn at <em>org</em>.<em>apache</em>.xerces.parsers.XML11Configuration.parse(Unknown Source)rn at <em>org</em>.<em>apache</em>.xerces.parsers.XML11Configuration.parse(Unknown Source)rn at <em>org</em>.<em>apache</em>.xerces.parsers.XMLParser.parse(Unknown Source)rn at <em>org</em>.<em>apache</em>.xerces.parsers.AbstractSAXParser.parse(Unknown Source)rn at <em>org</em>.<em>apache</em>.tomcat.util.digester.Digester.parse(Digester.java:1562)rn at <em>org</em>.<em>apache</em>.catalina.startup.ContextConfig.applicationWebConfig(ContextConfig.java:352)rn at <em>org</em>.<em>apache</em>.catalina.startup.ContextConfig.start(ContextConfig.java:1044)rn at <em>org</em>.<em>apache</em>.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:261)rn at <em>org</em>.<em>apache</em>.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)rn at <em>org</em>.<em>apache</em>.catalina.core.StandardContext.start(StandardContext.java:4148)rn at <em>org</em>.<em>apache</em>.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)rn at <em>org</em>.<em>apache</em>.catalina.core.ContainerBase.addChild(ContainerBase.java:740)rn at <em>org</em>.<em>apache</em>.catalina.core.StandardHost.addChild(StandardHost.java:544)rn at <em>org</em>.<em>apache</em>.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)rn at <em>org</em>.<em>apache</em>.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)rn at <em>org</em>.<em>apache</em>.catalina.startup.HostConfig.deployApps(HostConfig.java:492)rn at <em>org</em>.<em>apache</em>.catalina.startup.HostConfig.start(HostConfig.java:1138)rn at <em>org</em>.<em>apache</em>.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)rn at <em>org</em>.<em>apache</em>.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)rn at <em>org</em>.<em>apache</em>.catalina.core.ContainerBase.start(ContainerBase.java:1022)rn at <em>org</em>.<em>apache</em>.catalina.core.StandardHost.start(StandardHost.java:736)rn at <em>org</em>.<em>apache</em>.catalina.core.ContainerBase.start(ContainerBase.java:1014)rn at <em>org</em>.<em>apache</em>.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at <em>org</em>.<em>apache</em>.catalina.core.StandardService.start(StandardService.java:448)rn at <em>org</em>.<em>apache</em>.catalina.core.StandardServer.start(StandardServer.java:700)rn at <em>org</em>.<em>apache</em>.catalina.startup.Catalina.start(Catalina.java:552)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 <em>org</em>.<em>apache</em>.catalina.startup.Bootstrap.start(Bootstrap.java:295)rn at <em>org</em>.<em>apache</em>.catalina.startup.Bootstrap.main(Bootstrap.java:433)
报错:org/apache/log4j/Logger
启动weblogic814 正常,运行程序后报如下错: rn rnjava.rmi.RemoteException: EJB Exception: ; nested exception is: rn java.lang.NoClassDefFoundError: <em>org</em>/<em>apache</em>/log4j/Logger rn at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:186) rn at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:290) rn at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:247) rn at com.app.basebusiness.facade.baseinfomanagement.BaseInfoManagementFacade_phr56g_EOImpl_814_WLStub.initCmpWithReg(Unknown Source) rn at com.web.basebusiness.employer.employerbusiness.InitCmpWithRegAction.doPerform(InitCmpWithRegAction.java:39) rn at com.sieaf.web.RequestProcessor.processRequest(RequestProcessor.java:73) rn at com.sieaf.web.MainServlet.doProcess(MainServlet.java:155) rn at com.sieaf.web.MainServlet.doGet(MainServlet.java:45) rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) rn at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006) rn at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419) rn at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315) rn at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6718) rn at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) rn at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121) rn at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764) rn at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644) rn at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219) rn at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178) rnCaused by: java.lang.NoClassDefFoundError: <em>org</em>/<em>apache</em>/log4j/Logger rn at com.sieaf.log.Debug.(Debug.java:17) rn at com.app.dao.DAOSupport.(DAOSupport.java:27) rn at com.app.basebusiness.parameter.dao.ParmDAO.(ParmDAO.java:14) rn at com.app.basebusiness.employer.employerbusiness.bpo.RegBPO.initCmpWithReg(RegBPO.java:114) rn at com.app.basebusiness.facade.baseinfomanagement.BaseInfoManagementFacadeBean.initCmpWithReg(BaseInfoManagementFacadeBean.java:116) rn at com.app.basebusiness.facade.baseinfomanagement.BaseInfoManagementFacade_phr56g_EOImpl.initCmpWithReg(BaseInfoManagementFacade_phr56g_EOImpl.java:6702) rn at com.app.basebusiness.facade.baseinfomanagement.BaseInfoManagementFacade_phr56g_EOImpl_WLSkel.invoke(Unknown Source) rn at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:166) rn ... 19 more rn
AXIS调用WEBSERVICE报错,求帮助。
服务端是用JWS写的,由于客户端要用JDK1.5,所以就用AXIS<em>调用</em>了,实在没怎么用过WEBSERVICE,请大家帮忙看看。rn另外我用JWS生成本地类的方法<em>调用</em>是没问题的。rnrn服务端代码:rn[code=java]rn//BigAntService.javarnpackage cn.com.gdjtny.service;rnrnimport java.io.IOException;rnimport java.util.Properties;rnrnimport javax.jws.WebMethod;rnimport javax.jws.WebService;rnimport javax.xml.ws.BindingType;rnimport javax.xml.ws.Endpoint;rnrnimport com.jacob.activeX.ActiveXComponent;rnimport com.jacob.com.Dispatch;rnrn@WebServicern@BindingTypernpublic class BigAntService rnrn public static void main(String[] args) rn Endpoint.publish("http://127.0.0.1:9990/BigAntService/cn.com.gdjtny.service.BigAntService", new BigAntService());rn rnrn @WebMethodrn public boolean sendMsg(String subject, String content, String addreceivers,rn String contenttype) rn Properties prop = new Properties();rn try rn prop.load(this.getClass().getResourceAsStream(rn "/cn/com/gdjtny/res/bigant.properties"));rn catch (IOException e) rn e.printStackTrace();rn return false;rn rn String server = prop.getProperty("server");rn int serverport = Integer.parseInt(prop.getProperty("serverport"));rn String loginname = prop.getProperty("loginname");rn String password = prop.getProperty("password");rn ActiveXComponent smsg = new ActiveXComponent("AntCom.AntMsg");rn ActiveXComponent sses = new ActiveXComponent("AntCom.AntSyncSession");rn ActiveXComponent sinfo = new ActiveXComponent("AntCom.AntLoginInfo");rn Dispatch msg = (Dispatch) smsg.getObject();rn Dispatch.put(msg, "Subject", subject);rn Dispatch.put(msg, "Content", content);rn String[] arr_addreceivers = addreceivers.split(",");rn for (int i = 0; i < arr_addreceivers.length; i++) rn Dispatch.call(msg, "AddReceiver", arr_addreceivers[i], "");rn rn Dispatch.put(msg, "ContentType", contenttype);rn Dispatch info = (Dispatch) sinfo.getObject();rn Dispatch.put(info, "Server", server);rn Dispatch.put(info, "ServerPort", serverport);rn Dispatch.put(info, "LoginName", loginname);rn Dispatch.put(info, "PassWord", password);rn Dispatch ses = (Dispatch) sses.getObject();rn Dispatch.call(ses, "Login", info);rn Dispatch.call(ses, "SendMsg", msg, 0);rn return true;rn rnrnrn[/code]rnrn客户端代码:rn[code=java]rn//T.javarnpackage cn.com.gdjtny.ws<em>client</em>;rnrnimport javax.xml.namespace.QName;rnrnimport <em>org</em>.<em>apache</em>.<em>axis</em>.<em>client</em>.Call;rnimport <em>org</em>.<em>apache</em>.<em>axis</em>.<em>client</em>.Service;rnrnpublic class T rnrn public static void main(String[] args) throws Exception rn String endpoint = "http://127.0.0.1:9990/BigAntService/cn.com.gdjtny.service.BigAntService?wsdl";rn Service service = new Service();rn Call call = (Call) service.createCall();rn call.setTargetEndpointAddress(endpoint);rn call.setOperationName(new QName("http://service.gdjtny.com.cn/",rn "sendMsg"));rn call.addParameter("subject",rn <em>org</em>.<em>apache</em>.<em>axis</em>.encoding.XMLType.XSD_STRING,rn javax.xml.rpc.ParameterMode.IN);rn call.addParameter("content",rn <em>org</em>.<em>apache</em>.<em>axis</em>.encoding.XMLType.XSD_STRING,rn javax.xml.rpc.ParameterMode.IN);rn call.addParameter("addreceivers",rn <em>org</em>.<em>apache</em>.<em>axis</em>.encoding.XMLType.XSD_STRING,rn javax.xml.rpc.ParameterMode.IN);rn call.addParameter("contenttype",rn <em>org</em>.<em>apache</em>.<em>axis</em>.encoding.XMLType.XSD_STRING,rn javax.xml.rpc.ParameterMode.IN);rn call.setReturnType(<em>org</em>.<em>apache</em>.<em>axis</em>.encoding.XMLType.XSD_BOOLEAN);rn call.setUseSOAPAction(true);rn call.setSOAPActionURI("http://www.ws.com/ws");rn String subject = "subject";rn String content = "content";rn String addreceivers = "zhangsan,lisi";rn String contenttype = "Text/Text";rn Boolean result = (Boolean) call.invoke(new Object[] subject, content,rn addreceivers, contenttype );rn System.out.println(result);rn rnrnrn[/code]rnrn客户端异常信息:rn[code=java]rnException in thread "main" AxisFaultrn faultCode: http://schemas.xmlsoap.<em>org</em>/soap/envelope/Serverrn faultSubcode: rn faultString: java.lang.NullPointerExceptionrn faultActor: rn faultNode: rn faultDetail: rn http://xml.<em>apache</em>.<em>org</em>/<em>axis</em>/stackTrace:java.lang.NullPointerExceptionrn at <em>org</em>.<em>apache</em>.<em>axis</em>.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)rn at <em>org</em>.<em>apache</em>.<em>axis</em>.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)rn at <em>org</em>.<em>apache</em>.<em>axis</em>.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)rn at com.sun.<em>org</em>.<em>apache</em>.xerces.internal.parsers.AbstractSAXParser.endElement(Unknown Source)rn at com.sun.<em>org</em>.<em>apache</em>.xerces.internal.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)rn at com.sun.<em>org</em>.<em>apache</em>.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)rn at com.sun.<em>org</em>.<em>apache</em>.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)rn at com.sun.<em>org</em>.<em>apache</em>.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)rn at com.sun.<em>org</em>.<em>apache</em>.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)rn at com.sun.<em>org</em>.<em>apache</em>.xerces.internal.parsers.XMLParser.parse(Unknown Source)rn at com.sun.<em>org</em>.<em>apache</em>.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)rn at javax.xml.parsers.SAXParser.parse(Unknown Source)rn at <em>org</em>.<em>apache</em>.<em>axis</em>.encoding.DeserializationContext.parse(DeserializationContext.java:227)rn at <em>org</em>.<em>apache</em>.<em>axis</em>.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)rn at <em>org</em>.<em>apache</em>.<em>axis</em>.Message.getSOAPEnvelope(Message.java:435)rn at <em>org</em>.<em>apache</em>.<em>axis</em>.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)rn at <em>org</em>.<em>apache</em>.<em>axis</em>.<em>client</em>.AxisClient.invoke(AxisClient.java:206)rn at <em>org</em>.<em>apache</em>.<em>axis</em>.<em>client</em>.Call.invokeEngine(Call.java:2784)rn at <em>org</em>.<em>apache</em>.<em>axis</em>.<em>client</em>.Call.invoke(Call.java:2767)rn at <em>org</em>.<em>apache</em>.<em>axis</em>.<em>client</em>.Call.invoke(Call.java:2443)rn at <em>org</em>.<em>apache</em>.<em>axis</em>.<em>client</em>.Call.invoke(Call.java:2366)rn at <em>org</em>.<em>apache</em>.<em>axis</em>.<em>client</em>.Call.invoke(Call.java:1812)rn at cn.com.gdjtny.ws<em>client</em>.T.main(T.java:36)rnrn http://xml.<em>apache</em>.<em>org</em>/<em>axis</em>/hostname:BAO-PCrnrnjava.lang.NullPointerExceptionrn at <em>org</em>.<em>apache</em>.<em>axis</em>.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)rn at <em>org</em>.<em>apache</em>.<em>axis</em>.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)rn at <em>org</em>.<em>apache</em>.<em>axis</em>.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)rn at com.sun.<em>org</em>.<em>apache</em>.xerces.internal.parsers.AbstractSAXParser.endElement(Unknown Source)rn at com.sun.<em>org</em>.<em>apache</em>.xerces.internal.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)rn at com.sun.<em>org</em>.<em>apache</em>.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)rn at com.sun.<em>org</em>.<em>apache</em>.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)rn at com.sun.<em>org</em>.<em>apache</em>.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)rn at com.sun.<em>org</em>.<em>apache</em>.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)rn at com.sun.<em>org</em>.<em>apache</em>.xerces.internal.parsers.XMLParser.parse(Unknown Source)rn at com.sun.<em>org</em>.<em>apache</em>.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)rn at javax.xml.parsers.SAXParser.parse(Unknown Source)rn at <em>org</em>.<em>apache</em>.<em>axis</em>.encoding.DeserializationContext.parse(DeserializationContext.java:227)rn at <em>org</em>.<em>apache</em>.<em>axis</em>.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)rn at <em>org</em>.<em>apache</em>.<em>axis</em>.Message.getSOAPEnvelope(Message.java:435)rn at <em>org</em>.<em>apache</em>.<em>axis</em>.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)rn at <em>org</em>.<em>apache</em>.<em>axis</em>.<em>client</em>.AxisClient.invoke(AxisClient.java:206)rn at <em>org</em>.<em>apache</em>.<em>axis</em>.<em>client</em>.Call.invokeEngine(Call.java:2784)rn at <em>org</em>.<em>apache</em>.<em>axis</em>.<em>client</em>.Call.invoke(Call.java:2767)rn at <em>org</em>.<em>apache</em>.<em>axis</em>.<em>client</em>.Call.invoke(Call.java:2443)rn at <em>org</em>.<em>apache</em>.<em>axis</em>.<em>client</em>.Call.invoke(Call.java:2366)rn at <em>org</em>.<em>apache</em>.<em>axis</em>.<em>client</em>.Call.invoke(Call.java:1812)rn at cn.com.gdjtny.ws<em>client</em>.T.main(T.java:36)rn[/code]
java使用axis 调用C++的webservice报错
[code=java]Exception in thread "main" <em>org</em>.<em>apache</em>.<em>axis</em>2.AxisFault: Failed in creating DLL at <em>org</em>.<em>apache</em>.<em>axis</em>2.util.Utils.getInboundFaultFromMessageContext(Utils.java:446) at <em>org</em>.<em>apache</em>.<em>axis</em>2.description.RobustOutOnlyAxisOperation$RobustOutOnlyOperationClient.handleResponse(RobustOutOnlyAxisOperation.java:91) at <em>org</em>.<em>apache</em>.<em>axis</em>2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:417) at <em>org</em>.<em>apache</em>.<em>axis</em>2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229) at <em>org</em>.<em>apache</em>.<em>axis</em>2.<em>client</em>.OperationClient.execute(OperationClient.java:165) at <em>org</em>.<em>apache</em>.<em>axis</em>2.<em>client</em>.ServiceClient.sendRobust(ServiceClient.java:470) at <em>org</em>.<em>apache</em>.<em>axis</em>2.<em>client</em>.ServiceClient.sendRobust(ServiceClient.java:451) at <em>org</em>.<em>apache</em>.<em>axis</em>2.rpc.<em>client</em>.RPCServiceClient.invokeRobust(RPCServiceClient.java:158) at com.xQuant.sample.<em>webservice</em>.TestBalance5.javaService(TestBalance5.java:131) at com.xQuant.sample.<em>webservice</em>.TestBalance5.main(TestBalance5.java:39)[/code]rnrn哪位大神能指点下啊
java.lang.NoClassDefFoundError: org/jdom/Content
先说环境:rnmyeclipse6.5+tomcat5+jdk1.5rn现在有一个接口A,接口A的实现类为Brn类中有几个方法,主要是用jdom封装XML,方法的返回值是Stringrn现在在web项目中rn在其他的类中用到了这个方法,所以我就要new一个对象了rnA xml=new B();rnB xml=new B();rn用上面的两种方式new一个对象的时都<em>报错</em>rnrn在该new对象的地方设置断点,就报下面的错误:rn<em>报错</em>信息:rnjava.lang.NoClassDefFoundError: <em>org</em>/jdom/Contentrn
java.lang.NoClassDefFoundError: org/dom4j/DocumentException
<em>org</em>.<em>apache</em>.jasper.JasperException: An exception occurred processing JSP page /catalog/Category.jsp at line 8rnrn5: rnrnrnStacktrace:rn <em>org</em>.<em>apache</em>.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:515)rn <em>org</em>.<em>apache</em>.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:408)rn <em>org</em>.<em>apache</em>.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)rn <em>org</em>.<em>apache</em>.jasper.servlet.JspServlet.service(JspServlet.java:266)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rnrnrnroot cause rnrnjavax.servlet.ServletException: java.lang.NoClassDefFoundError: <em>org</em>/dom4j/DocumentExceptionrn <em>org</em>.<em>apache</em>.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:855)rn <em>org</em>.<em>apache</em>.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:784)rn <em>org</em>.<em>apache</em>.jsp.catalog.Category_jsp._jspService(Category_jsp.java:144)rn <em>org</em>.<em>apache</em>.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rn <em>org</em>.<em>apache</em>.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:384)rn <em>org</em>.<em>apache</em>.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)rn <em>org</em>.<em>apache</em>.jasper.servlet.JspServlet.service(JspServlet.java:266)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rnrn可是我在Eclipse中已经把dom4j包导入了呀,求救~~~~
java.lang.NoClassDefFoundError: org/hibernate/Hiberna
我用Hibernate3+Struts1.1+tomcat5.0(JDK1.5+MyEclipse3.1)作一个简单的登陆项目,结果一点登陆就<em>报错</em>,如下:rnjava.lang.NoClassDefFoundError: <em>org</em>/hibernate/HibernateExceptionrncom.yourcompany.struts.action.LoginAction.execute(LoginAction.java:20)rn<em>org</em>.<em>apache</em>.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)rn<em>org</em>.<em>apache</em>.struts.action.RequestProcessor.process(RequestProcessor.java:274)rn<em>org</em>.<em>apache</em>.struts.action.ActionServlet.process(ActionServlet.java:1482)rn<em>org</em>.<em>apache</em>.struts.action.ActionServlet.doPost(ActionServlet.java:525)rnjavax.servlet.http.HttpServlet.service(HttpServlet.java:709)rnjavax.servlet.http.HttpServlet.service(HttpServlet.java:802)rn
java.lang.NoClassDefFoundError: org/hamcrest/SelfDescribing
我在看《Spring实战》,里头有源代码,我试着跑Test,不过出了问题,来求教下,测试代码如下:rnrnpackage com.springinaction.springidol;rnrnimport static <em>org</em>.junit.Assert.*;rnrnimport <em>org</em>.junit.Test;rnimport <em>org</em>.junit.runner.RunWith;rnimport <em>org</em>.springframework.beans.factory.annotation.Autowired;rnimport <em>org</em>.springframework.beans.factory.annotation.Qualifier;rnimport <em>org</em>.springframework.test.context.ContextConfiguration;rnimport <em>org</em>.springframework.test.context.junit4.SpringJUnit4ClassRunner;rnrn@RunWith(SpringJUnit4ClassRunner.class)rn@ContextConfiguration("spring-idol.xml")rnpublic class AnnotationConfigTest rn @Autowiredrn @Qualifier("eddie")rn private Instrumentalist eddie;rnrn @Autowiredrn @Qualifier("guitar")rn private Instrument guitar;rnrn @Testrn public void shouldWireWithAutowire() rn assertNotNull(eddie.getInstrument());rn assertEquals(guitar, eddie.getInstrument());rn rnrn抛出的异常是rnjava.lang.NoClassDefFoundError: <em>org</em>/hamcrest/SelfDescribingrn我上网查了下,网上都是说JUnit4现在的版本将这个类移除了,要加新包,所以我就加了<em>maven</em>的依赖:rn rn <em>org</em>.hamcrestrn hamcrest-corern 1.3rn rnrnrn rn junitrn junitrn 4.11rn testrn rn但是还是一直报同一个错误rn另外,我在下下来的<em>maven</em>-repository里头是能够找到SelfDescribing.class文件。我也尝试使用了各种版本的JUnit4。rn请大家教教我吧,谢谢!
java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
rnslf4j-api-1.5.2,slf4j-log4j12-1.5.2,log4j-1.2.8包已经有了.rn,rnCaused by: <em>org</em>.springframework.beans.BeanInstantiationException: Could not instantiate bean class [<em>org</em>.springframework.orm.hibernate3.LocalSessionFactoryBean]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: <em>org</em>/slf4j/LoggerFactoryrn at <em>org</em>.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:115)rn at <em>org</em>.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:61)rn at <em>org</em>.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:877)rn ... 40 morernCaused by: java.lang.NoClassDefFoundError: <em>org</em>/slf4j/LoggerFactoryrn at <em>org</em>.hibernate.cfg.Configuration.(Configuration.java:151)rn at java.lang.Class.forName0(Native Method)rn at java.lang.Class.forName(Unknown Source)rn at <em>org</em>.springframework.orm.hibernate3.LocalSessionFactoryBean.class$(LocalSessionFactoryBean.java:174)rn at <em>org</em>.springframework.orm.hibernate3.LocalSessionFactoryBean.(LocalSessionFactoryBean.java:174)rn at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)rn at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)rn at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)rn at java.lang.reflect.Constructor.newInstance(Unknown Source)rn at <em>org</em>.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:100)rn ... 42 more
IDEA下开发webserviceaxis)文档
在IDEA环境下开发<em>webservice</em>的简单步骤。
axis调用WebService
WebService 客户端 通过 <em>axis</em>包进行调取 .......................................................................................................
JQuery调用axiswebservice
有人做过相关例子吗?
JAVA调用WebService(Axis)
实现JAVA<em>调用</em>WebService操作,使用非常简单 只需要CV就可以搞定
axis调用webservice出错!!!
我用eclipse中的<em>webservice</em> <em>client</em>解析wsdl地址生成客户端代码。在<em>调用</em>客户端代码时总是出错!nnn```n AxisFaultn faultCode: http://schemas.xmlsoap.<em>org</em>/soap/envelope/Server.userExceptionn faultSubcode: n faultString: <em>org</em>.xml.sax.SAXException: Invalid element in mocha.framework.mpms.<em>webservice</em>.service.ProjectInfo - lastUpdateTimen faultActor: n faultNode: n faultDetail: n http://xml.<em>apache</em>.<em>org</em>/<em>axis</em>/stackTrace:<em>org</em>.xml.sax.SAXException: Invalid element in mocha.framework.mpms.<em>webservice</em>.service.ProjectInfo - lastUpdateTimen at <em>org</em>.<em>apache</em>.<em>axis</em>.encoding.ser.BeanDeserializer.onStartChild(BeanDeserializer.java:258)n at <em>org</em>.<em>apache</em>.<em>axis</em>.encoding.DeserializationContext.startElement(DeserializationContext.java:1035)n at <em>org</em>.<em>apache</em>.<em>axis</em>.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165)n at <em>org</em>.<em>apache</em>.<em>axis</em>.message.MessageElement.publishToHandler(MessageElement.java:1141)n at <em>org</em>.<em>apache</em>.<em>axis</em>.message.RPCElement.deserialize(RPCElement.java:236)n at <em>org</em>.<em>apache</em>.<em>axis</em>.message.RPCElement.getParams(RPCElement.java:384)n at <em>org</em>.<em>apache</em>.<em>axis</em>.<em>client</em>.Call.invoke(Call.java:2467)n at <em>org</em>.<em>apache</em>.<em>axis</em>.<em>client</em>.Call.invoke(Call.java:2366)n at <em>org</em>.<em>apache</em>.<em>axis</em>.<em>client</em>.Call.invoke(Call.java:1812)n at mocha.framework.mpms.<em>webservice</em>.service.impl.QueryServiceImplServiceSoapBindingStub.inquireProjectInfo(QueryServiceImplServiceSoapBindingStub.java:414)n at com.zzp.Test.main(Test.java:38)n```nnnn```n n```nnnn```n n```nn
Android axis调用Webservice
Android 利用<em>axis</em>2 <em>调用</em><em>webservice</em> 包含j2ee服务端代码和Android客户端代码 代码实现包含 List,map ,对象传递
AXIS调用webservice(二)
public String invoke(String xmlStr, String operation, String url) throws WebserviceException { Service service = new Service(); try { Call call = (Call) service.createCall(); call.setTarg...
axis客户端调用webservice
java <em>axis</em>客户端<em>调用</em><em>webservice</em>,可应用于ofbiz框架。 解决网络上共享代码两次<em>调用</em>后会出现timeout的BUG
webservice 客户端调用--axis
  package com.morning.<em>webservice</em>.<em>client</em>.test;   import javax.xml.namespace.QName;   import <em>org</em>.<em>apache</em>.<em>axis</em>2.AxisFault; import <em>org</em>.<em>apache</em>.<em>axis</em>2.addressing.EndpointReference; import <em>org</em>.<em>apache</em>.ax...
AXIS调用webservice(一)
public static String startWebService(String url,String operation,String account,String key,String xml){ String result = &quot;&quot;; try { Service service = new Service(); Call ...
c#调用axiswebservice
有一个<em>axis</em>的服务端,需要身份验证,验证信息存放在soaphead里面,在java里面的<em>调用</em>方式如下: rnrn应用程序代码(使用Axis的客户端编程模型来编写的)需要将用户名和密码设置到SOAPHeader中。SOAPHeaderElement的namespace约定为Authorization,localPart约定为username 和 password。 rn根据客户端程序语言及<em>调用</em>方式不同,设置的方法也不同,下面示例说明客户端程序语言为java,<em>调用</em>方式为动态<em>调用</em>的设置方法: rn用<em>org</em>.<em>apache</em>.<em>axis</em>.<em>client</em>.Call 的addHeader方法: rncall.addHeader(new SOAPHeaderElement("Authorization","username",username)); rncall.addHeader(new SOAPHeaderElement("Authorization","password",password)); rnrn不知道在c#里面如何验证
java.lang.NoClassDefFoundError: org/hibernate/HibernateException
我用Hibernate3+Struts1.1+tomcat5.0(JDK1.5+MyEclipse3.1)作一个简单的登陆项目,结果一点登陆就<em>报错</em>,如下:rnjava.lang.NoClassDefFoundError: <em>org</em>/hibernate/HibernateExceptionrn com.yourcompany.struts.action.LoginAction.execute(LoginAction.java:20)rn <em>org</em>.<em>apache</em>.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)rn <em>org</em>.<em>apache</em>.struts.action.RequestProcessor.process(RequestProcessor.java:274)rn <em>org</em>.<em>apache</em>.struts.action.ActionServlet.process(ActionServlet.java:1482)rn <em>org</em>.<em>apache</em>.struts.action.ActionServlet.doPost(ActionServlet.java:525)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:709)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rn在网上找了下,他们说是Hibernate 3的默认方式是把所有类通过代理方式来进行延迟加载。如果代码中的类有一个私有无参的构造器的话,Hibernate将无法在运行时将项目代码中的类作为子类装载。为了避免这个错误,类中的构造器函数至少应该在包内可见。 rn??不懂这句话是什么意思,我都快郁闷死了,SOS!!!rn
java.lang.NoClassDefFoundError: org/hibernate/MappingNotFoundException
就是这么个问题,我用spring和hibernate jpa ,Google了百度了都没找到答案.谢谢帮我解决这个问题.rn说明,配置的xml都是myEclipse自动生成的.jar包我用的是自己的
java.lang.NoClassDefFoundError: org/jboss/logging/
NULL 博文链接:https://lym6520.iteye.com/blog/310725
java.lang.NoClassDefFoundError: org/jsoup/Jsoup
做了一个RCP项目,想要去抓取网页页面的内容,用了jsoup的jar包。n关键是在抓取类中写了main测试方法可以抓取信息。n为啥到了RCP项目的时候,点击按钮<em>调用</em>抓取类的抓取方法就出现了njava.lang.NoClassDefFoundError: <em>org</em>/jsoup/Jsoupn郁闷啊
java.lang.NoClassDefFoundError: org/jaxen/JaxenException
dom4j解析XML时,导入了jaxen-1.1-beta-6.jar包和dom4j包。在<em>调用</em>rnList data = server.selectNodes("Stat/Stat")时报如下错误,rn其中server是一个Element;rnjava.lang.reflect.InvocationTargetExceptionrn 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 com.sinodata.bsm.cicp.message.SyncMessageListener.onMessage(SyncMessageListener.java:110)rn at <em>org</em>.<em>apache</em>.activemq.ActiveMQMessageConsumer.dispatch(ActiveMQMessageConsumer.java:1229)rn at <em>org</em>.<em>apache</em>.activemq.ActiveMQSessionExecutor.dispatch(ActiveMQSessionExecutor.java:134)rn at <em>org</em>.<em>apache</em>.activemq.ActiveMQSessionExecutor.iterate(ActiveMQSessionExecutor.java:205)rn at <em>org</em>.<em>apache</em>.activemq.thread.PooledTaskRunner.runTask(PooledTaskRunner.java:122)rn at <em>org</em>.<em>apache</em>.activemq.thread.PooledTaskRunner$1.run(PooledTaskRunner.java:43)rn at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)rn at java.lang.Thread.run(Thread.java:619)rnCaused by: java.lang.NoClassDefFoundError: <em>org</em>/jaxen/JaxenExceptionrn at <em>org</em>.dom4j.DocumentFactory.createXPath(DocumentFactory.java:230)rn at <em>org</em>.dom4j.tree.AbstractNode.createXPath(AbstractNode.java:207)rn at <em>org</em>.dom4j.tree.AbstractNode.selectNodes(AbstractNode.java:164)rn at com.sinodata.bsm.cicp.finder.was6.WebAppFinder.find(WebAppFinder.java:81)rn at com.sinodata.bsm.cicp.service.ResFindService.find(ResFindService.java:52)rn ... 13 morernCaused by: java.lang.ClassNotFoundException: <em>org</em>.jaxen.JaxenExceptionrn at java.net.URLClassLoader$1.run(URLClassLoader.java:200)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:307)rn at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:252)rn at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)rn ... 18 more
java.lang.NoClassDefFoundError: org/hibernate/Session
import <em>org</em>.hibernate.*;rnimport <em>org</em>.hibernate.cfg.*; rnrnpublic class Test rnrnpublic static void main(String[] args) rntry rnSessionFactory sf = new Configuration().configure().buildSessionFactory(); rnSession session = sf.openSession(); rnTransaction tx = session.beginTransaction(); rnrnfor (int i = 0; i ); rnsession.save(customer); rn rnrntx.commit(); rnsession.close(); rncatch(Exception e)rnrn我用的是3.0,请问各位,这是什么错误??
Axis 访问.net webService报错
[code=Java]rnprotected void doGet(HttpServletRequest req, HttpServletResponse resp)rn throws ServletException, IOException rn String url = "https://10.0.10.22/KTEWS/KTExchange.asmx";rn Service service = new Service();rn try rn Call call = (Call) service.createCall();rn String res = "";rn call.setTargetEndpointAddress(new java.net.URL(url)); rn call.setOperationName(new QName("http://kt.ews/", "getUnReadEmail")); rn call.addParameter(new QName("http://kt.ews/", "email"),rn <em>org</em>.<em>apache</em>.<em>axis</em>.encoding.XMLType.XSD_STRING,rn javax.xml.rpc.ParameterMode.IN);rn call.addParameter(new QName("http://kt.ews/", "password"),rn <em>org</em>.<em>apache</em>.<em>axis</em>.encoding.XMLType.XSD_STRING, rn javax.xml.rpc.ParameterMode.IN);rn call.addParameter(new QName("http://kt.ews/", "serverUrl"), rn <em>org</em>.<em>apache</em>.<em>axis</em>.encoding.XMLType.XSD_STRING, rn javax.xml.rpc.ParameterMode.IN); rn call.setReturnType(<em>org</em>.<em>apache</em>.<em>axis</em>.Constants.XSD_STRING);rn call.setUseSOAPAction(true);rn// call.setSOAPActionURI("http://kt.ews/getUnReadEmail");rn res = (String) call.invoke(new Object[] "haha@test.com", "123abc,",url);rn System.out.println(res);rn catch (MalformedURLException e) rn e.printStackTrace();rn catch (RemoteException e) rn e.printStackTrace();rn catch (ServiceException e) rn e.printStackTrace();rn rn rn[/code]rnrn是在servlet里面<em>调用</em>的。<em>报错</em>信息如下:rnrn2011-03-16 17:11:08 ERROR [con.err] AxisFaultrn faultCode: http://schemas.xmlsoap.<em>org</em>/soap/envelope/Serverrn faultSubcode: rn faultString: 服务器无法处理请求。 - Unexpected end of XML document.rn faultActor: rn faultNode: rn faultDetail: rn http://xml.<em>apache</em>.<em>org</em>/<em>axis</em>/stackTrace: AxisFaultrn faultCode: http://schemas.xmlsoap.<em>org</em>/soap/envelope/Serverrn faultSubcode: rn faultString: 服务器无法处理请求。 - Unexpected end of XML document.rn faultActor: rn faultNode: rn faultDetail: rnrn服务器无法处理请求。 - Unexpected end of XML document.rn at <em>org</em>.<em>apache</em>.<em>axis</em>.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:260)rn at <em>org</em>.<em>apache</em>.<em>axis</em>.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:169)rn at <em>org</em>.<em>apache</em>.<em>axis</em>.encoding.DeserializationContextImpl.endElement(DeserializationContextImpl.java:1015)rn at <em>org</em>.<em>apache</em>.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)rn at <em>org</em>.<em>apache</em>.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)rn at <em>org</em>.<em>apache</em>.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)rn at <em>org</em>.<em>apache</em>.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)rn at <em>org</em>.<em>apache</em>.xerces.parsers.XML11Configuration.parse(Unknown Source)rn at <em>org</em>.<em>apache</em>.xerces.parsers.DTDConfiguration.parse(Unknown Source)rn at <em>org</em>.<em>apache</em>.xerces.parsers.XMLParser.parse(Unknown Source)rn at <em>org</em>.<em>apache</em>.xerces.parsers.AbstractSAXParser.parse(Unknown Source)rn at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)rn at <em>org</em>.<em>apache</em>.<em>axis</em>.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:242)rn at <em>org</em>.<em>apache</em>.<em>axis</em>.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538)rn at <em>org</em>.<em>apache</em>.<em>axis</em>.Message.getSOAPEnvelope(Message.java:376)rn at <em>org</em>.<em>apache</em>.<em>axis</em>.<em>client</em>.Call.invokeEngine(Call.java:2583)rn at <em>org</em>.<em>apache</em>.<em>axis</em>.<em>client</em>.Call.invoke(Call.java:2553)rn at <em>org</em>.<em>apache</em>.<em>axis</em>.<em>client</em>.Call.invoke(Call.java:2248)rn at <em>org</em>.<em>apache</em>.<em>axis</em>.<em>client</em>.Call.invoke(Call.java:2171)rn at <em>org</em>.<em>apache</em>.<em>axis</em>.<em>client</em>.Call.invoke(Call.java:1691)rn at com.kingdee.eas.servlet.GetEmailServlet.doGet(GetEmailServlet.java:41)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)rn at com.apusic.web.container.ServletComponent.service(Unknown Source)rn at com.apusic.web.container.WebContainer.invoke(Unknown Source)rn at com.apusic.web.container.WebContainer.processRequest(Unknown Source)rn at com.apusic.web.http.VirtualHost.processRequest(Unknown Source)rn at com.apusic.web.http.HttpServer.processRequest(Unknown Source)rn at com.apusic.web.http.HttpConnectionHandler.service(Unknown Source)rn at com.apusic.web.http.ConnectionHandler.processRequest(Unknown Source)rn at com.apusic.web.http.ConnectionHandler.processConnection(Unknown Source)rn at com.apusic.web.http.ConnectionHandler.run(Unknown Source)rn at com.apusic.util.ThreadPoolImpl$WorkerThread.run(Unknown Source)rn2011-03-16 17:11:08 ERROR [con.err] 服务器无法处理请求。 - Unexpected end of XML document.rn2011-03-16 17:11:08 ERROR [con.err] at <em>org</em>.<em>apache</em>.<em>axis</em>.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:260)rn2011-03-16 17:11:08 ERROR [con.err] at <em>org</em>.<em>apache</em>.<em>axis</em>.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:169)rn2011-03-16 17:11:08 ERROR [con.err] at <em>org</em>.<em>apache</em>.<em>axis</em>.encoding.DeserializationContextImpl.endElement(DeserializationContextImpl.java:1015)rn2011-03-16 17:11:08 ERROR [con.err] at <em>org</em>.<em>apache</em>.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)rn2011-03-16 17:11:08 ERROR [con.err] at <em>org</em>.<em>apache</em>.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)rn2011-03-16 17:11:08 ERROR [con.err] at <em>org</em>.<em>apache</em>.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)rn2011-03-16 17:11:08 ERROR [con.err] at <em>org</em>.<em>apache</em>.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)rn2011-03-16 17:11:08 ERROR [con.err] at <em>org</em>.<em>apache</em>.xerces.parsers.XML11Configuration.parse(Unknown Source)rn2011-03-16 17:11:08 ERROR [con.err] at <em>org</em>.<em>apache</em>.xerces.parsers.DTDConfiguration.parse(Unknown Source)rn2011-03-16 17:11:08 ERROR [con.err] at <em>org</em>.<em>apache</em>.xerces.parsers.XMLParser.parse(Unknown Source)rn2011-03-16 17:11:08 ERROR [con.err] at <em>org</em>.<em>apache</em>.xerces.parsers.AbstractSAXParser.parse(Unknown Source)rn2011-03-16 17:11:08 ERROR [con.err] at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)rn2011-03-16 17:11:08 ERROR [con.err] at <em>org</em>.<em>apache</em>.<em>axis</em>.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:242)rn2011-03-16 17:11:08 ERROR [con.err] at <em>org</em>.<em>apache</em>.<em>axis</em>.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538)rn2011-03-16 17:11:08 ERROR [con.err] at <em>org</em>.<em>apache</em>.<em>axis</em>.Message.getSOAPEnvelope(Message.java:376)rn2011-03-16 17:11:08 ERROR [con.err] at <em>org</em>.<em>apache</em>.<em>axis</em>.<em>client</em>.Call.invokeEngine(Call.java:2583)rn2011-03-16 17:11:08 ERROR [con.err] at <em>org</em>.<em>apache</em>.<em>axis</em>.<em>client</em>.Call.invoke(Call.java:2553)rn2011-03-16 17:11:08 ERROR [con.err] at <em>org</em>.<em>apache</em>.<em>axis</em>.<em>client</em>.Call.invoke(Call.java:2248)rn2011-03-16 17:11:08 ERROR [con.err] at <em>org</em>.<em>apache</em>.<em>axis</em>.<em>client</em>.Call.invoke(Call.java:2171)rn2011-03-16 17:11:08 ERROR [con.err] at <em>org</em>.<em>apache</em>.<em>axis</em>.<em>client</em>.Call.invoke(Call.java:1691)rn2011-03-16 17:11:08 ERROR [con.err] at com.kingdee.eas.servlet.GetEmailServlet.doGet(GetEmailServlet.java:41)rn2011-03-16 17:11:08 ERROR [con.err] at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)rn2011-03-16 17:11:08 ERROR [con.err] at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)rn2011-03-16 17:11:08 ERROR [con.err] at com.apusic.web.container.ServletComponent.service(Unknown Source)rn2011-03-16 17:11:08 ERROR [con.err] at com.apusic.web.container.WebContainer.invoke(Unknown Source)rn2011-03-16 17:11:08 ERROR [con.err] at com.apusic.web.container.WebContainer.processRequest(Unknown Source)rn2011-03-16 17:11:08 ERROR [con.err] at com.apusic.web.http.VirtualHost.processRequest(Unknown Source)rn2011-03-16 17:11:08 ERROR [con.err] at com.apusic.web.http.HttpServer.processRequest(Unknown Source)rn2011-03-16 17:11:08 ERROR [con.err] at com.apusic.web.http.HttpConnectionHandler.service(Unknown Source)rn2011-03-16 17:11:08 ERROR [con.err] at com.apusic.web.http.ConnectionHandler.processRequest(Unknown Source)rn2011-03-16 17:11:08 ERROR [con.err] at com.apusic.web.http.ConnectionHandler.processConnection(Unknown Source)rn2011-03-16 17:11:08 ERROR [con.err] at com.apusic.web.http.ConnectionHandler.run(Unknown Source)rn2011-03-16 17:11:08 ERROR [con.err] at com.apusic.util.ThreadPoolImpl$WorkerThread.run(Unknown Source)rnrn求解 速度。rn非常感谢rn
Axis调用CXF报错
1. Unexpected wrapper element sendSmsApp found.   Expected {http://xxx/}sendSmsApp. 需要设置命名空间 2. Unmarshalling Error: unexpected element (uri:"xxx/", local:"arg0"). Expected elements are   需要设置传入参数及
Error:org/jetbrains/idea/maven/aether/ArtifactRepositoryManager
[img=https://img-bbs.csdn.net/upload/201804/18/1524026130_950471.jpg][/img]rn使用IDEA做了一个简单计算器测试rn报这个错 百度搜不到 麻烦大佬看看可能啥问题rn
axis webservice client调用服务器的时候new Service()出错
我是<em>axis</em>写的<em>webservice</em> <em>client</em>,在<em>调用</em>的<em>webservice</em>服务的时候 Service service = new Service();之后就不执行了,也没有出错信息rnrn代码如下:rnrntry rn logger.info("paramenters ===>" + paramenters);rn Object[] params = (Object[]) paramenters;rn Service service = new Service();rn logger.info("createCall ===>");rn Call call = (Call) service.createCall();rn logger.info("registerTypeMapping ===>");rn registerTypeMapping(call);rn logger.info("setTargetEndpointAddress ===>");rn call.setTargetEndpointAddress(url);rn logger.info("methodName ===>" + methodName);rn call.setOperationName(new QName(url,methodName));rn logger.info("webServiceTimeOut ===>");rn call.setTimeout(Integer.parseInt(SystemProperties.getProperty("webServiceTimeOut", null)));rn logger.info("invoke ===>");rn retunObj = call.invoke(params);rn logger.info("success ===>");rn rn catch(Exception e)rn logger.info("Exception ===>" + e.getMessage());rn errorMessage = e.getMessage();rn logger.error(ExceptionStackUtils.getExceptionStack(e));rn throw new RuntimeException(e);rn rn finally rn if(isSaveLog) this.saveMessage(errorMessage);rn rnrnrn日志只打出了paramenters ===>[Ljava.lang.Object;@a5cafd 这些,后面的日志都没有,catch里面的日志也没打出来!rnrn求高手们指教rn
java.lang.NoClassDefFoundError: org/bouncycastle/cms/CMSException
在使用eclipse编译jmeter源码时,出现了问题rn [javac] F:\Workspaces\test\JMETER2.7\src\components\<em>org</em>\<em>apache</em>\jmeter\assertions\SMIMEAssertion.java:49: 错误: 程序包<em>org</em>.bouncycastle.cms不存在rn [javac] import <em>org</em>.bouncycastle.cms.CMSException;rnrn发现bouncycastle包中确实没有CMSException,但是我找过了很多版本bcprov-jdk16-145.jar,bcprov-jdk16-141.jar,bcprov-ext-jdk16-146.jarrn都没有<em>org</em>.bouncycastle.cms.CMSException;这个类rnrnrn
java.lang.NoClassDefFoundError: org/w3c/dom/Node??
java.lang.NoClassDefFoundError: <em>org</em>/w3c/dom/Node?如何解决这个错误?rn
急!java.lang.NoClassDefFoundError: org/hibernate/HibernateException
<em>org</em>.<em>apache</em>.jasper.JasperException: An exception occurred processing JSP page /notice/show.jsp at line 11rnrn8: + path + "/";rn9: String UserName = request.getParameter("UserName");rn10: List list;rn11: NoticeService notice = new NoticeServiceImpl();rn12: if (UserName == null)rn13: rn14: list = notice.list();rnroot causernrnjavax.servlet.ServletException: java.lang.NoClassDefFoundError: <em>org</em>/hibernate/HibernateExceptionrn <em>org</em>.<em>apache</em>.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:855)rn <em>org</em>.<em>apache</em>.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:784)rn <em>org</em>.<em>apache</em>.jsp.notice.show_jsp._jspService(show_jsp.java:137)rn <em>org</em>.<em>apache</em>.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rn <em>org</em>.<em>apache</em>.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:384)rn <em>org</em>.<em>apache</em>.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)rn <em>org</em>.<em>apache</em>.jasper.servlet.JspServlet.service(JspServlet.java:266)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rn <em>org</em>.<em>apache</em>.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:699)rn <em>org</em>.<em>apache</em>.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:670)rn <em>org</em>.<em>apache</em>.jsp.index_jsp._jspService(index_jsp.java:83)rn <em>org</em>.<em>apache</em>.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rn <em>org</em>.<em>apache</em>.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:384)rn <em>org</em>.<em>apache</em>.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)rn <em>org</em>.<em>apache</em>.jasper.servlet.JspServlet.service(JspServlet.java:266)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rnroot causernrnjava.lang.NoClassDefFoundError: <em>org</em>/hibernate/HibernateExceptionrn com.laboratory.hibernate.service.NoticeServiceImpl.(NoticeServiceImpl.java:15)rn <em>org</em>.<em>apache</em>.jsp.notice.show_jsp._jspService(show_jsp.java:65)rn <em>org</em>.<em>apache</em>.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rn <em>org</em>.<em>apache</em>.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:384)rn <em>org</em>.<em>apache</em>.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)rn <em>org</em>.<em>apache</em>.jasper.servlet.JspServlet.service(JspServlet.java:266)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rn <em>org</em>.<em>apache</em>.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:699)rn <em>org</em>.<em>apache</em>.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:670)rn <em>org</em>.<em>apache</em>.jsp.index_jsp._jspService(index_jsp.java:83)rn <em>org</em>.<em>apache</em>.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rn <em>org</em>.<em>apache</em>.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:384)rn <em>org</em>.<em>apache</em>.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)rn <em>org</em>.<em>apache</em>.jasper.servlet.JspServlet.service(JspServlet.java:266)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rnroot causernrnjava.lang.ClassNotFoundException: <em>org</em>.hibernate.HibernateExceptionrn <em>org</em>.<em>apache</em>.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358)rn <em>org</em>.<em>apache</em>.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)rn java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)rn com.laboratory.hibernate.service.NoticeServiceImpl.(NoticeServiceImpl.java:15)rn <em>org</em>.<em>apache</em>.jsp.notice.show_jsp._jspService(show_jsp.java:65)rn <em>org</em>.<em>apache</em>.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rn <em>org</em>.<em>apache</em>.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:384)rn <em>org</em>.<em>apache</em>.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)rn <em>org</em>.<em>apache</em>.jasper.servlet.JspServlet.service(JspServlet.java:266)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rn <em>org</em>.<em>apache</em>.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:699)rn <em>org</em>.<em>apache</em>.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:670)rn <em>org</em>.<em>apache</em>.jsp.index_jsp._jspService(index_jsp.java:83)rn <em>org</em>.<em>apache</em>.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rn <em>org</em>.<em>apache</em>.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:384)rn <em>org</em>.<em>apache</em>.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)rn <em>org</em>.<em>apache</em>.jasper.servlet.JspServlet.service(JspServlet.java:266)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rnrn源码如下:rnrnrnrnrnrnrnrn rn rnrn My JSP 'show.jsp' starting pagernrn rn rn rn rn rn rnrn rnrn rn rn < list.size(); i++)rn rn Notice temp = (Notice) list.get(i);rn %>rn rn rn rn rn rn rn rn rn rn rn rn rn rn rnrn
java.lang.NoClassDefFoundError: org/objectweb/asm/ClassVisitor
关于struts2.3和hibernate3.2整合出现以下异常rnjava.lang.NoClassDefFoundError: <em>org</em>/objectweb/asm/ClassVisitorrn at <em>org</em>.<em>apache</em>.struts2.convention.PackageBasedActionConfigBuilder.findActions(PackageBasedActionConfigBuilder.java:379)rn at <em>org</em>.<em>apache</em>.struts2.convention.PackageBasedActionConfigBuilder.buildActionConfigs(PackageBasedActionConfigBuilder.java:337)rn at <em>org</em>.<em>apache</em>.struts2.convention.ClasspathPackageProvider.loadPackages(ClasspathPackageProvider.java:53)rn at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:241)rn at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66)rn at <em>org</em>.<em>apache</em>.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:390)rn at <em>org</em>.<em>apache</em>.struts2.dispatcher.Dispatcher.init(Dispatcher.java:436)rn at <em>org</em>.<em>apache</em>.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:74)rn at <em>org</em>.<em>apache</em>.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51)rn at <em>org</em>.<em>apache</em>.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:277)rn at <em>org</em>.<em>apache</em>.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:258)rn at <em>org</em>.<em>apache</em>.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:382)rn at <em>org</em>.<em>apache</em>.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:103)rn at <em>org</em>.<em>apache</em>.catalina.core.StandardContext.filterStart(StandardContext.java:4638)rn at <em>org</em>.<em>apache</em>.catalina.core.StandardContext.startInternal(StandardContext.java:5294)rn at <em>org</em>.<em>apache</em>.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at <em>org</em>.<em>apache</em>.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:895)rn at <em>org</em>.<em>apache</em>.catalina.core.ContainerBase.addChild(ContainerBase.java:871)rn at <em>org</em>.<em>apache</em>.catalina.core.StandardHost.addChild(StandardHost.java:615)rn at <em>org</em>.<em>apache</em>.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1095)rn at <em>org</em>.<em>apache</em>.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1617)rn at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)rn at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)rn at java.util.concurrent.FutureTask.run(FutureTask.java:138)rn at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)rn at java.lang.Thread.run(Thread.java:619)rnCaused by: java.lang.ClassNotFoundException: <em>org</em>.objectweb.asm.ClassVisitorrn at <em>org</em>.<em>apache</em>.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1701)rn at <em>org</em>.<em>apache</em>.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1546)rn at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)rn ... 27 morernrn可以确定的是asm-3.3.jar已经添加,但是错误仍然存在请高手指教rnrn
关于javax.servlet.ServletException: java.lang.NoClassDefFoundError: org/hibernate
我写了一个类ExportDB,作用是根据映射文件在数据库中删表或建表。rn[code=java]package com.fhe.db;rnrnimport java.io.File;rnrnimport <em>org</em>.hibernate.*;rnimport <em>org</em>.hibernate.Transaction;rnimport <em>org</em>.hibernate.cfg.Configuration;rnimport <em>org</em>.hibernate.tool.hbm2ddl.SchemaExport;rnimport <em>org</em>.junit.Test;rnrnimport com.fhe.util.HibernateUtil;rnpublic class ExportDB rnrn Session s = HibernateUtil.getSession();rn Configuration cfg = null;rn Transaction t = s.beginTransaction();rn/*rn * 根据实体类与映射文件建表rn */rn @Testrn public void createTable() rn // 默认读取hibernate.cfg.xml文件rn cfg = new Configuration().configure(new File("src/hibernate.cfg.xml"));rn // 生成并输出sql到文件(当前目录)和数据库rn SchemaExport export = new SchemaExport(cfg);rn try rn t.begin();// 事务开始rn // 第一个为True就是把DDL语句输出到控制台,第二个为True就是根据持久类和映射文件先执行删除再执行创建操作rn export.setFormat(true).setOutputFile("D:\\sql.sql")rn .create(false, false);rn catch (Exception e) rn System.out.print("出错啦1");rn e.printStackTrace();rn rn try rn t.commit();// 提交事务rn s.close();// 关闭连接rn catch (Exception e2) rn e2.printStackTrace();rn rn rn /*rn * 删表rn */rn public void dropTable()rn // 默认读取hibernate.cfg.xml文件rn cfg = new Configuration().configure(new File("src/hibernate.cfg.xml"));rn // 生成并输出sql到文件(当前目录)和数据库rn SchemaExport export = new SchemaExport(cfg);rn try rn t.begin();// 事务开始rn // 第一个为True就是把DDL语句输出到控制台,第二个为True就是根据持久类和映射文件执行删除数据库架构操作rn export.drop(false, true);rn catch (Exception e3) rn e3.printStackTrace();rn rn try rn t.commit();// 提交事务rn s.close();// 关闭连接rn catch (Exception e4) rn e4.printStackTrace();rn rn rn rnrn[/code]rn接下来写一个main方法<em>调用</em>这个类rn[code=java]public static void main(String[] args) rn // TODO Auto-generated method stubrn ExportDB ed = new ExportDB();rn ed.dropTable();rn [/code]rn是<em>调用</em>成功的了。rn但是我在一个jsp页面中<em>调用</em>之:rn[code=java]rnrn[/code]rn则一直<em>报错</em>:[code=java]rn<em>org</em>.<em>apache</em>.jasper.JasperException: javax.servlet.ServletException: java.lang.NoClassDefFoundError: <em>org</em>/hibernate/Sessionrn <em>org</em>.<em>apache</em>.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:549)rn <em>org</em>.<em>apache</em>.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:455)rn <em>org</em>.<em>apache</em>.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:403)rn <em>org</em>.<em>apache</em>.jasper.servlet.JspServlet.service(JspServlet.java:347)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:725)rn <em>org</em>.<em>apache</em>.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)rnroot causernrnjavax.servlet.ServletException: java.lang.NoClassDefFoundError: <em>org</em>/hibernate/Sessionrn <em>org</em>.<em>apache</em>.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:905)rn <em>org</em>.<em>apache</em>.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:834)rn <em>org</em>.<em>apache</em>.jsp.dropTable_jsp._jspService(dropTable_jsp.java:127)rn <em>org</em>.<em>apache</em>.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:725)rn <em>org</em>.<em>apache</em>.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)rn <em>org</em>.<em>apache</em>.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:403)rn <em>org</em>.<em>apache</em>.jasper.servlet.JspServlet.service(JspServlet.java:347)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:725)rn <em>org</em>.<em>apache</em>.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)rn[/code]rnhibernate3.jar都是加进lib的了。关键是在应用程序就能<em>调用</em>而在jsp中就不行,请问哪位大侠能给点参考意见。
关于java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
[color=#FF0000][/color]Exception in thread "main" java.lang.NoClassDefFoundError: <em>org</em>/slf4j/LoggerFactoryrn at <em>org</em>.hibernate.cfg.Configuration.(Configuration.java:152)rn at hibernate.ExportDB.main(ExportDB.java:9)rnrn我的项目里面有LoggerFactor这个类,为什么就没有导进去呢?网上说的那些包也不差啊,我从官方网站下的slf4j完整的包,还是解决不了问题,rn[img=http://hi.csdn.net/space-150265-do-album-picid-479854.html][/img]
java.lang.NoClassDefFoundError: org/objectweb/asm/CodeVisitor
大家给我看看,这个是什么问题,我已经把asm-2.2.3.jar包删了,rnCaused by: rnjava.lang.NoClassDefFoundError: <em>org</em>/objectweb/asm/CodeVisitorrn at net.sf.cglib.core.KeyFactory$Generator.generateClass(KeyFactory.java:165)rn at net.sf.cglib.core.DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy.java:25)rn at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:216)rn at net.sf.cglib.core.KeyFactory$Generator.create(KeyFactory.java:145)rn at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:117)rn at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:108)rn at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:104)rn at net.sf.cglib.proxy.Enhancer.(Enhancer.java:69)rn at <em>org</em>.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.getProxyFactory(CGLIBLazyInitializer.java:117)rn at <em>org</em>.hibernate.proxy.pojo.cglib.CGLIBProxyFactory.postInstantiate(CGLIBProxyFactory.java:43)rn at <em>org</em>.hibernate.tuple.entity.PojoEntityTuplizer.buildProxyFactory(PojoEntityTuplizer.java:162)rn at <em>org</em>.hibernate.tuple.entity.AbstractEntityTuplizer.(AbstractEntityTuplizer.java:135)rn at <em>org</em>.hibernate.tuple.entity.PojoEntityTuplizer.(PojoEntityTuplizer.java:55)rn at <em>org</em>.hibernate.tuple.entity.EntityEntityModeToTuplizerMapping.(EntityEntityModeToTuplizerMapping.java:56)rn at <em>org</em>.hibernate.tuple.entity.EntityMetamodel.(EntityMetamodel.java:295)rn at <em>org</em>.hibernate.persister.entity.AbstractEntityPersister.(AbstractEntityPersister.java:434)rn at <em>org</em>.hibernate.persister.entity.SingleTableEntityPersister.(SingleTableEntityPersister.java:109)rn at <em>org</em>.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:55)rn at <em>org</em>.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:226)rn at <em>org</em>.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1294)rn at <em>org</em>.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:805)rn at <em>org</em>.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:745)rn at <em>org</em>.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:134)rn at <em>org</em>.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1202)rn at <em>org</em>.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1172)rn at <em>org</em>.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:428)rn at <em>org</em>.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)rn at <em>org</em>.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)rn at <em>org</em>.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)rn at <em>org</em>.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)rn at <em>org</em>.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:284)rn at <em>org</em>.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)rn at <em>org</em>.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:244)rn at <em>org</em>.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:187)rn at <em>org</em>.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)rn at <em>org</em>.<em>apache</em>.catalina.core.StandardContext.listenerStart(StandardContext.java:3827)rn at <em>org</em>.<em>apache</em>.catalina.core.StandardContext.start(StandardContext.java:4343)rn at <em>org</em>.<em>apache</em>.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)rn at <em>org</em>.<em>apache</em>.catalina.core.ContainerBase.addChild(ContainerBase.java:807)rn at <em>org</em>.<em>apache</em>.catalina.core.StandardHost.addChild(StandardHost.java:595)rn at <em>org</em>.<em>apache</em>.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:277)rn at <em>org</em>.<em>apache</em>.catalina.core.StandardHost.install(StandardHost.java:832)rn at <em>org</em>.<em>apache</em>.catalina.startup.HostConfig.deployDirectories(HostConfig.java:701)rn at <em>org</em>.<em>apache</em>.catalina.startup.HostConfig.deployApps(HostConfig.java:432)rn at <em>org</em>.<em>apache</em>.catalina.startup.HostConfig.start(HostConfig.java:983)rn at <em>org</em>.<em>apache</em>.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:349)rn at <em>org</em>.<em>apache</em>.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)rn at <em>org</em>.<em>apache</em>.catalina.core.ContainerBase.start(ContainerBase.java:1091)rn at <em>org</em>.<em>apache</em>.catalina.core.StandardHost.start(StandardHost.java:789)rn at <em>org</em>.<em>apache</em>.catalina.core.ContainerBase.start(ContainerBase.java:1083)rn at <em>org</em>.<em>apache</em>.catalina.core.StandardEngine.start(StandardEngine.java:478)rn at <em>org</em>.<em>apache</em>.catalina.core.StandardService.start(StandardService.java:480)rn at <em>org</em>.<em>apache</em>.catalina.core.StandardServer.start(StandardServer.java:2313)rn at <em>org</em>.<em>apache</em>.catalina.startup.Catalina.start(Catalina.java:556)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 <em>org</em>.<em>apache</em>.catalina.startup.Bootstrap.start(Bootstrap.java:287)rn at <em>org</em>.<em>apache</em>.catalina.startup.Bootstrap.main(Bootstrap.java:425)rn2009-5-5 11:37:43 <em>org</em>.<em>apache</em>.catalina.core.StandardContext startrn严重: Error listenerStart
java.lang.NoClassDefFoundError: org/ibex/classgen/CGConst
一下是源代码,在MyEclipse下运行rn[code=Java]rnimport java.io.*;rnimport java.security.*;rn rnpublic class MD5rn private String inStr;rn private MessageDigest mad5;rn public MD5(String inStr)rn this.inStr=inStr;rn try rn this.mad5=MessageDigest.getInstance("MD5");rn catch (NoSuchAlgorithmException e) rn e.printStackTrace();rn rn rn public String compute()rn char[] charArray=this.inStr.toCharArray();rn byte[] byteArray=new byte[charArray.length];rn for(int i=0;i
axis调用webservice的简单方法
本人初遇<em>webservice</em>,研究了下<em>webservice</em><em>调用</em>。现写出一个方法,如果你还有其他方式,欢迎留言。探讨学习。 try { Service service = new Service(); Call call = (Call)service.createCall(); call.setTargetEndpointAddress(new java.net.URL...
使用axis调用WebService服务端
压缩包中包含详细代码以及所用到的jar,是完整可运行的project。当然,需要正确的路径支持才可以运行,本人没有把我所用到的路径贴出,改为本机地址。
使用axis调用WebService示例
1、使用<em>axis</em><em>调用</em>WebService示例 [code=&quot;java&quot;] import <em>org</em>.<em>apache</em>.<em>axis</em>.<em>client</em>.Call; import <em>org</em>.<em>apache</em>.<em>axis</em>.<em>client</em>.Service; import <em>org</em>.<em>apache</em>.commons.lang.StringUtils; Service service = new Service(); ...
axis调用webservice相关工具类
1、<em>axis</em><em>调用</em><em>webservice</em>的方法 public static String getUnionCicWebserviceResult(String URL,String nameSpaceURL, String webMethod,Object[] params) {                         <em>org</em>.<em>apache</em>.<em>axis</em>.<em>client</em>.Service...
niit J2ME在线考试 niit J2ME在线考试下载
niit J2ME在线考试niit J2ME在线考试niit J2ME在线考试niit J2ME在线考试niit J2ME在线考试niit J2ME在线考试niit J2ME在线考试 相关下载链接:[url=//download.csdn.net/download/lili130/3406237?utm_source=bbsseo]//download.csdn.net/download/lili130/3406237?utm_source=bbsseo[/url]
struts+hibernate+spring框架整合做分页下载
struts+hibernate+spring框架整合做分页,绝对经典! 相关下载链接:[url=//download.csdn.net/download/KANGBROTHER/3432629?utm_source=bbsseo]//download.csdn.net/download/KANGBROTHER/3432629?utm_source=bbsseo[/url]
路由器密码破解扫描工具下载
路由器密码破解扫描工具,用户路由器密码破解扫描,非常好用。 相关下载链接:[url=//download.csdn.net/download/gaotingjie/3477595?utm_source=bbsseo]//download.csdn.net/download/gaotingjie/3477595?utm_source=bbsseo[/url]
相关热词 c#异步发送kafka c#窗体编号 c# 操作二进制文件 c# 反射 机制 c#线程 窗体失去响应 c#角度转弧度 c# 解析gps数据 c# vs设置 语法版本 c# json含回车 c#多线程demo
我们是很有底线的