-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: Unit test with unexploded jar
PostPosted: Mon Jun 04, 2007 3:43 pm 
Beginner
Beginner

Joined: Sat Jul 29, 2006 12:29 am
Posts: 27
Hi,

I've tried to do POJO tests with Entity Manager and got this problem. My package EmpresaEJB depends on Agenda-1.0-SNAPSHOT.jar's classes. Seems it cannot find Empresa's dependencies. Am I right? How can I solve this problem? Any references on Maven + Pojo tests?

I've been using Maven, but also tried to set Eclipse project's dependencies.

Thanks.

JUnit trace:

java.lang.IllegalArgumentException: Unknown entity: com.buscape.empresa.model.Empresa
at org.hibernate.ejb.AbstractEntityManagerImpl.merge(AbstractEntityManagerImpl.java:233)
at com.buscape.generico.GenericEJB3DAO.makePersistent(GenericEJB3DAO.java:82)
at com.buscape.EmpresaTest.empresaCRUD(EmpresaTest.java:122)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.junit.internal.runners.TestMethodRunner.executeMethodBody(TestMethodRunner.java:99)
at org.junit.internal.runners.TestMethodRunner.runUnprotected(TestMethodRunner.java:81)
at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
at org.junit.internal.runners.TestMethodRunner.runMethod(TestMethodRunner.java:75)
at org.junit.internal.runners.TestMethodRunner.run(TestMethodRunner.java:45)
at org.junit.internal.runners.TestClassMethodsRunner.invokeTestMethod(TestClassMethodsRunner.java:71)
at org.junit.internal.runners.TestClassMethodsRunner.run(TestClassMethodsRunner.java:35)
at org.junit.internal.runners.TestClassRunner$1.runUnprotected(TestClassRunner.java:42)
at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
at org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:38)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
Caused by: org.hibernate.MappingException: Unknown entity: com.buscape.empresa.model.Empresa
at org.hibernate.impl.SessionFactoryImpl.getEntityPersister(SessionFactoryImpl.java:550)
at org.hibernate.impl.SessionImpl.getEntityPersister(SessionImpl.java:1338)
at org.hibernate.event.def.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:97)
at org.hibernate.event.def.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:53)
at org.hibernate.impl.SessionImpl.fireMerge(SessionImpl.java:677)
at org.hibernate.impl.SessionImpl.merge(SessionImpl.java:661)
at org.hibernate.impl.SessionImpl.merge(SessionImpl.java:665)
at org.hibernate.ejb.AbstractEntityManagerImpl.merge(AbstractEntityManagerImpl.java:227)
... 22 more



Entity Manager log:

