Announcement Announcement Module
Collapse
No announcement yet.
Missing mvc-features.xml - fails deploy Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Missing mvc-features.xml - fails deploy

    Did a fresh git clone of greenhouse today, no compile errors in STS, but deploy in Eclipse fails on a missing mvc-features.xml

    Code:
    ERROR: org.springframework.web.context.ContextLoader - Context initialization failed
    org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from ServletContext resource [/com/springsource/greenhouse/config/mvc/mvc-features.xml]; nested exception is java.io.FileNotFoundException: Could not open ServletContext resource [/com/springsource/greenhouse/config/mvc/mvc-features.xml]
    	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:341)
    	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)
    	at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:174)
    	at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:209)
    	at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:180)
    	at org.springframework.context.annotation.ConfigurationClassBeanDefinitionReader.loadBeanDefinitionsFromImportedResources(ConfigurationClassBeanDefinitionReader.java:326)
    	at org.springframework.context.annotation.ConfigurationClassBeanDefinitionReader.loadBeanDefinitionsForConfigurationClass(ConfigurationClassBeanDefinitionReader.java:145)
    	at org.springframework.context.annotation.ConfigurationClassBeanDefinitionReader.loadBeanDefinitions(ConfigurationClassBeanDefinitionReader.java:130)
    	at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:413)
    	at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigurationClasses(ConfigurationClassPostProcessor.java:201)
    	at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:176)
    	at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:604)
    	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:437)
    	at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:294)
    	at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:215)
    	at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
    	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3934)
    	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4429)
    	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
    	at org.apache.catalina.core.StandardHost.start(StandardHost.java:741)
    	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
    	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
    	at org.apache.catalina.core.StandardService.start(StandardService.java:516)
    	at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
    	at org.apache.catalina.startup.Catalina.start(Catalina.java:587)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    	at java.lang.reflect.Method.invoke(Method.java:597)
    	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:290)
    	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:415)
    Caused by: java.io.FileNotFoundException: Could not open ServletContext resource [/com/springsource/greenhouse/config/mvc/mvc-features.xml]
    	at org.springframework.web.context.support.ServletContextResource.getInputStream(ServletContextResource.java:117)
    	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:328)
    	... 30 more
    Mar 13, 2011 10:15:29 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: IOException parsing XML document from ServletContext resource [/com/springsource/greenhouse/config/mvc/mvc-features.xml]; nested exception is java.io.FileNotFoundException: Could not open ServletContext resource [/com/springsource/greenhouse/config/mvc/mvc-features.xml]
    	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:341)
    	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)
    	at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:174)
    	at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:209)
    	at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:180)
    	at org.springframework.context.annotation.ConfigurationClassBeanDefinitionReader.loadBeanDefinitionsFromImportedResources(ConfigurationClassBeanDefinitionReader.java:326)
    	at org.springframework.context.annotation.ConfigurationClassBeanDefinitionReader.loadBeanDefinitionsForConfigurationClass(ConfigurationClassBeanDefinitionReader.java:145)
    	at org.springframework.context.annotation.ConfigurationClassBeanDefinitionReader.loadBeanDefinitions(ConfigurationClassBeanDefinitionReader.java:130)
    	at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:413)
    	at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigurationClasses(ConfigurationClassPostProcessor.java:201)
    	at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:176)
    	at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:604)
    	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:437)
    	at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:294)
    	at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:215)
    	at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
    	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3934)
    	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4429)
    	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
    	at org.apache.catalina.core.StandardHost.start(StandardHost.java:741)
    	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
    	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
    	at org.apache.catalina.core.StandardService.start(StandardService.java:516)
    	at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
    	at org.apache.catalina.startup.Catalina.start(Catalina.java:587)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    	at java.lang.reflect.Method.invoke(Method.java:597)
    	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:290)
    	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:415)
    Caused by: java.io.FileNotFoundException: Could not open ServletContext resource [/com/springsource/greenhouse/config/mvc/mvc-features.xml]
    	at org.springframework.web.context.support.ServletContextResource.getInputStream(ServletContextResource.java:117)
    	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:328)
    	... 30 more
    Mar 13, 2011 10:15:29 PM org.apache.catalina.core.StandardContext start
    SEVERE: Error listenerStart
    Mar 13, 2011 10:15:29 PM org.apache.catalina.core.StandardContext start
    SEVERE: Context [/greenhouse] startup failed due to previous errors
    Mar 13, 2011 10:15:29 PM org.apache.catalina.core.ApplicationContext log
    INFO: Closing Spring root WebApplicationContext
    Mar 13, 2011 10:15:30 PM org.apache.catalina.startup.HostConfig deployWAR
    INFO: Deploying web application archive insight.war
    Mar 13, 2011 10:15:30 PM org.apache.catalina.core.ApplicationContext log
    INFO: org.tuckey.web.filters.urlrewrite.UrlRewriteFilter INFO: loaded (conf ok)
    Mar 13, 2011 10:15:30 PM org.apache.catalina.core.ApplicationContext log
    INFO: Initializing Spring FrameworkServlet 'Spring MVC Dispatcher Servlet'

  • #2
    Same error with me

    First I thought I messed it up with my local changes. For me the same occurs, no idea how to fix this. (also getting the Error in STS with the integration-signup.xml and errors in the reference http://www.springframework.org/schem...ration-2.0.xsd

    Anyone with solutions?

    Thx,
    Karsten Voges.

    Comment


    • #3
      Same error to me

      Get fresh git clone of greenhouse and its not giving any compilation error. But at the time of deploy, it gave the same error as mentioned by Jabberz.

      Please any one know how to solve this?

      Thanks in advance.

      Comment


      • #4
        Odd. I'll take a look. I actually should be able to remove that xml now in the latest 3.1.BUILD-SNAPSHOT since @FeatureConfigurations now support injection of @Values.

        Keith

        Comment


        • #5
          Unable to deploy greenhouse project locally

          Hi Keith,

          Have you found above mentioned bug in greenhouse project when running locally and way to solve it?

          OR

          Is there any other way to build and deploy greenhouse project locally?

          Thanks in advance
          Brajesh

          Comment


          • #6
            Yes, this problem was due to a change in 3.1.0 trunk related to @ImportResource usage. It's been fixed for several days, and I've also further updated the configuration code to be increasingly more Java-driven thanks to some other 3.1.0.M1 bug fixes. You should see updates when you look at the commit log and pull from master.

            Keith

            Comment

            Working...
            X