trunk not working?

View: New views
20 Messages — Rating Filter:   Alert me  
< Prev | 1 - 2 | Next >

trunk not working?

by peterd :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I just downloaded the latest version from the trunk, but i can't get  
the samples to work. The bundles start, but no beans seem to be  
deployed. For example, when requesting the services registered by the  
sample bundles, there is nothing - i suppose there still has to be at  
least an org.ow2.easybeans.api.EZBContainer service for an bundle that  
contains EJB's...

Any idea? Did i miss something?

Regards,
Peter.


Re: trunk not working?

by Florent BENOIT-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

    Hi peter,

There are automatic tests of the examples in EasyBeans maven process by
testing examples on Apache Felix and Eclipse Equinox and they're working.
http://forge.ow2.org/bamboo/browse/EZB-OSGI/latest

Do you have provided slf4j bundles ?

Regards,

Florent

peter.doornbosch wrote:

> Hi,
>
> I just downloaded the latest version from the trunk, but i can't get
> the samples to work. The bundles start, but no beans seem to be
> deployed. For example, when requesting the services registered by the
> sample bundles, there is nothing - i suppose there still has to be at
> least an org.ow2.easybeans.api.EZBContainer service for an bundle that
> contains EJB's...
>
> Any idea? Did i miss something?
>
> Regards,
> Peter.
>
>
>


Re: trunk not working?

by ekke :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Florent,

I also get errors using 1.1.0 2008-09-10
of course I added slf4j

using 2008-08-21 all runs well

ekke

I got stacks like this:

19:30:57,487 ERROR BasicLazyInitializer:535 - Javassist Enhancement
failed: org.ekkehard.abc.entityData.mitarbeiter.User
java.lang.RuntimeException: by java.lang.NoClassDefFoundError:
javassist/util/proxy/ProxyObject
        at javassist.util.proxy.ProxyFactory.createClass3(ProxyFactory.java:342)
        at javassist.util.proxy.ProxyFactory.createClass2(ProxyFactory.java:312)
        at javassist.util.proxy.ProxyFactory.createClass(ProxyFactory.java:271)
        at
org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.getProxyFactory(JavassistLazyInitializer.java:162)
        at
org.hibernate.proxy.pojo.javassist.JavassistProxyFactory.postInstantiate(JavassistProxyFactory.java:66)
        at
org.hibernate.tuple.entity.PojoEntityTuplizer.buildProxyFactory(PojoEntityTuplizer.java:183)
        at
org.hibernate.tuple.entity.AbstractEntityTuplizer.<init>(AbstractEntityTuplizer.java:158)
        at
org.hibernate.tuple.entity.PojoEntityTuplizer.<init>(PojoEntityTuplizer.java:76)
        at
org.hibernate.tuple.entity.EntityEntityModeToTuplizerMapping.<init>(EntityEntityModeToTuplizerMapping.java:80)
        at
org.hibernate.tuple.entity.EntityMetamodel.<init>(EntityMetamodel.java:325)
        at
org.hibernate.persister.entity.AbstractEntityPersister.<init>(AbstractEntityPersister.java:457)
        at
org.hibernate.persister.entity.SingleTableEntityPersister.<init>(SingleTableEntityPersister.java:131)
        at
org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:84)
        at
org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:261)
        at
org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1327)
        at
org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867)
        at
org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:669)
        at
org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:132)
        at
org.ow2.easybeans.persistence.JPersistenceContext.init(JPersistenceContext.java:72)
        at
org.ow2.easybeans.persistence.JPersistenceContext.<init>(JPersistenceContext.java:65)
        at
org.ow2.easybeans.persistence.PersistenceUnitManager.addExtraPersistenceUnitInfos(PersistenceUnitManager.java:88)
        at
org.ow2.easybeans.persistence.PersistenceUnitManager.<init>(PersistenceUnitManager.java:64)
        at
org.ow2.easybeans.persistence.xml.PersistenceXmlFileAnalyzer.analyzePersistenceXmlFile(PersistenceXmlFileAnalyzer.java:143)
        at org.ow2.easybeans.container.JContainer3.start(JContainer3.java:350)
        at
org.ow2.easybeans.osgi.ejbjar.Activator.startContainer(Activator.java:149)
        at org.ow2.easybeans.osgi.ejbjar.Activator.start(Activator.java:101)
        at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:1009)
        at java.security.AccessController.doPrivileged(Native Method)
        at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:1003)
        at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:984)
        at
org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346)
        at
org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:265)
        at
org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:257)
        at
org.ekkehard.server.Activator$EasybeansServiceTracker.startEJBContainer(Activator.java:375)
        at
org.ekkehard.server.Activator$EasybeansServiceTracker.addingService(Activator.java:278)
        at
org.osgi.util.tracker.ServiceTracker$Tracked.trackAdding(ServiceTracker.java:1064)
        at
org.osgi.util.tracker.ServiceTracker$Tracked.track(ServiceTracker.java:1042)
        at
org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:975)
        at
org.eclipse.osgi.framework.internal.core.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:91)
        at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:1248)
        at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:211)
        at
org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:141)
        at
org.eclipse.osgi.framework.internal.core.Framework.publishServiceEventPrivileged(Framework.java:1563)
        at
org.eclipse.osgi.framework.internal.core.Framework.publishServiceEvent(Framework.java:1538)
        at
org.eclipse.osgi.framework.internal.core.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:122)
        at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.createServiceRegistration(BundleContextImpl.java:666)
        at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:617)
        at
org.ow2.easybeans.osgi.component.EZBComponentServiceFactory.updateMapsAndRegisterService(EZBComponentServiceFactory.java:219)
        at
org.ow2.easybeans.osgi.component.EZBComponentServiceFactory.updated(EZBComponentServiceFactory.java:198)
        at
org.eclipse.equinox.internal.cm.ManagedServiceFactoryTracker$2.run(ManagedServiceFactoryTracker.java:177)
        at
org.eclipse.equinox.internal.cm.SerializedTaskQueue$1.run(SerializedTaskQueue.java:36)
Caused by: javassist.CannotCompileException: by
java.lang.NoClassDefFoundError: javassist/util/proxy/ProxyObject
        at javassist.util.proxy.FactoryHelper.toClass(FactoryHelper.java:165)
        at javassist.util.proxy.ProxyFactory.createClass3(ProxyFactory.java:337)
        ... 50 more
