|
View:
New views
8 Messages
—
Rating Filter:
Alert me
|
|
|
Migrate 1.0.2 to 1.1.xHi,
with the EZB version 1.0.2 . I used a bundle with my EJB (Entity and Stateless). This bundle was started after all the EZB bundles. With this activator : org.ow2.easybeans.osgi.ejbjar.Activator and some imports packages of EZB bundles. It worked!! In the EZB version 1.1.x. When I started my EJB bundle, occurs this error ... Follow Below: 16/04/09 15:11:12 (I) Activator.startContainer : Creating Container from the Bundle Archive 'bundleentry://78/' 16/04/09 15:11:13 (W) ServerJNDIResolver.removeContainerResolver : Cannot remove the given container resolver as it is not present. org.osgi.framework.BundleException: Exception in org.ow2.easybeans.osgi.ejbjar.Activator.start() of bundle br.com.ejb. INFO - 15:11:13 [B: br.com.ejb] - BundleEvent STOPPED. at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:1028) 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.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._start(FrameworkCommandProvider.java:257) 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 org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.execute(FrameworkCommandInterpreter.java:150) at org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(FrameworkConsole.java:302) at org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(FrameworkConsole.java:287) at org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(FrameworkConsole.java:223) at java.lang.Thread.run(Thread.java:595) Caused by: java.lang.RuntimeException: org.ow2.easybeans.api.EZBContainerException: Cannot create deployable metadata 'br.com.ejb'. at org.ow2.easybeans.osgi.ejbjar.Activator.startContainer(Activator.java:170) at org.ow2.easybeans.osgi.ejbjar.Activator.start(Activator.java:105) 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) ... 14 more Caused by: org.ow2.easybeans.api.EZBContainerException: Cannot create deployable metadata 'br.com.ejb'. at org.ow2.easybeans.container.JContainer3.resolve(JContainer3.java:288) at org.ow2.easybeans.container.JContainer3.start(JContainer3.java:364) at org.ow2.easybeans.osgi.ejbjar.Activator.startContainer(Activator.java:155) ... 18 more Caused by: org.ow2.util.ee.deploy.api.deployable.metadata.DeployableMetadataException: Error during scan at org.ow2.util.ee.metadata.common.impl.AbsDeployableMetadataFactory.scan(AbsDeployableMetadataFactory.java:127) at org.ow2.util.ee.metadata.ejbjar.impl.EjbJarDeployableMetadataFactory.createDeployableMetadata(EjbJarDeployableMetadataFactory.java:261) at org.ow2.easybeans.deployment.Deployment.analyze(Deployment.java:154) at org.ow2.easybeans.container.JContainer3.resolve(JContainer3.java:278) ... 20 more Caused by: org.ow2.util.scan.api.ScanException: Error while analyzing file entry 'bundleresource://78/br/com/ejb/person/PersonManagerAPI.class' at org.ow2.util.scan.impl.ASMScannerImpl.scanClass(ASMScannerImpl.java:63) at org.ow2.util.ee.metadata.common.impl.AbsDeployableMetadataFactory.scan(AbsDeployableMetadataFactory.java:108) ... 23 more Caused by: java.lang.IllegalStateException: EjbJarAnnotationMetadata.addClassAnnotationMetadata.alreadyPresent at org.ow2.util.ee.metadata.ejbjar.impl.EjbJarDeployableMetadata.addScannedClassMetadata(EjbJarDeployableMetadata.java:138) at org.ow2.util.ee.metadata.ejbjar.impl.configurator.EjbJarClassMetadataConfigurator.configurationComplete(EjbJarClassMetadataConfigurator.java:217) at org.ow2.util.scan.impl.ScanClassVisitor.visitEnd(ScanClassVisitor.java:139) at org.ow2.util.asm.ClassReader.accept(Unknown Source) at org.ow2.util.asm.ClassReader.accept(Unknown Source) at org.ow2.util.scan.impl.ASMScannerImpl.scanClass(ASMScannerImpl.java:61) ... 24 more Nested Exception: java.lang.RuntimeException: org.ow2.easybeans.api.EZBContainerException: Cannot create deployable metadata 'br.com.ejb'. at org.ow2.easybeans.osgi.ejbjar.Activator.startContainer(Activator.java:170) at org.ow2.easybeans.osgi.ejbjar.Activator.start(Activator.java:105) 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.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._start(FrameworkCommandProvider.java:257) 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 org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.execute(FrameworkCommandInterpreter.java:150) at org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(FrameworkConsole.java:302) at org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(FrameworkConsole.java:287) at org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(FrameworkConsole.java:223) at java.lang.Thread.run(Thread.java:595) Caused by: org.ow2.easybeans.api.EZBContainerException: Cannot create deployable metadata 'br.com.ejb'. at org.ow2.easybeans.container.JContainer3.resolve(JContainer3.java:288) at org.ow2.easybeans.container.JContainer3.start(JContainer3.java:364) at org.ow2.easybeans.osgi.ejbjar.Activator.startContainer(Activator.java:155) ... 18 more Caused by: org.ow2.util.ee.deploy.api.deployable.metadata.DeployableMetadataException: Error during scan at org.ow2.util.ee.metadata.common.impl.AbsDeployableMetadataFactory.scan(AbsDeployableMetadataFactory.java:127) at org.ow2.util.ee.metadata.ejbjar.impl.EjbJarDeployableMetadataFactory.createDeployableMetadata(EjbJarDeployableMetadataFactory.java:261) at org.ow2.easybeans.deployment.Deployment.analyze(Deployment.java:154) at org.ow2.easybeans.container.JContainer3.resolve(JContainer3.java:278) ... 20 more Caused by: org.ow2.util.scan.api.ScanException: Error while analyzing file entry 'bundleresource://78/br/com/ejb/person/PersonManagerAPI.class' at org.ow2.util.scan.impl.ASMScannerImpl.scanClass(ASMScannerImpl.java:63) at org.ow2.util.ee.metadata.common.impl.AbsDeployableMetadataFactory.scan(AbsDeployableMetadataFactory.java:108) ... 23 more Caused by: java.lang.IllegalStateException: EjbJarAnnotationMetadata.addClassAnnotationMetadata.alreadyPresent at org.ow2.util.ee.metadata.ejbjar.impl.EjbJarDeployableMetadata.addScannedClassMetadata(EjbJarDeployableMetadata.java:138) at org.ow2.util.ee.metadata.ejbjar.impl.configurator.EjbJarClassMetadataConfigurator.configurationComplete(EjbJarClassMetadataConfigurator.java:217) at org.ow2.util.scan.impl.ScanClassVisitor.visitEnd(ScanClassVisitor.java:139) at org.ow2.util.asm.ClassReader.accept(Unknown Source) at org.ow2.util.asm.ClassReader.accept(Unknown Source) at org.ow2.util.scan.impl.ASMScannerImpl.scanClass(ASMScannerImpl.java:61) ... 24 more Nested Exception: 1) What is this error? 2) Should I make some import package? 3) what is the difference for the other version (1.0.2)? Regards Fernando |
|
|
Re: Migrate 1.0.2 to 1.1.xHi,
1) Someone Knows about this case? 2) Somebody help me? Cheers Fernando 2009/4/16 Fernando Freitas <nandows@...> Hi, |
|
|
Re: Migrate 1.0.2 to 1.1.xcontinuing...
with the same problem, yet! I tried to create and separate a bundle for the interfaces. Also, I used the annotations (@Remote) in the interfaces, but this had no effect.
I was reading in jira that the Ekke had a similar problem in the past.
All the EZB bundles are active. Can somebody help me? Best Regards PS: It was working on the 1.0.2 version. Follows Below The bundles that I am using.
id State Bundle 2009/4/17 Fernando Freitas <nandows@...> Hi, |
|
|
Re: Migrate 1.0.2 to 1.1.xfernando,
I have separated it using 1.1 too if you were at JAX conference you could see it live on friday at my session "HowTo build an OSGI-EJB3 Enterprise Server" if I'm back from conference I'll put some new informations in my blog next week regards ekke - live from jax ;-) Fernando Freitas schrieb: > continuing... > with the same problem, yet! > > I tried to create and separate a bundle for the interfaces. Also, I used > the annotations (@Remote) in the interfaces, but this had no effect. > > I was reading in jira that the Ekke had a similar problem in the past. > http://jira.easybeans.org/browse/EZB-283 > > All the EZB bundles are active. > > Can somebody help me? > > Best Regards > Fernando > > PS: It was working on the 1.0.2 version. > > > Follows Below > The bundles that I am using. > > > > id State Bundle > 0 ACTIVE org.eclipse.osgi_3.4.0.v20080529-1200 > Fragments=40 > 1 ACTIVE org.eclipse.equinox.common_3.4.0.v20080421-2006 > 2 ACTIVE org.eclipse.osgi.services_3.1.200.v20071203 > 3 ACTIVE com.ibm.icu_3.8.1.v20080402 > 4 RESOLVED javax.servlet_2.4.0.v200803061910 > 5 RESOLVED javax.servlet.jsp_2.0.0.v200803061910 > 6 RESOLVED org.apache.ant_1.7.0.v200803061910 > 7 RESOLVED org.apache.commons.el_1.0.0.v200803061811 > 8 RESOLVED org.apache.commons.logging_1.0.4.v200803061811 > 9 RESOLVED org.apache.felix.dependencymanager_1.1.0.10 > 10 RESOLVED org.apache.jasper_5.5.17.v200803061811 > 11 RESOLVED org.apache.lucene_1.9.1.v200803061811 > 12 RESOLVED org.apache.lucene.analysis_1.9.1.v200803061811 > 13 <<LAZY>> org.eclipse.ant.core_3.2.0.v20080529 > 14 RESOLVED org.eclipse.core.commands_3.4.0.I20080509-2000 > 15 ACTIVE org.eclipse.core.contenttype_3.3.0.v20080414 > 16 ACTIVE org.eclipse.core.databinding_1.1.0.I20080527-2000 > 17 ACTIVE org.eclipse.core.expressions_3.4.0.v20080530-1508 > 18 <<LAZY>> org.eclipse.core.filesystem_1.2.0.v20080421-1805 > Fragments=19 > 19 RESOLVED org.eclipse.core.filesystem.linux.x86_1.2.0.v20071207 > Master=18 > 20 ACTIVE org.eclipse.core.jobs_3.4.0.v20080512 > 21 ACTIVE > org.eclipse.core.runtime.compatibility.auth_3.2.100.v20070502 > 22 <<LAZY>> org.eclipse.core.resources_3.4.0.v20080528-1613 > Fragments=23 > 23 RESOLVED org.eclipse.core.resources.compatibility_3.4.0.v20071204 > Master=22 > 24 ACTIVE org.eclipse.core.runtime_3.4.0.v20080512 > 25 RESOLVED > org.eclipse.core.runtime.compatibility.registry_3.2.200.v20070717 > Master=39 > 26 <<LAZY>> org.eclipse.core.variables_3.2.100.v20080529-1300 > 27 ACTIVE org.eclipse.equinox.app_1.1.0.v20080421-2006 > 28 ACTIVE org.eclipse.equinox.cm_1.0.0.v20080509-1800 > 29 ACTIVE org.eclipse.equinox.ds_1.0.0.v20080427-0830 > 30 <<LAZY>> org.eclipse.equinox.http.jetty_1.1.0.v20080425 > 31 RESOLVED org.eclipse.equinox.http.registry_1.0.100.v20080427-0830 > 32 <<LAZY>> org.eclipse.equinox.http.servlet_1.0.100.v20080427-0830 > 33 <<LAZY>> org.eclipse.equinox.jsp.jasper_1.0.100.v20080427-0830 > 34 <<LAZY>> > org.eclipse.equinox.jsp.jasper.registry_1.0.0.v20080427-0830 > 35 RESOLVED org.eclipse.equinox.launcher_1.0.100.v20080509-1800 > Fragments=36 > 36 RESOLVED > org.eclipse.equinox.launcher.gtk.linux.x86_1.0.100.v20080509-1800 > Master=35 > 37 ACTIVE org.eclipse.equinox.log_1.1.0.v20080414 > 38 ACTIVE org.eclipse.equinox.preferences_3.2.200.v20080421-2006 > 39 ACTIVE org.eclipse.equinox.registry_3.4.0.v20080516-0950 > Fragments=25 > 40 RESOLVED org.eclipse.equinox.transforms.hook_1.0.0.v20080508-1815 > Master=0 > 41 ACTIVE org.eclipse.equinox.util_1.0.0.v20080414 > 42 ACTIVE org.eclipse.help_3.3.100.v20080515 > 43 ACTIVE org.eclipse.help.base_3.3.100.v20080528 > 44 <<LAZY>> org.eclipse.help.webapp_3.3.100.v20080528 > 45 ACTIVE org.eclipse.help.ui_3.3.100.v20080521 > 46 ACTIVE org.eclipse.jface_3.4.0.I20080528-2000 > 47 RESOLVED org.eclipse.jface.databinding_1.2.0.I20080515-2000a > 48 RESOLVED org.eclipse.swt_3.4.0.v3448 > Fragments=49 > 49 RESOLVED org.eclipse.swt.gtk.linux.x86_3.4.0.v3448 > Master=48 > 50 <<LAZY>> org.eclipse.ui.navigator_3.3.100.I20080530-1400 > 51 ACTIVE org.eclipse.ui.forms_3.3.100.v20080521 > 52 ACTIVE org.eclipse.ui_3.4.0.I20080530-1400 > 53 ACTIVE org.eclipse.ui.workbench_3.4.0.I20080530-1400 > 54 ACTIVE org.eclipse.update.configurator_3.2.200.v20080417 > 55 ACTIVE org.eclipse.osgi.source_3.4.0.v20080529-1200 > 56 RESOLVED org.mortbay.jetty_5.1.14.v200804221617 > 57 ACTIVE > org.ow2.bundles.ow2-bundles-externals-commons-logging_1.0.12 > 58 ACTIVE > org.ow2.bundles.ow2-bundles-externals-commons-modeler_1.0.12 > 59 ACTIVE org.ow2.bundles.ow2-bundles-externals-slf4j-jcl_1.0.12 > 60 ACTIVE org.ow2.bundles.ow2-util-event-api_1.0.12 > 61 ACTIVE org.ow2.bundles.ow2-util-event-impl_1.0.12 > 62 ACTIVE org.ow2.bundles.ow2-util-jmx-api_1.0.12 > 63 ACTIVE org.ow2.bundles.ow2-util-jmx-impl_1.0.12 > 64 ACTIVE org.ow2.easybeans.agent_1.1.0.RC1 > 65 ACTIVE org.ow2.easybeans.component.carol_1.1.0.RC1 > 66 ACTIVE org.ow2.easybeans.component.event_1.1.0.RC1 > 67 ACTIVE org.ow2.easybeans.component.hsqldb_1.1.0.RC1 > 68 ACTIVE org.ow2.easybeans.component.jdbcpool_1.1.0.RC1 > 69 ACTIVE org.ow2.easybeans.component.jmx_1.1.0.RC1 > 70 ACTIVE org.ow2.easybeans.component.joram_1.1.0.RC1 > 71 ACTIVE org.ow2.easybeans.component.jotm_1.1.0.RC1 > 72 ACTIVE org.ow2.easybeans.component.quartz_1.1.0.RC1 > 73 ACTIVE org.ow2.easybeans.component.statistic_1.1.0.RC1 > 74 ACTIVE org.ow2.easybeans.core_1.1.0.RC1 > 75 ACTIVE br.com.startup_1.0.0 > 76 ACTIVE br.com.rcp_1.0.0 > 77 ACTIVE br.com.help.content_1.0.0 > 78 RESOLVED br.com.ejb_1.0.0 > > 2009/4/17 Fernando Freitas <nandows@... <mailto:nandows@...>> > > Hi, > > 1) Someone Knows about this case? > > 2) Somebody help me? > > Cheers > Fernando > > > 2009/4/16 Fernando Freitas <nandows@... > <mailto:nandows@...>> > > Hi, > with the EZB version 1.0.2 . I used a bundle with my EJB > (Entity and Stateless). > This bundle was started after all the EZB bundles. With this > activator : org.ow2.easybeans.osgi.ejbjar.Activator > and some imports packages of EZB bundles. It worked!! > > In the EZB version 1.1.x. When I started my EJB bundle, occurs > this error ... > Follow Below: > > > 16/04/09 15:11:12 (I) Activator.startContainer : Creating > Container from the Bundle Archive 'bundleentry://78/' > 16/04/09 15:11:13 (W) ServerJNDIResolver.removeContainerResolver > : Cannot remove the given container resolver as it is not present. > org.osgi.framework.BundleException: Exception in > org.ow2.easybeans.osgi.ejbjar.Activator.start() of bundle > br.com.ejb. > INFO - 15:11:13 [B: br.com.ejb] - BundleEvent STOPPED. > at > org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:1028) > 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.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._start(FrameworkCommandProvider.java:257) > 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 > org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.execute(FrameworkCommandInterpreter.java:150) > at > org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(FrameworkConsole.java:302) > at > org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(FrameworkConsole.java:287) > at > org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(FrameworkConsole.java:223) > at java.lang.Thread.run(Thread.java:595) > Caused by: java.lang.RuntimeException: > org.ow2.easybeans.api.EZBContainerException: Cannot create > deployable metadata 'br.com.ejb'. > at > org.ow2.easybeans.osgi.ejbjar.Activator.startContainer(Activator.java:170) > at > org.ow2.easybeans.osgi.ejbjar.Activator.start(Activator.java:105) > 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) > ... 14 more > Caused by: org.ow2.easybeans.api.EZBContainerException: Cannot > create deployable metadata 'br.com.ejb'. > at > org.ow2.easybeans.container.JContainer3.resolve(JContainer3.java:288) > at > org.ow2.easybeans.container.JContainer3.start(JContainer3.java:364) > at > org.ow2.easybeans.osgi.ejbjar.Activator.startContainer(Activator.java:155) > ... 18 more > Caused by: > org.ow2.util.ee.deploy.api.deployable.metadata.DeployableMetadataException: > Error during scan > at > org.ow2.util.ee.metadata.common.impl.AbsDeployableMetadataFactory.scan(AbsDeployableMetadataFactory.java:127) > at > org.ow2.util.ee.metadata.ejbjar.impl.EjbJarDeployableMetadataFactory.createDeployableMetadata(EjbJarDeployableMetadataFactory.java:261) > at > org.ow2.easybeans.deployment.Deployment.analyze(Deployment.java:154) > at > org.ow2.easybeans.container.JContainer3.resolve(JContainer3.java:278) > ... 20 more > Caused by: org.ow2.util.scan.api.ScanException: Error while > analyzing file entry > 'bundleresource://78/br/com/ejb/person/PersonManagerAPI.class' > at > org.ow2.util.scan.impl.ASMScannerImpl.scanClass(ASMScannerImpl.java:63) > at > org.ow2.util.ee.metadata.common.impl.AbsDeployableMetadataFactory.scan(AbsDeployableMetadataFactory.java:108) > ... 23 more > Caused by: java.lang.IllegalStateException: > EjbJarAnnotationMetadata.addClassAnnotationMetadata.alreadyPresent > at > org.ow2.util.ee.metadata.ejbjar.impl.EjbJarDeployableMetadata.addScannedClassMetadata(EjbJarDeployableMetadata.java:138) > at > org.ow2.util.ee.metadata.ejbjar.impl.configurator.EjbJarClassMetadataConfigurator.configurationComplete(EjbJarClassMetadataConfigurator.java:217) > at > org.ow2.util.scan.impl.ScanClassVisitor.visitEnd(ScanClassVisitor.java:139) > at org.ow2.util.asm.ClassReader.accept(Unknown Source) > at org.ow2.util.asm.ClassReader.accept(Unknown Source) > at > org.ow2.util.scan.impl.ASMScannerImpl.scanClass(ASMScannerImpl.java:61) > ... 24 more > Nested Exception: > java.lang.RuntimeException: > org.ow2.easybeans.api.EZBContainerException: Cannot create > deployable metadata 'br.com.ejb'. > at > org.ow2.easybeans.osgi.ejbjar.Activator.startContainer(Activator.java:170) > at > org.ow2.easybeans.osgi.ejbjar.Activator.start(Activator.java:105) > 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.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._start(FrameworkCommandProvider.java:257) > 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 > org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.execute(FrameworkCommandInterpreter.java:150) > at > org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(FrameworkConsole.java:302) > at > org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(FrameworkConsole.java:287) > at > org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(FrameworkConsole.java:223) > at java.lang.Thread.run(Thread.java:595) > Caused by: org.ow2.easybeans.api.EZBContainerException: Cannot > create deployable metadata 'br.com.ejb'. > at > org.ow2.easybeans.container.JContainer3.resolve(JContainer3.java:288) > at > org.ow2.easybeans.container.JContainer3.start(JContainer3.java:364) > at > org.ow2.easybeans.osgi.ejbjar.Activator.startContainer(Activator.java:155) > ... 18 more > Caused by: > org.ow2.util.ee.deploy.api.deployable.metadata.DeployableMetadataException: > Error during scan > at > org.ow2.util.ee.metadata.common.impl.AbsDeployableMetadataFactory.scan(AbsDeployableMetadataFactory.java:127) > at > org.ow2.util.ee.metadata.ejbjar.impl.EjbJarDeployableMetadataFactory.createDeployableMetadata(EjbJarDeployableMetadataFactory.java:261) > at > org.ow2.easybeans.deployment.Deployment.analyze(Deployment.java:154) > at > org.ow2.easybeans.container.JContainer3.resolve(JContainer3.java:278) > ... 20 more > Caused by: org.ow2.util.scan.api.ScanException: Error while > analyzing file entry > 'bundleresource://78/br/com/ejb/person/PersonManagerAPI.class' > at > org.ow2.util.scan.impl.ASMScannerImpl.scanClass(ASMScannerImpl.java:63) > at > org.ow2.util.ee.metadata.common.impl.AbsDeployableMetadataFactory.scan(AbsDeployableMetadataFactory.java:108) > ... 23 more > Caused by: java.lang.IllegalStateException: > EjbJarAnnotationMetadata.addClassAnnotationMetadata.alreadyPresent > at > org.ow2.util.ee.metadata.ejbjar.impl.EjbJarDeployableMetadata.addScannedClassMetadata(EjbJarDeployableMetadata.java:138) > at > org.ow2.util.ee.metadata.ejbjar.impl.configurator.EjbJarClassMetadataConfigurator.configurationComplete(EjbJarClassMetadataConfigurator.java:217) > at > org.ow2.util.scan.impl.ScanClassVisitor.visitEnd(ScanClassVisitor.java:139) > at org.ow2.util.asm.ClassReader.accept(Unknown Source) > at org.ow2.util.asm.ClassReader.accept(Unknown Source) > at > org.ow2.util.scan.impl.ASMScannerImpl.scanClass(ASMScannerImpl.java:61) > ... 24 more > Nested Exception: > > > > 1) What is this error? > 2) Should I make some import package? > 3) what is the difference for the other version (1.0.2)? > > > Regards > Fernando > > > > > > |
|
|
Re: Re: Migrate 1.0.2 to 1.1.xI'm just wanting to make, RCP + EZB (1.1.x for osgi), work.
It was working in 1.0.2 version. 1) Should be so difficult on version 1.1? Regards Fernando 2009/4/22 ekke <ekkehard@...> fernando, |
|
|
Re: Re: Migrate 1.0.2 to 1.1.xContinuing....
The 1.1.0 version works with the example : easybeans-examples-entitybean-1.1.0-RC1.jar Very good. So, I created a bundle with the same files (java class) of the the example. But , I still get the same problem. I will describe my scenario for that you can help me, better. 1) I create a bundle with these files: (the same of the example) "br.com.ejb" Employee.java SessionFacade.java SessionFacadeRemote.java 2) I am using this manifest : //-------------------------------- // Manifest //-------------------------------- Manifest-Version: 1.0 Bundle-ManifestVersion: 2 Bundle-Name: Ejb3 Plug-in Bundle-SymbolicName: br.com.ejb Bundle-Activator: org.ow2.easybeans.osgi.ejbjar.Activator Bundle-Version: 1.0.0 Bundle-RequiredExecutionEnvironment: J2SE-1.5 Import-Package: javax.annotation;version="1.0", javax.ejb;version="3.0", javax.interceptor;version="3.0", javax.naming, javax.persistence, org.ow2.easybeans.osgi.ejbjar Require-Bundle: org.ow2.easybeans.core //------------------------------------------------------- 3) I am using this persistence.xml file <?xml version="1.0" encoding="UTF-8"?> <persistence xmlns="http://java.sun.com/xml/ns/persistence" version="1.0"> <persistence-unit name="entity" transaction-type="JTA"> <provider></provider> <jta-data-source>jdbc_1</jta-data-source> <properties> <property name="hibernate.dialect" value="org.hibernate.dialect.HSQLDialect" /> <property name="hibernate.hbm2ddl.auto" value="create-drop"/> <property name="eclipselink.target-database" value="HSQL"/> <property name="eclipselink.ddl-generation" value="drop-and-create-tables"/> <property name="eclipselink.ddl-generation.output-mode" value="database"/> <property name="toplink.target-database" value="HSQL"/> <property name="toplink.ddl-generation" value="drop-and-create-tables"/> <property name="toplink.ddl-generation.output-mode" value="database"/> <property name="openjpa.jdbc.DBDictionary" value="hsql"/> <property name="openjpa.jdbc.SynchronizeMappings" value="buildSchema(ForeignKeys=true)"/> </properties> </persistence-unit> </persistence> //------------------------------------ a) What should I do to this works without problems? b) should I do something else? Thanks Fernando 2009/4/22 Fernando Freitas <nandows@...> I'm just wanting to make, RCP + EZB (1.1.x for osgi), work. |
|
|
Re: Re: Migrate 1.0.2 to 1.1.xDid you find a solution to this problem? I have just tried upgrading to 1.1.0.RC2 and am having the same problem.
|
|
|
Re: Re: Re: Migrate 1.0.2 to 1.1.xHello,
I am still doing tests and studying about this problem. At the moment , I am using a workaround for this problem. Follows below the steps that I am using for this workaround : 1) Create a new project > plug-in Development > Plug-in from existing JAR file 2) Select all bundles of version 1.1.0.RC1 or RC2. 3) In manifest file of this new project, export all packages 4) In your EJBs plug-in, add the line below in the manifest file (I have found this difference in the manifest of the example of the version 1.0.2). (With this steps , you can export without the "cycle" problem.) Build-Jdk: 1.5.0_15 5) Then, export your EJBs bundle. 6) Put this plugin in your target. It should work. --- Problems 1) Every time that you modify your bundle of ejbs , you must export it and replace it in your target. ------- If this doesn't work, let me know ! I am still a beginner in osgi framework. I'll try to do some research on it and I'll let you know if I find out anything. Regards Fernando 2009/5/6 simon_kelly <simongdkelly@...>
|
| Free embeddable forum powered by Nabble | Forum Help |