-->
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: org.hibernate.cache.CacheException on JBOS but not on Tomcat
PostPosted: Wed Nov 08, 2006 11:23 am 
Newbie

Joined: Mon Sep 11, 2006 4:50 pm
Posts: 10
Hibernate version:
3.1.2

Full stack trace of any exception that occurs:
Code:
2006-11-08 11:45:59,691 WARN  [net.sf.ehcache.config.ConfigurationFactory] No configuration found. Configuring ehcache from ehcache-failsafe.xml  found in the classpath: jar:file:/C:/pentaho3/pentaho-demo/jboss/server/default/tmp/deploy/tmp34946ehcache.jar!/ehcache-failsafe.xml
2006-11-08 11:45:59,731 ERROR [STDERR] %%%% Error Creating SessionFactory %%%%
2006-11-08 11:45:59,751 ERROR [STDERR] org.hibernate.cache.CacheException: Attempt to restart an already started EhCacheProvider. Use sessionFactory.close()  between repeated calls to buildSessionFactory. Consider using net.sf.ehcache.hibernate.SingletonEhCacheProvider. Error from  ehcache was: Cannot parseConfiguration CacheManager. Attempt to create a new instance of CacheManager using the diskStorePath "C:\DOCUME~1\ROBERT~1\LOCALS~1\Temp\" which is already used by an existing CacheManager. The source of the configuration was classpath.
   at org.hibernate.cache.EhCacheProvider.start(EhCacheProvider.java:133)
   at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:180)
   at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1213)
   at com.movilogic.hibernate.session.SessionFactorySecuritas.currentSession(SessionFactorySecuritas.java:49)
   at com.movilogic.synchronization.SynchronizationManager.getServicios(SynchronizationManager.java:53)
   at com.movilogic.synchronization.SynchronizationManager.sincronizarServicios(SynchronizationManager.java:132)
   at com.movilogic.struts.action.SincronizacionAction.execute(SincronizacionAction.java:47)
   at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)
   at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
   at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
   at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
   at com.movilogic.filtros.AuthorizationFilter.doFilter(AuthorizationFilter.java:149)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
   at com.movilogic.filtros.LoginFilter.doFilter(LoginFilter.java:63)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
   at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
   at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
   at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
   at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
   at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
   at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
   at java.lang.Thread.run(Thread.java:595)




Name and version of the database you are using:
SQL SERVER 2000

Hi,
I have an application that has its own database. The content of some tables has to be updated regularly with the content of some tables from another database, on a different server. These tables have the same structure.
To do this I created another set of hibernate.cfg.xml and model.xml, which are almost the same than the original set that I had for my database, only they point to the remote one. I also created another SessionFactory class.
As the objects are the same, when I query the remote database for changes (using the new SessionFactory and config files), I can insert them to my db. This is working great on tomcat 5.5, but when deployed to Jboss 4.0.4 I get this exception... and I need to deploy on JBOSS.
Thanks a lot
Pablo


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.