You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Zha Minjie <ma...@msn.com> on 2007/01/10 14:50:55 UTC
"Library 'contrib' not found in application namespace" when use Tree component
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!
-------------
白云偶尔遮住蓝天,但蓝天永远在白云之上。
_________________________________________________________________
免费下载 MSN Explorer: http://explorer.msn.com/lccn/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: "Library 'contrib' not found in application namespace" when use Tree compone
Posted by Zha Minjie <ma...@msn.com>.
Thanks! That's the problem. The servlet name is not the same as the name
for .application. It works now.
-------------
����ż����ס���죬��������Զ�ڰ���֮�ϡ�
>From: Ron Piterman <rp...@gmx.net>
>Reply-To: "Tapestry users" <us...@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!
> >
> > -------------
> > 白云偶尔遮住蓝天,但蓝天永远在白云之上�€�
> >
> > _________________________________________________________________
> > 免费下载 MSN Explorer: http://explorer.msn.com/lccn/
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>For additional commands, e-mail: users-help@tapestry.apache.org
>
_________________________________________________________________
������� MSN Explorer: http://explorer.msn.com/lccn/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: "Library 'contrib' not found in application namespace" when use Tree compone
Posted by Zha Minjie <ma...@msn.com>.
Thanks! That's the problem. The servlet name is not the same as the name
for .application. It works now.
-------------
����ż����ס���죬��������Զ�ڰ���֮�ϡ�
>From: Ron Piterman <rp...@gmx.net>
>Reply-To: "Tapestry users" <us...@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!
> >
> > -------------
> > 白云偶尔遮住蓝天,但蓝天永远在白云之上�€�
> >
> > _________________________________________________________________
> > 免费下载 MSN Explorer: http://explorer.msn.com/lccn/
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>For additional commands, e-mail: users-help@tapestry.apache.org
>
_________________________________________________________________
�������������ĵ����ʼ�ϵͳ�� MSN Hotmail�� http://www.hotmail.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: "Library 'contrib' not found in application namespace" when use
Tree component
Posted by Ron Piterman <rp...@gmx.net>.
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!
>
> -------------
> 白云偶尔遮住蓝天,但蓝天永远在白云之上。
>
> _________________________________________________________________
> 免费下载 MSN Explorer: http://explorer.msn.com/lccn/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org