Hi All,

I am trying to use Merlin in embedded scenario.
I am having many components and have generated all the xinfos for them in
one particular location. The corresponding class files are generated in some
other folder structure.
In order to recognise these components, I specified the above location for
xinfos in the classloader
directive in block.xml (having the entries for all the components). But when
I run a test class
having the embedded Merlin, it gives me the following  exception :

org.apache.avalon.composition.model.TypeUnknownException:
Unable to locate a component type descriptor for the component class (xxx)
in the classloader.
Please verify that the component classname is correct and that a component
type descriptor is included
in a jar file available within the container classloader.

Going by the above statement, I zipped up all the xinfos in a jar file and
included it in the classpath
in the classloader directive. Now it is able to find out the type descriptor
but it starts giving me a different error:

org.apache.avalon.composition.model.ModelException: Cannot load component
type because the type class XXX does not exist in the classloader.
        at
org.apache.avalon.composition.model.impl.Scanner.getComponentClass(Scanner.j
ava:539)
        at
org.apache.avalon.composition.model.impl.Scanner.addType(Scanner.java:353)
        at
org.apache.avalon.composition.model.impl.Scanner.scanJarFile(Scanner.java:23
5)
        at
org.apache.avalon.composition.model.impl.Scanner.scanJarFileURL(Scanner.java
:216)

I also included the jar file(having the classes) in the classpath but it
still gives the same error.
I just have a hunch whether the xinfo and the particular class files should
be present in the same folder
since in all the tutorials I referred, I noticed that the xinfos and class
files are in the same folder and put in the same jar file?
Can someone give me a pointer to resolve this. I need it quite urgently.

Regards,
Harvinder


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to