RE: [JBoss-dev] Re: FW: jboss-4.0.4 portal-2.2 issue

2006-05-17 Thread Ben Wang
Currently JBossCache has direct dependecy on Jgroups and JBossAop.  The 
default already has aop but not jgroups. So that means an extra jgroups there 
with the idea that default should be non-clustering related. 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Julien Viet
Sent: Wednesday, May 17, 2006 1:55 AM
To: Manik Surtani
Cc: jboss-development@lists.sourceforge.net; Ryan Campbell; Steve Ebersole; 
Julien Viet; Roy Russo; QA
Subject: Re: [JBoss-dev] Re: FW: jboss-4.0.4 portal-2.2 issue

the real question is : why JBoss AS does not ship with JBoss Cache in the 
default configuration ?

Manik Surtani wrote:
 Good point - why doesn't Portal ship with Hibernate configured with 
 JBoss Cache?
 
 On 12 May 2006, at 19:34, Adrian Brock wrote:
 
 SNIP /
 

 The solutions are:
 1) JBoss Portal's session factory is configured to use JBoss Cache 
 not EhCache
 
 SNIP /
 


--
Julien Viet
JBoss Portal Project Lead


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
JBoss-Development mailing list
JBoss-Development@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-development


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid0709bid3057dat1642
___
JBoss-Development mailing list
JBoss-Development@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-development


RE: [JBoss-dev] Re: FW: jboss-4.0.4 portal-2.2 issue

2006-05-17 Thread Scott M Stark
Break up the jars into more reusable pieces then.

-Original Message-
From: Ben Wang 
Sent: Wednesday, May 17, 2006 4:46 AM
To: jboss-development@lists.sourceforge.net; Manik Surtani
Cc: Ryan Campbell; Steve Ebersole; Julien Viet; Roy Russo; QA
Subject: RE: [JBoss-dev] Re: FW: jboss-4.0.4 portal-2.2 issue

Currently JBossCache has direct dependecy on Jgroups and JBossAop.  The
default already has aop but not jgroups. So that means an extra
jgroups there with the idea that default should be non-clustering
related. 




---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid0709bid3057dat1642
___
JBoss-Development mailing list
JBoss-Development@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-development


RE: [JBoss-dev] Re: FW: jboss-4.0.4 portal-2.2 issue

2006-05-17 Thread Steve Ebersole
If I recall correctly, they tried that setup initially but ran into the
locking issues that plagued the earlier Hibernate/JBossCache
integrations.  

Conceivably they could try with the new optimistic-locking-based
provider, but we really need some performance numbers here to see how a
local, optimistic JBossCache configuration performs against EhCache...



Good point - why doesn't Portal ship with Hibernate configured with  
JBoss Cache?

On 12 May 2006, at 19:34, Adrian Brock wrote:

SNIP /


 The solutions are:
 1) JBoss Portal's session factory is configured to use JBoss Cache
 not EhCache

SNIP /


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid0709bid3057dat1642
___
JBoss-Development mailing list
JBoss-Development@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-development


Re: [JBoss-dev] Re: FW: jboss-4.0.4 portal-2.2 issue

2006-05-17 Thread Julien Viet

1/ JBoss Cache sucks with hibernate and ehcache works better (so far)

2/ If I use JBoss Cache X with Portal Y and I run in AS version Z in 
config ALL that use JBoss Cache X', then I have an integration issue.


Steve Ebersole wrote:

If I recall correctly, they tried that setup initially but ran into the
locking issues that plagued the earlier Hibernate/JBossCache
integrations.  


Conceivably they could try with the new optimistic-locking-based
provider, but we really need some performance numbers here to see how a
local, optimistic JBossCache configuration performs against EhCache...



Good point - why doesn't Portal ship with Hibernate configured with  
JBoss Cache?


On 12 May 2006, at 19:34, Adrian Brock wrote:

SNIP /


The solutions are:
1) JBoss Portal's session factory is configured to use JBoss Cache
not EhCache


SNIP /




--
Julien Viet
JBoss Portal Project Lead


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
JBoss-Development mailing list
JBoss-Development@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] Re: FW: jboss-4.0.4 portal-2.2 issue

2006-05-16 Thread Adrian Brock
Actually (2) is not an option because it looks like 
Portal/Hibernate in 2.2 is expecting a different/incompatible
version of EhCache?

