I was working in Web sphere RSA Environment. It was working fine in a NON EAR type of Project Structure with TOMCAT Container. But when i moved my code to EAR type of Project Structure, It occured that
ERROR: Caused by: org.xml.sax.SAXParseException: cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'camelContext'.
Which means , the Spring coudnt find a declaration for the Element çamelContext'which is supposed to be there in "http://camel.apache.org/schema/spring" which had a namespace reference -> "http://camel.apache.org/schema/spring/camel-spring.xsd" So i check the camel-spring.xsd file in camel sprin 2.12.1 jar, the camelContext was there. Then i recognized that the the camel-spring jar was not recognized by the EAR,even though i have added them to classpath (adding to class path means, (properties/build path/add jars) for each project. So the solution is,
got to EAR/META_INF and add all the jars which are required in the class path for each project.
This solution solved the issue.Though this wasted almost 48 hours of my precious development time, it was worth the wait. I learnt more. Thanks!