Hello Steve,
I have another problem dealing with a classpath verification error. At the
present moment I get the following from Merlin and suspect that it may not
be accurate debug information:
---- Output ----
merlin:simulate:
merlin:prepare-context:
[echo] merlin.repository.local = C:\Documents and
Settings\Administrator/.ma
ven/repository
[DEBUG ] (kernel.logging): default priority: DEBUG
[DEBUG ] (kernel.logging): adding category: kernel, null
[DEBUG ] (kernel.context): logging system established
[DEBUG ] (kernel.context): setting runtime repository to: C:\Documents and
Sett
ings\Administrator\.maven\repository
[DEBUG ] (kernel.context): repository established: C:\Documents and
Settings\Ad
ministrator\.maven\repository
[DEBUG ] (kernel.logging): adding category: kernel, null
[DEBUG ] (kernel.context): model factory established
[DEBUG ] (kernel.logging): adding category: , null
[DEBUG ] (kernel.logging): adding category: , null
[DEBUG ] (classloader): base: ${user.dir}
[DEBUG ] (classloader): classpath:
[DEBUG ] (classloader.types): type install count: 0
[DEBUG ] (kernel): creating root containment context
[DEBUG ] (kernel): construction phase
[DEBUG ] (kernel): install phase
[INFO ] (kernel): installing: file:/${user.dir}/target/classes/
[DEBUG ] (): including composite block:
file:/C:/cygwin/home/Administrator/proj
ects/ldapd/HEAD/sandbox1/system-backend-impl/target/classes/BLOCK-INF/block.
xml
[DEBUG ] (): installing: server
[DEBUG ] (kernel.logging): adding category: server, null
[DEBUG ] (kernel.logging): adding category: server, null
[DEBUG ] (server.classloader): base: ${user.dir}
[DEBUG ] (server): implicit entries: 1
[DEBUG ] (server): repository declarations: 1
[DEBUG ] (server): repository 0 contains 15 entries.
[DEBUG ] (server.classloader): classpath:
file:/${user.dir}/target/classes/;fil
e:/C:/Documents and
Settings/Administrator/.maven/repository/avalon-framework/ja
rs/avalon-framework-SNAPSHOT.jar;file:/C:/Documents and
Settings/Administrator/.
maven/repository/commons-collections/jars/commons-collections-2.1.jar;file:/
C:/D
ocuments and
Settings/Administrator/.maven/repository/jdbm/jars/jdbm-0.20.jar;fi
le:/C:/Documents and
Settings/Administrator/.maven/repository/regexp/jars/regexp
-1.2.jar;file:/C:/Documents and
Settings/Administrator/.maven/repository/oro/jar
s/oro-2.0.7.jar;file:/C:/Documents and
Settings/Administrator/.maven/repository/
antlr/jars/antlr-2.7.2.jar;file:/C:/Documents and
Settings/Administrator/.maven/
repository/ldapd-common/jars/ldapd-common-SNAPSHOT.jar;file:/C:/Documents
and Se
ttings/Administrator/.maven/repository/ldapd-server/jars/schema-api-SNAPSHOT
.jar
;file:/C:/Documents and
Settings/Administrator/.maven/repository/ldapd-server/ja
rs/bootstrap-syntax-manager-SNAPSHOT.jar;file:/C:/Documents and
Settings/Adminis
trator/.maven/repository/ldapd-server/jars/bootstrap-matching-rule-manager-S
NAPS
HOT.jar;file:/C:/Documents and
Settings/Administrator/.maven/repository/ldapd-se
rver/jars/bootstrap-attribute-type-manager-SNAPSHOT.jar;file:/C:/Documents
and S
ettings/Administrator/.maven/repository/ldapd-server/jars/system-backend-imp
l-SN
APSHOT.jar;file:/C:/Documents and
Settings/Administrator/.maven/repository/ldapd
-server/jars/backend-api-SNAPSHOT.jar;file:/C:/Documents and
Settings/Administra
tor/.maven/repository/ldapd-server/jars/backend-database-spi-SNAPSHOT.jar;fi
le:/
C:/Documents and
Settings/Administrator/.maven/repository/ldapd-server/jars/back
end-database-impl-SNAPSHOT.jar
---- Output End ----
The backend-api-SNAPSHOT.jar file has the ldapd.server.AtomicBackend that
the ClassNotFoundException complains about below:
---- Output ----
[DEBUG ] (server.classloader.scanner): scanning:
file:/${user.dir}/target/class
es/
[WARN ] (server.classloader.scanner): Ignoring type due to verification
error:
ldapd.server.backend.SystemBackend
---- report -------------------------------------------------------
Exception: org.apache.avalon.composition.model.ModelException
Message: Cannot load service because the implementation class for service
[ldapd
.server.AtomicBackend] does not exist within the classloader.
Cause: java.lang.ClassNotFoundException
Message: ldapd.server.AtomicBackend
---- stack trace ---------------------------------------------------
java.lang.ClassNotFoundException: ldapd.server.AtomicBackend
at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at
org.apache.avalon.composition.model.impl.Scanner.getServiceClass(Scan
ner.java:565)
at
org.apache.avalon.composition.model.impl.Scanner.getServiceClasses(Sc
anner.java:505)
<snip-trace-and-rest-here/>
I checked the jar's contents the path to the maven repo (which everything
else works fine for). I know AtomicBackend is in the classpath. There has
got to be another class that is missing (my fault) that is causing this
trace. But if I could figure out which one it is the problem would not have
been posted. Can we make the verification report the missing class?
Alex