On Fri, 2006-05-12 at 20:34 +0200, Adrian Brock wrote:
 Why isn't portal using JBoss's hibernate-int session factory?
 
 The solutions are:
 1) JBoss Portal's session factory is configured to use JBoss Cache 
 not EhCache
 2) JBossAS's installer should include EhCache as an optional
 part of the install
 3) JBoss Portal includes EhCache itself (since it is not a part of the
 JBossAS install)
 
 On a related issue, why does Portal have its own transaction
 demarcation? :-)
 
 org.jboss.portal.common.transaction.Transactions.notSupported(Transactions.java:245)
 
 Looks like too much not invented here in the Portal code
 that JBossAS can do nothing about.
 
  
  
 On Fri, 2006-05-12 at 13:05 -0500, Ryan Campbell wrote:
  Portal 2.2.1 fails to deploy on 4.0.4.  Is this a bug in Hibernate?  
  
 
  __
  From:[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
  Rali Genova
  Sent: Friday, May 12, 2006 12:00 PM
  To: Ryan Campbell
  Subject: jboss-4.0.4 portal-2.2 issue
  
  
   
  
  Attached is the server log, but here is the relevant exception. I was
  using the Hypersonic DB and then MySQL, repeats with both. The AS is
  built from source, I am working on verifying this with the installer
  that Scott created as well.
  
  2006-05-12 11:22:16,353 DEBUG [org.hibernate.impl.SessionFactoryImpl]
  instantiating session factory with properties:...(I took those off)
  2006-05-12 11:22:16,363 WARN  [org.jboss.system.ServiceController]
  Problem starting service portal:service=Hibernate
  java.lang.IllegalAccessError: tried to access method
  net.sf.ehcache.CacheManager.init()V from class
  org.hibernate.cache.EhCacheProvider
  at
  org.hibernate.cache.EhCacheProvider.start(EhCacheProvider.java:124)
  at
  org.hibernate.impl.SessionFactoryImpl.init(SessionFactoryImpl.java:180)
  at
  org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1213)
  at org.jboss.portal.core.hibernate.SessionFactoryBinder
  $3.run(SessionFactoryBinder.java:509)
  at
  org.jboss.portal.common.transaction.Transactions.apply(Transactions.java:199)
  at
  org.jboss.portal.common.transaction.Transactions.notSupported(Transactions.java:245)
  at
  org.jboss.portal.core.hibernate.SessionFactoryBinder.createSessionFactory(SessionFactoryBinder.java:505)
  at
  org.jboss.portal.core.hibernate.SessionFactoryBinder.startService(SessionFactoryBinder.java:291)
  at
  org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
  at
  org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:196)
  at
  org.jboss.portal.common.system.AbstractJBossService.start(AbstractJBossService.java:86)
  at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
  at
  sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:585)
  at
  org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
  at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  at
  org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
  at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
  at
  org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
  at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
  at
  org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
  at
  org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  at org.jboss.system.ServiceController
  $ServiceProxy.invoke(ServiceController.java:995)
  at $Proxy0.start(Unknown Source)
  
  
  -- 
  Bug? That's not a bug, that's a feature. 
  
  
-- 

Adrian Brock
Chief Scientist
JBoss Inc.




---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
JBoss-Development mailing list
JBoss-Development@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] Re: FW: jboss-4.0.4 portal-2.2 issue

2006-05-16 Thread Adrian Brock
Why isn't portal using JBoss's hibernate-int session factory?

The solutions are:
1) JBoss Portal's session factory is configured to use JBoss Cache 
not EhCache
2) JBossAS's installer should include EhCache as an optional
part of the install
3) JBoss Portal includes EhCache itself (since it is not a part of the
JBossAS install)

On a related issue, why does Portal have its own transaction
demarcation? :-)

org.jboss.portal.common.transaction.Transactions.notSupported(Transactions.java:245)

Looks like too much not invented here in the Portal code
that JBossAS can do nothing about.

 
 
