Skip to main content

I am trying to complete Walkthrough 8-1. I am using the Mule Project apdev-flight-ws that was created at the end of Walkthrough 7-4. However, I am not able to get this App to run. The most obvious error is complaining the flights-DEV.properties file does not exist.

 

ERROR 2018-01-08 14:56:35,563 [main] org.mule.config.spring.SpringRegistry: Failed to shut down registry cleanly: org.mule.Registry.Spring

org.mule.api.lifecycle.LifecycleException: Failed to lookup beans of type interface org.mule.api.construct.FlowConstruct from the Spring registry

Caused by: org.mule.api.MuleRuntimeException: Failed to lookup beans of type interface org.mule.api.construct.FlowConstruct from the Spring registry

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mua-flights-api-main': Cannot resolve reference to bean '_muleContext' while setting constructor argument; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named '_muleContext' is defined

Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named '_muleContext' is defined

 

ERROR 2018-01-08 14:56:35,594 [main] org.mule.module.launcher.application.DefaultMuleApplication: null

java.io.FileNotFoundException: class path resource [flights-DEV.properites] cannot be opened because it does not exist

 

However this file does exist in the src/main/resources folder.

 

Week 5 Walkthrough 8-1 Error Running App

 

 

Any suggestions are appreciated!

2 answers
  1. Jan 9, 2018, 2:00 PM

    Thanks for pointing me in the right direction Rohit. In my global.xml I had a typo in the property-placeholder (location="flights-${env}.proper**ites**")

     

    I corrected this and the app started.

0/9000