Charles, Is it complicated for you to share a complete installation to let us test quickly?
- Romain Le 26 nov. 2011 13:52, "Charles Moulliard" <[email protected]> a écrit : > Hi Romain, > > Problem is solved. That was an import package issue related to a package > non > added by bnd tool during the creation of the MANIFEST.MF file. I have added > missing import packages like commons-dbcp, ... too and now I do not have > anymore an error coming from the BundleActivator class of > openejb-core-osgi. > > Nevertheless, I have a new error (that we already discuss it some months > ago > --> http://osdir.com/ml/dev.openejb.apache.org/2011-07/msg00024.html) > > raf-2.2.4/apps/camel-ejb-1.0.jar > 2011-11-26 10:37:15,806 | ERROR | FelixStartLevel | root > | pache.openejb.util.JuliLogStream 94 | - - | Application could not be > deployed: > > /Users/charlesmoulliard/MyApplications/apache-karaf-2.2.4/apps/camel-ejb-1.0.jar > javax.validation.ValidationException: Could not create Configuration. > at > > javax.validation.Validation$GenericBootstrapImpl.configure(Validation.java:175) > at > > org.apache.openejb.assembler.classic.ValidatorBuilder.getConfig(ValidatorBuilder.java:117)[128:org.apache.openejb.core:4.0.0.beta-2-SNAPSHOT] > at > > org.apache.openejb.assembler.classic.ValidatorBuilder.buildFactory(ValidatorBuilder.java:74)[128:org.apache.openejb.core:4.0.0.beta-2-SNAPSHOT] > at > > org.apache.openejb.assembler.classic.ValidatorBuilder.buildFactory(ValidatorBuilder.java:46)[128:org.apache.openejb.core:4.0.0.beta-2-SNAPSHOT] > at > > org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:577)[128:org.apache.openejb.core:4.0.0.beta-2-SNAPSHOT] > at > > org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:496)[128:org.apache.openejb.core:4.0.0.beta-2-SNAPSHOT] > at > > org.apache.openejb.assembler.classic.Assembler.buildContainerSystem(Assembler.java:406)[128:org.apache.openejb.core:4.0.0.beta-2-SNAPSHOT] > at > > org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:318)[128:org.apache.openejb.core:4.0.0.beta-2-SNAPSHOT] > at > > org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:130)[128:org.apache.openejb.core:4.0.0.beta-2-SNAPSHOT] > at > > org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:63)[128:org.apache.openejb.core:4.0.0.beta-2-SNAPSHOT] > at > > org.apache.openejb.OpenEJB.init(OpenEJB.java:276)[128:org.apache.openejb.core:4.0.0.beta-2-SNAPSHOT] > at > > org.apache.openejb.OpenEJB.init(OpenEJB.java:255)[128:org.apache.openejb.core:4.0.0.beta-2-SNAPSHOT] > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native > Method)[:1.6.0_29] > at > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)[:1.6.0_29] > at > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[:1.6.0_29] > at java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_29] > at > > org.apache.openejb.loader.OpenEJBInstance.init(OpenEJBInstance.java:36)[129:org.apache.openejb.loader:4.0.0.beta-2-SNAPSHOT] > at > > org.apache.openejb.core.osgi.impl.Activator.start(Activator.java:57)[148:org.apache.openejb.core-osgi:4.0.0.beta-2-SNAPSHOT] > at > > org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:629)[org.apache.felix.framework-3.0.9.jar:] > at > > org.apache.felix.framework.Felix.activateBundle(Felix.java:1842)[org.apache.felix.framework-3.0.9.jar:] > at > > org.apache.felix.framework.Felix.startBundle(Felix.java:1759)[org.apache.felix.framework-3.0.9.jar:] > at > > org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1163)[org.apache.felix.framework-3.0.9.jar:] > at > > org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264)[org.apache.felix.framework-3.0.9.jar:] > at java.lang.Thread.run(Thread.java:680)[:1.6.0_29] > Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 > at java.util.ArrayList.RangeCheck(ArrayList.java:547)[:1.6.0_29] > at java.util.ArrayList.get(ArrayList.java:322)[:1.6.0_29] > at > > javax.validation.Validation$GenericBootstrapImpl.configure(Validation.java:173) > ... 23 more > > and the following question came to me : > > Can we use OpenEJB like that on Karaf ? I mean that here I have created a > conf/openejb.xml directory and file + apps under karaf and deployed a ejb > jar in the directory of apps. > > Regards, > > Charles > Romain Manni-Bucau wrote > > > > Hi, > > > > did you deployed commons-dbcp and xbean? > > > > - Romain > > > > > > 2011/11/25 Charles Moulliard <cmoulliard@> > > > >> If somebody has an idea ;-) > >> > >> ---------- Forwarded message ---------- > >> From: Charles Moulliard <cmoulliard@> > >> Date: Fri, Nov 25, 2011 at 6:38 PM > >> Subject: Very strange issue > >> To: dev <[email protected]> > >> > >> > >> Hi, > >> > >> I have a very strange problem in this part of the code of openejb > >> using apache geronimo xbean > >> > >> My bundle imports/exports well the following package : > >> > >> karaf@root> packages:exports | grep org.apache.openejb.resource.jdbc > >> 128 org.apache.openejb.resource.jdbc; version=4.0.0.beta-2-SNAPSHOT > >> > >> karaf@root> packages:imports | grep org.apache.openejb.resource.jdbc > >> Apache OpenEJB :: Container :: Core (128): > >> org.apache.openejb.resource.jdbc; version=4.0.0.beta-2-SNAPSHOT > >> Apache OpenEJB :: Container :: Core (128): > >> org.apache.openejb.resource.jdbc; version=4.0.0.beta-2-SNAPSHOT > >> > >> but when Apache Xbean through org.apache.xbean.recipe.RecipeHelper > >> method is called > >> > >> public Class getType() { > >> if (typeClass != null || typeName != null) { > >> Class type = typeClass; > >> if (type == null) { > >> try { > >> type = RecipeHelper.loadClass(typeName); > >> } catch (ClassNotFoundException e) { > >> throw new ConstructionException("Type class could > >> not be found: " + typeName); > >> } > >> } > >> > >> return type; > >> } > >> > >> return null; > >> } > >> > >> --> > >> > >> public static Class loadClass(String name) throws > >> ClassNotFoundException { > >> ClassLoader classLoader = > >> ExecutionContext.getContext().getClassLoader(); > >> Class<?> type = Class.forName(name, true, classLoader); > >> return type; > >> } > >> > >> It generates the following error > >> > >> Caused by: org.apache.xbean.recipe.ConstructionException: Type class > >> could not be found: org.apache.openejb.resource.jdbc.DataSourceFactory > >> at > >> org.apache.xbean.recipe.ObjectRecipe.getType(ObjectRecipe.java:355) > >> at > >> > org.apache.xbean.recipe.ObjectRecipe.internalCreate(ObjectRecipe.java:266) > >> at > >> org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:96) > >> at > >> org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:61) > >> at > >> org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:49) > >> at > >> > org.apache.openejb.assembler.classic.Assembler.createResource(Assembler.java:1418) > >> at > >> > org.apache.openejb.assembler.classic.Assembler.buildContainerSystem(Assembler.java:395) > >> at > >> org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:318) > >> > >> See screenshot for the classloader used (felix) > >> http://cl.ly/1W2N083K3f0U022A151v > >> > >> Any hep is welcome ? > >> > >> Regards, > >> > >> Charles Moulliard > >> > >> Apache Committer > >> > >> Blog : http://cmoulliard.blogspot.com > >> Twitter : http://twitter.com/cmoulliard > >> Linkedin : http://www.linkedin.com/in/charlesmoulliard > >> Skype: cmoulliard > >> > > > > > -- > View this message in context: > http://openejb.979440.n4.nabble.com/Fwd-Very-strange-issue-tp4108198p4110285.html > Sent from the OpenEJB Dev mailing list archive at Nabble.com. >
