[JBoss-user] [EJB/JBoss] - Re: Hibernate.har in myHibernateEar.ear 'no persistent class

2004-12-14 Thread ulfreich
You know what could work? switch from EhCache to HashtableCache for the 
hibernate service.  I'm having a similar problem, and it seems it's because 
ehcache may be shared among applications (isolation not working for it), then 
cache would be the same for all apps.

Did you get a solution for this? (using multiple hibernate/ehcache apps 
deployed as ears)

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3858586#3858586

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3858586


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: Hibernate.har in myHibernateEar.ear 'no persistent class

2004-11-03 Thread rimmeraj
I have found that classes and jar files with the hibernate package need to go out side 
the scope of the .har file. So put your .hbm.xml in the ha4r and the class inside a 
jar at the ear level not the .har.


View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3853743#3853743

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3853743


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: Hibernate.har in myHibernateEar.ear 'no persistent class

2004-11-03 Thread beyarecords
rimmeraj,
I tried your suggestion but got mapping exceptions because the persistent classes 
could not be found. Apart from being able to use managed transactions, what are the 
benefits of running hibernate behind an ejb? Is there any performance/operational 
benefit? If not, i'm going to use hibernate.har in the deploy directory as all ejb 
configuration types I have tried do not work.

many thanks

Andrew

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3853754#3853754

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3853754


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: Hibernate.har in myHibernateEar.ear 'no persistent class

2004-11-03 Thread beyarecords
the error that I should have mentioned in my last post was:

MBeans waiting for other MBeans:
ObjectName: jboss.har:service=Hibernate
 state: FAILED
 I Depend On:  jboss.jca:service=RARDeployer
 jboss.jca:name=PostgresDS,service=LocalTxCM

 Depends On Me: net.sf.hibernate.MappingException: net.sf.hibernate.MappingException: 
persistent class [test.Artist] not found

MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM:
ObjectName: jboss.har:service=Hibernate
 state: FAILED
 I Depend On:  jboss.jca:service=RARDeployer
 jboss.jca:name=PostgresDS,service=LocalTxCM

many thanks

Andrew

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3853755#3853755

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3853755


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: Hibernate.har in myHibernateEar.ear 'no persistent class

2004-11-03 Thread rimmeraj
If you look in the server.log does the .har get deployed before the jars in the ear ?
I personally do not use an ear but the jars get deployed before my .har file.


View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3853756#3853756

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3853756


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: Hibernate.har in myHibernateEar.ear 'no persistent class

2004-11-03 Thread beyarecords
Ah...!,
I think I may be completely missing the point of ejb here. As you know my initial 
intention was to be able to use hibernatecontext.getSession() which you can only use 
behind an ejb?, so my understanding was that i would have to run my application within 
an ear! Ok let's start again, how do I run my code behind an ejb? Can you show me the 
code required?


many thanks

Andrew

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3853758#3853758

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3853758


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: Hibernate.har in myHibernateEar.ear 'no persistent class

2004-11-03 Thread beyarecords
Here is the reading I was getting from the logs which would suggest that the ear was 
being deployed before the classes:

16:54:12,522 INFO  [EARDeployer] Init J2EE application: 
file:/Library/jboss-4.0.0/server/default/deploy/myHibernateEar.ear/
16:54:14,509 ERROR [Hibernate] Starting failed jboss.har:service=Hibernate
net.sf.hibernate.MappingException: net.sf.hibernate.MappingException: persistent class 
[test.Artist] not found
at net.sf.hibernate.cfg.Configuration.addFile(Configuration.java:191)
at net.sf.hibernate.cfg.Configuration.addDirectory(Configuration.java:421)
at net.sf.hibernate.cfg.Configuration.addDirectory(Configuration.java:418)
at org.jboss.hibernate.jmx.Hibernate.buildSessionFactory(Hibernate.java:463)
at org.jboss.hibernate.jmx.Hibernate.startService(Hibernate.java:444)
at 
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271)
at 
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:221)
at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.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:242)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
at 
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:891)
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:416)
at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.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:242)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
at $Proxy4.start(Unknown Source)
at org.jboss.deployment.SARDeployer.start(SARDeployer.java:261)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:935)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:927)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:927)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:746)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:709)
at sun.reflect.GeneratedMethodAccessor30.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at 
org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:119)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at 
org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:131)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:242)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
at $Proxy8.deploy(Unknown Source)
at 
org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:305)
at 
org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:481)
at 
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:204)
at 
org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:277)
at 
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271)
at 
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:221)
at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at