Adding the following to the EJB3Deployer:
protected void startService() throws Exception
{
// todo this should be coming from the DefaultProperties
System.setProperty("hibernate.bytecode.provider", "javassist");
results in the "Bytecode provider name : javassist", but cglib is still
leaking in somewhere:
01:07:05,678 INFO [JmxKernelAbstraction]
jboss.jca:name=DefaultDS,service
=ManagedConnectionFactory
01:07:05,725 INFO [Version] Hibernate EntityManager 3.2.0.CR1
01:07:05,740 INFO [Version] Hibernate Annotations 3.2.0.CR1
01:07:05,756 INFO [Environment] Hibernate 3.2 cr2
01:07:05,772 INFO [Environment] hibernate.properties not found
01:07:05,772 INFO [Environment] Bytecode provider name : javassist
01:07:05,787 INFO [Environment] using JDK 1.4 java.sql.Timestamp
handling
01:07:06,022 INFO [Ejb3Configuration] found EJB3 Entity bean:
org.jboss.ejb3.te
st.regression.salesforce7123.BaseData
01:07:06,022 INFO [Ejb3Configuration] found EJB3 Entity bean:
org.jboss.ejb3.te
st.regression.salesforce7123.Child
01:07:06,037 WARN [Ejb3Configuration] Persistence provider caller does
not impl
ements the EJB3 spec correctly.
PersistenceUnitInfo.getNewTempClassLoader() is n
ull.
01:07:06,178 INFO [Configuration] Reading mappings from resource:
META-INF/orm.
xml
01:07:06,194 INFO [Ejb3Configuration] [PersistenceUnit: tempdb] no
META-INF/orm
.xml found
01:07:06,272 INFO [AnnotationBinder] Binding entity from annotated
class: org.j
boss.ejb3.test.regression.salesforce7123.BaseData
01:07:06,350 INFO [EntityBinder] Bind entity
org.jboss.ejb3.test.regression.sal
esforce7123.BaseData on table BaseData
01:07:06,428 WARN [ServiceController] Problem starting service
persistence.unit
s:jar=salesforce-7123.jar,unitName=tempdb
java.lang.RuntimeException: java.lang.NoClassDefFoundError:
net/sf/cglib/transform/impl/InterceptFieldCallback
at
org.jboss.ejb3.ServiceDelegateWrapper.startService(ServiceDelegateWrappe
r.java:105)
at
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupp
ort.java:289)
> -----Original Message-----
> From: Scott M Stark
> Sent: Wednesday, May 10, 2006 12:39 AM
> To: Dev - JBossSeam; dev-ejb3
> Cc: [email protected]
> Subject: cglib still being seen as bytecode provider
>
> I'm seeing this problem in both the installer ejb3 profile,
> and the current 4.0 branch build of the jboss-4.0.4.GA-ejb3
> dist. Is there a configuration of the ejb3 container that has
> to be updated for the use of javassist?
>
> 00:08:22,272 INFO [JmxKernelAbstraction]
> jboss.jca:name=bookingDatasource
> ,service=ManagedConnectionFactory
> 00:08:22,319 INFO [Version] Hibernate EntityManager 3.2.0.CR1
> 00:08:22,334 INFO [Version] Hibernate Annotations 3.2.0.CR1
> 00:08:22,350 INFO [Environment] Hibernate 3.2 cr2
> 00:08:22,365 INFO [Environment] hibernate.properties not found
> 00:08:22,365 INFO [Environment] Bytecode provider name : cglib
> 00:08:22,381 WARN [ServiceController] Problem starting
> service
> persistence.units:ear=jboss-seam-booking.ear,jar=jboss-seam-bo
oking.jar,unitName=bookingDatabase
>
> java.lang.RuntimeException: java.lang.NoClassDefFoundError:
> net/sf/cglib/transform/ClassFilter
> at
> org.jboss.ejb3.ServiceDelegateWrapper.startService(ServiceDele
> gateWrapper.java:105)
> at
> org.jboss.system.ServiceMBeanSupport.jbossInternalStart(Servic
> eMBeanSupport.java:289)
> at
> org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(Se
> rviceMBeanSupport.java:245)
> at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
>
> I'm seeing similar problems running the ejb3 tests:
>
> [EMAIL PROTECTED] ejb3]$ ant -buildfile build-test.xml
> no-start-jboss-ejb-tests
>
> 00:35:08,865 INFO [JmxKernelAbstraction]
> jboss.jca:name=DefaultDS,service
> =ManagedConnectionFactory
> 00:35:08,897 INFO [Version] Hibernate EntityManager 3.2.0.CR1
> 00:35:08,928 INFO [Version] Hibernate Annotations 3.2.0.CR1
> 00:35:08,944 INFO [Environment] Hibernate 3.2 cr2
> 00:35:08,959 INFO [Environment] hibernate.properties not found
> 00:35:08,959 INFO [Environment] Bytecode provider name : cglib
> 00:35:52,178 WARN [ServiceController] Problem starting
> service persistence.units:jar=salesforce-7123.jar,unitName=tempdb
> java.lang.RuntimeException: java.lang.NoClassDefFoundError:
> net/sf/cglib/transform/ClassFilter
> at
> org.jboss.ejb3.ServiceDelegateWrapper.startService(ServiceDelegateWra
> pper.java:105)
>
>
-------------------------------------------------------
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=lnk&kid0709&bid&3057&dat1642
_______________________________________________
JBoss-Development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-development