On Fri, 2006-05-12 at 13:05 -0500, Ryan Campbell wrote:
 Portal 2.2.1 fails to deploy on 4.0.4.  Is this a bug in Hibernate?  
 

 __
 From:[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
 Rali Genova
 Sent: Friday, May 12, 2006 12:00 PM
 To: Ryan Campbell
 Subject: jboss-4.0.4 portal-2.2 issue
 
 
  
 
 Attached is the server log, but here is the relevant exception. I was
 using the Hypersonic DB and then MySQL, repeats with both. The AS is
 built from source, I am working on verifying this with the installer
 that Scott created as well.
 
 2006-05-12 11:22:16,353 DEBUG [org.hibernate.impl.SessionFactoryImpl]
 instantiating session factory with properties:...(I took those off)
 2006-05-12 11:22:16,363 WARN  [org.jboss.system.ServiceController]
 Problem starting service portal:service=Hibernate
 java.lang.IllegalAccessError: tried to access method
 net.sf.ehcache.CacheManager.init()V from class
 org.hibernate.cache.EhCacheProvider
 at
 org.hibernate.cache.EhCacheProvider.start(EhCacheProvider.java:124)
 at
 org.hibernate.impl.SessionFactoryImpl.init(SessionFactoryImpl.java:180)
 at
 org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1213)
 at org.jboss.portal.core.hibernate.SessionFactoryBinder
 $3.run(SessionFactoryBinder.java:509)
 at
 org.jboss.portal.common.transaction.Transactions.apply(Transactions.java:199)
 at
 org.jboss.portal.common.transaction.Transactions.notSupported(Transactions.java:245)
 at
 org.jboss.portal.core.hibernate.SessionFactoryBinder.createSessionFactory(SessionFactoryBinder.java:505)
 at
 org.jboss.portal.core.hibernate.SessionFactoryBinder.startService(SessionFactoryBinder.java:291)
 at
 org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
 at
 org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:196)
 at
 org.jboss.portal.common.system.AbstractJBossService.start(AbstractJBossService.java:86)
 at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:585)
 at
 org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
 at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
 at
 org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
 at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
 at
 org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
 at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
 at
 org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
 at
 org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
 at org.jboss.system.ServiceController
 $ServiceProxy.invoke(ServiceController.java:995)
 at $Proxy0.start(Unknown Source)
 
 
 -- 
 Bug? That's not a bug, that's a feature. 
 
 
-- 

Adrian Brock
Chief Scientist
JBoss Inc.




---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
JBoss-Development mailing list
JBoss-Development@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] Re: FW: jboss-4.0.4 portal-2.2 issue

2006-05-16 Thread Emmanuel Bernard
Title: Re: FW: jboss-4.0.4 portal-2.2 issue






The other solution is to include the old hibernate ehcache provider in portal and rename it

-Original Message-
From: Julien Viet
To: Ryan Campbell
CC: Adrian Brock; Steve Ebersole; Julien Viet; Roy Russo; jboss-development@lists.sourceforge.net jboss-development@lists.sourceforge.net; QA; Rali Genova
Sent: Fri May 12 09:47:03 2006
Subject: Re: FW: jboss-4.0.4 portal-2.2 issue

is now JBoss AS bundled with ehcache ?