Caused by: java.lang.NoClassDefFoundError: javassist/util/proxy/ProxyObject
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:675)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at javassist.util.proxy.FactoryHelper.toClass2(FactoryHelper.java:177)
        at javassist.util.proxy.FactoryHelper.toClass(FactoryHelper.java:159)
        ... 51 more
19:30:57,493  WARN PojoEntityTuplizer:438 - could not create proxy
factory for:org.ekkehard.abc.entityData.mitarbeiter.User
org.hibernate.HibernateException: Javassist Enhancement failed:
org.ekkehard.abc.entityData.mitarbeiter.User
        at
org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.getProxyFactory(JavassistLazyInitializer.java:169)
        at
org.hibernate.proxy.pojo.javassist.JavassistProxyFactory.postInstantiate(JavassistProxyFactory.java:66)
        at
org.hibernate.tuple.entity.PojoEntityTuplizer.buildProxyFactory(PojoEntityTuplizer.java:183)
        at
org.hibernate.tuple.entity.AbstractEntityTuplizer.<init>(AbstractEntityTuplizer.java:158)
        at
org.hibernate.tuple.entity.PojoEntityTuplizer.<init>(PojoEntityTuplizer.java:76)
        at
org.hibernate.tuple.entity.EntityEntityModeToTuplizerMapping.<init>(EntityEntityModeToTuplizerMapping.java:80)
        at
org.hibernate.tuple.entity.EntityMetamodel.<init>(EntityMetamodel.java:325)
        at
org.hibernate.persister.entity.AbstractEntityPersister.<init>(AbstractEntityPersister.java:457)
        at
org.hibernate.persister.entity.SingleTableEntityPersister.<init>(SingleTableEntityPersister.java:131)
        at
org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:84)
        at
org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:261)
        at
org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1327)
        at
org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867)
        at
org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:669)
        at
org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:132)
        at
org.ow2.easybeans.persistence.JPersistenceContext.init(JPersistenceContext.java:72)
        at
org.ow2.easybeans.persistence.JPersistenceContext.<init>(JPersistenceContext.java:65)
        at
org.ow2.easybeans.persistence.PersistenceUnitManager.addExtraPersistenceUnitInfos(PersistenceUnitManager.java:88)
        at
org.ow2.easybeans.persistence.PersistenceUnitManager.<init>(PersistenceUnitManager.java:64)
        at
org.ow2.easybeans.persistence.xml.PersistenceXmlFileAnalyzer.analyzePersistenceXmlFile(PersistenceXmlFileAnalyzer.java:143)
        at org.ow2.easybeans.container.JContainer3.start(JContainer3.java:350)
        at
org.ow2.easybeans.osgi.ejbjar.Activator.startContainer(Activator.java:149)
        at org.ow2.easybeans.osgi.ejbjar.Activator.start(Activator.java:101)
        at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:1009)
        at java.security.AccessController.doPrivileged(Native Method)
        at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:1003)
        at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:984)
        at
org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346)
        at
org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:265)
        at
org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:257)
        at
org.ekkehard.server.Activator$EasybeansServiceTracker.startEJBContainer(Activator.java:375)
        at
org.ekkehard.server.Activator$EasybeansServiceTracker.addingService(Activator.java:278)
        at
org.osgi.util.tracker.ServiceTracker$Tracked.trackAdding(ServiceTracker.java:1064)
        at
org.osgi.util.tracker.ServiceTracker$Tracked.track(ServiceTracker.java:1042)
        at
org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:975)
        at
org.eclipse.osgi.framework.internal.core.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:91)
        at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:1248)
        at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:211)
        at
org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:141)
        at
org.eclipse.osgi.framework.internal.core.Framework.publishServiceEventPrivileged(Framework.java:1563)
        at
org.eclipse.osgi.framework.internal.core.Framework.publishServiceEvent(Framework.java:1538)
        at
org.eclipse.osgi.framework.internal.core.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:122)
        at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.createServiceRegistration(BundleContextImpl.java:666)
        at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:617)
        at
org.ow2.easybeans.osgi.component.EZBComponentServiceFactory.updateMapsAndRegisterService(EZBComponentServiceFactory.java:219)
        at
org.ow2.easybeans.osgi.component.EZBComponentServiceFactory.updated(EZBComponentServiceFactory.java:198)
        at
org.eclipse.equinox.internal.cm.ManagedServiceFactoryTracker$2.run(ManagedServiceFactoryTracker.java:177)
        at
org.eclipse.equinox.internal.cm.SerializedTaskQueue$1.run(SerializedTaskQueue.java:36)
Caused by: java.lang.RuntimeException: by
java.lang.NoClassDefFoundError: javassist/util/proxy/ProxyObject
        at javassist.util.proxy.ProxyFactory.createClass3(ProxyFactory.java:342)
        at javassist.util.proxy.ProxyFactory.createClass2(ProxyFactory.java:312)
        at javassist.util.proxy.ProxyFactory.createClass(ProxyFactory.java:271)
        at
org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.getProxyFactory(JavassistLazyInitializer.java:162)
        ... 47 more


Florent BENOIT schrieb:

>    Hi peter,
>
> There are automatic tests of the examples in EasyBeans maven process by
> testing examples on Apache Felix and Eclipse Equinox and they're working.
> http://forge.ow2.org/bamboo/browse/EZB-OSGI/latest
>
> Do you have provided slf4j bundles ?
>
> Regards,
>
> Florent
>
> peter.doornbosch wrote:
>> Hi,
>>
>> I just downloaded the latest version from the trunk, but i can't get
>> the samples to work. The bundles start, but no beans seem to be
>> deployed. For example, when requesting the services registered by the
>> sample bundles, there is nothing - i suppose there still has to be at
>> least an org.ow2.easybeans.api.EZBContainer service for an bundle that
>> contains EJB's...
>>
>> Any idea? Did i miss something?
>>
>> Regards,
>> Peter.
>>
>>
>>
>
>


Re: trunk not working?

by ekke :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

btw: the agent started all components well

jdbcpool and hsqld was also started correct

and hibernate logs this before the stacktrace happens:

