java.lang.NoClassDefFoundError: XmlRpcServer

Sonatype JIRA | 6 years ago
  1. 0

    I am using xmlrpcServer in my web module in my servlet. I am giving xml-rpc.jar in my ear lib, it was working fine but I changed some settings and its not working. Here is the wl_server.log: java.lang.NoClassDefFoundError: XmlRpcServer at java.lang.Class.getDeclaredFields0(Native Method) at java.lang.Class.privateGetDeclaredFields(Class.java:2291) at java.lang.Class.getDeclaredFields(Class.java:1743) at weblogic.j2ee.dd.xml.BaseJ2eeAnnotationProcessor.getFields(BaseJ2eeAnnotationProcessor.java:965) at weblogic.j2ee.dd.xml.BaseJ2eeAnnotationProcessor.getFields(BaseJ2eeAnnotationProcessor.java:958) at weblogic.j2ee.dd.xml.BaseJ2eeAnnotationProcessor.processJ2eeAnnotations(BaseJ2eeAnnotationProcessor.java:97) at weblogic.j2ee.dd.xml.J2eeAnnotationProcessor.processJ2eeAnnotations(J2eeAnnotationProcessor.java:37) at weblogic.servlet.internal.WebAnnotationProcessorImpl.processServlets(WebAnnotationProcessorImpl.java:228) at weblogic.servlet.internal.WebAnnotationProcessorImpl.processJ2eeAnnotations(WebAnnotationProcessorImpl.java:211) at weblogic.servlet.internal.WebAnnotationProcessorImpl.processAnnotations(WebAnnotationProcessorImpl.java:107) at weblogic.servlet.internal.WebAppServletContext.processAnnotations(WebAppServletContext.java:1287) at weblogic.servlet.internal.WebAppServletContext.<init>(WebAppServletContext.java:412) at weblogic.servlet.internal.WebAppServletContext.<init>(WebAppServletContext.java:456) at weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:414) at weblogic.servlet.internal.WebAppModule.registerWebApp(WebAppModule.java:910) at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:364) at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:180) at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93) at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:388) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37) at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:58) at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:44) at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:616) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37) at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:191) at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:16) at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:155) at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60) at weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperation.java:198) at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:89) at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217) at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:725) at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1190) at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:248) at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:160) at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:157) at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:12) at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:46) at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201) at weblogic.work.ExecuteThread.run(ExecuteThread.java:173) ========================= Here is my application.xml ========================= <?xml version="1.0" encoding="UTF-8"?> <application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:application="http://java.sun.com/xml/ns/javaee/application_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_5.xsd" id="Application_ID" version="5"> <display-name>TestEAR</display-name> <module> <web> <web-uri>TestWEB-1.0.0-SNAPSHOT.war</web-uri> <context-root>DataServicesWAR</context-root> </web> </module> </application> ================================================================================= =========================== Here is my ear pom.xml ============================== <project xmlns = "http://maven.apache.org/POM/4.0.0" xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation = "http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>org.finra.mks.delve</groupId> <artifactId>TestEAR</artifactId> <packaging>ear</packaging> <version>1.0.0-SNAPSHOT</version> <build> <!--<sourceDirectory>src</sourceDirectory>--> <!-- finalName>TestEAR</finalName --> <!-- resources> <resource> <directory>/EarContent/META-INF</directory> <targetPath>META-INF</targetPath> <filtering>false</filtering> <includes> <include>weblogic-application.xml</include> </includes> </resource> </resources --> <!-- remove one plugins information first workout on web module preparation --> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-ear-plugin</artifactId> <version>2.4.2</version> <configuration> <earSourceDirectory>EarContent</earSourceDirectory> <defaultJavaBundleDir>APP-INF/lib/</defaultJavaBundleDir> <!-- defaultJavaBundleDir>lib/</defaultJavaBundleDir --> <!-- generateApplicationXml>false</generateApplicationXml --> <modules> <webModule> <groupId>org.Test</groupId> <artifactId>TestWEB</artifactId> <contextRoot>DataServicesWAR</contextRoot> </webModule> </modules> </configuration> </plugin> </plugins> </build> <dependencies> <dependency> <groupId>org.test</groupId> <artifactId>TestWEB</artifactId> <version>1.0.0-SNAPSHOT</version> <type>war</type> </dependency> <dependency> <groupId>xmlrpc</groupId> <artifactId>xmlrpc</artifactId> <version>1.2-b1</version> </dependency> <dependency> <groupId>log4j</groupId> <artifactId>log4j</artifactId> <version>1.2.15</version> </dependency> <dependency> <groupId>xalan</groupId> <artifactId>xalan</artifactId> <version>1.2.2</version> </dependency> </dependencies> </project> ==================================================================================== ================================ Here is my web pom.xml ============================ <project xmlns = "http://maven.apache.org/POM/4.0.0" xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation = "http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>org.finra.mks.delve</groupId> <artifactId>TestWEB</artifactId> <packaging>war</packaging> <version>1.0.0-SNAPSHOT</version> <build> <sourceDirectory>src</sourceDirectory> <resource> <directory>JavaSource</directory> </resource> </resources--> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <!-- version>2.1</version --> <configuration> <!-- warSourceDirectory>WebContent</warSourceDirectory --> <!-- warSourceExcludes>WEB-INF/lib/*.jar</warSourceExcludes --> <!-- webXml>WebContent/WEB-INF/web.xml</webXml --> <webResources> <resource> <directory>WebContent</directory> <filtering>false</filtering> </resource> </webResources> <archive> <manifest> <addClasspath>true</addClasspath> </manifest> </archive> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>2.3.2</version> <configuration> <verbose>true</verbose> <compilerVersion>1.6</compilerVersion> </configuration> </plugin> </plugins> </build> <dependencies> <dependency> <groupId>javax.servlet</groupId> <artifactId>servlet-api</artifactId> <version>2.4</version> <scope>provided</scope> </dependency> <dependency> <groupId>xmlrpc</groupId> <artifactId>xmlrpc</artifactId> <version>1.2-b1</version> <optional>true</optional> </dependency> <dependency> <groupId>commons-logging</groupId> <artifactId>commons-logging</artifactId> <version>1.0.3</version> <optional>true</optional> </dependency> <!-- dependency> <groupId>webserviceutils</groupId> <artifactId>webserviceutils</artifactId> <version>1.0</version> </dependency --> <dependency> <groupId>jdom</groupId> <artifactId>jdom</artifactId> <version>b9</version> <optional>true</optional> </dependency> <dependency> <groupId>org.Test</groupId> <artifactId>TestCommon</artifactId> <version>1.2.2-SNAPSHOT</version> <optional>true</optional> <!-- exclusions> <exclusion> <groupId>javax.activation</groupId> <artifactId>activation</artifactId> </exclusion> </exclusions --> </dependency> </dependencies> </project> =================================================================================

    Sonatype JIRA | 6 years ago
    java.lang.NoClassDefFoundError: XmlRpcServer
  2. 0

    Error while deploying web application in weblogic 10.3

    Stack Overflow | 7 months ago | user2126414
    java.lang.NoClassDefFoundError: org/apache/commons/digester/Digester
  3. 0

    Error while apply JRF template to managed server

    Oracle Community | 6 years ago | polo
    java.lang.NoClassDefFoundError: oracle/dms/http/Request
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Migrating from webcenter 11.1.1.5.0 to 11.1.1.7.0

    Oracle Community | 3 years ago | zeliboba
    java.lang.NoClassDefFoundError: javax/faces/context/FacesContext
  6. 0

    java.lang.NoClassDefFoundError: FilterConfig

    Oracle Community | 2 years ago | 2646041
    java.lang.NoClassDefFoundError: FilterConfig
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.NoClassDefFoundError

    XmlRpcServer

    at java.lang.Class.getDeclaredFields0()
  2. Java RT
    Class.getDeclaredFields
    1. java.lang.Class.getDeclaredFields0(Native Method)
    2. java.lang.Class.privateGetDeclaredFields(Class.java:2291)
    3. java.lang.Class.getDeclaredFields(Class.java:1743)
    3 frames
  3. weblogic.j2ee.dd
    J2eeAnnotationProcessor.processJ2eeAnnotations
    1. weblogic.j2ee.dd.xml.BaseJ2eeAnnotationProcessor.getFields(BaseJ2eeAnnotationProcessor.java:965)
    2. weblogic.j2ee.dd.xml.BaseJ2eeAnnotationProcessor.getFields(BaseJ2eeAnnotationProcessor.java:958)
    3. weblogic.j2ee.dd.xml.BaseJ2eeAnnotationProcessor.processJ2eeAnnotations(BaseJ2eeAnnotationProcessor.java:97)
    4. weblogic.j2ee.dd.xml.J2eeAnnotationProcessor.processJ2eeAnnotations(J2eeAnnotationProcessor.java:37)
    4 frames
  4. Atmosphere weblogic
    WebAppModule.prepare
    1. weblogic.servlet.internal.WebAnnotationProcessorImpl.processServlets(WebAnnotationProcessorImpl.java:228)
    2. weblogic.servlet.internal.WebAnnotationProcessorImpl.processJ2eeAnnotations(WebAnnotationProcessorImpl.java:211)
    3. weblogic.servlet.internal.WebAnnotationProcessorImpl.processAnnotations(WebAnnotationProcessorImpl.java:107)
    4. weblogic.servlet.internal.WebAppServletContext.processAnnotations(WebAppServletContext.java:1287)
    5. weblogic.servlet.internal.WebAppServletContext.<init>(WebAppServletContext.java:412)
    6. weblogic.servlet.internal.WebAppServletContext.<init>(WebAppServletContext.java:456)
    7. weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:414)
    8. weblogic.servlet.internal.WebAppModule.registerWebApp(WebAppModule.java:910)
    9. weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:364)
    9 frames
  5. weblogic.application.internal
    DeploymentCallbackFlow$1.next
    1. weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:180)
    2. weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93)
    3. weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:388)
    3 frames
  6. weblogic.application.utils
    StateMachineDriver.nextState
    1. weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
    1 frame
  7. weblogic.application.internal
    BaseDeployment$1.next
    1. weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:58)
    2. weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:44)
    3. weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:616)
    3 frames
  8. weblogic.application.utils
    StateMachineDriver.nextState
    1. weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
    1 frame
  9. weblogic.application.internal
    DeploymentStateChecker.prepare
    1. weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:191)
    2. weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:16)
    3. weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:155)
    3 frames
  10. weblogic.deploy.internal
    DeploymentServiceDispatcher.prepare
    1. weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60)
    2. weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperation.java:198)
    3. weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:89)
    4. weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217)
    5. weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:725)
    6. weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1190)
    7. weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:248)
    8. weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:160)
    8 frames
  11. weblogic.deploy.service
    DeploymentReceiverCallbackDeliverer$1.run
    1. weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:157)
    2. weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:12)
    3. weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:46)
    3 frames
  12. weblogic.work
    ExecuteThread.run
    1. weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
    2. weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    3. weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    3 frames