Thanks! That's the problem. The servlet name is not the same as the name for .application. It works now.

-------------
白云偶尔遮住蓝天,但蓝天永远在白云之上。




From: Ron Piterman <[EMAIL PROTECTED]>
Reply-To: "Tapestry users" <users@tapestry.apache.org>
To: users@tapestry.apache.org
Subject: Re: "Library 'contrib' not found in application namespace" when
use Tree component
Date: Wed, 10 Jan 2007 15:20:22 +0100

try to write some nonsence the application xml so it won't render (an
open <bla>), I would suspect it is not being referenced. then check that
tapestry servlet name is the same as the name you gave the .application

Cheers,
Ron


Zha Minjie wrote:
> Hi all:
>  I am trying to use Tree component in contrib library. My project name
> is TestTapestry. I put the contrib jar in my classpath, and I also
> create TestTapestry.application in WEB-INF direcotry:
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE application PUBLIC
> "-//Apache Software Foundation//Tapestry Specification 4.0//EN"
> "http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd";>
> <application>
>    <library id="con"
>
specification-path="classpath:/org/apache/tapestry/contrib/Contrib.library">

>
>
> </application>
>
> But, when I run the application, it still has:
> Library 'con' not found in application namespace.
> Stack Trace:
>
>    *
>
org.apache.tapestry.engine.Namespace.createNamespace(Namespace.java:290)
>    *
>
org.apache.tapestry.engine.Namespace.getChildNamespace(Namespace.java:148)
>    *
>
org.apache.tapestry.resolver.AbstractSpecificationResolver.findNamespaceForId(AbstractSpecificationResolver.java:204)

>
>
>    *
>
org.apache.tapestry.resolver.ComponentSpecificationResolverImpl.resolve(ComponentSpecificationResolverImpl.java:138)

>
>
>    *
>
$ComponentSpecificationResolver_1100c441ed6.resolve($ComponentSpecificationResolver_1100c441ed6.java)

>
>
>    *
>
$ComponentSpecificationResolver_1100c441ed7.resolve($ComponentSpecificationResolver_1100c441ed7.java)

>
> ...
>
> How can solve this?
> Thanks a lot!
>
> -------------
> ��戒����跺�����浣����澶╋��浣����澶╂案杩���ㄧ�戒��涔�涓��&#8364;�
>
> _________________________________________________________________
> ���璐逛��杞� MSN Explorer:   http://explorer.msn.com/lccn/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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


_________________________________________________________________
免费下载 MSN Explorer: http://explorer.msn.com/lccn/

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

Reply via email to