11.09.08 19:30:56 (I) JPersistenceUnitInfoHelper.loadDefaultValues :
Default persistence provider set to value
org.hibernate.ejb.HibernatePersistence.
19:30:56,504  INFO Version:286 - Hibernate Annotations 3.4.0.GA
19:30:56,510  INFO Environment:265 - Hibernate 3.3.0.SP1
19:30:56,515  INFO Environment:265 - hibernate.properties not found
19:30:56,518  INFO Environment:265 - Bytecode provider name : javassist
19:30:56,521  INFO Environment:265 - using JDK 1.4 java.sql.Timestamp
handling
19:30:56,550  INFO Version:286 - Hibernate EntityManager 3.4.0.GA
19:30:56,850  INFO AnnotationBinder:286 - Binding entity from annotated
class: org.ekkehard.abc.entityData.container.Container
19:30:56,866  INFO EntityBinder:308 - Bind entity
org.ekkehard.abc.entityData.container.Container on table CONTAINER
19:30:56,928  INFO AnnotationBinder:286 - Binding entity from annotated
class: org.ekkehard.abc.entityData.adresse.Adresse
19:30:56,930  INFO EntityBinder:308 - Bind entity
org.ekkehard.abc.entityData.adresse.Adresse on table ADRESSE
19:30:56,972  INFO AnnotationBinder:286 - Binding entity from annotated
class: org.ekkehard.abc.entityData.adresse.Land
19:30:56,973  INFO EntityBinder:308 - Bind entity
org.ekkehard.abc.entityData.adresse.Land on table LAND
19:30:56,997  INFO AnnotationBinder:286 - Binding entity from annotated
class: org.ekkehard.abc.entityData.tabellen.basis.Nummernkreis
19:30:56,998  INFO EntityBinder:308 - Bind entity
org.ekkehard.abc.entityData.tabellen.basis.Nummernkreis on table
NUMMERNKREIS
19:30:57,027  INFO AnnotationBinder:286 - Binding entity from annotated
class: org.ekkehard.abc.entityData.mitarbeiter.Mitarbeiter
19:30:57,029  INFO EntityBinder:308 - Bind entity
org.ekkehard.abc.entityData.mitarbeiter.Mitarbeiter on table MITARBEITER
19:30:57,081  INFO AnnotationBinder:286 - Binding entity from annotated
class: org.ekkehard.abc.entityData.mitarbeiter.Fahrer
19:30:57,189  INFO AnnotationBinder:286 - Binding entity from annotated
class: org.ekkehard.abc.entityData.mitarbeiter.User
19:30:57,239  INFO Version:286 - Hibernate Validator 3.1.0.CR2
19:30:57,328  INFO ConnectionProviderFactory:265 - Initializing
connection provider:
org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider
19:30:57,331  INFO InjectedDataSourceConnectionProvider:265 - Using
provided datasource
19:30:57,338  INFO SettingsFactory:265 - RDBMS: HSQL Database Engine,
version: 1.8.0
19:30:57,338  INFO SettingsFactory:265 - JDBC driver: HSQL Database
Engine Driver, version: 1.8.0
19:30:57,346  INFO Dialect:265 - Using dialect:
org.hibernate.dialect.HSQLDialect
19:30:57,348  INFO TransactionFactoryFactory:265 - Transaction strategy:
org.hibernate.ejb.transaction.JoinableCMTTransactionFactory
19:30:57,351  INFO TransactionManagerLookupFactory:265 - instantiating
TransactionManagerLookup:
org.hibernate.transaction.JOTMTransactionManagerLookup
19:30:57,351  INFO TransactionManagerLookupFactory:265 - instantiated
TransactionManagerLookup
19:30:57,352  INFO SettingsFactory:265 - Automatic flush during
beforeCompletion(): disabled
19:30:57,352  INFO SettingsFactory:265 - Automatic session close at end
of transaction: disabled
19:30:57,352  INFO SettingsFactory:265 - JDBC batch size: 15
19:30:57,352  INFO SettingsFactory:265 - JDBC batch updates for
versioned data: disabled
19:30:57,353  INFO SettingsFactory:265 - Scrollable result sets: enabled
19:30:57,353  INFO SettingsFactory:265 - JDBC3 getGeneratedKeys(): disabled
19:30:57,354  INFO SettingsFactory:265 - Connection release mode: auto
19:30:57,354  INFO SettingsFactory:265 - Default batch fetch size: 1
19:30:57,354  INFO SettingsFactory:265 - Generate SQL with comments:
disabled
19:30:57,355  INFO SettingsFactory:265 - Order SQL updates by primary
key: disabled
19:30:57,355  INFO SettingsFactory:265 - Order SQL inserts for batching:
disabled
19:30:57,355  INFO SettingsFactory:265 - Query translator:
org.hibernate.hql.ast.ASTQueryTranslatorFactory
19:30:57,358  INFO ASTQueryTranslatorFactory:265 - Using
ASTQueryTranslatorFactory
19:30:57,358  INFO SettingsFactory:265 - Query language substitutions: {}
19:30:57,358  INFO SettingsFactory:265 - JPA-QL strict compliance: enabled
19:30:57,358  INFO SettingsFactory:265 - Second-level cache: enabled
19:30:57,359  INFO SettingsFactory:265 - Query cache: disabled
19:30:57,360  INFO SettingsFactory:265 - Cache region factory :
org.hibernate.cache.impl.bridge.RegionFactoryCacheProviderBridge
19:30:57,362  INFO RegionFactoryCacheProviderBridge:265 - Cache
provider: org.hibernate.cache.HashtableCacheProvider
19:30:57,364  INFO SettingsFactory:265 - Optimize cache for minimal
puts: disabled
19:30:57,364  INFO SettingsFactory:265 - Structured second-level cache
entries: disabled
19:30:57,366  INFO SettingsFactory:265 - Echoing all SQL to stdout
19:30:57,367  INFO SettingsFactory:265 - Statistics: disabled
19:30:57,368  INFO SettingsFactory:265 - Deleted entity synthetic
identifier rollback: disabled
19:30:57,368  INFO SettingsFactory:265 - Default entity-mode: pojo
19:30:57,368  INFO SettingsFactory:265 - Named query checking : enabled
19:30:57,392  INFO Version:286 - Hibernate Search 3.1.0.Beta1
19:30:57,421  INFO SessionFactoryImpl:265 - building session factory
19:30:57,487 ERROR BasicLazyInitializer:535 - Javassist Enhancement
failed: org.ekkehard.abc.entityData.mitarbeiter.User