16:25:45,609 INFO Version:15 - Hibernate EntityManager 3.2.1.GA
16:25:45,671 INFO Version:15 - Hibernate Annotations 3.2.1.GA
16:25:45,703 INFO Environment:509 - Hibernate 3.2.3
16:25:45,703 INFO Environment:542 - hibernate.properties not found
16:25:45,718 INFO Environment:676 - Bytecode provider name : cglib
16:25:45,734 INFO Environment:593 - using JDK 1.4 java.sql.Timestamp handling
16:25:46,031 DEBUG Ejb3Configuration:199 - Look up for persistence unit: empire
16:25:46,125 DEBUG DTDEntityResolver:38 - trying to resolve system-id [http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd]
16:25:46,125 DEBUG EJB3DTDEntityResolver:49 - recognized EJB3 ORM namespace; attempting to resolve on classpath under org/hibernate/ejb
16:25:46,140 DEBUG EJB3DTDEntityResolver:58 - located [http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd] in classpath
16:25:46,218 DEBUG Ejb3Configuration:544 - Detect class: true; detect hbm: false
16:25:46,234 DEBUG JarVisitor:206 - Searching mapped entities in jar/par: file:/C:/workspace/EmpresaEJB/target/test-classes
16:25:46,250 DEBUG JarVisitor:246 - Filtering: com.buscape.EmpresaTest
16:25:46,328 DEBUG Ejb3Configuration:544 - Detect class: true; detect hbm: false
16:25:46,328 DEBUG JarVisitor:206 - Searching mapped entities in jar/par: file:Agenda-1.0-SNAPSHOT.jar
16:25:46,328 WARN ExplodedJarVisitor:38 - Exploded jar does not exists (ignored): file:Agenda-1.0-SNAPSHOT.jar
16:25:46,328 DEBUG Ejb3Configuration:151 - Creating Factory: empire
16:25:46,343 DEBUG AnnotationConfiguration:235 - Execute first pass mapping processing
16:25:46,437 DEBUG AnnotationConfiguration:435 - Process hbm files
16:25:46,437 DEBUG AnnotationConfiguration:443 - Process annotated classes
16:25:46,437 DEBUG AnnotationConfiguration:329 - processing manytoone fk mappings
16:25:46,453 DEBUG Configuration:1120 - processing extends queue
16:25:46,453 DEBUG Configuration:1124 - processing collection mappings
16:25:46,453 DEBUG Configuration:1135 - processing native query and ResultSetMapping mappings
16:25:46,453 DEBUG Configuration:1143 - processing association property references
16:25:46,453 DEBUG Configuration:1165 - processing foreign key constraints
16:25:46,468 DEBUG NamingHelper:30 - Not Ejb3Configuration to JNDI, no JNDI name configured
16:25:46,484 DEBUG Configuration:1285 - Preparing to build session factory with filters : {}
16:25:46,484 DEBUG AnnotationConfiguration:235 - Execute first pass mapping processing
16:25:46,484 DEBUG AnnotationConfiguration:435 - Process hbm files
16:25:46,484 DEBUG AnnotationConfiguration:443 - Process annotated classes
16:25:46,484 DEBUG AnnotationConfiguration:329 - processing manytoone fk mappings
16:25:46,484 DEBUG Configuration:1120 - processing extends queue
16:25:46,484 DEBUG Configuration:1124 - processing collection mappings
16:25:46,484 DEBUG Configuration:1135 - processing native query and ResultSetMapping mappings
16:25:46,484 DEBUG Configuration:1143 - processing association property references
16:25:46,484 DEBUG Configuration:1165 - processing foreign key constraints
16:25:46,515 INFO C3P0ConnectionProvider:81 - C3P0 using driver: com.mysql.jdbc.Driver at URL: jdbc:mysql://200.143.19.17:3306/soa_teste
16:25:46,515 INFO C3P0ConnectionProvider:82 - Connection properties: {user=site_soa_account, password=****, autocommit=true, release_mode=auto}
16:25:46,515 INFO C3P0ConnectionProvider:85 - autocommit mode: true
16:25:46,640 INFO MLog:80 - MLog clients using log4j logging.
16:25:46,703 INFO C3P0Registry:77 - Initializing c3p0-0.9.0 [built 11-July-2005 00:43:29 -0400; debug? true; trace: 10]
16:25:47,125 INFO PoolBackedDataSource:257 - Initializing c3p0 pool... com.mchange.v2.c3p0.PoolBackedDataSource@122c9df [ connectionPoolDataSource -> com.mchange.v2.c3p0.WrapperConnectionPoolDataSource@83020 [ acquireIncrement -> 3, acquireRetryAttempts -> 30, acquireRetryDelay -> 1000, autoCommitOnClose -> false, automaticTestTable -> null, breakAfterAcquireFailure -> false, checkoutTimeout -> 0, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, identityToken -> 83020, idleConnectionTestPeriod -> 3000, initialPoolSize -> 5, maxIdleTime -> 300, maxPoolSize -> 20, maxStatements -> 50, maxStatementsPerConnection -> 0, minPoolSize -> 5, nestedDataSource -> com.mchange.v2.c3p0.DriverManagerDataSource@82d603 [ description -> null, driverClass -> null, factoryClassLocation -> null, identityToken -> 82d603, jdbcUrl -> jdbc:mysql://200.143.19.17:3306/soa_teste, properties -> {user=******, password=******, autocommit=true, release_mode=auto} ], preferredTestQuery -> null, propertyCycle -> 300, testConnectionOnCheckin -> false, testConnectionOnCheckout -> false, usesTraditionalReflectiveProxies -> false ], factoryClassLocation -> null, identityToken -> 122c9df, numHelperThreads -> 3 ]
16:25:47,156 DEBUG BasicResourcePool:942 - awaitAvailable(): [unknown]
16:25:47,171 DEBUG BasicResourcePool:1159 - trace com.mchange.v2.resourcepool.BasicResourcePool@12c4768 [managed: 0, unused: 0, excluded: 0]
16:25:48,343 DEBUG BasicResourcePool:1159 - trace com.mchange.v2.resourcepool.BasicResourcePool@12c4768 [managed: 1, unused: 1, excluded: 0]
16:25:48,343 DEBUG BasicResourcePool:1081 - resource age is okay: com.mchange.v2.c3p0.impl.NewPooledConnection@1588325 ---> age: 0 max: 300000 [com.mchange.v2.resourcepool.BasicResourcePool@12c4768]
16:25:48,359 DEBUG BasicResourcePool:1159 - trace com.mchange.v2.resourcepool.BasicResourcePool@12c4768 [managed: 1, unused: 0, excluded: 0] (e.g. com.mchange.v2.c3p0.impl.NewPooledConnection@1588325)
16:25:48,390 INFO SettingsFactory:89 - RDBMS: MySQL, version: 5.0.19-max-log
16:25:48,390 INFO SettingsFactory:90 - JDBC driver: MySQL-AB JDBC Driver, version: mysql-connector-java-5.0.5 ( $Date: 2007-03-01 00:01:06 +0100 (Thu, 01 Mar 2007) $, $Revision: 6329 $ )
16:25:48,390 DEBUG GooGooStatementCache:197 - checkinAll(): com.mchange.v2.c3p0.stmt.GlobalMaxOnlyStatementCache stats -- total size: 0; checked out: 0; num connections: 0; num keys: 0
16:25:48,390 DEBUG BasicResourcePool:1159 - trace com.mchange.v2.resourcepool.BasicResourcePool@12c4768 [managed: 1, unused: 0, excluded: 0] (e.g. com.mchange.v2.c3p0.impl.NewPooledConnection@1588325)
16:25:48,437 INFO Dialect:152 - Using dialect: org.hibernate.dialect.MySQL5Dialect
16:25:48,546 INFO TransactionFactoryFactory:34 - Transaction strategy: org.hibernate.transaction.JDBCTransactionFactory
16:25:48,562 INFO TransactionManagerLookupFactory:33 - No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
16:25:48,562 INFO SettingsFactory:143 - Automatic flush during beforeCompletion(): disabled
16:25:48,562 INFO SettingsFactory:147 - Automatic session close at end of transaction: disabled
16:25:48,562 INFO SettingsFactory:154 - JDBC batch size: 15
16:25:48,562 INFO SettingsFactory:157 - JDBC batch updates for versioned data: disabled
16:25:48,562 INFO SettingsFactory:162 - Scrollable result sets: enabled
16:25:48,562 DEBUG SettingsFactory:166 - Wrap result sets: disabled
16:25:48,562 INFO SettingsFactory:170 - JDBC3 getGeneratedKeys(): enabled
16:25:48,562 INFO SettingsFactory:178 - Connection release mode: auto
16:25:48,578 INFO SettingsFactory:202 - Maximum outer join fetch depth: 2
16:25:48,578 INFO SettingsFactory:205 - Default batch fetch size: 1
16:25:48,578 INFO SettingsFactory:209 - Generate SQL with comments: disabled
16:25:48,578 INFO SettingsFactory:213 - Order SQL updates by primary key: disabled
16:25:48,578 INFO SettingsFactory:382 - Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
16:25:48,578 INFO ASTQueryTranslatorFactory:24 - Using ASTQueryTranslatorFactory
16:25:48,578 INFO SettingsFactory:221 - Query language substitutions: {}
16:25:48,593 INFO SettingsFactory:226 - JPA-QL strict compliance: enabled
16:25:48,593 INFO SettingsFactory:231 - Second-level cache: enabled
16:25:48,593 INFO SettingsFactory:235 - Query cache: disabled
16:25:48,593 INFO SettingsFactory:369 - Cache provider: org.hibernate.cache.NoCacheProvider
16:25:48,593 INFO SettingsFactory:250 - Optimize cache for minimal puts: disabled
16:25:48,593 INFO SettingsFactory:259 - Structured second-level cache entries: disabled
16:25:48,609 INFO SettingsFactory:279 - Echoing all SQL to stdout
16:25:48,609 INFO SettingsFactory:286 - Statistics: disabled
16:25:48,609 INFO SettingsFactory:290 - Deleted entity synthetic identifier rollback: disabled
16:25:48,625 INFO SettingsFactory:305 - Default entity-mode: pojo
16:25:48,625 INFO SettingsFactory:309 - Named query checking : enabled
16:25:48,703 INFO SessionFactoryImpl:161 - building session factory
16:25:48,703 DEBUG SessionFactoryImpl:173 - Session factory constructed with filter configurations : {}
16:25:48,703 DEBUG SessionFactoryImpl:177 - instantiating session factory with properties: {java.vendor=Sun Microsystems Inc., hibernate.connection.url=jdbc:mysql://200.143.19.17:3306/soa_teste, sun.management.compiler=HotSpot Client Compiler, hibernate.ejb.discard_pc_on_close=false, use_sql_comments=true, hibernate.transaction.flush_before_completion=false, os.name=Windows XP, sun.boot.class.path=C:\jre1.5.0_06\lib\rt.jar;C:\jre1.5.0_06\lib\i18n.jar;C:\jre1.5.0_06\lib\sunrsasign.jar;C:\jre1.5.0_06\lib\jsse.jar;C:\jre1.5.0_06\lib\jce.jar;C:\jre1.5.0_06\lib\charsets.jar;C:\jre1.5.0_06\classes, sun.desktop=windows, hibernate.c3p0.max_size=20, java.vm.specification.vendor=Sun Microsystems Inc., java.runtime.version=1.5.0_06-b05, hibernate.connection.autocommit=true, hibernate.c3p0.min_size=5, user.name=andresalvati, hibernate.connection.release_mode=auto, hibernate.c3p0.timeout=300, user.language=pt, sun.boot.library.path=C:\jre1.5.0_06\bin, java.version=1.5.0_06, user.timezone=America/Sao_Paulo, sun.arch.data.model=32, java.endorsed.dirs=C:\jre1.5.0_06\lib\endorsed, sun.cpu.isalist=, sun.jnu.encoding=Cp1252, file.encoding.pkg=sun.io, file.separator=\, java.specification.name=Java Platform API Specification, hibernate.format_sql=true, java.class.version=49.0, user.country=BR, java.home=C:\jre1.5.0_06, java.vm.info=mixed mode, os.version=5.1, hibernate.transaction.factory_class=org.hibernate.transaction.JDBCTransactionFactory, hibernate.query.jpaql_strict_compliance=true, path.separator=;, java.vm.version=1.5.0_06-b05, hibernate.connection.password=soaacc, user.variant=, java.awt.printerjob=sun.awt.windows.WPrinterJob, sun.io.unicode.encoding=UnicodeLittle, awt.toolkit=sun.awt.windows.WToolkit, hibernate.connection.username=site_soa_account, user.home=C:\Documents and Settings\andresalvati, java.specification.vendor=Sun Microsystems Inc., hibernate.hbm2ddl.auto=validate, java.library.path=C:\jre1.5.0_06\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\ARQUIV~1\CA\SHARED~1\SCANEN~1;C:\Arquivos de programas\CA\SharedComponents\CAUpdate\;C:\Arquivos de programas\CA\SharedComponents\ThirdParty\;C:\Arquivos de programas\CA\SharedComponents\SubscriptionLicense\;C:\ARQUIV~1\CA\ETRUST~1;C:\Arquivos de programas\Microsoft SQL Server\80\Tools\BINN;C:\maven-2.0.6\bin;c:\apache-ant-1.6.5\bin;c:\apache-ant-1.7.0\bin, java.vendor.url=http://java.sun.com/, hibernate.connection.driver_class=com.mysql.jdbc.Driver, java.vm.vendor=Sun Microsystems Inc., hibernate.dialect=org.hibernate.dialect.MySQL5Dialect, java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition, hibernate.archive.autodetection=class, java.class.path=C:\workspace\EmpresaEJB\target\test-classes;C:\workspace\EmpresaEJB\target\classes;C:\RepositorioMaven\TestePojos\junit\4.1\junit-4.1.jar;C:\RepositorioMaven\jboss\jboss-transaction-client\4.2.0\jboss-transaction-client-4.2.0.jar;C:\RepositorioMaven\TestePojos\jboss-archive-browsing\0\jboss-archive-browsing-0.jar;C:\RepositorioMaven\jboss\jnp-client\4.2.0\jnp-client-4.2.0.jar;C:\RepositorioMaven\TestePojos\c3p0\0.9.0\c3p0-0.9.0.jar;C:\RepositorioMaven\TestePojos\javassist\0\javassist-0.jar;C:\RepositorioMaven\com\buscape\Generico\1.0-SNAPSHOT\Generico-1.0-SNAPSHOT.jar;C:\RepositorioMaven\TestePojos\log4j\1.2.13\log4j-1.2.13.jar;C:\RepositorioMaven\TestePojos\dom4j\1.6.1\dom4j-1.6.1.jar;C:\RepositorioMaven\jboss\jboss-ejb3\4.2.0\jboss-ejb3-4.2.0.jar;C:\RepositorioMaven\TestePojos\asm\0\asm-0.jar;C:\RepositorioMaven\TestePojos\asm-attrs\0\asm-attrs-0.jar;C:\RepositorioMaven\jboss\jboss-remoting\4.2.0\jboss-remoting-4.2.0.jar;C:\RepositorioMaven\TestePojos\mysql-connector-java\5.0.5\mysql-connector-java-5.0.5.jar;C:\RepositorioMaven\jboss\jboss-ejb3x\4.2.0\jboss-ejb3x-4.2.0.jar;C:\RepositorioMaven\jboss\ejb3-persistence\4.2.0\ejb3-persistence-4.2.0.jar;C:\RepositorioMaven\hibernate\hibernate3\4.2.0\hibernate3-4.2.0.jar;C:\RepositorioMaven\TestePojos\jta\0\jta-0.jar;C:\RepositorioMaven\jboss\jboss-annotations-ejb3\4.2.0\jboss-annotations-ejb3-4.2.0.jar;C:\RepositorioMaven\hibernate\hibernate-annotations\4.2.0\hibernate-annotations-4.2.0.jar;C:\RepositorioMaven\apache\commons-logging\4.2.0\commons-logging-4.2.0.jar;C:\RepositorioMaven\com\buscape\Agenda\1.0-SNAPSHOT\Agenda-1.0-SNAPSHOT.jar;C:\RepositorioMaven\TestePojos\commons-collections\2.1.1\commons-collections-2.1.1.jar;C:\RepositorioMaven\TestePojos\antlr\2.7.6\antlr-2.7.6.jar;C:\RepositorioMaven\jboss\jboss-j2ee\4.2.0\jboss-j2ee-4.2.0.jar;C:\RepositorioMaven\TestePojos\cglib\2.1.3\cglib-2.1.3.jar;C:\RepositorioMaven\TestePojos\hibernate-tools\0\hibernate-tools-0.jar;C:\RepositorioMaven\jboss\jbosssx-client\4.2.0\jbosssx-client-4.2.0.jar;C:\RepositorioMaven\hibernate\hibernate-entitymanager\4.2.0\hibernate-entitymanager-4.2.0.jar;C:\workspace\Agenda\target\test-classes;C:\workspace\Agenda\target\classes;C:\RepositorioMaven\junit\junit\3.8.1\junit-3.8.1.jar;C:\RepositorioMaven\TestePojos\hibernate-entitymanager\0\hibernate-entitymanager-0.jar;/C:/eclipse/configuration/org.eclipse.osgi/bundles/97/1/.cp/;/C:/eclipse/plugins/org.eclipse.jdt.junit_3.2.1.r321_v20060810/junitsupport.jar;/C:/eclipse/plugins/org.eclipse.jdt.junit.runtime_3.2.1.r321_v20060721/junitruntime.jar, hibernate.bytecode.use_reflection_optimizer=false, java.vm.specification.name=Java Virtual Machine Specification, java.vm.specification.version=1.0, sun.cpu.endian=little, sun.os.patch.level=Service Pack 2, java.io.tmpdir=C:\DOCUME~1\ANDRES~1\CONFIG~1\Temp\, java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi, os.arch=x86, java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment, java.ext.dirs=C:\jre1.5.0_06\lib\ext, user.dir=C:\workspace\EmpresaEJB, hibernate.c3p0.idle_test_period=3000, line.separator=
, java.vm.name=Java HotSpot(TM) Client VM, file.encoding=Cp1252, hibernate.use_identifier_rollback=false, java.specification.version=1.5, hibernate.c3p0.max_statements=50, hibernate.show_sql=true}
16:25:48,718 DEBUG SessionFactoryObjectFactory:39 - initializing class SessionFactoryObjectFactory
16:25:48,718 DEBUG SessionFactoryObjectFactory:76 - registered: 4028963a12f833440112f833451f0000 (unnamed)
16:25:48,718 INFO SessionFactoryObjectFactory:82 - Not binding factory to JNDI, no JNDI name configured
16:25:48,718 DEBUG SessionFactoryImpl:308 - instantiated session factory
16:25:48,734 INFO SchemaValidator:98 - Running schema validator
16:25:48,734 INFO SchemaValidator:106 - fetching database metadata
16:25:48,734 DEBUG BasicResourcePool:1081 - resource age is okay: com.mchange.v2.c3p0.impl.NewPooledConnection@1588325 ---> age: 344 max: 300000 [com.mchange.v2.resourcepool.BasicResourcePool@12c4768]
16:25:48,734 DEBUG BasicResourcePool:1159 - trace com.mchange.v2.resourcepool.BasicResourcePool@12c4768 [managed: 1, unused: 0, excluded: 0] (e.g. com.mchange.v2.c3p0.impl.NewPooledConnection@1588325)
16:25:48,750 DEBUG AnnotationConfiguration:235 - Execute first pass mapping processing
16:25:48,750 DEBUG AnnotationConfiguration:435 - Process hbm files
16:25:48,750 DEBUG AnnotationConfiguration:443 - Process annotated classes
16:25:48,750 DEBUG AnnotationConfiguration:329 - processing manytoone fk mappings
16:25:48,750 DEBUG Configuration:1120 - processing extends queue
16:25:48,750 DEBUG Configuration:1124 - processing collection mappings
16:25:48,750 DEBUG Configuration:1135 - processing native query and ResultSetMapping mappings
16:25:48,750 DEBUG Configuration:1143 - processing association property references
16:25:48,750 DEBUG Configuration:1165 - processing foreign key constraints
16:25:48,750 DEBUG GooGooStatementCache:197 - checkinAll(): com.mchange.v2.c3p0.stmt.GlobalMaxOnlyStatementCache stats -- total size: 0; checked out: 0; num connections: 0; num keys: 0
16:25:48,750 DEBUG BasicResourcePool:1159 - trace com.mchange.v2.resourcepool.BasicResourcePool@12c4768 [managed: 1, unused: 0, excluded: 0] (e.g. com.mchange.v2.c3p0.impl.NewPooledConnection@1588325)
16:25:48,765 DEBUG SessionFactoryImpl:392 - Checking 0 named HQL queries
16:25:48,765 DEBUG SessionFactoryImpl:412 - Checking 0 named SQL queries
16:25:48,968 DEBUG SessionImpl:220 - opened session at timestamp: 11809851488
16:25:48,984 DEBUG JDBCTransaction:54 - begin
16:25:48,984 DEBUG ConnectionManager:421 - opening JDBC connection
16:25:48,984 DEBUG BasicResourcePool:1081 - resource age is okay: com.mchange.v2.c3p0.impl.NewPooledConnection@1588325 ---> age: 219 max: 300000 [com.mchange.v2.resourcepool.BasicResourcePool@12c4768]
16:25:48,984 DEBUG BasicResourcePool:1159 - trace com.mchange.v2.resourcepool.BasicResourcePool@12c4768 [managed: 1, unused: 0, excluded: 0] (e.g. com.mchange.v2.c3p0.impl.NewPooledConnection@1588325)
16:25:48,984 DEBUG JDBCTransaction:59 - current autocommit status: true
16:25:48,984 DEBUG JDBCTransaction:62 - disabling autocommit
16:25:49,078 INFO SessionFactoryImpl:769 - closing
16:25:49,187 DEBUG BasicResourcePool:1159 - trace com.mchange.v2.resourcepool.BasicResourcePool@12c4768 [managed: 2, unused: 1, excluded: 0] (e.g. com.mchange.v2.c3p0.impl.NewPooledConnection@1588325)
16:25:51,406 DEBUG BasicResourcePool:1159 - trace com.mchange.v2.resourcepool.BasicResourcePool@12c4768 [managed: 3, unused: 2, excluded: 0] (e.g. com.mchange.v2.c3p0.impl.NewPooledConnection@1588325)
16:25:51,421 DEBUG GooGooStatementCache:229 - ENTER METHOD: closeAll( com.mysql.jdbc.Connection@e13e7b )! -- num_connections: 0
16:25:51,421 DEBUG GooGooStatementCache:231 - Set of statements for connection: null
16:25:51,500 DEBUG GooGooStatementCache:274 - closeAll(): com.mchange.v2.c3p0.stmt.GlobalMaxOnlyStatementCache stats -- total size: 0; checked out: 0; num connections: 0; num keys: 0
16:25:51,500 DEBUG BasicResourcePool:1159 - trace com.mchange.v2.resourcepool.BasicResourcePool@12c4768 [managed: 2, unused: 1, excluded: 0] (e.g. com.mchange.v2.c3p0.impl.NewPooledConnection@1588325)
16:25:51,500 DEBUG GooGooStatementCache:229 - ENTER METHOD: closeAll( com.mysql.jdbc.Connection@1949f78 )! -- num_connections: 0
16:25:51,500 DEBUG GooGooStatementCache:231 - Set of statements for connection: null
16:25:51,500 DEBUG GooGooStatementCache:274 - closeAll(): com.mchange.v2.c3p0.stmt.GlobalMaxOnlyStatementCache stats -- total size: 0; checked out: 0; num connections: 0; num keys: 0
16:25:51,515 DEBUG BasicResourcePool:1159 - trace com.mchange.v2.resourcepool.BasicResourcePool@12c4768 [managed: 0, unused: 0, excluded: 1] (e.g. com.mchange.v2.c3p0.impl.NewPooledConnection@1588325)
16:25:51,515 DEBUG ThreadPoolAsynchronousRunner:399 - Thread[com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1,5,main] interrupted. Shutting down.
16:25:51,546 DEBUG PoolBackedDataSource:214 - com.mchange.v2.c3p0.PoolBackedDataSource@122c9df has been closed. force_destroy == false
java.lang.Exception: Debug -- PoolBackedDataSource.close() stack trace.
at com.mchange.v2.c3p0.PoolBackedDataSource.close(PoolBackedDataSource.java:214)
at com.mchange.v2.c3p0.DataSources.destroy(DataSources.java:259)
at com.mchange.v2.c3p0.DataSources.destroy(DataSources.java:226)
at org.hibernate.connection.C3P0ConnectionProvider.close(C3P0ConnectionProvider.java:182)
at org.hibernate.impl.SessionFactoryImpl.close(SessionFactoryImpl.java:803)
at org.hibernate.ejb.EntityManagerFactoryImpl.close(EntityManagerFactoryImpl.java:43)
at com.buscape.EmpresaTest.finaliza(EmpresaTest.java:83)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.junit.internal.runners.BeforeAndAfterRunner.invokeMethod(BeforeAndAfterRunner.java:74)
at org.junit.internal.runners.BeforeAndAfterRunner.runAfters(BeforeAndAfterRunner.java:65)
at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:37)
at org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:38)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)[/code]


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 06, 2007 11:54 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Weird, can you try and rerproduce on HEM 3.3.1? I've done some work in this are.

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 18, 2007 3:37 pm 
Beginner
Beginner

Joined: Sat Jul 29, 2006 12:29 am
Posts: 27
Hi Emmanuel,

Excuse me. Forgot to give my feedback here.

I've solved this problem with this:
Code:
<jar-file>/RepositorioMaven/com/buscape/Agenda/1.0-SNAPSHOT/Agenda-1.0-SNAPSHOT.jar</jar-file>
       <jar-file>./target/classes</jar-file>


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.