You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Peter Stavrinides <p....@albourne.com> on 2006/11/02 16:25:29 UTC
Configuration Trouble
Hi
I am busy upgrading a working 4.02 application to Tapestry 4.1. but I
would also like to change some of the namespaces, but when I do, I break
the application and I can no longer find many of my service points. I
suspect that my packages may be incorrectly mapped, can anyone PLEASE
point me in the right direction:
This is the error: /
"Service point com.albourne.web.services.hfdb.PortfoliosInterface does
not exist."/
.application file:
<application name="TestApplication"
engine-class="org.apache.tapestry.engine.BaseEngine">
<meta key="org.apache.tapestry.home-page" value="Portfolio" />
<meta key="org.apache.tapestry.page-class-packages"
value="com.albourne.web.pages"/>
<meta key="org.apache.tapestry.component-class-packages"
value="com.albourne.web.components"/>
<library id="Contrib"
specification-path="/org/apache/tapestry/contrib/Contrib.library"/>
</application>
Packages:
com.albourne.web.components.ui
com.albourne.web.pages
com.albourne.web.services.castle
com.albourne.web.services.hfdb
com.albourne.web.application
etc...
hivemodule.xml:
<?xml version="1.0" encoding="UTF-8"?>
<module id="com.albourne.web" version="1.0.0" package="com.albourne.web">
<!-- A hivemind service to supply HFDB portfolio information -->
<service-point id="PortfoliosInterface"
interface="com.albourne.web.services.hfdb.PortfoliosInterface">
<invoke-factory>
<construct class="services.hfdb.PortfoliosInterface" >
<set-service property="appStateManager"
service-id="tapestry.state.ApplicationStateManager"/>
</construct>
</invoke-factory>
</service-point>
</module>
Thanks,
Peter
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Configuration Trouble
Posted by Peter Stavrinides <p....@albourne.com>.
Hi James,
Thanks for the tip, I managed to solve it in the end !!
Peter
James Carman wrote:
> No, leave the id as "PortfoliosInterface" and just refer to it as
> "com.albourne.web.PortfoliosInterface" (that would be its new,
> fully-qualified id).
>
>
> On 11/2/06, Peter Stavrinides <p....@albourne.com> wrote:
>> Hi James,
>>
>> Thanks for the response, I tried it and it throws an exception:
>> /"Schema and extension point ids should be simple names with no
>> punctuation."/
>>
>> Is this what you meant?
>> <module id="com.albourne.web" version="1.0.0"
>> package="com.albourne.web">
>> <service-point
>> id="com.albourne.web.services.hfdb.PortfoliosInterface"
>> interface="com.albourne.web.services.hfdb.PortfoliosInterface">
>> <invoke-factory>
>> <construct class="services.hfdb.PortfoliosInterface" >
>> <set-service property="appStateManager"
>> service-id="tapestry.state.ApplicationStateManager"/>
>> </construct>
>> </invoke-factory>
>> </service-point>
>> </module>
>>
>>
>>
>> James Carman wrote:
>> > Try com.albourne.web.PortfoliosInterface as the service id. It's
>> > fully qualified by using the module id followed by '.' and then the
>> > service id.
>> >
>> > On 11/2/06, Peter Stavrinides <p....@albourne.com> wrote:
>> >> Hi
>> >>
>> >> I am busy upgrading a working 4.02 application to Tapestry 4.1. but I
>> >> would also like to change some of the namespaces, but when I do, I
>> break
>> >> the application and I can no longer find many of my service points. I
>> >> suspect that my packages may be incorrectly mapped, can anyone PLEASE
>> >> point me in the right direction:
>> >>
>> >> This is the error: /
>> >> "Service point com.albourne.web.services.hfdb.PortfoliosInterface
>> does
>> >> not exist."/
>> >>
>> >> .application file:
>> >> <application name="TestApplication"
>> >> engine-class="org.apache.tapestry.engine.BaseEngine">
>> >> <meta key="org.apache.tapestry.home-page" value="Portfolio" />
>> >> <meta key="org.apache.tapestry.page-class-packages"
>> >> value="com.albourne.web.pages"/>
>> >> <meta key="org.apache.tapestry.component-class-packages"
>> >> value="com.albourne.web.components"/>
>> >> <library id="Contrib"
>> >> specification-path="/org/apache/tapestry/contrib/Contrib.library"/>
>> >> </application>
>> >>
>> >> Packages:
>> >> com.albourne.web.components.ui
>> >> com.albourne.web.pages
>> >> com.albourne.web.services.castle
>> >> com.albourne.web.services.hfdb
>> >> com.albourne.web.application
>> >> etc...
>> >>
>> >> hivemodule.xml:
>> >> <?xml version="1.0" encoding="UTF-8"?>
>> >>
>> >>
>> >> <!-- A hivemind service to supply HFDB portfolio information -->
>> >> <service-point id="PortfoliosInterface"
>> >> interface="com.albourne.web.services.hfdb.PortfoliosInterface">
>> >> <invoke-factory>
>> >> <construct class="services.hfdb.PortfoliosInterface" >
>> >> <set-service property="appStateManager"
>> >> service-id="tapestry.state.ApplicationStateManager"/>
>> >> </construct>
>> >> </invoke-factory>
>> >> </service-point>
>> >> </module>
>> >>
>> >> Thanks,
>> >> Peter
>> >>
>> >>
>> >> ---------------------------------------------------------------------
>> >> 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
>> >
>>
>> --
>> Peter Stavrinides
>> Albourne Partners (Cyprus) Ltd
>> Tel: +357 22 750652
>>
>> If you are not an intended recipient of this e-mail, please notify
>> the sender, delete it and do not read, act upon, print, disclose,
>> copy, retain or redistribute it. Please visit
>> http://www.albourne.com/email.html for important additional terms
>> relating to this e-mail.
>>
>>
>>
>> ---------------------------------------------------------------------
>> 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
>
--
Peter Stavrinides
Albourne Partners (Cyprus) Ltd
Tel: +357 22 750652
If you are not an intended recipient of this e-mail, please notify the sender, delete it and do not read, act upon, print, disclose, copy, retain or redistribute it. Please visit http://www.albourne.com/email.html for important additional terms relating to this e-mail.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Configuration Trouble
Posted by James Carman <ja...@carmanconsulting.com>.
No, leave the id as "PortfoliosInterface" and just refer to it as
"com.albourne.web.PortfoliosInterface" (that would be its new,
fully-qualified id).
On 11/2/06, Peter Stavrinides <p....@albourne.com> wrote:
> Hi James,
>
> Thanks for the response, I tried it and it throws an exception:
> /"Schema and extension point ids should be simple names with no
> punctuation."/
>
> Is this what you meant?
> <module id="com.albourne.web" version="1.0.0" package="com.albourne.web">
> <service-point
> id="com.albourne.web.services.hfdb.PortfoliosInterface"
> interface="com.albourne.web.services.hfdb.PortfoliosInterface">
> <invoke-factory>
> <construct class="services.hfdb.PortfoliosInterface" >
> <set-service property="appStateManager"
> service-id="tapestry.state.ApplicationStateManager"/>
> </construct>
> </invoke-factory>
> </service-point>
> </module>
>
>
>
> James Carman wrote:
> > Try com.albourne.web.PortfoliosInterface as the service id. It's
> > fully qualified by using the module id followed by '.' and then the
> > service id.
> >
> > On 11/2/06, Peter Stavrinides <p....@albourne.com> wrote:
> >> Hi
> >>
> >> I am busy upgrading a working 4.02 application to Tapestry 4.1. but I
> >> would also like to change some of the namespaces, but when I do, I break
> >> the application and I can no longer find many of my service points. I
> >> suspect that my packages may be incorrectly mapped, can anyone PLEASE
> >> point me in the right direction:
> >>
> >> This is the error: /
> >> "Service point com.albourne.web.services.hfdb.PortfoliosInterface does
> >> not exist."/
> >>
> >> .application file:
> >> <application name="TestApplication"
> >> engine-class="org.apache.tapestry.engine.BaseEngine">
> >> <meta key="org.apache.tapestry.home-page" value="Portfolio" />
> >> <meta key="org.apache.tapestry.page-class-packages"
> >> value="com.albourne.web.pages"/>
> >> <meta key="org.apache.tapestry.component-class-packages"
> >> value="com.albourne.web.components"/>
> >> <library id="Contrib"
> >> specification-path="/org/apache/tapestry/contrib/Contrib.library"/>
> >> </application>
> >>
> >> Packages:
> >> com.albourne.web.components.ui
> >> com.albourne.web.pages
> >> com.albourne.web.services.castle
> >> com.albourne.web.services.hfdb
> >> com.albourne.web.application
> >> etc...
> >>
> >> hivemodule.xml:
> >> <?xml version="1.0" encoding="UTF-8"?>
> >>
> >>
> >> <!-- A hivemind service to supply HFDB portfolio information -->
> >> <service-point id="PortfoliosInterface"
> >> interface="com.albourne.web.services.hfdb.PortfoliosInterface">
> >> <invoke-factory>
> >> <construct class="services.hfdb.PortfoliosInterface" >
> >> <set-service property="appStateManager"
> >> service-id="tapestry.state.ApplicationStateManager"/>
> >> </construct>
> >> </invoke-factory>
> >> </service-point>
> >> </module>
> >>
> >> Thanks,
> >> Peter
> >>
> >>
> >> ---------------------------------------------------------------------
> >> 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
> >
>
> --
> Peter Stavrinides
> Albourne Partners (Cyprus) Ltd
> Tel: +357 22 750652
>
> If you are not an intended recipient of this e-mail, please notify the sender, delete it and do not read, act upon, print, disclose, copy, retain or redistribute it. Please visit http://www.albourne.com/email.html for important additional terms relating to this e-mail.
>
>
>
> ---------------------------------------------------------------------
> 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
Re: Configuration Trouble
Posted by Peter Stavrinides <p....@albourne.com>.
Hi James,
Thanks for the response, I tried it and it throws an exception:
/"Schema and extension point ids should be simple names with no
punctuation."/
Is this what you meant?
<module id="com.albourne.web" version="1.0.0" package="com.albourne.web">
<service-point
id="com.albourne.web.services.hfdb.PortfoliosInterface"
interface="com.albourne.web.services.hfdb.PortfoliosInterface">
<invoke-factory>
<construct class="services.hfdb.PortfoliosInterface" >
<set-service property="appStateManager"
service-id="tapestry.state.ApplicationStateManager"/>
</construct>
</invoke-factory>
</service-point>
</module>
James Carman wrote:
> Try com.albourne.web.PortfoliosInterface as the service id. It's
> fully qualified by using the module id followed by '.' and then the
> service id.
>
> On 11/2/06, Peter Stavrinides <p....@albourne.com> wrote:
>> Hi
>>
>> I am busy upgrading a working 4.02 application to Tapestry 4.1. but I
>> would also like to change some of the namespaces, but when I do, I break
>> the application and I can no longer find many of my service points. I
>> suspect that my packages may be incorrectly mapped, can anyone PLEASE
>> point me in the right direction:
>>
>> This is the error: /
>> "Service point com.albourne.web.services.hfdb.PortfoliosInterface does
>> not exist."/
>>
>> .application file:
>> <application name="TestApplication"
>> engine-class="org.apache.tapestry.engine.BaseEngine">
>> <meta key="org.apache.tapestry.home-page" value="Portfolio" />
>> <meta key="org.apache.tapestry.page-class-packages"
>> value="com.albourne.web.pages"/>
>> <meta key="org.apache.tapestry.component-class-packages"
>> value="com.albourne.web.components"/>
>> <library id="Contrib"
>> specification-path="/org/apache/tapestry/contrib/Contrib.library"/>
>> </application>
>>
>> Packages:
>> com.albourne.web.components.ui
>> com.albourne.web.pages
>> com.albourne.web.services.castle
>> com.albourne.web.services.hfdb
>> com.albourne.web.application
>> etc...
>>
>> hivemodule.xml:
>> <?xml version="1.0" encoding="UTF-8"?>
>>
>>
>> <!-- A hivemind service to supply HFDB portfolio information -->
>> <service-point id="PortfoliosInterface"
>> interface="com.albourne.web.services.hfdb.PortfoliosInterface">
>> <invoke-factory>
>> <construct class="services.hfdb.PortfoliosInterface" >
>> <set-service property="appStateManager"
>> service-id="tapestry.state.ApplicationStateManager"/>
>> </construct>
>> </invoke-factory>
>> </service-point>
>> </module>
>>
>> Thanks,
>> Peter
>>
>>
>> ---------------------------------------------------------------------
>> 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
>
--
Peter Stavrinides
Albourne Partners (Cyprus) Ltd
Tel: +357 22 750652
If you are not an intended recipient of this e-mail, please notify the sender, delete it and do not read, act upon, print, disclose, copy, retain or redistribute it. Please visit http://www.albourne.com/email.html for important additional terms relating to this e-mail.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Configuration Trouble
Posted by James Carman <ja...@carmanconsulting.com>.
Try com.albourne.web.PortfoliosInterface as the service id. It's
fully qualified by using the module id followed by '.' and then the
service id.
On 11/2/06, Peter Stavrinides <p....@albourne.com> wrote:
> Hi
>
> I am busy upgrading a working 4.02 application to Tapestry 4.1. but I
> would also like to change some of the namespaces, but when I do, I break
> the application and I can no longer find many of my service points. I
> suspect that my packages may be incorrectly mapped, can anyone PLEASE
> point me in the right direction:
>
> This is the error: /
> "Service point com.albourne.web.services.hfdb.PortfoliosInterface does
> not exist."/
>
> .application file:
> <application name="TestApplication"
> engine-class="org.apache.tapestry.engine.BaseEngine">
> <meta key="org.apache.tapestry.home-page" value="Portfolio" />
> <meta key="org.apache.tapestry.page-class-packages"
> value="com.albourne.web.pages"/>
> <meta key="org.apache.tapestry.component-class-packages"
> value="com.albourne.web.components"/>
> <library id="Contrib"
> specification-path="/org/apache/tapestry/contrib/Contrib.library"/>
> </application>
>
> Packages:
> com.albourne.web.components.ui
> com.albourne.web.pages
> com.albourne.web.services.castle
> com.albourne.web.services.hfdb
> com.albourne.web.application
> etc...
>
> hivemodule.xml:
> <?xml version="1.0" encoding="UTF-8"?>
> <module id="com.albourne.web" version="1.0.0" package="com.albourne.web">
>
> <!-- A hivemind service to supply HFDB portfolio information -->
> <service-point id="PortfoliosInterface"
> interface="com.albourne.web.services.hfdb.PortfoliosInterface">
> <invoke-factory>
> <construct class="services.hfdb.PortfoliosInterface" >
> <set-service property="appStateManager"
> service-id="tapestry.state.ApplicationStateManager"/>
> </construct>
> </invoke-factory>
> </service-point>
> </module>
>
> Thanks,
> Peter
>
>
> ---------------------------------------------------------------------
> 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