Announcement Announcement Module
Collapse
No announcement yet.
DefaultListableBeanFactory Error in Spring MVC on Jetty Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • DefaultListableBeanFactory Error in Spring MVC on Jetty

    Hi,
    I'm having a problem with a neo4j - Spring MVC webapp i'm running on Jetty . I have tried with both Jetty 6 and 7. It will stay running for approx 1 hour and then I have to restart Jetty. It is running on a debian ec2.

    I get the following error from Spring MVC in the jetty stdout log file.
    I'm not sure what is going wrong , or how to debug this any help would be appreciated

    Thanks
    Paddy

    HTML Code:
    Closing WebApplicationContext for namespace 'Spring MVC Dispatcher Servlet-servlet': startup date [Sun Sep 26 12:58:09 UTC 2010]; 
    root of context hierarchy
    INFO : org.springframework.beans.factory.support.DefaultListableBeanFactory - Destroying singletons
     in org.s[email protected]7a36a2: 
    defining beans [
    routePlannerController,
    routesController,
    org.springframework.context.annotation.internalConfigurationAnnotationProcessor,
    org.springframework.context.annotation.internalAutowiredAnnotationProcessor,
    org.springframework.context.annotation.internalRequiredAnnotationProcessor,
    org.springframework.context.annotation.internalCommonAnnotationProcessor,
    messageSource,
    org.springframework.aop.config.internalAutoProxyCreator,
    org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0,
    org.springframework.transaction.interceptor.TransactionInterceptor#0,
    org.springframework.transaction.config.internalTransactionAdvisor,
    neo4jTransactionManagerService,
    neo4jUserTransactionService,
    neo4jTransactionManager,
    configuration,
    graphDbService,
    indexService,
    org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping#0,
    org.springframework.format.support.FormattingConversionServiceFactoryBean#0,
    org.springframework.validation.beanvalidation.LocalValidatorFactoryBean#0,
    org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter#0,
    org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter#0,
    org.springframework.web.servlet.handler.SimpleUrlHandlerMapping#0,
    org.springframework.web.servlet.handler.MappedInterceptor#0,
    localeResolver,
    org.springframework.web.servlet.view.InternalResourceViewResolver#0]; 
    root of factory hierarchy
    app-config.xml file
    HTML Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <beans xmlns="http://www.springframework.org/schema/beans"
    	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"
    	xmlns:tx="http://www.springframework.org/schema/tx"
    	xsi:schemaLocation="
    		http://www.springframework.org/schema/beans	http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
    		http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd
    		http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd">
    
    
    	<context:component-scan base-package="ie.transportdublin.mvc.ajax" />
    	<!--
    		Scans the classpath of this application for @Components to deploy as
    		beans <context:annotation-config />
    	-->
    
    	<!-- Application Message Bundle -->
    	<bean id="messageSource"
    		class="org.springframework.context.support.ReloadableResourceBundleMessageSource">
    		<property name="basename" value="/WEB-INF/messages/messages" />
    		<property name="cacheSeconds" value="0" />
    	</bean>
    
    
    
    	<!-- Transactions -->
    
    	<tx:annotation-driven transaction-manager="transactionManager" />
    	<alias name="neo4jTransactionManager" alias="transactionManager" />
    
    	<bean id="neo4jTransactionManagerService"
    		class="org.neo4j.kernel.impl.transaction.SpringTransactionManager">
    		<constructor-arg ref="graphDbService" />
    	</bean>
    	<bean id="neo4jUserTransactionService" class="org.neo4j.kernel.impl.transaction.UserTransactionImpl">
    		<constructor-arg ref="graphDbService" />
    	</bean>
    
    	<bean id="neo4jTransactionManager"
    		class="org.springframework.transaction.jta.JtaTransactionManager">
    		<property name="transactionManager" ref="neo4jTransactionManagerService" />
    		<property name="userTransaction" ref="neo4jUserTransactionService" />
    	</bean>
    
    	<bean id="configuration" class="org.neo4j.kernel.EmbeddedGraphDatabase"
    		factory-method="loadConfigurations">
    		<constructor-arg value="neo4j_config.props" />
    	</bean>
    
    	<bean id="graphDbService" class="org.neo4j.kernel.EmbeddedGraphDatabase"
    		init-method="enableRemoteShell" destroy-method="shutdown">
    
    		<!-- ec2 path: "/home/neo/var/neo4j-db" -->
    		<constructor-arg index="0" value="data/neo4j-db-hubs" />
    		<constructor-arg index="1" ref="configuration" />
    	</bean>
    
    
    
    	<bean id="indexService" class="org.neo4j.index.lucene.LuceneFulltextQueryIndexService"
    		destroy-method="shutdown">
    		<constructor-arg index="0" ref="graphDbService" />
    	</bean>
    
    	<!-- Configures Spring MVC-->
    	<import resource="mvc-config.xml" />
    
    </beans>
Working...
X