Hi,
I tried the suggestion of using a different classloader for creating the
database, unfortunately that didn't help.
@Gabriel: Am I correct that adding this dependencies should be placed in
the configuration file? Because I didn't use it, since I just create an
in-memory instance.
So it could be that the problem is, that my OSGi container is too old to
support the class loading?
Kind regards
Felix
>>> <groupId>com.**orientechnologies</groupId>
>>> <artifactId>orient-commons</**artifactId>
>>> <type>bundle</type>
>>> <version>1.0</version>
>>> </dependency>
>>> <dependency>
>>> <groupId>com.**orientechnologies</groupId>
>>> <artifactId>orientdb-core</**artifactId>
>>> <type>bundle</type>
>>> <version>1.0</version>
>>> </dependency>
>>> running and also the same bundles are dependencies of my component. This
>>> configuration worked with 1.0rc8, but unfortunately now with 1.0 it doesn't
>>> work any more. Is there a new dependency added which need to be included?
>>>
>>> Kind regards
>>> Felix
>>>
>>> Am Dienstag, 15. Mai 2012 18:02:29 UTC+2 schrieb Lvc@:
>>>
>>>> Hi,
>>>> have you included the orient-common-1.0.jar in your classpath?
>>>>
>>>> Lvc@
>>>>
>>>> On 15 May 2012 16:35, Felix Mayerhuber
>>>>
>>>>> Hi @all,
>>>>>
>>>>>
>>>>> first, grats for releasing version 1.0.0 of this great project :-)
>>>>>
>>>>> I've upgraded to version 1.0.0 from 1.0.0rc8 but now I've problems
>>>>> starting my component containing the orientdb.
>>>>> My setup:
>>>>> one bundle has orient-commons and orientdb-core as dependencies. This
>>>>> two projects are installed in my OSGi environment and are running. When I
>>>>> now want to start my component, I get a ClassNotFoundException.
>>>>>
>>>>> Caused by: java.lang.**NoClassDefFoundError:
>>>>> com/orientechnologies/common/**util/OMultiKey
>>>>> at com.orientechnologies.orient.**core.index.**
>>>>> OIndexManagerAbstract.**areIndexed(**OIndexManagerAbstract.java:**307)
>>>>> at com.orientechnologies.orient.**core.index.OIndexManagerProxy.**
>>>>> areIndexed(OIndexManagerProxy.**java:104)
>>>>> at com.orientechnologies.orient.**core.metadata.schema.**
>>>>> OClassImpl.areIndexed(**OClassImpl.java:964)
>>>>> at com.orientechnologies.orient.**core.sql.**
>>>>> OCommandExecutorSQLSelect.**checkIndexExistence(**
>>>>> OCommandExecutorSQLSelect.**java:952)
>>>>> at com.orientechnologies.orient.**core.sql.**
>>>>> OCommandExecutorSQLSelect.**analyzeQueryBranch(**
>>>>> OCommandExecutorSQLSelect.**java:496)
>>>>> at com.orientechnologies.orient.**core.sql.**
>>>>> OCommandExecutorSQLSelect.**searchForIndexes(**
>>>>> OCommandExecutorSQLSelect.**java:388)
>>>>> at com.orientechnologies.orient.**core.sql.**
>>>>> OCommandExecutorSQLSelect.**searchInClasses(**
>>>>> OCommandExecutorSQLSelect.**java:372)
>>>>> at com.orientechnologies.orient.**core.sql.**
>>>>> OCommandExecutorSQLResultsetAb**stract.assignTarget(**
>>>>> OCommandExecutorSQLResultsetAb**stract.java:130)
>>>>> at com.orientechnologies.orient.**core.sql.**
>>>>> OCommandExecutorSQLSelect.**assignTarget(**OCommandExecutorSQLSelect.**
>>>>> java:220)
>>>>> at com.orientechnologies.orient.**core.sql.**
>>>>> OCommandExecutorSQLSelect.**executeSearch(**OCommandExecutorSQLSelect.*
>>>>> *java:206)
>>>>> at com.orientechnologies.orient.**core.sql.**
>>>>> OCommandExecutorSQLSelect.**execute(**OCommandExecutorSQLSelect.**
>>>>> java:196)
>>>>> at com.orientechnologies.orient.**core.sql.**
>>>>> OCommandExecutorSQLDelegate.**execute(**OCommandExecutorSQLDelegate.**
>>>>> java:54)
>>>>> at com.orientechnologies.orient.**core.storage.OStorageEmbedded.**
>>>>> command(OStorageEmbedded.java:**64)
>>>>> at com.orientechnologies.orient.**core.sql.query.OSQLQuery.run(**
>>>>> OSQLQuery.java:68)
>>>>> at com.orientechnologies.orient.**core.sql.query.OSQLSynchQuery.**
>>>>> run(OSQLSynchQuery.java:78)
>>>>> at com.orientechnologies.orient.**core.query.OQueryAbstract.**
>>>>> execute(OQueryAbstract.java:**30)
>>>>> at com.orientechnologies.orient.**core.metadata.security.**
>>>>> OSecurityShared.getRole(**OSecurityShared.java:129)
>>>>> at com.orientechnologies.orient.**core.metadata.security.**
>>>>> OSecurityShared.**createMetadata(**OSecurityShared.java:278)
>>>>> at com.orientechnologies.orient.**core.metadata.security.**
>>>>> OSecurityShared.create(**OSecurityShared.java:202)
>>>>> at com.orientechnologies.orient.**core.metadata.security.**
>>>>> OSecurityProxy.create(**OSecurityProxy.java:37)
>>>>> at com.orientechnologies.orient.**core.metadata.OMetadata.**
>>>>> create(OMetadata.java:68)
>>>>> at com.orientechnologies.orient.**core.db.record.**
>>>>> ODatabaseRecordAbstract.**create(**ODatabaseRecordAbstract.java:**171)
>>>>> at com.orientechnologies.orient.**core.db.**
>>>>> ODatabaseWrapperAbstract.**create(**ODatabaseWrapperAbstract.java:**53)
>>>>> at com.orientechnologies.orient.**core.db.**
>>>>> ODatabaseRecordWrapperAbstract**.create(**
>>>>> ODatabaseRecordWrapperAbstract**.java:54)
>>>>> at com.orientechnologies.orient.**core.db.graph.OGraphDatabase.**
>>>>> create(OGraphDatabase.java:86)
>>>>> at org.openengsb.core.ekb.**internal.EKBModelGraph.<init>(**
>>>>> EKBModelGraph.java:66)
>>>>> at org.openengsb.core.ekb.**internal.EKBModelGraph.**
>>>>> getInstance(EKBModelGraph.**java:51)
>>>>> at sun.reflect.**NativeMethodAccessorImpl.**invoke0(Native
>>>>> Method)[:1.6.0_30]
>>>>> at sun.reflect.**NativeMethodAccessorImpl.**invoke(**
>>>>> NativeMethodAccessorImpl.java:**39)[:1.6.0_30]
>>>>> at sun.reflect.**DelegatingMethodAccessorImpl.**invoke(**
>>>>> DelegatingMethodAccessorImpl.**java:25)[:1.6.0_30]
>>>>> at java.lang.reflect.Method.**invoke(Method.java:597)[:1.6.**0_30]
>>>>> at org.apache.aries.blueprint.**utils.ReflectionUtils.invoke(**
>>>>> ReflectionUtils.java:226)[10:**org.apache.aries.blueprint:0.**3.1]
>>>>> at org.apache.aries.blueprint.**container.BeanRecipe.invoke(**
>>>>> BeanRecipe.java:824)[10:org.**apache.aries.blueprint:0.3.1]
>>>>> at org.apache.aries.blueprint.**container.BeanRecipe.**
>>>>> getInstance(BeanRecipe.java:**249)[10:org.apache.aries.**
>>>>> blueprint:0.3.1]
>>>>> ... 22 more
>>>>> Caused by: java.lang.**ClassNotFoundException:
>>>>> com.orientechnologies.common.**util.OMultiKey not found by
>>>>> com.orientechnologies.**orientdb-core [160]
>>>>> at org.apache.felix.framework.**ModuleImpl.**
>>>>> findClassOrResourceByDelegatio**n(ModuleImpl.java:787)
>>>>> at org.apache.felix.framework.**ModuleImpl.access$400(**
>>>>> ModuleImpl.java:71)
>>>>> at org.apache.felix.framework.**ModuleImpl$ModuleClassLoader.**
>>>>> loadClass(ModuleImpl.java:**1768)
>>>>> at java.lang.ClassLoader.**loadClass(ClassLoader.java:**