Milind Tendulkar wrote:

Thanks for the reply. Here's the .xinfo :

<?xml version="1.0"?>
<blockinfo>
 <block>
   <version>1.0.0</version>
 </block>
 <services>
   <service name="com.mycompany.runmode.MyComponent" version="1.0.1" />
 </services>
 <dependencies>
   <dependency>
   </dependency>
 </dependencies>
</blockinfo>

Here the MyComponent is a .class that is part of a jar. What could go wrong here?


As far as I can see - the <services> element looks fine. However - I would remove the <dependencies> element completely because it contains an invalid <dependency> element. My guess is that there is a bug in Phoenix on the exception report that is referencing service instead of dependency.


Steve.



Stephen McConnell <[EMAIL PROTECTED]> wrote:


Milind Tendulkar wrote:




Hi,

Here's the error received. Can anyone help?

Failed to create BlockInfo for Block named "MyComponent" from resource "com/mycompany/runmode/MyComponent.xinfo" (Reason: No attribute named "name" is associated with the configuration element "service" at -).




Sounds like the descriptor is not right. A service export declaration seems to be missing the name attribitue. Here is an example of a typical descriptor:





1.0 http://relaxng.org/ns/structure/1.0



name="org.apache.avalon.cornerstone.services.threads.ThreadManager"/>




Stephen.





Thanks in advance.




--------------------------------- Do you Yahoo!? Exclusive Video Premiere - Britney Spears








--


Stephen J. McConnell
mailto:[EMAIL PROTECTED]




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



Reply via email to