Hi all ,

I´m trying to use te modules Ars-Machina generic-dao & generic-dao-hibernate,
but i´m getting the following message :
*
No service implements the interface org.hibernate.SessionFactory*


I attach my current pom.xml, the following are the unique dependencies from the ars-machina project.
...
       <dependency>
         <groupId>br.com.arsmachina</groupId>
         <artifactId>generic-dao</artifactId>
         <version>${ars-machina-release-version}</version>
       </dependency>
<dependency>
         <groupId>br.com.arsmachina</groupId>
         <artifactId>generic-dao-hibernate</artifactId>
         <version>${ars-machina-release-version}</version>
       </dependency>
...
( ...with <ars-machina-release-version>1.0</ars-machina-release-version> ...)


¿ Any addicional dependency for get working ? I will try making my own builder method that returns an instance of SessionFactory, getting the instance from one of the services provided the tapestry-hibernate module.


Thanks & Nice.Day
Antonio



<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd";
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns="http://maven.apache.org/POM/4.0.0";>
    <modelVersion>4.0.0</modelVersion>
    <groupId>org.jwp</groupId>
    <artifactId>t5lab</artifactId>
    <version>0.0.1-SNAPSHOT</version>
    <packaging>war</packaging>
    <name>ic20 Tapestry 5 Application</name>
 	<dependencies>

        <dependency>
            <groupId>org.apache.tapestry</groupId>
            <artifactId>tapestry-core</artifactId>
            <version>${tapestry-release-version}</version>
        </dependency>

        <dependency>
            <groupId>org.apache.tapestry</groupId>
            <artifactId>tapestry-hibernate</artifactId>
            <version>${tapestry-release-version}</version>
        </dependency>
		
        <dependency>
            <groupId>org.apache.tapestry</groupId>
            <artifactId>tapestry-upload</artifactId>
            <version>${tapestry-release-version}</version>
        </dependency>
		
		<!--
        <dependency>
            <groupId>org.apache.tapestry</groupId>
            <artifactId>tapestry-fileupload</artifactId>
            <version>${tapestry-release-version}</version>
        </dependency>
-->
        <!-- A dependency on either JUnit or TestNG is required, or the surefire plugin (which runs the tests)
