Day 2, still receiving exception... Cannot get simple component to render. I reviewed the path alignment from the application file down from within the war file. All appears to be in order.

Using Maven standard build

Here is the directory layout

src\main\webapp\WEB-INF\tap.proto.application
src\main\resources\proto\component\tap.proto.library
src\main\webapp\WEB-INF\proto\component\ShowMessages.jwc
src\main\webapp\WEB-INF\proto\component\ShowMessages.html
src\main\webapp\WEB-INF\proto\component\ShowError.jwc
src\main\webapp\WEB-INF\proto\component\ShowError.html
src\main\webapp\Login.html

Usage just after login form
<span jwcid="@ShowMessages"/>

Path Alignment appears to be relative according to the contents below.

I am going to tear apart contrib library and see how things are assembled there.

Any help is greatly appreciated.

---> Here is the *.application file
<application name="tap.proto">
   <meta key="org.apache.tapestry.page-class-packages" value="proto"/>
<meta key="org.apache.tapestry.component-class-packages" value="proto.component"/>

<library id="trails" specification-path="/org/trails/component/trails.library"/> <library id="contrib" specification-path="classpath:/org/apache/tapestry/contrib/Contrib.library"/>
   <library id="tacos" specification-path="/net/sf/tacos/Tacos.library"/>
<library id="tap.proto" specification-path="classes/proto/component/tap.proto.library"/>

<component-type type="ShowError" specification-path="/proto/component/ShowError.jwc"/> <component-type type="ShowMessages" specification-path="/proto/component/ShowMessages.jwc"/>
</application>

---> Here is the *.library file
<library-specification>
   <description>Prototype Component library</description>
<library id="trails" specification-path="/org/trails/component/trails.library"/> <library id="contrib" specification-path="/org/apache/tapestry/contrib/Contrib.library"/>
        <library id="tacos" specification-path="/net/sf/tacos/Tacos.library"/>
<meta key="org.apache.tapestry.component-class-packages" value="proto.component"/>
   <component-type type="ShowError" specification-path="ShowError.jwc"/>
<component-type type="ShowMessages" specification-path="ShowMessages.jwc"/>
</library-specification>

---> Here is the exception
[ +/- ] Exception: Component 'ShowMessages' not found in [EMAIL PROTECTED]<application>].
org.apache.hivemind.ApplicationRuntimeException
Component 'ShowMessages' not found in [EMAIL PROTECTED]<application>].
location:       context:/Login.html, line 5
1       <html jwcid="@Shell" title="message:page.title">
2       <body jwcid="@Body">
3
4       <h1><span jwcid="@Insert" value="message:page.title"/></h1>
5       <span jwcid="@ShowMessages"/>
6       <form jwcid="@Form"
7       success="listener:onFormSubmit"
8       cancel="listener:onFormCancel" name="loginForm"
9       clientValidationEnabled="ognl:true" delegate="bean:validationDelegate">
10
Stack Trace:

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



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

Reply via email to