Hi,
i am using objectdb (version 2.6.8) in embedded mode.
I deployed an .ear project in glassfish. When I attempt to call the database I get several exceptions. As an example consider the following short example:
[#|2016-06-02T14:19:38.393+0200|WARNING|glassfish3.1.2|javax.enterprise.system.core.classloading.com.sun.enterprise.loader|_ThreadID=192;_ThreadName=Thread-2;|LDR5204: Error : Request made to load class or resource [metamodel/PrimitiveValue.jdo] on an ASURLClassLoader instance that has already been shutdown. [ASURLClassLoader.done() called ON EarLibClassLoader : urlSet = [URLEntry : file:/usr/local/glassfish/glassfish/domains/dex/applications/metamodel-ear-1.0-SNAPSHOT/lib/commons-beanutils-1.8.3.jar, URLEntry : file:/usr/local/glassfish/glassfish/domains/dex/applications/metamodel-ear-1.0-SNAPSHOT/lib/commons-logging-1.2.jar, URLEntry : file:/usr/local/glassfish/glassfish/domains/dex/applications/metamodel-ear-1.0-SNAPSHOT/lib/guava-18.0.jar, URLEntry : file:/usr/local/glassfish/glassfish/domains/dex/applications/metamodel-ear-1.0-SNAPSHOT/lib/shiro-ehcache-1.2.4.jar, URLEntry : file:/usr/local/glassfish/glassfish/domains/dex/applications/metamodel-ear-1.0-SNAPSHOT/lib/slf4j-api-1.6.4.jar, URLEntry : file:/usr/local/glassfish/glassfish/domains/dex/applications/metamodel-ear-1.0-SNAPSHOT/lib/objectdb-2.6.8.jar, URLEntry : file:/usr/local/glassfish/glassfish/domains/dex/applications/metamodel-ear-1.0-SNAPSHOT/lib/metamodel-domain-1.0-SNAPSHOT.jar, URLEntry : file:/usr/local/glassfish/glassfish/domains/dex/applications/metamodel-ear-1.0-SNAPSHOT/lib/postgresql-8.4-702.jdbc4.jar, URLEntry : file:/usr/local/glassfish/glassfish/domains/dex/applications/metamodel-ear-1.0-SNAPSHOT/lib/ehcache-core-2.5.0.jar, URLEntry : file:/usr/local/glassfish/glassfish/domains/dex/applications/metamodel-ear-1.0-SNAPSHOT/lib/shiro-core-1.2.3.jar, URLEntry : file:/usr/local/glassfish/glassfish/domains/dex/applications/metamodel-ear-1.0-SNAPSHOT/lib/commons-lang-2.2.jar, URLEntry : file:/usr/local/glassfish/glassfish/domains/dex/applications/metamodel-ear-1.0-SNAPSHOT/lib/jamon-2.7.4.jar, URLEntry : file:/usr/local/glassfish/glassfish/domains/dex/applications/metamodel-ear-1.0-SNAPSHOT/lib/javaee-api-6.0.jar, URLEntry : file:/usr/local/glassfish/glassfish/domains/dex/applications/metamodel-ear-1.0-SNAPSHOT/lib/metamodel-ejb-1.0-SNAPSHOT.jar] doneCalled = false Parent -> org.glassfish.internal.api.DelegatingClassLoader@43de6a4f AT Thu Jun 02 14:19:14 CEST 2016 BY :java.lang.Throwable: printStackTraceToString at com.sun.enterprise.util.Print.printStackTraceToString(Print.java:639) at com.sun.enterprise.loader.ASURLClassLoader.done(ASURLClassLoader.java:211) at com.sun.enterprise.loader.ASURLClassLoader.preDestroy(ASURLClassLoader.java:179) at org.glassfish.javaee.full.deployment.EarClassLoader.preDestroy(EarClassLoader.java:114) at org.glassfish.deployment.common.DeploymentContextImpl.getClassLoader(DeploymentContextImpl.java:236) at org.glassfish.deployment.common.DeploymentContextImpl.getClassLoader(DeploymentContextImpl.java:186) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:450) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240) at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:389) at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:348)
It seems that objectdb is trying to load a .jdo file ("metamodel/PrimitiveValue.jdo"). I don't have such file on my classpath.
So my question is: how can I prevent objectdb to attempt to load such files ?
Many thanks