will fail, preventing Maven from packaging the WAR. Tapestry includes a large number
of testing facilities designed for use with TestNG (http://testng.org/), so it's recommended. -->
        <dependency>
            <groupId>org.testng</groupId>
            <artifactId>testng</artifactId>
            <version>5.8</version>
            <classifier>jdk15</classifier>
            <scope>test</scope>
        </dependency>

        <dependency>
            <groupId>org.easymock</groupId>
            <artifactId>easymock</artifactId>
            <version>2.4</version>
            <scope>test</scope>
        </dependency>

        <!-- May conflict with RunJettyRun inside Eclipse. tapestry-test brings in Selenium, which
             is based on Jetty 5.1; RunJettyRun uses Jetty 6. -->
        <dependency>
            <groupId>org.apache.tapestry</groupId>
            <artifactId>tapestry-test</artifactId>
            <version>${tapestry-release-version}</version>
            <scope>test</scope>
        </dependency>

        <!-- Provided by the servlet container, but sometimes referenced in the application
       code. -->
        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>servlet-api</artifactId>
            <version>2.5</version>
            <scope>provided</scope>
        </dependency>
		
		<!-- MYSQL Jdbc Driver -->
        <dependency>
        	<groupId>mysql</groupId>
        	<artifactId>mysql-connector-java</artifactId>
        	<version>5.1.6</version>
        </dependency>
		
		<!-- Chenillekit : Services and Components Library -->
		<dependency>
			<groupId>org.chenillekit</groupId>
			<artifactId>chenillekit-tapestry</artifactId>
			<version>${chenillekit-release-version}</version>
		</dependency>
		
		<dependency>
			<groupId>org.chenillekit</groupId>
			<artifactId>chenillekit-mail</artifactId>
			<version>${chenillekit-release-version}</version>
		</dependency>
		
		<dependency>
			<groupId>org.chenillekit</groupId>
			<artifactId>chenillekit-hibernate</artifactId>
			<version>${chenillekit-release-version}</version>
		</dependency>
			
		
		<!-- Hibernate-Tools -->
		<dependency>
			<groupId>org.hibernate</groupId>
			<artifactId>hibernate-tools</artifactId>
			<version>3.2.0.ga</version>
		</dependency>
		
		<dependency>
		  <groupId>br.com.arsmachina</groupId> 
		  <artifactId>generic-dao</artifactId>
		  <version>${ars-machina-release-version}</version> 
		</dependency>
		
		<dependency>
		  <groupId>br.com.arsmachina</groupId> 
		  <artifactId>generic-dao-hibernate</artifactId>
		  <version>${ars-machina-release-version}</version> 
		</dependency>
		
    </dependencies>
    <build>
        <finalName>ic20</finalName>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <source>1.5</source>
                    <target>1.5</target>
                    <optimize>true</optimize>
                </configuration>
            </plugin>

            <!-- Run the application using "mvn jetty:run" -->
            <plugin>
                <groupId>org.mortbay.jetty</groupId>
                <artifactId>maven-jetty-plugin</artifactId>
                <version>6.1.9</version>
                <configuration>
                    <!-- Log to the console. -->
                    <requestLog implementation="org.mortbay.jetty.NCSARequestLog">
                        <!-- This doesn't do anything for Jetty, but is a workaround for a Maven bug
                             that prevents the requestLog from being set. -->
                        <append>true</append>
                    </requestLog>
                </configuration>
            </plugin>
        </plugins>
    </build>

    <reporting>

        <!-- Adds a report detailing the components, mixins and base classes defined by this module. -->
        <plugins>
            <plugin>
                <groupId>org.apache.tapestry</groupId>
                <artifactId>tapestry-component-report</artifactId>
                <version>${tapestry-release-version}</version>
                <configuration>
                    <rootPackage>org.jwp.ic20</rootPackage>
                </configuration>
            </plugin>
        </plugins>
    </reporting>

    <repositories>

        <!-- This repository is only needed if the Tapestry released artifacts haven't made it to the central Maven repository yet. -->
        <repository>
            <id>tapestry</id>
            <url>http://tapestry.formos.com/maven-repository/</url>
        </repository>

        <!-- This repository is only needed when the tapestry-release-version is a snapshot release. -->
        <repository>
            <id>tapestry-snapshots</id>
            <url>http://tapestry.formos.com/maven-snapshot-repository/</url>
        </repository>

        <repository>
            <id>codehaus.snapshots</id>
            <url>http://snapshots.repository.codehaus.org</url>
        </repository>
        <repository>
            <id>OpenQA_Release</id>
            <name>OpenQA Release Repository</name>
            <url>http://archiva.openqa.org/repository/releases/</url>
        </repository>
		
	    <repository>
	        <id>TapestryJFly</id>
	        <url>http://tapestry-jfly.sourceforge.net/repository/</url>
	    </repository>
		
		<repository>
		    <id>chenillekit</id>
		    <url>http://www.chenillekit.org/mvnrepo/release</url>
		    <snapshots>
		        <enabled>false</enabled>
		    </snapshots>
		</repository>
    </repositories>

    <pluginRepositories>

        <!-- As above, this can be commented out when access to the snapshot version
of a Tapestry Maven plugin is not required.   -->
        <pluginRepository>
            <id>tapestry-snapshots</id>
            <url>http://tapestry.formos.com/maven-snapshot-repository/</url>
        </pluginRepository>
    </pluginRepositories>

    <properties>
        <tapestry-release-version>5.1.0.5</tapestry-release-version>
		<chenillekit-release-version>1.0.2</chenillekit-release-version>
		<ars-machina-release-version>1.0</ars-machina-release-version>
    </properties>
</project>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to