-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Combining Two Applications Kills the SessionFactory?
PostPosted: Fri Jan 29, 2010 11:58 am 
Newbie

Joined: Thu Jan 28, 2010 4:47 pm
Posts: 1
We've been trying to combine two long-running applications of ours into a single application. The applications use Hibernate 3, ehcache 1.2, and Spring Framework 1.2.5.

The combined application starts out just fine, but when a user moves from the "first" application to a page from the "second" application a few things happen in quick sequence. The first and probably root issue is that the SessionFactory closes:

Code:
2010-01-27 11:28:46,602 INFO [org.hibernate.impl.SessionFactoryImpl] - <closing>


This in turn seems to kill ehcache since visiting any other page produces an error about the cache not being alive:

Code:
2010-01-26 17:55:43,211 ERROR [...] - <java.lang.IllegalStateException: The
STATIC_CACHE Cache is not alive.>
2010-01-26 17:55:51,572 ERROR [org.springframework.web.servlet.DispatcherServlet] - <Could not complete request>
java.lang.IllegalStateException: The DATASHEET_CACHE Cache is not alive.
        at net.sf.ehcache.Cache.checkStatus(Cache.java:1062)
        at net.sf.ehcache.Cache.removeAll(Cache.java:924)
        at ....cleardatacache(ClearCacheController.java:47)
        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:585)
        at org.springframework.web.servlet.mvc.multiaction.MultiActionController.invokeNamedMethod(MultiActionController.java:403)
        at org.springframework.web.servlet.mvc.multiaction.MultiActionController.handleRequestInternal(MultiActionController.java:358)
        at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:139)
        at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:44)
        at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:684)
        at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:625)
        at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:392)
        at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:347)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:241)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:333)
        at com.evermind._ha.doFilter(Unknown Source)
        at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:738)
        at com.evermind._csb._pvd(Unknown Source)
        at com.evermind._csb._boc(Unknown Source)
        at com.evermind._ax._lsc(Unknown Source)
        at com.evermind._ax._uab(Unknown Source)
        at com.evermind._bf.run(Unknown Source)


I've been looking over this for days and just can't see what I'm missing. Is there a conflict between the two applications or is there some final connection I forgot to make?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.