Ryan Campbell wrote:
 Yes, ehcache is included in Portal, just a previous version.

 We are testing with ehcache 1.2, per Emmanuel's comment.

 If it works, we can document the workaround for now, and possibly
 release Portal 2.2.1.SP1 shortly after 4.0.4?

 -Original Message-
 From: Adrian Brock
 Sent: Friday, May 12, 2006 1:42 PM
 To: Ryan Campbell
 Cc: Steve Ebersole; Julien Viet; Roy Russo;
 jboss-development@lists.sourceforge.net; QA
 Subject: Re: FW: jboss-4.0.4 portal-2.2 issue

 Actually (2) is not an option because it looks like
 Portal/Hibernate in 2.2 is expecting a different/incompatible
 version of EhCache?

 On Fri, 2006-05-12 at 20:34 +0200, Adrian Brock wrote:
 Why isn't portal using JBoss's hibernate-int session factory?

 The solutions are:
 1) JBoss Portal's session factory is configured to use JBoss Cache
 not EhCache
 2) JBossAS's installer should include EhCache as an optional
 part of the install
 3) JBoss Portal includes EhCache itself (since it is not a part of the
 JBossAS install)

 On a related issue, why does Portal have its own transaction
 demarcation? :-)


 org.jboss.portal.common.transaction.Transactions.notSupported(Transactio
 ns.java:245)
 Looks like too much not invented here in the Portal code
 that JBossAS can do nothing about.


 On Fri, 2006-05-12 at 13:05 -0500, Ryan Campbell wrote:
 Portal 2.2.1 fails to deploy on 4.0.4. Is this a bug in Hibernate?



 __
 From:[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf
 Of
 Rali Genova
 Sent: Friday, May 12, 2006 12:00 PM
 To: Ryan Campbell
 Subject: jboss-4.0.4 portal-2.2 issue




 Attached is the server log, but here is the relevant exception. I
 was
 using the Hypersonic DB and then MySQL, repeats with both. The AS is
 built from source, I am working on verifying this with the installer
 that Scott created as well.

 2006-05-12 11:22:16,353 DEBUG
 [org.hibernate.impl.SessionFactoryImpl]
 instantiating session factory with properties:...(I took those off)
 2006-05-12 11:22:16,363 WARN [org.jboss.system.ServiceController]
 Problem starting service portal:service=Hibernate
 java.lang.IllegalAccessError: tried to access method
 net.sf.ehcache.CacheManager.init()V from class
 org.hibernate.cache.EhCacheProvider
 at
 org.hibernate.cache.EhCacheProvider.start(EhCacheProvider.java:124)
 at

 org.hibernate.impl.SessionFactoryImpl.init(SessionFactoryImpl.java:180
 )
 at

 org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1
 213)
 at org.jboss.portal.core.hibernate.SessionFactoryBinder
 $3.run(SessionFactoryBinder.java:509)
 at

 org.jboss.portal.common.transaction.Transactions.apply(Transactions.java
 :199)
 at

 org.jboss.portal.common.transaction.Transactions.notSupported(Transactio
 ns.java:245)
 at

 org.jboss.portal.core.hibernate.SessionFactoryBinder.createSessionFactor
 y(SessionFactoryBinder.java:505)
 at

 org.jboss.portal.core.hibernate.SessionFactoryBinder.startService(Sessio
 nFactoryBinder.java:291)
 at

 org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupp
 ort.java:289)
 at

 org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:196)
 at

 org.jboss.portal.common.system.AbstractJBossService.start(AbstractJBossS
 ervice.java:86)
 at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
 at

 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
 Impl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:585)
 at

 org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.
 java:155)
 at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
 at

 org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.
 java:133)
 at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
 at

 org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBea
 nOperationInterceptor.java:142)
 at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
 at

 org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.jav
 a:264)
 at
 org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
 at org.jboss.system.ServiceController
 $ServiceProxy.invoke(ServiceController.java:995)
 at $Proxy0.start(Unknown Source)


 --
 Bug? That's not a bug, that's a feature.




--
Julien 

Re: [JBoss-dev] Re: FW: jboss-4.0.4 portal-2.2 issue

2006-05-16 Thread Manik Surtani
Good point - why doesn't Portal ship with Hibernate configured with  
JBoss Cache?


On 12 May 2006, at 19:34, Adrian Brock wrote:

SNIP /



The solutions are:
1) JBoss Portal's session factory is configured to use JBoss Cache
not EhCache


SNIP /


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
JBoss-Development mailing list
JBoss-Development@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-development


Re: [JBoss-dev] Re: FW: jboss-4.0.4 portal-2.2 issue

2006-05-16 Thread Julien Viet
the real question is : why JBoss AS does not ship with JBoss Cache in 
the default configuration ?


Manik Surtani wrote:
Good point - why doesn't Portal ship with Hibernate configured with 
JBoss Cache?


On 12 May 2006, at 19:34, Adrian Brock wrote:

SNIP /



The solutions are:
1) JBoss Portal's session factory is configured to use JBoss Cache
not EhCache


SNIP /




--
Julien Viet
JBoss Portal Project Lead


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
JBoss-Development mailing list
JBoss-Development@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] RE: FW: jboss-4.0.4 portal-2.2 issue

2006-05-13 Thread Scott M Stark
No, jbossas is not bundling ehcache. I don't see why this is failing as
the default ctor is not explicit and so there should be a public default
ctor:

[EMAIL PROTECTED] lib]$ javap -classpath ehcache.jar
net.sf.ehcache.CacheManager
Compiled from CacheManager.java
public final class net.sf.ehcache.CacheManager extends java.lang.Object{
public static final int STATUS_UNINITIALISED;
public static final int STATUS_ALIVE;
public static final int STATUS_SHUTDOWN;
static java.lang.Class class$net$sf$ehcache$CacheManager;
public static net.sf.ehcache.CacheManager create()   throws
net.sf.ehcache.CacheException;
public static net.sf.ehcache.CacheManager getInstance()   throws
net.sf.ehcache.CacheException;
public static net.sf.ehcache.CacheManager create(java.lang.String)
throws net.sf.ehcache.CacheException;
public static net.sf.ehcache.CacheManager create(java.net.URL)
throws
net.sf.ehcache.CacheException;
public static net.sf.ehcache.CacheManager
create(java.io.InputStream)
throws net.sf.ehcache.CacheException;
public synchronized net.sf.ehcache.Cache getCache(java.lang.String)
throws java.lang.IllegalStateException;
public synchronized void addCache(java.lang.String)   throws
java.lang.IllegalStateException, net.sf.ehcache.ObjectExistsException,
net.sf.ehcache.Cache
Exception;
public synchronized void addCache(net.sf.ehcache.Cache)   throws
java.lang.IllegalStateException, net.sf.ehcache.ObjectExistsException,
net.sf.ehcache.CacheException;
public synchronized boolean cacheExists(java.lang.String)
throws java.lang.IllegalStateException;
public synchronized void removeCache(java.lang.String)   throws
java.lang.IllegalStateException;
public void shutdown();
public synchronized java.lang.String[] getCacheNames()   throws
java.lang.IllegalStateException;
net.sf.ehcache.config.Configuration getConfiguration()   throws
java.lang.IllegalStateException;
public int getStatus();
static java.lang.Class class$(java.lang.String);
static {};
}

The org.hibernate.cache.EhCacheProvider has been compiled against a
latter ehcache that has several new ctors, but they are still all
public:
[EMAIL PROTECTED] lib]$ javap -classpath ehcache-1.2.jar
net.sf.ehcache.CacheManager
Compiled from CacheManager.java
public final class net.sf.ehcache.CacheManager extends java.lang.Object{
static java.lang.Class class$net$sf$ehcache$CacheManager;
public
net.sf.ehcache.CacheManager(net.sf.ehcache.config.Configuration)
  throws net.sf.ehcache.CacheException;
public net.sf.ehcache.CacheManager(java.lang.String)   throws
net.sf.ehcache.CacheException;
public net.sf.ehcache.CacheManager(java.net.URL)   throws
net.sf.ehcache.CacheException;
public net.sf.ehcache.CacheManager(java.io.InputStream)   throws
net.sf.ehcache.CacheException;
public net.sf.ehcache.CacheManager()   throws
net.sf.ehcache.CacheException;

-Original Message-
From: Julien Viet 
Sent: Friday, May 12, 2006 7:47 AM
To: Ryan Campbell
Cc: Adrian Brock; Steve Ebersole; Julien Viet; Roy Russo;
jboss-development@lists.sourceforge.net; QA; Rali Genova
Subject: Re: FW: jboss-4.0.4 portal-2.2 issue

is now JBoss AS bundled with ehcache ?

Ryan Campbell wrote:
 Yes, ehcache is included in Portal, just a previous version.
 
 We are testing with ehcache 1.2, per Emmanuel's comment.
 
 If it works, we can document the workaround for now, and possibly
 release Portal 2.2.1.SP1 shortly after 4.0.4?
 
 -Original Message-
 From: Adrian Brock 
 Sent: Friday, May 12, 2006 1:42 PM
 To: Ryan Campbell
 Cc: Steve Ebersole; Julien Viet; Roy Russo;
 jboss-development@lists.sourceforge.net; QA
 Subject: Re: FW: jboss-4.0.4 portal-2.2 issue
 
 Actually (2) is not an option because it looks like 
 Portal/Hibernate in 2.2 is expecting a different/incompatible
 version of EhCache?
 
 On Fri, 2006-05-12 at 20:34 +0200, Adrian Brock wrote:
 Why isn't portal using JBoss's hibernate-int session factory?

 The solutions are:
 1) JBoss Portal's session factory is configured to use JBoss Cache 
 not EhCache
 2) JBossAS's installer should include EhCache as an optional
 part of the install
 3) JBoss Portal includes EhCache itself (since it is not a part of
the
 JBossAS install)

 On a related issue, why does Portal have its own transaction
 demarcation? :-)



