`
yangzb
  • 浏览: 3506649 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

Error loading WebappClassLoader when deploy axis2-1.5 with eclipse ganymede and

    博客分类:
  • Java
阅读更多

I create a dynamic web project on eclipse
I add the project facets axis 2
I deploy on target apache tomcat 6.0.20

and i've got the error :

GRAVE: Error loading WebappClassLoader
  delegate: false
  repositories:
    /WEB-INF/classes/
----------> Parent Classloader:
org.apache.catalina.loader.StandardClassLoader@ca2dce
 org.apache.axis2.transport.http.AxisAdminServlet
java.lang.ClassNotFoundException: org.apache.axis2.transport.http.AxisAdminServlet
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1095)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4149)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4458)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:583)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
12 juin 2009 20:01:08 org.apache.catalina.core.StandardContext loadOnStartup
GRAVE: La servlet /webservices-dsi a généré une exception "load()"
java.lang.ClassNotFoundException: org.apache.axis2.transport.http.AxisAdminServlet
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1095)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4149)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4458)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:583)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)


THE FOLDER /WEB-INF/classes/ doesn't copied in the build folder. And when i copy it manually it's oK but when i click on the link to see the services i've the error :


javax.servlet.ServletException: "Servlet.init()" pour la servlet AxisServlet a généré une exception
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
java.lang.Thread.run(Thread.java:619)


cause mère

java.lang.NoClassDefFoundError: org/apache/http/HttpResponseFactory
org.apache.axis2.transport.http.SimpleHTTPServer.init(SimpleHTTPServer.java:116)
org.apache.axis2.engine.ListenerManager.init(ListenerManager.java:74)
org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:449)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
java.lang.Thread.run(Thread.java:619)


cause mère

java.lang.ClassNotFoundException: org.apache.http.HttpResponseFactory
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
org.apache.axis2.transport.http.SimpleHTTPServer.init(SimpleHTTPServer.java:116)
org.apache.axis2.engine.ListenerManager.init(ListenerManager.java:74)
org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:449)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
java.lang.Thread.run(Thread.java:619)

 

 

Fab Pit added a comment - 12/Jun/09 02:37 PM in fact i saw after than in web.xml that the class AxisAdminServlet class has change of package


<!-- <servlet-class>org.apache.axis2.transport.http.AxisAdminServlet</servlet-class> -->
    <servlet-class>org.apache.axis2.webapp.AxisAdminServlet</servlet-class>
    
but after I've got a new error :

java.lang.NoClassDefFoundError: org/apache/http/HttpResponseFactory

 

 

Andreas Veithen added a comment - 13/Jun/09 12:00 PM

As far as I know, we don't provide any Eclipse plugin implementing "project facets axis 2". Please identify the providers of that plugin and send a request to them to upgrade their plugin to support Axis2 1.5.
分享到:
评论

相关推荐

    spring的jar包解决:DispatcherServlet

    Error loading WebappClassLoader org.springframework.web.servlet.DispatcherServlet java.lang.ClassNotFoundException: org.springframework.web.servlet.DispatcherServlet at org.apache.catalina.loader....

    Problem with WebappClassLoader in background thread

    标题 "Problem with WebappClassLoader in background thread" 指向的是一个关于Web应用程序类加载器(WebappClassLoader)在后台线程中遇到的问题。在Java的Web应用开发中,WebappClassLoader是Tomcat等Servlet容器...

    借助Ehcache缓存框架实现对页面的缓存Demo

    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. ...

    Proxool-0.9.1

    2.解决housekeeper内存泄露问题 3.解决与spring配合时,只能在spring的定义中以bean方式加载proxool的问题。(使用servlet方式加载也可以,只是在启动时报错) 加载方式修改为: &lt;!-- proxool --&gt; &lt;context-...

    spring-instrument-tomcat-4.3.14.RELEASE.jar

    Tomcat's WebappClassLoader is currently not instrumentable, so Spring provides a custom ClassLoader that can be used by placing spring-instrument-tomcat.jar in $TOMCAT_HOME/lib and putting a loader ...

    How Tomcat Works: A Guide to Developing Your Own Java Servlet Container

    8.6 WebappClassLoader类 57 8.6.1 类缓存 58 8.6.2 载入类 59 8.6.3 应用程序 59 第9章 session管理 62 9.1 概述 62 9.2 Sessions 62 9.2.1 Session接口 62 9.2.2 StandardSession类 63 9.2.3 ...

    Jetty权威指南.pdf

    **13.5 Optimizing with Last-Modified and Cache-Control** 通过设置HTTP头部中的`Last-Modified`和`Cache-Control`字段,可以有效利用浏览器缓存,减少重复请求。 **13.6 Optimizing Browser Caching** 浏览器...

    Java类加载

    1. **加载**(Loading): - 主要是读取 `.class` 文件中的字节码数据,并将其转换成 `Class` 对象。 2. **验证**(Verification): - 确保加载的类信息符合 Java 语言规范的要求,比如确保继承关系正确、常量池...

    commons-beanutils-1.7.0

    at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1817) at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:872) at org.apache....

    Tomcat7 负载Jar包

    4. **使用WebAppClassLoader**:针对特定应用的JAR,应放在Web应用的`WEB-INF/lib`下,由WebAppClassLoader加载。 **三、配置文件详解** 1. **server.xml**:这是Tomcat的主要配置文件,包含了Server、Service、...

    Tomcat 5.0.18 ClassLoader source code insight

    尤其在类加载(Class Loading)机制方面,它是Java应用程序运行的基础,也是理解Tomcat工作原理的关键一环。本文将围绕Tomcat 5.0.18版本的ClassLoader源码进行深入分析,旨在帮助读者了解其工作方式,提升对Java...

    阿里面试题 JVM-开源框架.docx

    2. **JVM内存结构**:JVM内存主要分为堆内存(包括新生代和老年代)和栈内存(每个线程一个栈),还有方法区(包含持久代)。新生代进一步划分为Eden区和两个Survivor区(From和To),默认比例为8:1:1。 3. **内存...

    找出Web程序依赖的所有的JAR

    `WebappClassLoader$PrivilegedFindResourceByName.class`、`WebappClassLoader$1.class`、`WebappClassLoader$PrivilegedGetClassLoader.class`和`WebappClassLoader$PrivilegedFindResource.class`这些内部类可能...

    tomcat8.0.0-RC5源码官方

    `java/org/apache/catalina/loader/WebappClassLoader`类负责加载Servlet类,`java/org/apache/catalina/core/ApplicationServletRegistration`管理Servlet注册。 5. **连接器与协议处理**:`Coyote`组件负责处理...

    JettyWebSocketTest2

    在 onMessage 中,上下文类加载器将是 org.codehaus.plexus.classworlds.realm.ClassRealm 而不是 org.eclipse.jetty.webapp.WebAppClassLoader。 因此,从 Web 应用程序的 Jar 中查找类路径上的资源将失败。

    WEB-INF下的lib下的子目录中的jar包不能自动发布的问题的解决办法

    2. **服务器配置**:不同的应用服务器,如Tomcat、Jetty等,对`WEB-INF/lib`目录的处理方式可能略有不同。某些服务器可能不支持子目录结构,而是期望所有JAR文件直接放在`lib`目录下。检查服务器文档,确认其是否...

    JAVA面试题总览[整理].pdf

    它们的字节数分别为:byte(1字节)、short(2字节)、int(4字节)、long(8字节)、float(4字节)、double(8字节)、char(2字节)、boolean(1字节,但不占内存空间)。 2. String类是final的,不能被继承,...

Global site tag (gtag.js) - Google Analytics