2016-10-26 54 views
0

我在使用Dynamica在mule esb和servlet中創建war文件並在tomcat中部署,當我運行它時出現以下錯誤:java.lang.NoClassDefFoundError:嘗試使用動態Axel連接器時的org/mule/streaming/ProviderAwarePagingDelegate

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> 

回答

0

從您的依賴<scope>provided</scope>,你應該是好去。

通過使用<scope>provided</scope>您期望在運行時通過容器(Tomcat)提供的依賴關係爲。但是tomcat肯定不包含這個jar文件。因此你得到NoClassDefFoundError

+0

仍然無法正常工作,它給了我404錯誤 – anjali

+0

@anjali,獲得404是一種不同類型的錯誤。這是不一樣的問題提到你的問題。這意味着你寫的代碼有問題。但是你原來的java.lang.NoClassDefFoundError問題已經解決了。 –

相關問題