> From: Justin Fagnani-Bell [mailto:[EMAIL PROTECTED]]
> 
> Vadim,
> 
>    I'm having a problem getting my new language to work. I created my
own
> MarkupLanguage class, core-logicsheet, and added this to my
cocoon.xconf:
> 
>    <markup-languages>
>       <component-instance
class="com.company.package.XKOMarkupLanguage"
> name="xko">
>         <parameter name="prefix" value="xko"/>
>         <parameter name="uri" value="http://company.com/xko"/>
>         <target-language name="java">
>           <parameter name="core-logicsheet"
> value="resource://com/company/package/xko.xsl"/>
>         </target-language>
>       </component-instance>
> 
> and I'm getting this exception:
> 
> markup-languages: ComponentSelector could not access the Component for
> hint: xko

Can Cocoon access this class, com.company.package.XKOMarkupLanguage? It
(and all supporting classes) should be in the WEB-INF/lib or
WEB-INF/classes.

Try Class.forName("com.company.package.XKOMarkupLanguage") in any XSP
page.


> Any ideas? Does the name attribute for <component-instance> set the
> hint? If so then is my component not getting set for the right role? I
> don't know how that's done in Avalon, but I assume it's
> MarkupLanguage.ROLE that's used.

Yes.

Vadim 


> ProgramGeneratorImpl.java is what is causing the exception with this
> line:
> 
> markupLanguage =
> (MarkupLanguage)this.markupSelector.select(markupLanguageName);
> 
> Any help is appreciated,
>    Justin
> 
...


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

Reply via email to