-->
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.  [ 3 posts ] 
Author Message
 Post subject: How do I get Hibernate to NOT cache on JBoss????
PostPosted: Thu Jul 21, 2005 10:27 am 
Newbie

Joined: Sun Nov 23, 2003 1:46 pm
Posts: 15
Hi,

during development I want hibernate to not cache references so I wont need to restart jboss after an update on the data domain layer. How do I do that? Couldn´t fin nothing on docs or foruns...

tx in advance,
Marcos Maia.

_________________
Marcos Maia


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 21, 2005 6:03 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
by default, Hibernate don't put anything on the second level cache

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 22, 2005 9:19 am 
Newbie

Joined: Sun Nov 23, 2003 1:46 pm
Posts: 15
emmanuel wrote:
by default, Hibernate don't put anything on the second level cache


HI emmanuel tx for replying.
Yes I know that, but that´s not my problem, even with the second level cache disabled any time i try to "hot deploy" the hibernate layer I have to restart or I get an error like this:

Code:
13:10:45,670 ERROR [LogInterceptor] Unexpected Error in method: public abstract
java.util.Collection br.com.romasystems.socia.negocio.ejb.AdminFacade.findClient
esComContratoSemSistema() throws java.rmi.RemoteException
java.lang.NoClassDefFoundError: java/lang/ref/Reference
        at org.apache.commons.collections.ReferenceMap$Entry.purge(Unknown Sourc
e)
        at org.apache.commons.collections.ReferenceMap.purge(Unknown Source)
        at org.apache.commons.collections.ReferenceMap.purge(Unknown Source)
        at org.apache.commons.collections.ReferenceMap.get(Unknown Source)
        at org.hibernate.impl.SessionFactoryImpl.get(SessionFactoryImpl.java:334
)
        at org.hibernate.impl.SessionFactoryImpl.getQuery(SessionFactoryImpl.jav
a:408)
        at org.hibernate.impl.SessionImpl.getQueries(SessionImpl.java:870)
        at org.hibernate.impl.SessionImpl.list(SessionImpl.java:820)
        at org.hibernate.impl.QueryImpl.list(QueryImpl.java:74)
        at br.com.romasystems.util.persistencia.HibernateOperations.createQuery(
HibernateOperations.java:199)
        at br.com.romasystems.socia.negocio.service.ClienteConcreteOperations.fi
ndAllClientesComContratoSemSistema(ClienteConcreteOperations.java:150)
        at br.com.romasystems.socia.negocio.ejb.AdminFacadeBean.findClientesComC
ontratoSemSistema(AdminFacadeBean.java:682)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.jboss.invocation.Invocation.performCall(Invocation.java:345)
        at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(S
tatelessSessionContainer.java:214)
        at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invo
ke(CachedConnectionInterceptor.java:185)
        at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(Stat
elessSessionInstanceInterceptor.java:130)
        at org.jboss.webservice.server.ServiceEndpointInterceptor.invoke(Service
EndpointInterceptor.java:51)
        at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidation
Interceptor.java:48)
        at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInte
rceptor.java:105)
        at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxIntercep
torCMT.java:335)
        at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:1
66)
        at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.
java:139)
        at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)
        at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFacto
ryFinderInterceptor.java:122)
        at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:6
24)
        at org.jboss.ejb.Container.invoke(Container.java:873)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
er.java:141)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
        at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
java:249)
        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
        at org.jboss.invocation.jrmp.server.JRMPInvoker$MBeanServerAction.invoke
(JRMPInvoker.java:805)
        at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:
406)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
        at sun.rmi.transport.Transport$1.run(Transport.java:153)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
        at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:4
60)
        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport
.java:701)
        at java.lang.Thread.run(Thread.java:595)
[/code]

_________________
Marcos Maia


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

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.