Re: Re: trunk not working?

by peterd :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Florent,

First, thanks for your reply.

> There are automatic tests of the examples in EasyBeans maven process  
> by testing examples on Apache Felix and Eclipse Equinox and they're  
> working.
> http://forge.ow2.org/bamboo/browse/EZB-OSGI/latest

- Bamboo reports (on this link) 0 tests in total??
- If i run mvn test, i don't see any test being executed either.
So i'm afraid i don't get it....   Which tests are you refering too?

> Do you have provided slf4j bundles ?
No, not yet.
I read your mail that warned about this, but i couldn't figure out  
which slf4j bundles to install. Moreover, if all bundle dependencies  
are satisfied, i assumed that a missing logging implementation would  
not cause beans from being deployed.

Please let me know which slf4j bundles i should install and i'll try  
again.
I tried with ow2-bundles/externals/slf4j/slf4j-jdk14/target/ow2-
bundles-externals-slf4j-jdk14-1.0.8-SNAPSHOT.jar
but that makes no difference.

Regards,
Peter



>
>
> Regards,
>
> Florent
>
> peter.doornbosch wrote:
>> Hi,
>>
>> I just downloaded the latest version from the trunk, but i can't  
>> get the samples to work. The bundles start, but no beans seem to be  
>> deployed. For example, when requesting the services registered by  
>> the sample bundles, there is nothing - i suppose there still has to  
>> be at least an org.ow2.easybeans.api.EZBContainer service for an  
>> bundle that contains EJB's...
>>
>> Any idea? Did i miss something?
>>
>> Regards,
>> Peter.
>>
>>
>>
>


Re: Re: Re: trunk not working?

by Florent BENOIT-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Yhanks Ekke and Peter,

I will look at this problem
I'm talking about itests/felix and itests/equinox tests

slf4j bundles should be provided in the assembly (api and jcl adapter)

Regards,

Florent



peter.doornbosch wrote:

> Hi Florent,
>
> First, thanks for your reply.
>
>> There are automatic tests of the examples in EasyBeans maven process
>> by testing examples on Apache Felix and Eclipse Equinox and they're
>> working.
>> http://forge.ow2.org/bamboo/browse/EZB-OSGI/latest
>
> - Bamboo reports (on this link) 0 tests in total??
> - If i run mvn test, i don't see any test being executed either.
> So i'm afraid i don't get it....   Which tests are you refering too?
>
>> Do you have provided slf4j bundles ?
> No, not yet.
> I read your mail that warned about this, but i couldn't figure out
> which slf4j bundles to install. Moreover, if all bundle dependencies
> are satisfied, i assumed that a missing logging implementation would
> not cause beans from being deployed.
>
> Please let me know which slf4j bundles i should install and i'll try
> again.
> I tried with
> ow2-bundles/externals/slf4j/slf4j-jdk14/target/ow2-bundles-externals-slf4j-jdk14-1.0.8-SNAPSHOT.jar
>
> but that makes no difference.
>
> Regards,
> Peter
>
>
>
>>
>>
>> Regards,
>>
>> Florent
>>
>> peter.doornbosch wrote:
>>> Hi,
>>>
>>> I just downloaded the latest version from the trunk, but i can't get
>>> the samples to work. The bundles start, but no beans seem to be
>>> deployed. For example, when requesting the services registered by
>>> the sample bundles, there is nothing - i suppose there still has to
>>> be at least an org.ow2.easybeans.api.EZBContainer service for an
>>> bundle that contains EJB's...
>>>
>>> Any idea? Did i miss something?
>>>
>>> Regards,
>>> Peter.
>>>
>>>
>>>
>>
>
>
>


Re: trunk not working?

by ekke :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Florent BENOIT schrieb:
> Yhanks Ekke and Peter,
>
> I will look at this problem

THANKS
I want to base my example project on the newest snapshot

> I'm talking about itests/felix and itests/equinox tests
>
> slf4j bundles should be provided in the assembly (api and jcl adapter)
>

if you rely on bundles from SpringSource Enterprise Bundle Repository
plase watch
https://issuetracker.springsource.com/browse/BRITS-163

ekke

> Regards,
>
> Florent
>
>
>
> peter.doornbosch wrote:
>> Hi Florent,
>>
>> First, thanks for your reply.
>>
>>> There are automatic tests of the examples in EasyBeans maven process
>>> by testing examples on Apache Felix and Eclipse Equinox and they're
>>> working.
>>> http://forge.ow2.org/bamboo/browse/EZB-OSGI/latest
>>
>> - Bamboo reports (on this link) 0 tests in total??
>> - If i run mvn test, i don't see any test being executed either.
>> So i'm afraid i don't get it....   Which tests are you refering too?
>>
>>> Do you have provided slf4j bundles ?
>> No, not yet.
>> I read your mail that warned about this, but i couldn't figure out
>> which slf4j bundles to install. Moreover, if all bundle dependencies
>> are satisfied, i assumed that a missing logging implementation would
>> not cause beans from being deployed.
>>
>> Please let me know which slf4j bundles i should install and i'll try
>> again.
>> I tried with
>> ow2-bundles/externals/slf4j/slf4j-jdk14/target/ow2-bundles-externals-slf4j-jdk14-1.0.8-SNAPSHOT.jar
>>
>> but that makes no difference.
>>
>> Regards,
>> Peter
>>
>>
>>
>>>
>>>
>>> Regards,
>>>
>>> Florent
>>>
>>> peter.doornbosch wrote:
>>>> Hi,
>>>>
>>>> I just downloaded the latest version from the trunk, but i can't get
>>>> the samples to work. The bundles start, but no beans seem to be
>>>> deployed. For example, when requesting the services registered by
>>>> the sample bundles, there is nothing - i suppose there still has to
>>>> be at least an org.ow2.easybeans.api.EZBContainer service for an
>>>> bundle that contains EJB's...
>>>>
>>>> Any idea? Did i miss something?
>>>>
>>>> Regards,
>>>> Peter.
>>>>
>>>>
>>>>
>>>
>>
>>
>>
>
>


Re: Re: Re: Re: trunk not working?

by peterd :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Florent,

