Failed to load bean class; nested exception is java.io.FileNotFoundException: class path resource cannot be opened because it does not exist
===

I am using spring java based configuration in web app. I have an issue. 

  In my config file I am doing import and getting some other java config files. 
  
  When I run my test cases all the test cases are passing.In my test cases I am using AplicationContext to get the bean. I dont have any problem there. But When I tell it to run on server it is saying that one of the config classes doesn't exist. So import is not working. But when I do ctrl+click on the code I am able to travel into that config code. 

  I am using TomCat Version 7.0 and Using maven I am getting all other dependencies. 

Stack trace is as below:

    INFO: Initializing Spring root WebApplicationContext
    Jul 18, 2012 4:56:28 PM org.apache.catalina.core.StandardContext listenerStart
    SEVERE: Exception sending context initialized event to listener instance of class     
    org.springframework.web.context.ContextLoaderListener
    org.springframework.beans.factory.BeanDefinitionStoreException: Failed to load bean class:     
    com.Hello.World.HelloWorldConfig; nested exception is     
    java.io.FileNotFoundException: class path resource [com/hello/configs/MyConfig.class] cannot be opened because it does not exist
	at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:267)
	at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:203)
	at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:622)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:451)
	at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:385)
	at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:284)
	at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)
	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4779)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5273)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1566)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1556)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)

    Caused by: java.io.FileNotFoundException: class path resource [com/hello/configs/MyConfig.class] cannot be opened because it does not exist
	at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:157)
	at org.springframework.core.type.classreading.SimpleMetadataReader.<init>(SimpleMetadataReader.java:49)
	at org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader(SimpleMetadataReaderFactory.java:80)
	at org.springframework.core.type.classreading.CachingMetadataReaderFactory.getMetadataReader(CachingMetadataReaderFactory.java:101)
	at org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader(SimpleMetadataReaderFactory.java:76)
	at org.springframework.context.annotation.ConfigurationClassParser.processImport(ConfigurationClassParser.java:317)
	at org.springframework.context.annotation.ConfigurationClassParser.doProcessConfigurationClass(ConfigurationClassParser.java:228)
	at org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:149)
	at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:126)
	at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:263)
	... 16 more
    Jul 18, 2012 4:56:28 PM org.apache.catalina.core.StandardContext startInternal
    SEVERE: Error listenerStart
    Jul 18, 2012 4:56:28 PM org.apache.catalina.core.StandardContext startInternal
    SEVERE: Context [/helloWorld] startup failed due to previous errors
    Jul 18, 2012 4:56:28 PM org.apache.catalina.core.ApplicationContext log
    INFO: Closing Spring root WebApplicationContext


And the config class as follows

    @Configuration
    @Import({MyConfig.class})
    public class HelloWorldConfig {

	@Autowired
	public MyName myName;

	@Bean
	public MyModel myModel() {
		MyModel bean = new MyModel();
		bean.setMyName(myName);		
		return bean;
	}
    }

I am not able to figure out what I am missing.

Thanks