Hi experts out there, I have cocoon 2.1.3 with a small borrowing of the forest menu and link rewriting system. It runs great on Jetty. But when I do generate with -cli I get the following errors (on standard-out).
--------- stdout from offline generation ----------- ERROR 2004-02-05 16:24:30.119 [sitemap.] (): Error rewriting link 'site:product': Error accessing attribute 'product' from input module 'site'. null ERROR 2004-02-05 16:24:30.119 [sitemap.] (): Error rewriting link 'site:service-assessment': Error accessing attribute 'service-assessment' from input module 'site'. null ERROR 2004-02-05 16:24:30.129 [sitemap.] (): Error rewriting link 'site:service-training': Error accessing attribute ' service-training' from input module 'site'. null ERROR 2004-02-05 16:24:30.129 [sitemap.] (): Error rewriting link 'site:contact': Error accessing attribute 'contact' from input module 'site'. null ERROR 2004-02-05 16:24:30.129 [sitemap.] (): Error rewriting link 'site:pr20030627': Error accessing attribute 'pr2003 0627' from input module 'site'. null ERROR 2004-02-05 16:24:30.219 [sitemap.] (): Error rewriting link 'site:product': Error accessing attribute 'product' from input module 'site'. null ERROR 2004-02-05 16:24:30.219 [sitemap.] (): Error rewriting link 'site:service-assessment': Error accessing attribute 'service-assessment' from input module 'site'. null ERROR 2004-02-05 16:24:30.219 [sitemap.] (): Error rewriting link 'site:service-training': Error accessing attribute ' service-training' from input module 'site'. null ERROR 2004-02-05 16:24:30.219 [sitemap.] (): Error rewriting link 'site:contact': Error accessing attribute 'contact' from input module 'site'. null ERROR 2004-02-05 16:24:30.219 [sitemap.] (): Error rewriting link 'site:pr20030627': Error accessing attribute 'pr2003 0627' from input module 'site'. null ERROR 2004-02-05 16:24:30.319 [sitemap.] (): Error rewriting link 'site:product': Error accessing attribute 'product' from input module 'site'. null ---------------------------------------------------- The LinkRewriterTransformer offers the following code: ------ LinkRewriterTransformer.java ---------------- /** * Rewrite link in a set of attributes. * * @param oldAttrs Attributes containing unconverted link. * @param linkIndex index of link to convert * @param scheme URI scheme (indicating InputModule) of link * @param addr URI scheme of link * @return an Attributes based on <code>oldAttrs</code>, but with one attribute rewritten. */ private Attributes getLinkAttr(Attributes oldAttrs, int linkIndex, String scheme, String addr) { AttributesImpl newAttrs = new AttributesImpl(oldAttrs); try { String modValue = (String)modHelper.getAttribute(this.objectModel, getConf(scheme), scheme, addr, (badLinkStr!=null?badLinkStr:scheme+":"+addr)); newAttrs.setValue(linkIndex, modValue); } catch (org.apache.avalon.framework.CascadingRuntimeException e) { // Rethrow Configuration errors if (e.getCause() instanceof ConfigurationException) throw e;
// Swallow IM errors, usually prefixes like 'telnet' that aren't // bound to an InputModule. These should really be declared in // 'exclude-schemes', hence the 'error' classification of this log. getLogger().error("Error rewriting link '"+scheme+":"+addr+"': "+e.getMessage()); } return newAttrs; } ------------------------------------------------------- Does anyone have a glue, why in cli mode the LinkRewriter is not able to resolve the Module "site" as it does in online mode?
Did I miss something in the configuration?
Could that be an effect of Forest 0.5.1 using cocoon 2.1.2 and I'm
mixing it with 2.1.3?
I'd suggest asking on [EMAIL PROTECTED] They will know the LinkRewriter best.
Regards, Upayavira
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