org.jboss.portal.common.transaction.Transactions.notSupported(Transactio
 ns.java:245)
 Looks like too much not invented here in the Portal code
 that JBossAS can do nothing about.


 On Fri, 2006-05-12 at 13:05 -0500, Ryan Campbell wrote:
 Portal 2.2.1 fails to deploy on 4.0.4.  Is this a bug in Hibernate?
 


 __
 From:[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
 Of
 Rali Genova
 Sent: Friday, May 12, 2006 12:00 PM
 To: Ryan Campbell
 Subject: jboss-4.0.4 portal-2.2 issue


  

 

[JBoss-dev] Re: FW: jboss-4.0.4 portal-2.2 issue

2006-05-13 Thread Julien Viet

is now JBoss AS bundled with ehcache ?

Ryan Campbell wrote:

Yes, ehcache is included in Portal, just a previous version.

We are testing with ehcache 1.2, per Emmanuel's comment.

If it works, we can document the workaround for now, and possibly
release Portal 2.2.1.SP1 shortly after 4.0.4?

-Original Message-
From: Adrian Brock 
Sent: Friday, May 12, 2006 1:42 PM

To: Ryan Campbell
Cc: Steve Ebersole; Julien Viet; Roy Russo;
jboss-development@lists.sourceforge.net; QA
Subject: Re: FW: jboss-4.0.4 portal-2.2 issue

Actually (2) is not an option because it looks like 
Portal/Hibernate in 2.2 is expecting a different/incompatible

version of EhCache?

On Fri, 2006-05-12 at 20:34 +0200, Adrian Brock wrote:

Why isn't portal using JBoss's hibernate-int session factory?

The solutions are:
1) JBoss Portal's session factory is configured to use JBoss Cache 
not EhCache

2) JBossAS's installer should include EhCache as an optional
part of the install
3) JBoss Portal includes EhCache itself (since it is not a part of the
JBossAS install)

On a related issue, why does Portal have its own transaction
demarcation? :-)



org.jboss.portal.common.transaction.Transactions.notSupported(Transactio
ns.java:245)

Looks like too much not invented here in the Portal code
that JBossAS can do nothing about.




On Fri, 2006-05-12 at 13:05 -0500, Ryan Campbell wrote:

Portal 2.2.1 fails to deploy on 4.0.4.  Is this a bug in Hibernate?


   


__

From:[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf

Of

Rali Genova
Sent: Friday, May 12, 2006 12:00 PM
To: Ryan Campbell
Subject: jboss-4.0.4 portal-2.2 issue


 


Attached is the server log, but here is the relevant exception. I

was

using the Hypersonic DB and then MySQL, repeats with both. The AS is
built from source, I am working on verifying this with the installer
that Scott created as well.

2006-05-12 11:22:16,353 DEBUG

[org.hibernate.impl.SessionFactoryImpl]

instantiating session factory with properties:...(I took those off)
2006-05-12 11:22:16,363 WARN  [org.jboss.system.ServiceController]
Problem starting service portal:service=Hibernate
java.lang.IllegalAccessError: tried to access method
net.sf.ehcache.CacheManager.init()V from class
org.hibernate.cache.EhCacheProvider
at
org.hibernate.cache.EhCacheProvider.start(EhCacheProvider.java:124)
at


org.hibernate.impl.SessionFactoryImpl.init(SessionFactoryImpl.java:180
)

at


org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1
213)

at org.jboss.portal.core.hibernate.SessionFactoryBinder
$3.run(SessionFactoryBinder.java:509)
at


org.jboss.portal.common.transaction.Transactions.apply(Transactions.java
:199)

at


org.jboss.portal.common.transaction.Transactions.notSupported(Transactio
ns.java:245)

at


org.jboss.portal.core.hibernate.SessionFactoryBinder.createSessionFactor
y(SessionFactoryBinder.java:505)

at


org.jboss.portal.core.hibernate.SessionFactoryBinder.startService(Sessio
nFactoryBinder.java:291)

at


org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupp
ort.java:289)

at


org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:196)

at


org.jboss.portal.common.system.AbstractJBossService.start(AbstractJBossS
ervice.java:86)

at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
at


sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)

at java.lang.reflect.Method.invoke(Method.java:585)
at


org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.
java:155)

at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at


org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.
java:133)

at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at


org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBea
nOperationInterceptor.java:142)

at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at


org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.jav
a:264)

at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.system.ServiceController
$ServiceProxy.invoke(ServiceController.java:995)
at $Proxy0.start(Unknown Source)


--
Bug? That's not a bug, that's a feature. 