> I'm talking about itests/felix and itests/equinox tests

Aah, right.
When i run these, i get 8 failures out of 10.
Log shows a
java.lang.NoSuchMethodError:  
org
.ow2
.easybeans
.deployment
.metadata.ejbjar.EjbJarClassMetadata.getStandardMethodMetadata(Lorg/
ow2/util/scan/api/metadata/structures/JMethod;)Lorg/ow2/util/ee/
metadata/ejbjar/api/IEjbJarMethodMetadata;

> slf4j bundles should be provided in the assembly (api and jcl adapter)

Ok, got them now, thanks for clarifying this.
No difference though...

Regards,
Peter

>
>
> Regards,
>
> Florent
>
>
>
> peter.doornbosch wrote:
>> Hi Florent,
>>
>> First, thanks for your reply.
>>
>>> There are automatic tests of the examples in EasyBeans maven  
>>> process by testing examples on Apache Felix and Eclipse Equinox  
>>> and they're working.
>>> http://forge.ow2.org/bamboo/browse/EZB-OSGI/latest
>>
>> - Bamboo reports (on this link) 0 tests in total??
>> - If i run mvn test, i don't see any test being executed either.
>> So i'm afraid i don't get it....   Which tests are you refering too?
>>
>>> Do you have provided slf4j bundles ?
>> No, not yet.
>> I read your mail that warned about this, but i couldn't figure out  
>> which slf4j bundles to install. Moreover, if all bundle  
>> dependencies are satisfied, i assumed that a missing logging  
>> implementation would not cause beans from being deployed.
>>
>> Please let me know which slf4j bundles i should install and i'll  
>> try again.
>> I tried with ow2-bundles/externals/slf4j/slf4j-jdk14/target/ow2-
>> bundles-externals-slf4j-jdk14-1.0.8-SNAPSHOT.jar
>> but that makes no difference.
>>
>> Regards,
>> Peter
>>
>>
>>
>>>
>>>
>>> Regards,
>>>
>>> Florent
>>>
>>> peter.doornbosch wrote:
>>>> Hi,
>>>>
>>>> I just downloaded the latest version from the trunk, but i can't  
>>>> get the samples to work. The bundles start, but no beans seem to  
>>>> be deployed. For example, when requesting the services registered  
>>>> by the sample bundles, there is nothing - i suppose there still  
>>>> has to be at least an org.ow2.easybeans.api.EZBContainer service  
>>>> for an bundle that contains EJB's...
>>>>
>>>> Any idea? Did i miss something?
>>>>
>>>> Regards,
>>>> Peter.
>>>>
>>>>
>>>>
>>>
>>
>>
>>
>


Re: Re: Re: Re: Re: trunk not working?

by Florent BENOIT-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

    Hi Peter,

> Aah, right.
> When i run these, i get 8 failures out of 10.
> Log shows a
> java.lang.NoSuchMethodError:
> org.ow2.easybeans.deployment.metadata.ejbjar.EjbJarClassMetadata.getStandardMethodMetadata(Lorg/ow2/util/scan/api/metadata/structures/JMethod;)Lorg/ow2/util/ee/metadata/ejbjar/api/IEjbJarMethodMetadata;
>
>

These classes have been updated and we're using updated snapshots of the
OW2 Util projects.
Do you have changed something in the dependencies ? or if you've also
ow2-util source code, update it.

Regards,

Florent


Re: Re: trunk not working?

by Florent BENOIT-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

    Hi ekke,

Do you have a sample in order to reproduce the error because I can run
many examples smoothly.
I've double checked, the javassist.util.proxy package is
imported/exported, the classes are in the bundle, etc.

What is present in the META-INF/MANIFEST.MF file of your bundle ? Do you
have imports on the javassist. package ?

Regards,

Florent

ekke wrote:

