> -----Original Message-----
> From: ixxus nexxus [mailto:[EMAIL PROTECTED]
> Sent: 10 November 2004 23:39
> To: [EMAIL PROTECTED]
> Subject: TypeUnknownException?
> 
> Hello,
> 
> I have an interface a.b.c.SomeService which defines a service. Now, I
> would like to replace the implementation in a.b.c.SomeServiceImpl with
my
> own implementation in x.y.z.SomeServiceImpl.
> 
> In my impl, I have the javadoc like this:
> 
> @avalon.component version="0.1" name="someService",
lifestyle=singleton"
> @avalon.service type="a.b.c.SomeService"
> 
> which is exactly the same as in the original implementation. I see the
> xinfo for my class is generated and is in the jar file. But when I try
to
> run the code, I see the exception
> 
> org.apache.avalon.composition.model.TypeUnknownException:Unable to
locate
> a component type descriptor for the component class
x.y.z.SomeServiceImpl
> 
> I am putting my implementation into the same jar as the original
> implementation. Is that ok? Does somebody know what I could be doing
> wrong? I am new to merlin.

>From the above information what seems to be happening is that a request
for the establishment of a component of the type
x.y.z.SomeServiceImpl.class is being made but when the container attempt
to get the Type definition there isn't one. This means that during the
initial model construction phase the process of scanning the jar files
in the block classpath did not result in the discovery of a resource
named /x/y/z/SomeServiceImpl.xinfo - or, it was discovered by the
corresponding class was not loadable.  In the second case you would get
a warning message saying that the component type was ignored and the
reason why.

Another way to isolate the problem is to turn on -debug mode and
following through the messages during the scanning phase to see what is
happening (or not happening).

It would also be interesting to know if you have the same problem when
running your component under Metro.

Cheers, Steve.


> 
> 
> Thank you.
> 
> 
> ---------------------------------
> Do you Yahoo!?
>  Check out the new Yahoo! Front Page. www.yahoo.com


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

Reply via email to