--
Julien Viet
JBoss Portal Project Lead


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
JBoss-Development mailing list
JBoss-Development@lists.sourceforge.net

[JBoss-dev] RE: FW: jboss-4.0.4 portal-2.2 issue

2006-05-12 Thread Ryan Campbell
Yes, ehcache is included in Portal, just a previous version.

We are testing with ehcache 1.2, per Emmanuel's comment.

If it works, we can document the workaround for now, and possibly
release Portal 2.2.1.SP1 shortly after 4.0.4?

-Original Message-
From: Adrian Brock 
Sent: Friday, May 12, 2006 1:42 PM
To: Ryan Campbell
Cc: Steve Ebersole; Julien Viet; Roy Russo;
jboss-development@lists.sourceforge.net; QA
Subject: Re: FW: jboss-4.0.4 portal-2.2 issue

Actually (2) is not an option because it looks like 
Portal/Hibernate in 2.2 is expecting a different/incompatible
version of EhCache?

On Fri, 2006-05-12 at 20:34 +0200, Adrian Brock wrote:
 Why isn't portal using JBoss's hibernate-int session factory?
 
 The solutions are:
 1) JBoss Portal's session factory is configured to use JBoss Cache 
 not EhCache
 2) JBossAS's installer should include EhCache as an optional
 part of the install
 3) JBoss Portal includes EhCache itself (since it is not a part of the
 JBossAS install)
 
 On a related issue, why does Portal have its own transaction
 demarcation? :-)
 

org.jboss.portal.common.transaction.Transactions.notSupported(Transactio
ns.java:245)
 
 Looks like too much not invented here in the Portal code
 that JBossAS can do nothing about.
 
  
  
 On Fri, 2006-05-12 at 13:05 -0500, Ryan Campbell wrote:
  Portal 2.2.1 fails to deploy on 4.0.4.  Is this a bug in Hibernate?

  
 
 
__
  From:[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of
  Rali Genova
  Sent: Friday, May 12, 2006 12:00 PM
  To: Ryan Campbell
  Subject: jboss-4.0.4 portal-2.2 issue
  
  
   
  
  Attached is the server log, but here is the relevant exception. I
was
  using the Hypersonic DB and then MySQL, repeats with both. The AS is
  built from source, I am working on verifying this with the installer
  that Scott created as well.
  
  2006-05-12 11:22:16,353 DEBUG
[org.hibernate.impl.SessionFactoryImpl]
  instantiating session factory with properties:...(I took those off)
  2006-05-12 11:22:16,363 WARN  [org.jboss.system.ServiceController]
  Problem starting service portal:service=Hibernate
  java.lang.IllegalAccessError: tried to access method
  net.sf.ehcache.CacheManager.init()V from class
  org.hibernate.cache.EhCacheProvider
  at
  org.hibernate.cache.EhCacheProvider.start(EhCacheProvider.java:124)
  at
 
org.hibernate.impl.SessionFactoryImpl.init(SessionFactoryImpl.java:180
)
  at
 
org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1
213)
  at org.jboss.portal.core.hibernate.SessionFactoryBinder
  $3.run(SessionFactoryBinder.java:509)
  at
 
org.jboss.portal.common.transaction.Transactions.apply(Transactions.java
:199)
  at
 
org.jboss.portal.common.transaction.Transactions.notSupported(Transactio
ns.java:245)
  at
 
org.jboss.portal.core.hibernate.SessionFactoryBinder.createSessionFactor
y(SessionFactoryBinder.java:505)
  at
 
org.jboss.portal.core.hibernate.SessionFactoryBinder.startService(Sessio
nFactoryBinder.java:291)
  at
 
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupp
ort.java:289)
  at
 
org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:196)
  at
 
org.jboss.portal.common.system.AbstractJBossService.start(AbstractJBossS
ervice.java:86)
  at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
  at
 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:585)
  at
 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.
java:155)
  at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  at
 
org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.
java:133)
  at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
  at
 
org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBea
nOperationInterceptor.java:142)
  at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
  at
 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.jav
a:264)
  at
  org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  at org.jboss.system.ServiceController
  $ServiceProxy.invoke(ServiceController.java:995)
  at $Proxy0.start(Unknown Source)
  
  
  -- 
  Bug? That's not a bug, that's a feature. 
  
  
-- 

Adrian Brock
Chief Scientist
JBoss Inc.




---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid0709bid3057dat1642
___