After I copied the java classes into the project and added the Return Class on the JSON to Object transformer, the app won't deploy.
Here is the error:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'getFlightsFlow': Cannot create inner
bean '(inner bean)# 76aa5058' of type [org.mule.module.json.transformers.JsonToObject] while setting bean property 'messagePro
cessors' with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with
name '(inner bean)# 76aa5058': Initialization of bean failed; nested exception is org.springframework.beans.TypeMismatchExcept
ion: Failed to convert property value of type 'java.lang.String' to required type 'java.lang.Class' for property 'returnClass
'; nested exception is java.lang.IllegalArgumentException: Error loading class [com.mulesoft.training.FlightRequest]: problem
with class file or dependent class.
My JDK is 1.7
What more can I do or look at to get my project to deploy?
I made sure they weren't in the /src/main/java folder. But it's working. I think the classpath was messed up on the project.
Tim