Skip to main content

I have OAuth2Provider project with DomainFunctionalTestCase which run successfully when I hit RunAs->JUnit but building it with maven is having build failure.

 

- Anypoint Studio 5.3.1

- Runtime: 3.5.1EE with domain

 

ErrorMessage:

 

Caused by: org.springframework.beans.FatalBeanException: Cannot launch the mule app, the @Config [config] within the connector [oauth2-provider] is not supported in mule 3.5.1; nested exception is java.lang.NoClassDefFoundError: org/mule/modules/oauth2/provider/config/OAuth2ProviderModuleConfigDefinitionParser

at org.mule.modules.oauth2.provider.config.Oauth2ProviderNamespaceHandler.handleException(Oauth2ProviderNamespaceHandler.java:31)

 

....

 

nested exception is org.springframework.beans.FatalBeanException: Cannot launch the mule app, the @Config [config] within the connector [oauth2-provider] is not supported in mule 3.5.1; nested exception is java.lang.NoClassDefFoundError: org/mule/security/oauth/config/AbstractDevkitBasedDefinitionParser

at org.mule.registry.AbstractRegistry.initialise(AbstractRegistry.java:113

 

I can successfully deploy the project by skipping the test.

9 respuestas
  1. 20 oct 2015, 14:20

    Yes, that version is correct. The next version, 1.4.0, uses Mule ESB 3.6. I'm not sure what the error might be, I found this related post but the suggested solution is to add the devkit dependency that it should be already provided in the ESB runtime (in lib/mule), but you might need it to run your tests.

0/9000