> Hi Florent,
>
> I also get errors using 1.1.0 2008-09-10
> of course I added slf4j
>
> using 2008-08-21 all runs well
>
> ekke
>
> I got stacks like this:
>
> 19:30:57,487 ERROR BasicLazyInitializer:535 - Javassist Enhancement
> failed: org.ekkehard.abc.entityData.mitarbeiter.User
> java.lang.RuntimeException: by java.lang.NoClassDefFoundError:
> javassist/util/proxy/ProxyObject
>     at
> javassist.util.proxy.ProxyFactory.createClass3(ProxyFactory.java:342)
>     at
> javassist.util.proxy.ProxyFactory.createClass2(ProxyFactory.java:312)
>     at
> javassist.util.proxy.ProxyFactory.createClass(ProxyFactory.java:271)
>     at
> org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.getProxyFactory(JavassistLazyInitializer.java:162)
>
>     at
> org.hibernate.proxy.pojo.javassist.JavassistProxyFactory.postInstantiate(JavassistProxyFactory.java:66)
>
>     at
> org.hibernate.tuple.entity.PojoEntityTuplizer.buildProxyFactory(PojoEntityTuplizer.java:183)
>
>     at
> org.hibernate.tuple.entity.AbstractEntityTuplizer.<init>(AbstractEntityTuplizer.java:158)
>
>     at
> org.hibernate.tuple.entity.PojoEntityTuplizer.<init>(PojoEntityTuplizer.java:76)
>
>     at
> org.hibernate.tuple.entity.EntityEntityModeToTuplizerMapping.<init>(EntityEntityModeToTuplizerMapping.java:80)
>
>     at
> org.hibernate.tuple.entity.EntityMetamodel.<init>(EntityMetamodel.java:325)
>
>     at
> org.hibernate.persister.entity.AbstractEntityPersister.<init>(AbstractEntityPersister.java:457)
>
>     at
> org.hibernate.persister.entity.SingleTableEntityPersister.<init>(SingleTableEntityPersister.java:131)
>
>     at
> org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:84)
>
>     at
> org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:261)
>     at
> org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1327)
>
>     at
> org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867)
>
>     at
> org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:669)
>
>     at
> org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:132)
>
>     at
> org.ow2.easybeans.persistence.JPersistenceContext.init(JPersistenceContext.java:72)
>
>     at
> org.ow2.easybeans.persistence.JPersistenceContext.<init>(JPersistenceContext.java:65)
>
>     at
> org.ow2.easybeans.persistence.PersistenceUnitManager.addExtraPersistenceUnitInfos(PersistenceUnitManager.java:88)
>
>     at
> org.ow2.easybeans.persistence.PersistenceUnitManager.<init>(PersistenceUnitManager.java:64)
>
>     at
> org.ow2.easybeans.persistence.xml.PersistenceXmlFileAnalyzer.analyzePersistenceXmlFile(PersistenceXmlFileAnalyzer.java:143)
>
>     at
> org.ow2.easybeans.container.JContainer3.start(JContainer3.java:350)
>     at
> org.ow2.easybeans.osgi.ejbjar.Activator.startContainer(Activator.java:149)
>
>     at org.ow2.easybeans.osgi.ejbjar.Activator.start(Activator.java:101)
>     at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:1009)
>
>     at java.security.AccessController.doPrivileged(Native Method)
>     at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:1003)
>
>     at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:984)
>
>     at
> org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346)
>
>     at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:265)
>
>     at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:257)
>
>     at
> org.ekkehard.server.Activator$EasybeansServiceTracker.startEJBContainer(Activator.java:375)
>
>     at
> org.ekkehard.server.Activator$EasybeansServiceTracker.addingService(Activator.java:278)
>
>     at
> org.osgi.util.tracker.ServiceTracker$Tracked.trackAdding(ServiceTracker.java:1064)
>
>     at
> org.osgi.util.tracker.ServiceTracker$Tracked.track(ServiceTracker.java:1042)
>
>     at
> org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:975)
>
>     at
> org.eclipse.osgi.framework.internal.core.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:91)
>
>     at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:1248)
>
>     at
> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:211)
>
>     at
> org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:141)
>
>     at
> org.eclipse.osgi.framework.internal.core.Framework.publishServiceEventPrivileged(Framework.java:1563)
>
>     at
> org.eclipse.osgi.framework.internal.core.Framework.publishServiceEvent(Framework.java:1538)
>
>     at
> org.eclipse.osgi.framework.internal.core.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:122)
>
>     at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.createServiceRegistration(BundleContextImpl.java:666)
>
>     at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:617)
>
>     at
> org.ow2.easybeans.osgi.component.EZBComponentServiceFactory.updateMapsAndRegisterService(EZBComponentServiceFactory.java:219)
>
>     at
> org.ow2.easybeans.osgi.component.EZBComponentServiceFactory.updated(EZBComponentServiceFactory.java:198)
>
>     at
> org.eclipse.equinox.internal.cm.ManagedServiceFactoryTracker$2.run(ManagedServiceFactoryTracker.java:177)
>
>     at
> org.eclipse.equinox.internal.cm.SerializedTaskQueue$1.run(SerializedTaskQueue.java:36)
>
> Caused by: javassist.CannotCompileException: by
> java.lang.NoClassDefFoundError: javassist/util/proxy/ProxyObject
>     at javassist.util.proxy.FactoryHelper.toClass(FactoryHelper.java:165)
>     at
> javassist.util.proxy.ProxyFactory.createClass3(ProxyFactory.java:337)
>     ... 50 more
> Caused by: java.lang.NoClassDefFoundError:
> javassist/util/proxy/ProxyObject
>     at java.lang.ClassLoader.defineClass1(Native Method)
>     at java.lang.ClassLoader.defineClass(ClassLoader.java:675)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>
>     at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>
>     at java.lang.reflect.Method.invoke(Method.java:585)
>     at
> javassist.util.proxy.FactoryHelper.toClass2(FactoryHelper.java:177)
>     at javassist.util.proxy.FactoryHelper.toClass(FactoryHelper.java:159)
>     ... 51 more
> 19:30:57,493  WARN PojoEntityTuplizer:438 - could not create proxy
> factory for:org.ekkehard.abc.entityData.mitarbeiter.User
> org.hibernate.HibernateException: Javassist Enhancement failed:
> org.ekkehard.abc.entityData.mitarbeiter.User
>     at
> org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.getProxyFactory(JavassistLazyInitializer.java:169)
>
>     at
> org.hibernate.proxy.pojo.javassist.JavassistProxyFactory.postInstantiate(JavassistProxyFactory.java:66)
>
>     at
> org.hibernate.tuple.entity.PojoEntityTuplizer.buildProxyFactory(PojoEntityTuplizer.java:183)
>
>     at
> org.hibernate.tuple.entity.AbstractEntityTuplizer.<init>(AbstractEntityTuplizer.java:158)
>
>     at
> org.hibernate.tuple.entity.PojoEntityTuplizer.<init>(PojoEntityTuplizer.java:76)
>
>     at
> org.hibernate.tuple.entity.EntityEntityModeToTuplizerMapping.<init>(EntityEntityModeToTuplizerMapping.java:80)
>
>     at
> org.hibernate.tuple.entity.EntityMetamodel.<init>(EntityMetamodel.java:325)
>
>     at
> org.hibernate.persister.entity.AbstractEntityPersister.<init>(AbstractEntityPersister.java:457)
>
>     at
> org.hibernate.persister.entity.SingleTableEntityPersister.<init>(SingleTableEntityPersister.java:131)
>
>     at
> org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:84)
>
>     at
> org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:261)
>     at
> org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1327)
>
>     at
> org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867)
>
>     at
> org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:669)
>
>     at
> org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:132)
>
>     at
> org.ow2.easybeans.persistence.JPersistenceContext.init(JPersistenceContext.java:72)
>
>     at
> org.ow2.easybeans.persistence.JPersistenceContext.<init>(JPersistenceContext.java:65)
>
>     at
> org.ow2.easybeans.persistence.PersistenceUnitManager.addExtraPersistenceUnitInfos(PersistenceUnitManager.java:88)
>
>     at
> org.ow2.easybeans.persistence.PersistenceUnitManager.<init>(PersistenceUnitManager.java:64)
>
>     at
> org.ow2.easybeans.persistence.xml.PersistenceXmlFileAnalyzer.analyzePersistenceXmlFile(PersistenceXmlFileAnalyzer.java:143)
>
>     at
> org.ow2.easybeans.container.JContainer3.start(JContainer3.java:350)
>     at
> org.ow2.easybeans.osgi.ejbjar.Activator.startContainer(Activator.java:149)
>
>     at org.ow2.easybeans.osgi.ejbjar.Activator.start(Activator.java:101)
>     at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:1009)
>
>     at java.security.AccessController.doPrivileged(Native Method)
>     at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:1003)
>
>     at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:984)
>
>     at
> org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346)
>
>     at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:265)
>
>     at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:257)
>
>     at
> org.ekkehard.server.Activator$EasybeansServiceTracker.startEJBContainer(Activator.java:375)
>
>     at
> org.ekkehard.server.Activator$EasybeansServiceTracker.addingService(Activator.java:278)
>
>     at
> org.osgi.util.tracker.ServiceTracker$Tracked.trackAdding(ServiceTracker.java:1064)
>
>     at
> org.osgi.util.tracker.ServiceTracker$Tracked.track(ServiceTracker.java:1042)
>
>     at
> org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:975)
>
>     at
> org.eclipse.osgi.framework.internal.core.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:91)
>
>     at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:1248)
>
>     at
> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:211)
>
>     at
> org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:141)
>
>     at
> org.eclipse.osgi.framework.internal.core.Framework.publishServiceEventPrivileged(Framework.java:1563)
>
>     at
> org.eclipse.osgi.framework.internal.core.Framework.publishServiceEvent(Framework.java:1538)
>
>     at
> org.eclipse.osgi.framework.internal.core.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:122)
>
>     at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.createServiceRegistration(BundleContextImpl.java:666)
>
>     at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:617)
>
>     at
> org.ow2.easybeans.osgi.component.EZBComponentServiceFactory.updateMapsAndRegisterService(EZBComponentServiceFactory.java:219)
>
>     at
> org.ow2.easybeans.osgi.component.EZBComponentServiceFactory.updated(EZBComponentServiceFactory.java:198)
>
>     at
> org.eclipse.equinox.internal.cm.ManagedServiceFactoryTracker$2.run(ManagedServiceFactoryTracker.java:177)
>
>     at
> org.eclipse.equinox.internal.cm.SerializedTaskQueue$1.run(SerializedTaskQueue.java:36)
>
> Caused by: java.lang.RuntimeException: by
> java.lang.NoClassDefFoundError: javassist/util/proxy/ProxyObject
>     at
> javassist.util.proxy.ProxyFactory.createClass3(ProxyFactory.java:342)
>     at
> javassist.util.proxy.ProxyFactory.createClass2(ProxyFactory.java:312)
>     at
> javassist.util.proxy.ProxyFactory.createClass(ProxyFactory.java:271)
>     at
> org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.getProxyFactory(JavassistLazyInitializer.java:162)
>
>     ... 47 more
>
>
> Florent BENOIT schrieb:
>>    Hi peter,
>>
>> There are automatic tests of the examples in EasyBeans maven process
>> by testing examples on Apache Felix and Eclipse Equinox and they're
>> working.
>> http://forge.ow2.org/bamboo/browse/EZB-OSGI/latest
>>
>> Do you have provided slf4j bundles ?
>>
>> Regards,
>>
>> Florent
>>
>> peter.doornbosch wrote:
>>> Hi,
>>>
>>> I just downloaded the latest version from the trunk, but i can't get
>>> the samples to work. The bundles start, but no beans seem to be
>>> deployed. For example, when requesting the services registered by
>>> the sample bundles, there is nothing - i suppose there still has to
>>> be at least an org.ow2.easybeans.api.EZBContainer service for an
>>> bundle that contains EJB's...
>>>
>>> Any idea? Did i miss something?
>>>
>>> Regards,
>>> Peter.
>>>
>>>
>>>
>>
>>
>
>
>


