lucky82
Messages postés89Date d'inscriptionsamedi 30 octobre 2004StatutMembreDernière intervention16 juin 2008
-
10 mai 2008 à 20:59
lucky82
Messages postés89Date d'inscriptionsamedi 30 octobre 2004StatutMembreDernière intervention16 juin 2008
-
11 mai 2008 à 14:31
: The content of element type "class" must match "(meta*,(cache|jcs-cache)?,(id|composite-id),discriminator?,(version|timestamp)?,(property|many-to-one|one-to-one|component|dynamic-component|any|map|set|list|bag|idbag|array|primitive-array)*,(subclass*|joined-subclass*))".at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.handleEndElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.endElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
219 [main] INFO net.sf.hibernate.cfg.Configuration - Configured SessionFactory: null
.......
...
219 [main] INFO net.sf.hibernate.cfg.Configuration - processing one-to-many association mappings
219 [main] INFO net.sf.hibernate.cfg.Configuration - processing one-to-one association property references
219 [main] INFO net.sf.hibernate.cfg.Configuration - processing foreign key constraints
235 [main] INFO net.sf.hibernate.dialect.Dialect - Using dialect: net.sf.hibernate.dialect.OracleDialect
250 [main] DEBUG net.sf.hibernate.exception.SQLExceptionConverterFactory - Using dialect defined converter
250 [main] INFO net.sf.hibernate.cfg.SettingsFactory - Use outer join fetching: true
250 [main] INFO net.sf.hibernate.connection.DriverManagerConnectionProvider - Using Hibernate built-in connection pool (not for production use!)
250 [main] INFO net.sf.hibernate.connection.DriverManagerConnectionProvider - Hibernate connection pool size: 20
266 [main] INFO net.sf.hibernate.connection.DriverManagerConnectionProvider - using driver: oracle.jdbc.OracleDriver at URL: jdbc:oracle:thin:@localhost:1521:safaqat
266 [main] INFO net.sf.hibernate.connection.DriverManagerConnectionProvider - connection properties: {user=scott, password=tiger}
266 [main] INFO net.sf.hibernate.transaction.TransactionFactoryFactory - Transaction strategy: net.sf.hibernate.transaction.JDBCTransactionFactory
266 [main] INFO net.sf.hibernate.transaction.TransactionManagerLookupFactory - No TransactionManagerLookup configured (in JTA environment, use of process level read-write cache is not recommended)
266 [main] DEBUG net.sf.hibernate.connection.DriverManagerConnectionProvider - total checked-out connections: 0
266 [main] DEBUG net.sf.hibernate.connection.DriverManagerConnectionProvider - opening new JDBC connection
750 [main] DEBUG net.sf.hibernate.connection.DriverManagerConnectionProvider - created connection to: jdbc:oracle:thin:@localhost:1521:safaqat, Isolation Level: 2
766 [main] DEBUG net.sf.hibernate.connection.DriverManagerConnectionProvider - returning connection to pool, pool size: 1
766 [main] INFO net.sf.hibernate.cfg.SettingsFactory - Use scrollable result sets: true
766 [main] INFO net.sf.hibernate.cfg.SettingsFactory - Use JDBC3 getGeneratedKeys(): false
766 [main] INFO net.sf.hibernate.cfg.SettingsFactory - Optimize cache for minimal puts: false
766 [main] INFO net.sf.hibernate.cfg.SettingsFactory - Query language substitutions: {}
766 [main] INFO net.sf.hibernate.cfg.SettingsFactory - cache provider: net.sf.hibernate.cache.EhCacheProvider
766 [main] INFO net.sf.hibernate.cfg.Configuration - instantiating and configuring caches
766 [main] DEBUG net.sf.ehcache.CacheManager - Creating new CacheManager with default config
766 [main] DEBUG net.sf.ehcache.CacheManager - Configuring ehcache from classpath.
781 [main] WARN net.sf.ehcache.config.ConfigurationFactory - No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/F:/Modules%20etudies/Master%20QL/2eme%20annee/S4%20---stage/SIS/Developpement/Eclipse%20Workspace/hib/WebContent/WEB-INF/lib/ehcache-1.2.3.jar!/ehcache-failsafe.xml
781 [main] DEBUG net.sf.ehcache.config.ConfigurationFactory - Configuring ehcache from URL: jar:file:/F:/Modules%20etudies/Master%20QL/2eme%20annee/S4%20---stage/SIS/Developpement/Eclipse%20Workspace/hib/WebContent/WEB-INF/lib/ehcache-1.2.3.jar!/ehcache-failsafe.xml
781 [main] DEBUG net.sf.ehcache.config.ConfigurationFactory - Configuring ehcache from InputStream
781 [main] DEBUG net.sf.ehcache.config.DiskStoreConfiguration - Disk Store Path: C:\DOCUME~1\dell\LOCALS~1\Temp\
797 [main] DEBUG net.sf.ehcache.config.ConfigurationHelper - No CacheManagerEventListenerFactory class specified. Skipping...
797 [main] DEBUG net.sf.ehcache.config.ConfigurationHelper - No CachePeerListenerFactoryConfiguration specified. Not configuring a CacheManagerPeerListener.
797 [main] DEBUG net.sf.ehcache.config.ConfigurationHelper - No CachePeerProviderFactoryConfiguration specified. Not configuring a CacheManagerPeerProvider.
844 [main] DEBUG net.sf.ehcache.config.ConfigurationHelper - No BootstrapCacheLoaderFactory class specified. Skipping...
Exception in thread "main" java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.(Z)V
lucky82
Messages postés89Date d'inscriptionsamedi 30 octobre 2004StatutMembreDernière intervention16 juin 2008 11 mai 2008 à 13:59
l'insertion et l'update marchent tres bien, par contre la lecture non:
import java.util.*;import net.sf.hibernate.*;
import com.minosis.hibernate.*;
public class Test {
public static void main(String[] args) throws HibernateException {
org.apache.log4j.BasicConfigurator.configure();
//insertion dans la table COMPTE
/*Session session = HibernateUtil.currentSession();
Transaction tx = session.beginTransaction();
Compte compte = new Compte();
compte.setIdCompte(new Integer(44));
compte.setLoginCompte("Dupont");
compte.setPasswordCompte("Jean");
session.save(compte);
tx.commit();
HibernateUtil.closeSession();*/
//update du profil du compte num 3
/*Session session = HibernateUtil.currentSession();
Transaction tx = session.beginTransaction();
Compte compte =(Compte) session.load(Compte.class, new Integer(3));
compte.setProfilCompte("Jacques");
session.save(compte);
tx.commit();
HibernateUtil.closeSession();
*/
//lecture a partir de la table compte
try {
Session session = HibernateUtil.currentSession();
List list = session.find("from COMPTE ");
Iterator it = list.iterator();
while(it.hasNext())
{
Compte compte = (Compte)it.next();
System.out.println(compte.getLoginCompte());
}