In my current project I have it set up basically the same way:

<service-point id="SiteMap" interface="...SiteMap">
        <invoke-factory service-id="hivemind.BuilderFactory" model="singleton">
            <construct class="....impl.SiteMapImpl"
initialize-method="initialize">
                <set-resource property="resource" path="sitemap.xml"/>
            </construct>
        </invoke-factory>
    </service-point>

sitemap.xml is stored under WEB-INF/sitemap.xml.   My old co-worker
created it for my very first tapestry app so we may not get to yell at
him if it's not working as expected,  but it works for me currently.

I wonder if the version bundled in the tacos jar expects you to
override an existing service definition to use your own version?
I've modified it locally to implement a few extra features so this
could be why.

Yep,  I just checked and it looks as if it comes pre-bound to the
service-id "tacos.services.SiteMap" - thus making it impossible to
override unless you define / override the exact same service point.
(or you can use the hivemind "implementation" to modify an existing
service slightly,
http://hivemind.apache.org/hivemind1/descriptor.html#implementation )

Sorry,  not sure why I did that as it doesn't seem to be in sync with
what the documentation says.  Sounds wrong somehow.

On Dec 13, 2007 11:44 AM, Kolesnikov, Alexander      GNI
<[EMAIL PROTECTED]> wrote:
> Yeah, I did that, put a custom sitemap.xml into the WEB-INF of my
> application and added this to the hivemodule.xml:
>
> <service-point id="SiteMap" interface="net.sf.tacos.services.SiteMap">
>             <invoke-factory service-id="hivemind.BuilderFactory"
> model="singleton" >
>                 <construct
> class="net.sf.tacos.services.impl.SiteMapImpl"
>                             initialize-method="initialize">
>                     <set-resource property="resource"
> path="sitemap.xml"/>
>                 </construct>
>             </invoke-factory>
>         </service-point>
>
> But it doesn't work...
>
>
> -----Original Message-----
> From: Jesse Kuhnert [mailto:[EMAIL PROTECTED]
> Sent: 13 December 2007 16:36
> To: Tapestry users
> Subject: Re: [T4]Tacos: struggling with SiteMap
>
>
> Don't remember for sure but I think it wants you to define your own
> sitemap.xml file and set that on the service.
>
> On Dec 13, 2007 11:30 AM, Kolesnikov, Alexander      GNI
> <[EMAIL PROTECTED]> wrote:
> > I am trying to make SiteMap service working following instructions
> > found
> > here:
> > http://tacos.sourceforge.net/hivemind/SiteMap.html
> > However, trying to run the application, I am having an exception that
> > boils down to the following:
> > No valid resource URL could be resolved:jar:file:/C:/Program
> > Files/.../WEB-INF/lib/tacos-core-4.1.0.jar!/META-INF/doesntexist.xml
> >
> > In other words, there is no doesntexist.xml file in the META-INF
> > directory of the Tacos JAR, while this file is mentioned in the
> > service configuration in the same JAR:
> >
> > <set-resource property="resource" path="doesntexist.xml"/>
> >
> > So it looks like there is a problem with the Tacos JAR. What puzzles
> > me however is that tacos-demo application works okay with the same
> > jar...
> >
> > Can't figure out why it doesn't work for me then. Any suggestions?
> >
> > Thanks,
> > Alexander
> >
> > ----------------------------------------------------------------------
> > --------
> > CONFIDENTIALITY NOTICE: If you have received this email in error,
> please immediately notify the sender by e-mail at the address shown.
> This email transmission may contain confidential information.  This
> information is intended only for the use of the individual(s) or entity
> to whom it is intended even if addressed incorrectly.  Please delete it
> from your files if you are not the intended recipient.  Thank you for
> your compliance.  Copyright 2007 CIGNA
> >
> ========================================================================
> ======
> >
>
>
>
> --
> Jesse Kuhnert
> Tapestry / OGNL / Dojo team member/developer
>
> Open source based consulting work centered around
> dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> ------------------------------------------------------------------------------
> CONFIDENTIALITY NOTICE: If you have received this email in error, please 
> immediately notify the sender by e-mail at the address shown.  This email 
> transmission may contain confidential information.  This information is 
> intended only for the use of the individual(s) or entity to whom it is 
> intended even if addressed incorrectly.  Please delete it from your files if 
> you are not the intended recipient.  Thank you for your compliance.  
> Copyright 2007 CIGNA
> ==============================================================================
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-- 
Jesse Kuhnert
Tapestry / OGNL / Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com

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

Reply via email to