Re: trunk not working?

by ekke :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

sorry - no small example at the moment
just in progress to create a sample project and server ;-)

if I copy back all bundles from 2008-08-21 all runs well


entities something like this:

Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: EntityData Plug-in
Bundle-SymbolicName: org.ekkehard.sample.entityData; singleton:=true
Bundle-Version: 1.0.0
Bundle-Vendor: org.ekkehard
Bundle-ActivationPolicy: lazy
Import-Package: javax.annotation,
  javax.naming,
  javax.persistence,
  org.apache.log4j;version="1.2.15",
  org.ekkehard.core,
  org.ekkehard.core.internationalization,
  org.hibernate.annotations,
  org.hibernate.criterion,
  org.hibernate.proxy
Export-Package: org.ekkehard.sample.entityData.adresse,
  org.ekkehard.sample.entityData.adresse.werte,
  org.ekkehard.sample.entityData.basis.werte,
 
org.ekkehard.sample.entityData.container;uses:="org.ekkehard.sample.entityData.tabellen.container",
 
org.ekkehard.sample.entityData.mitarbeiter;uses:="org.ekkehard.sample.entityData.adresse",
  org.ekkehard.sample.entityData.tabellen.basis,
  org.ekkehard.sample.entityData.tabellen.container,
  org.ekkehard.sample.entityData.util;uses:="org.ekkehard.core"
Bundle-RequiredExecutionEnvironment: J2SE-1.5

ejbs with interfaces something like this:

Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: DataManager Plug-in
Bundle-SymbolicName: org.ekkehard.sample.dataManager
Bundle-Version: 1.0.0
Bundle-Activator: org.ow2.easybeans.osgi.ejbjar.Activator
Bundle-Vendor: org.ekkehard
Import-Package: javax.annotation,
  javax.ejb;version="3.0.0",
  javax.interceptor;version="3.0.0",
  javax.naming,
  javax.persistence,
  org.apache.log4j;version="1.2.15",
  org.aspectj.runtime,
  org.eclipse.core.runtime,
  org.ekkehard.core,
  org.ekkehard.core.internationalization,
  org.ekkehard.sample.entityData.adresse,
  org.ekkehard.sample.entityData.adresse.werte,
  org.ekkehard.sample.entityData.basis.werte,
  org.ekkehard.sample.entityData.container,
  org.ekkehard.sample.entityData.mitarbeiter,
  org.ekkehard.sample.entityData.tabellen.basis,
  org.ekkehard.sample.entityData.tabellen.container,
  org.ekkehard.sample.entityData.util,
  org.hibernate.annotations,
  org.hibernate.criterion,
  org.hibernate.proxy,
  org.objectweb.carol.jndi.spi,
  org.osgi.framework,
  org.ow2.easybeans.osgi.ejbjar
