Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Eclipse Process Manager (Stardust) » FileNotFoundException for carnot.properties during server startup on Tomcat(Problems starting the Stardust web application on local Tomcat in Eclipse)
FileNotFoundException for carnot.properties during server startup on Tomcat [message #757512] Fri, 18 November 2011 17:31 Go to next message
Jan Hendrik Scheufen is currently offline Jan Hendrik ScheufenFriend
Messages: 77
Registered: October 2011
Member

Hi,

I've created a Dynamic Web Project in Eclipse for Stardust (Rapid Application Development, RAD). When I deploy this project onto a local Tomcat instance (also in Eclipse) I get the following error message during server start in the console output:

Nov 18, 2011 6:01:36 AM 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.BeanInitializationException: Could not load properties; nested exception is java.io.FileNotFoundException: class path resource [carnot.properties] cannot be opened because it does not exist
      at org.springframework.beans.factory.config.PropertyResourceConfigurer.postProcessBeanFactory(PropertyResourceConfigurer.java:78)
      at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:553)
      at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:527)
      at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:362)
      at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
      at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
      at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
      at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4205)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:4704)
      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
      at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
      at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
      at org.apache.catalina.core.StandardService.start(StandardService.java:525)
      at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
      at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
      at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: java.io.FileNotFoundException: class path resource [carnot.properties] cannot be opened because it does not exist
      at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:143)
      at org.springframework.core.io.support.PropertiesLoaderSupport.loadProperties(PropertiesLoaderSupport.java:182)
      at org.springframework.core.io.support.PropertiesLoaderSupport.mergeProperties(PropertiesLoaderSupport.java:161)
      at org.springframework.beans.factory.config.PropertyResourceConfigurer.postProcessBeanFactory(PropertyResourceConfigurer.java:69)
      ... 21 more
Nov 18, 2011 6:01:36 AM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Nov 18, 2011 6:01:36 AM org.apache.catalina.core.StandardContext start


Any ideas?
Re: FileNotFoundException for carnot.properties during server startup on Tomcat [message #757513 is a reply to message #757512] Fri, 18 November 2011 17:40 Go to previous messageGo to next message
Jan Hendrik Scheufen is currently offline Jan Hendrik ScheufenFriend
Messages: 77
Registered: October 2011
Member

By default, the Stardust engine searches for the file "carnot.properties" on the classpath and the error message tells you that it could not be found.

This file can be put on the server's classpath outside of your web application or packaged within the WAR/EAR, for example in WEB-INF/classes.

In this case, since a RAD project in Eclipse is being used, this file is normally located in <project-root>/ipp-resources/carnot.properties and should be published to the server as part of the Eclipse WTP deployment mechanism.

Please check in the Eclipse menu under Project > Build Automatically whether this options is enabled.

Another cause for this problem could be that you have build errors in your project. Check the Problems View in Eclipse!

Both of the above scenarios would prevent the files from the source folder "ipp-resources" to be copied to the project's output folder (typically <project-root>/build/classes) and therefore they are missed as part of the deployment to the server.

Re: FileNotFoundException for carnot.properties during server startup on Tomcat [message #783044 is a reply to message #757512] Tue, 24 January 2012 23:55 Go to previous message
Chris Fontenot is currently offline Chris FontenotFriend
Messages: 1
Registered: January 2012
Junior Member
Not sure if you have already resolved this problem but if not I have a suggestion to help. While the other post describes the technical reasons for the error message and how to work around the problem to fix it I would suggest looking at the project facets. I have seen this problem several times in the past week when a new dynamic web project was created, a new model was created, but the Infinity Portal facets were never configured for the project. Without those facets you will most likely not see the ipp-* directories in the project explorer and you will not have the carnot.properties file in the project. Hope that helps.
Previous Topic:Eclipse cannot find ActiveMQ XSD schema and shows validation warnings
Next Topic:Rollback after ActivityInstanceQuery
Goto Forum:
  


Current Time: Thu Apr 25 05:27:16 GMT 2024

Powered by FUDForum. Page generated in 0.04078 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top