尝试使用Dynamic Ax连接器时java.lang.NoClassDefFoundError:org / mule / streaming / ProviderAwarePagingDelegate

时间:2016-10-26 09:16:46

标签: maven mule dynamics-ax-2012

我在mule esb和servlet中使用Dynamicax,在tomcat中创建war文件并进行部署,当我运行它时会出现以下错误:

exception 
javax.servlet.ServletException: Servlet execution threw an exception
    org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)



root cause 
java.lang.NoClassDefFoundError: org/mule/streaming/ProviderAwarePagingDelegate
    org.mule.modules.msdynamicsax.generated.connectivity.MsDynamicsAxConnectorGatewayConnectionConfigConnectionManagementConnectionManager.newConnector(MsDynamicsAxConnectorGatewayConnectionConfigConnectionManagementConnectionManager.java:393)
    org.mule.devkit.3.8.1.internal.connection.management.ConnectionManagementConnectorFactory.makeObject(ConnectionManagementConnectorFactory.java:50)
    org.mule.devkit.3.8.1.internal.connection.management.ConnectionManagementConnectorFactory.makeObject(ConnectionManagementConnectorFactory.java:19)
    org.apache.commons.pool.impl.GenericKeyedObjectPool.borrowObject(GenericKeyedObjectPool.java:1220)
    org.mule.modules.msdynamicsax.generated.connectivity.MsDynamicsAxConnectorGatewayConnectionConfigConnectionManagementConnectionManager.acquireConnection(MsDynamicsAxConnectorGatewayConnectionConfigConnectionManagementConnectionManager.java:293)
    org.mule.modules.msdynamicsax.generated.connectivity.MsDynamicsAxConnectorGatewayConnectionConfigConnectionManagementConnectionManager.acquireConnection(MsDynamicsAxConnectorGatewayConnectionConfigConnectionManagementConnectionManager.java:61)
    org.mule.devkit.3.8.1.internal.connection.management.ConnectionManagementProcessInterceptor.execute(ConnectionManagementProcessInterceptor.java:48)
    org.mule.devkit.3.8.1.internal.connection.management.ConnectionManagementProcessInterceptor.execute(ConnectionManagementProcessInterceptor.java:23)
    org.mule.security.oauth.process.RetryProcessInterceptor.execute(RetryProcessInterceptor.java:84)
    org.mule.devkit.3.8.1.internal.connection.management.ConnectionManagementProcessTemplate.execute(ConnectionManagementProcessTemplate.java:36)
    org.mule.modules.msdynamicsax.generated.processors.InvokeDocumentServiceOperationMessageProcessor.doProcess(InvokeDocumentServiceOperationMessageProcessor.java:119)
    org.mule.devkit.processor.DevkitBasedMessageProcessor.process(DevkitBasedMessageProcessor.java:88)

我尝试使用以下依赖项,但它给了我Http错误404

<dependency>
                <groupId>org.mule.modules</groupId>
                <artifactId>mule-module-devkit-support</artifactId>
                 <version>3.7.2</version>
                  <scope>provided</scope>
        </dependency>

1 个答案:

答案 0 :(得分:0)

从您的依赖项中删除<scope>provided</scope>,您应该很高兴。

通过使用<scope>provided</scope>,您希望在运行时容器(在您的情况下为Tomcat)中依赖提供。但是tomcat肯定不包含这个jar文件。因此,您将获得NoClassDefFoundError