Ok, I see what you are saying now. I will give it a shot.
On 1/21/06, Gregg Bolinger <[EMAIL PROTECTED]> wrote: > > I'm not sure I understand. Why examples.typeService? > > My package structure is com.pnp.services.ITypeService > > Thanks. > > Gregg > > On 1/21/06, Yoritaka Sakakura <[EMAIL PROTECTED]> wrote: > > > > I think the service-id should be `examples.typeService' not > > `com.pnp.typeService' - the package is used to prefix unqualified > > classes/interfaces while the module id is used for services, > > configurations > > > > -Yori > > > > -----Original Message----- > > From: Gregg Bolinger [mailto:[EMAIL PROTECTED] > > Sent: Saturday, January 21, 2006 4:59 PM > > To: Tapestry users > > Subject: 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. > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > >