Hibernate.cfg.xml non trouvé
sarah9999
Messages postés
27
Statut
Membre
-
sarah9999 Messages postés 27 Statut Membre -
sarah9999 Messages postés 27 Statut Membre -
Bonjour,
je suis entrain de developper une application en utilisant le framework hibernate;
alors lors de l'excécution j'ai tjrs cette erreur:
13 août 2010 11:47:41 org.hibernate.cfg.Configuration configure
INFO: configuring from resource: /hibernate.cfg.xml
13 août 2010 11:47:41 org.hibernate.cfg.Configuration getConfigurationInputStream
INFO: Configuration resource: /hibernate.cfg.xml
/hibernate.cfg.xml not found
voila j'ai developpé un build.xml personnel pour la constructuction de mon application:
<?xml version='1.0' encoding='utf-8'?>
<project name="gestionproject" default="compile" basedir=".">
<!-- Name of project and version -->
<property name="proj.name" value="gestion"/>
<property name="proj.version" value="1.0"/>
<!-- Global properties for this build -->
<property name="src.java.dir" value="src"/>
<property name="lib.dir" value="lib"/>
<property name="build.dir" value="bin"/>
<!-- Classpath declaration -->
<path id="project.classpath">
<fileset dir="${lib.dir}">
<include name="**/*.jar"/>
<include name="**/*.zip"/>
</fileset>
</path>
<!-- Useful shortcuts -->
<patternset id="meta.files">
<include name="**/*.xml"/>
<include name="**/*.properties"/>
</patternset>
<!-- Clean up -->
<target name="clean">
<delete dir="${build.dir}"/>
<mkdir dir="${build.dir}"/>
</target>
<!-- Compile Java source -->
<target name="compile" depends="clean">
<mkdir dir="${build.dir}"/>
<javac
srcdir="${src.java.dir}"
destdir="${build.dir}"
nowarn="on">
<classpath refid="project.classpath"/>
</javac>
</target>
<!-- Copy metadata to build classpath -->
<target name="copymetafiles">
<copy todir="${build.dir}">
<fileset dir="${src.java.dir}">
<patternset refid="meta.files"/>
</fileset>
</copy>
</target>
<!-- Run HelloWorld -->
<target name="run" depends="compile, copymetafiles"
description="Build and run mon test">
<java fork="true"
classname="main.TestHibernate"
classpathref="project.classpath">
<classpath path="${build.dir}"/>
</java>
</target>
</project>
j'espere trouver une aide; car je suis en retrad;
merci.
je suis entrain de developper une application en utilisant le framework hibernate;
alors lors de l'excécution j'ai tjrs cette erreur:
13 août 2010 11:47:41 org.hibernate.cfg.Configuration configure
INFO: configuring from resource: /hibernate.cfg.xml
13 août 2010 11:47:41 org.hibernate.cfg.Configuration getConfigurationInputStream
INFO: Configuration resource: /hibernate.cfg.xml
/hibernate.cfg.xml not found
voila j'ai developpé un build.xml personnel pour la constructuction de mon application:
<?xml version='1.0' encoding='utf-8'?>
<project name="gestionproject" default="compile" basedir=".">
<!-- Name of project and version -->
<property name="proj.name" value="gestion"/>
<property name="proj.version" value="1.0"/>
<!-- Global properties for this build -->
<property name="src.java.dir" value="src"/>
<property name="lib.dir" value="lib"/>
<property name="build.dir" value="bin"/>
<!-- Classpath declaration -->
<path id="project.classpath">
<fileset dir="${lib.dir}">
<include name="**/*.jar"/>
<include name="**/*.zip"/>
</fileset>
</path>
<!-- Useful shortcuts -->
<patternset id="meta.files">
<include name="**/*.xml"/>
<include name="**/*.properties"/>
</patternset>
<!-- Clean up -->
<target name="clean">
<delete dir="${build.dir}"/>
<mkdir dir="${build.dir}"/>
</target>
<!-- Compile Java source -->
<target name="compile" depends="clean">
<mkdir dir="${build.dir}"/>
<javac
srcdir="${src.java.dir}"
destdir="${build.dir}"
nowarn="on">
<classpath refid="project.classpath"/>
</javac>
</target>
<!-- Copy metadata to build classpath -->
<target name="copymetafiles">
<copy todir="${build.dir}">
<fileset dir="${src.java.dir}">
<patternset refid="meta.files"/>
</fileset>
</copy>
</target>
<!-- Run HelloWorld -->
<target name="run" depends="compile, copymetafiles"
description="Build and run mon test">
<java fork="true"
classname="main.TestHibernate"
classpathref="project.classpath">
<classpath path="${build.dir}"/>
</java>
</target>
</project>
j'espere trouver une aide; car je suis en retrad;
merci.
A voir également:
- Hibernate.cfg.xml non trouvé
- Ou se trouve le presse papier - Guide
- Pourquoi ma tv ne trouve pas toutes les chaînes - Guide
- Où se trouve mon adresse url ? - Guide
- Word a trouvé du contenu illisible - Guide
- Ou se trouve la corbeille de whatsapp - Guide