Export-Package:
org.ekkehard.sample.dataManager.adresse;uses:="org.ekkehard.sample.dataManager.basis,org.ekkehard.sample.entityData.adresse",
  org.ekkehard.sample.dataManager.basis;uses:="javax.persistence",
 
org.ekkehard.sample.dataManager.container;uses:="org.ekkehard.sample.entityData.container,org.ekkehard.sample.dataManager.basis,org.ekkehard.sample.entityData.tabellen.container",
 
org.ekkehard.sample.dataManager.mitarbeiter;uses:="org.ekkehard.sample.dataManager.basis,org.ekkehard.sample.entityData.mitarbeiter",
 
org.ekkehard.sample.dataManager.tabellen.basis;uses:="org.ekkehard.sample.dataManager.basis,org.ekkehard.sample.entityData.tabellen.basis",
  org.ekkehard.sample.dataManager.util
Bundle-RequiredExecutionEnvironment: J2SE-1.5

Florent BENOIT schrieb:

>    Hi ekke,
>
> Do you have a sample in order to reproduce the error because I can run
> many examples smoothly.
> I've double checked, the javassist.util.proxy package is
> imported/exported, the classes are in the bundle, etc.
>
> What is present in the META-INF/MANIFEST.MF file of your bundle ? Do you
> have imports on the javassist. package ?
>
> Regards,
>
> Florent
>
> ekke wrote:
>> Hi Florent,
>>
>> I also get errors using 1.1.0 2008-09-10
>> of course I added slf4j
>>
>> using 2008-08-21 all runs well
>>
>> ekke
>>
>> I got stacks like this:
>>
>> 19:30:57,487 ERROR BasicLazyInitializer:535 - Javassist Enhancement
>> failed: org.ekkehard.abc.entityData.mitarbeiter.User
>> java.lang.RuntimeException: by java.lang.NoClassDefFoundError:
>> javassist/util/proxy/ProxyObject
>>     at
>> javassist.util.proxy.ProxyFactory.createClass3(ProxyFactory.java:342)
>>     at
>> javassist.util.proxy.ProxyFactory.createClass2(ProxyFactory.java:312)
>>     at
>> javassist.util.proxy.ProxyFactory.createClass(ProxyFactory.java:271)
>>     at
>> org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.getProxyFactory(JavassistLazyInitializer.java:162)
>>
>>     at
>> org.hibernate.proxy.pojo.javassist.JavassistProxyFactory.postInstantiate(JavassistProxyFactory.java:66)
>>
>>     at
>> org.hibernate.tuple.entity.PojoEntityTuplizer.buildProxyFactory(PojoEntityTuplizer.java:183)
>>
>>     at
>> org.hibernate.tuple.entity.AbstractEntityTuplizer.<init>(AbstractEntityTuplizer.java:158)
>>
>>     at
>> org.hibernate.tuple.entity.PojoEntityTuplizer.<init>(PojoEntityTuplizer.java:76)
>>
>>     at
>> org.hibernate.tuple.entity.EntityEntityModeToTuplizerMapping.<init>(EntityEntityModeToTuplizerMapping.java:80)
>>
>>     at
>> org.hibernate.tuple.entity.EntityMetamodel.<init>(EntityMetamodel.java:325)
>>
>>     at
>> org.hibernate.persister.entity.AbstractEntityPersister.<init>(AbstractEntityPersister.java:457)
>>
>>     at
>> org.hibernate.persister.entity.SingleTableEntityPersister.<init>(SingleTableEntityPersister.java:131)
>>
>>     at
>> org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:84)
>>
>>     at
>> org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:261)
>>     at
>> org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1327)
>>
>>     at
>> org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867)
>>
>>     at
>> org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:669)
>>
>>     at
>> org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:132)
>>
>>     at
>> org.ow2.easybeans.persistence.JPersistenceContext.init(JPersistenceContext.java:72)
>>
>>     at
>> org.ow2.easybeans.persistence.JPersistenceContext.<init>(JPersistenceContext.java:65)
>>
>>     at
>> org.ow2.easybeans.persistence.PersistenceUnitManager.addExtraPersistenceUnitInfos(PersistenceUnitManager.java:88)
>>
>>     at
>> org.ow2.easybeans.persistence.PersistenceUnitManager.<init>(PersistenceUnitManager.java:64)
>>
>>     at
>> org.ow2.easybeans.persistence.xml.PersistenceXmlFileAnalyzer.analyzePersistenceXmlFile(PersistenceXmlFileAnalyzer.java:143)
>>
>>     at
>> org.ow2.easybeans.container.JContainer3.start(JContainer3.java:350)
>>     at
>> org.ow2.easybeans.osgi.ejbjar.Activator.startContainer(Activator.java:149)
>>
>>     at org.ow2.easybeans.osgi.ejbjar.Activator.start(Activator.java:101)
>>     at
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:1009)
>>
>>     at java.security.AccessController.doPrivileged(Native Method)
>>     at
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:1003)
>>
>>     at
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:984)
>>
>>     at
>> org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346)
>>
>>     at
>> org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:265)
>>
>>     at
>> org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:257)
>>
>>     at
>> org.ekkehard.server.Activator$EasybeansServiceTracker.startEJBContainer(Activator.java:375)
>>
>>     at
>> org.ekkehard.server.Activator$EasybeansServiceTracker.addingService(Activator.java:278)
>>
>>     at
>> org.osgi.util.tracker.ServiceTracker$Tracked.trackAdding(ServiceTracker.java:1064)
>>
>>     at
>> org.osgi.util.tracker.ServiceTracker$Tracked.track(ServiceTracker.java:1042)
>>
>>     at
>> org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:975)
>>
>>     at
>> org.eclipse.osgi.framework.internal.core.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:91)
>>
>>     at
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:1248)
>>
>>     at
>> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:211)
>>
>>     at
>> org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:141)
>>
>>     at
>> org.eclipse.osgi.framework.internal.core.Framework.publishServiceEventPrivileged(Framework.java:1563)
>>
>>     at
>> org.eclipse.osgi.framework.internal.core.Framework.publishServiceEvent(Framework.java:1538)
>>
>>     at
>> org.eclipse.osgi.framework.internal.core.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:122)
>>
>>     at
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.createServiceRegistration(BundleContextImpl.java:666)
>>
>>     at
>> org.eclipse.osgi.framework.internal.core.BundleCont