You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Gregg Bolinger <ta...@gmail.com> on 2006/01/21 22:58:30 UTC

Hivemodule service point does not exist.

I have been struggling with this issue for a couple of hours now. I've
exhausted the mailing list archives as well as google.  So now I will ask
the experts.  If anyone has any suggestions, I'd really appreciate it.

I have the following hivemodule.xml file

<?xml version="1.0" encoding="UTF-8"?>
<module id="examples" version="1.0.0" package="com.pnp">

    <service-point id="dataSource" interface="javax.sql.DataSource">
        <invoke-factory model="singleton">
            <construct class="org.apache.commons.dbcp.BasicDataSource">
                <set property="driverClassName" value="org.postgresql.Driver
"/>
                <set property="url"
value="jdbc:postgresql://localhost/pnp"/>
                <set property="username" value="admin"/>
                <set property="password" value="admin"/>
                <set property="defaultAutoCommit" value="false"/>
                <set property="maxActive" value="10"/>
                <set property="initialSize" value="5"/>
            </construct>
        </invoke-factory>
    </service-point>

    <service-point id="connection" interface="java.sql.Connection">
        <invoke-factory service-id="hivetranse.jdbc.ConnectionFactory"
model="singleton">
            <datasource id="dataSource"/>
        </invoke-factory>
    </service-point>

    <service-point id="typeDao" interface="com.pnp.database.dao.ITypeDao">
        <invoke-factory model="singleton">
            <construct class="com.pnp.database.dao.jdbc.JdbcTypeDao">
                <service>connection</service>
            </construct>
        </invoke-factory>
    </service-point>

    <service-point id="typeService" interface="com.pnp.services.ITypeService
">
        <invoke-factory model="singleton">
            <construct class="com.pnp.services.DefaultTypeService">
                <service>typeDao</service>
            </construct>
        </invoke-factory>
        <interceptor service-id="hivetranse.core.TransactionInterceptor">
            <method pattern="getType" demarcation="RequiresNew"/>
            <method pattern="*" demarcation="Required"/>
            <exception name="java.lang.RuntimeException" rollback="true"/>
            <exception name="java.lang.Exception" rollback="false"/>
        </interceptor>
    </service-point>
    <contribution configuration-id="hivetranse.core.TransactionDefaults">
        <defaults>
            <exception name="java.lang.Throwable" rollback="true"/>
            <method pattern="*" demarcation="Never"/>
        </defaults>
    </contribution>

</module>

On a page I am doing this...

@InjectObject("service:com.pnp.typeService")
    public abstract ITypeService getTypeService();

I keep getting

Error: An error occured processing annotation @
org.apache.tapestry.annotations.InjectObject(value=service:
com.pnp.typeService) of public abstract com.pnp.services.ITypeService
com.pnp.web.pages.Border.getTypeService(): Service point
com.pnp.typeServicedoes not exist.