hivemind-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vinicius Carvalho <java.vinic...@gmail.com>
Subject Re: Basic Questions
Date Tue, 12 Jul 2005 11:12:10 GMT
ok, sorry, please ignore my last question ;)

On 7/12/05, Vinicius Carvalho <java.vinicius@gmail.com> wrote:
> Hello there! I've just started with hivemind. I'm using 1.1 Beta 2
> with Tapestry 4 Beta 2. I have this service configured:
> <module id="TCRUD" version="0.1.0" package="com.cs.tapestry">
>         <service-point id="myDataSource" interface="javax.sql.DataSource">
>                 <invoke-factory model="singleton">
>                            <construct class="org.apache.commons.dbcp.BasicDataSource">
>                                    <set property="driverClassName" value="com.mysql.jdbc.Driver"/>
>                                    <set property="url" value="jdbc:mysql://localhost/test"/>
>                                    <set property="username" value="root"/>
>                                    <set property="password" value=""/>
>                                    <set property="defaultAutoCommit" value="false"/>
>                                    <set property="maxActive" value="10"/>
>                                    <set property="initialSize" value="5"/>
>                            </construct>
>                    </invoke-factory>
>         </service-point>
>         <service-point id="myConnection" interface="java.sql.Connection">
>     <invoke-factory service-id="hivetranse.jdbc.ConnectionFactory"
> model="singleton">
>         <datasource id="myDataSource"/>
>     </invoke-factory>
> 
> </service-point>
> </module>
> 
> When starting the application on tomcat 5.5.9 I get this:
> 
> org.apache.hivemind.ApplicationRuntimeException: Error at
> jar:file:/C:/java/tomcat-5.5.9/webapps/tcrud/WEB-INF/lib/hivetranse.jdbc.jar!/META-INF/hivemodule.xml,
> line 13, column 34: Module hivetranse.jdbc has contributed a instance
> builder to service point hivetranse.core.TransactionService, which
> conflicts with an existing contribution by module
> hivetranse.hibernate3. The duplicate contribution has been ignored.
>    location: jar:file:/C:/java/tomcat-5.5.9/webapps/tcrud/WEB-INF/lib/hivetranse.jdbc.jar!/META-INF/hivemodule.xml,
> line 13, column 34
> 
> Duplicate contribution? Didn't quite get this...
> I'm using hiveutils 0.5 as well. And when question I have is. To
> configure an Hibernate 3 session, the docs says that in order to get a
> sessionFactory working we need a hibernate.cfg.xml, but it does not
> point where do we make a reference for it on our hivemind module. Does
> anyone has an example?
> 
> Regards
> 
> Vinicius Carvalho
>

---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-user-help@jakarta.apache.org


Mime
View raw message