-->
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.  [ 8 posts ] 
Author Message
 Post subject: Not binding factory to JNDI, no JNDI name configured
PostPosted: Fri Mar 13, 2009 1:29 am 
Newbie

Joined: Thu Mar 12, 2009 9:02 am
Posts: 7
INFO: building session factory
Mar 13, 2009 10:01:11 AM org.hibernate.impl.SessionFactoryObjectFactory addInstance
INFO: Not binding factory to JNDI, no JNDI name configured
Exception in thread "main" java.lang.NoClassDefFoundError: javax/transaction/Synchronization
at org.hibernate.impl.SessionImpl.<init>(SessionImpl.java:212)
at org.hibernate.impl.SessionFactoryImpl.openSession(SessionFactoryImpl.java:442)
at org.hibernate.impl.SessionFactoryImpl.openSession(SessionFactoryImpl.java:466)
at org.hibernate.impl.SessionFactoryImpl.openSession(SessionFactoryImpl.java:474)
at Main.main(Main.java:19)
Caused by: java.lang.ClassNotFoundException: javax.transaction.Synchronization
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
... 5 more

Im New to Hibernate this is my hello hibernate program.
I Occoured this problem.

Thanks for reply,
Prakash.S


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 13, 2009 1:36 am 
Senior
Senior

Joined: Wed Sep 19, 2007 9:31 pm
Posts: 191
Location: Khuntien (Indonesia)
Have you added jta.jar in classpath?


Top
 Profile  
 
 Post subject: Thanks
PostPosted: Fri Mar 13, 2009 2:51 am 
Newbie

Joined: Thu Mar 12, 2009 9:02 am
Posts: 7
SIau_Tie wrote:
Have you added jta.jar in classpath?


Thanks for your reply..
Its working now...


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 13, 2009 2:51 am 
Newbie

Joined: Thu Mar 12, 2009 9:02 am
Posts: 7
<delete>


Last edited by Prakash.yes on Fri Mar 13, 2009 2:57 am, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 13, 2009 2:52 am 
Newbie

Joined: Thu Mar 12, 2009 9:02 am
Posts: 7
<deleted>


Top
 Profile  
 
 Post subject: Re: Not binding factory to JNDI, no JNDI name configured
PostPosted: Mon May 17, 2010 6:46 am 
Newbie

Joined: Mon May 17, 2010 6:36 am
Posts: 1
I'm using hibernate in the glassfish and experiencing something similar. The thing is. it brings data from the database but it takes almost 10s. Before this is what I get

INFO: Invoking wsimport with http://localhost:8040/WS4/WSService?WSDL
INFO: wsimport successful
INFO: Hibernate Annotations 3.3.1.GA
INFO: Hibernate 3.2.5
INFO: hibernate.properties not found
INFO: Bytecode provider name : cglib
INFO: using JDK 1.4 java.sql.Timestamp handling
INFO: Hibernate EntityManager 3.3.2.GA
INFO: Binding entity from annotated class: entities.Afiliado
INFO: Binding Named query: Afiliado.findAll => SELECT a FROM Afiliado a
INFO: Bind entity entities.Afiliado on table AFILIADO
INFO: Binding entity from annotated class: entities.Campo
INFO: Binding Named query: Campo.findAll => SELECT c FROM Campo c
INFO: Bind entity entities.Campo on table CAMPO
INFO: Binding entity from annotated class: entities.CampoValor
INFO: Binding Named query: CampoValor.findAll => SELECT c FROM CampoValor c
INFO: Bind entity entities.CampoValor on table CAMPO_VALOR
INFO: Binding entity from annotated class: entities.Estado
INFO: Binding Named query: Estado.findAll => SELECT e FROM Estado e
INFO: Bind entity entities.Estado on table ESTADO
INFO: Binding entity from annotated class: entities.Item
INFO: Binding Named query: Item.findAll => SELECT i FROM Item i
INFO: Bind entity entities.Item on table ITEM
INFO: Binding entity from annotated class: entities.OrigemDestino
INFO: Binding Named query: OrigemDestino.findAll => SELECT o FROM OrigemDestino o
INFO: Bind entity entities.OrigemDestino on table ORIGEM_DESTINO
INFO: Binding entity from annotated class: entities.Pedido
INFO: Binding Named query: Pedido.findAll => SELECT p FROM Pedido p
INFO: Bind entity entities.Pedido on table PEDIDO
INFO: Binding entity from annotated class: entities.Servico
INFO: Binding Named query: Servico.findAll => SELECT s FROM Servico s
INFO: Bind entity entities.Servico on table SERVICO
INFO: Binding entity from annotated class: entities.Solicitante
INFO: Binding Named query: Solicitante.findAll => SELECT s FROM Solicitante s
INFO: Bind entity entities.Solicitante on table SOLICITANTE
INFO: Binding entity from annotated class: entities.ValorPrazo
INFO: Binding Named query: ValorPrazo.findAll => SELECT v FROM ValorPrazo v
INFO: Bind entity entities.ValorPrazo on table VALOR_PRAZO
INFO: Mapping collection: entities.Afiliado.pedidoList -> PEDIDO
INFO: Mapping collection: entities.Campo.campoValorList -> CAMPO_VALOR
INFO: Mapping collection: entities.Item.campoValorList -> CAMPO_VALOR
INFO: Mapping collection: entities.OrigemDestino.pedidoList -> PEDIDO
INFO: Mapping collection: entities.OrigemDestino.pedidoList1 -> PEDIDO
INFO: Mapping collection: entities.Pedido.itemList -> ITEM
INFO: Mapping collection: entities.Servico.itemList -> ITEM
INFO: Mapping collection: entities.Servico.valorPrazoList -> VALOR_PRAZO
INFO: Mapping collection: entities.Solicitante.pedidoList -> PEDIDO
INFO: Hibernate Validator not found: ignoring
INFO: Using Hibernate built-in connection pool (not for production use!)
INFO: Hibernate connection pool size: 20
INFO: autocommit mode: true
INFO: using driver: com.microsoft.sqlserver.jdbc.SQLServerDriver at URL: jdbc:sqlserver://localhost\SQLEXPRESS:1433;databaseName=WS3
INFO: connection properties: {user=SA, password=****, autocommit=true, release_mode=auto}
INFO: RDBMS: Microsoft SQL Server, version: 9.00.4053
INFO: JDBC driver: Microsoft SQL Server JDBC Driver 2.0, version: 2.0.1803.100
INFO: Using dialect: org.hibernate.dialect.SQLServerDialect
INFO: Transaction strategy: org.hibernate.transaction.JDBCTransactionFactory
INFO: No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
INFO: Automatic flush during beforeCompletion(): disabled
INFO: Automatic session close at end of transaction: disabled
INFO: Scrollable result sets: enabled
INFO: JDBC3 getGeneratedKeys(): enabled
INFO: Connection release mode: auto
INFO: Default batch fetch size: 1
INFO: Generate SQL with comments: disabled
INFO: Order SQL updates by primary key: disabled
INFO: Order SQL inserts for batching: disabled
INFO: Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
INFO: Using ASTQueryTranslatorFactory
INFO: Query language substitutions: {}
INFO: JPA-QL strict compliance: enabled
INFO: Second-level cache: enabled
INFO: Query cache: disabled
INFO: Cache provider: org.hibernate.cache.NoCacheProvider
INFO: Optimize cache for minimal puts: disabled
INFO: Structured second-level cache entries: disabled
INFO: Statistics: disabled
INFO: Deleted entity synthetic identifier rollback: disabled
INFO: Default entity-mode: pojo
INFO: Named query checking : enabled
INFO: building session factory
INFO: Not binding factory to JNDI, no JNDI name configured
INFO: Binding entity from annotated class: entities.Afiliado
INFO: Binding Named query: Afiliado.findAll => SELECT a FROM Afiliado a
INFO: Bind entity entities.Afiliado on table AFILIADO
INFO: Binding entity from annotated class: entities.Campo
INFO: Binding Named query: Campo.findAll => SELECT c FROM Campo c
INFO: Bind entity entities.Campo on table CAMPO
INFO: Binding entity from annotated class: entities.CampoValor
INFO: Binding Named query: CampoValor.findAll => SELECT c FROM CampoValor c
INFO: Bind entity entities.CampoValor on table CAMPO_VALOR
INFO: Binding entity from annotated class: entities.Estado
INFO: Binding Named query: Estado.findAll => SELECT e FROM Estado e
INFO: Bind entity entities.Estado on table ESTADO
INFO: Binding entity from annotated class: entities.Item
INFO: Binding Named query: Item.findAll => SELECT i FROM Item i
INFO: Bind entity entities.Item on table ITEM
INFO: Binding entity from annotated class: entities.OrigemDestino
INFO: Binding Named query: OrigemDestino.findAll => SELECT o FROM OrigemDestino o
INFO: Bind entity entities.OrigemDestino on table ORIGEM_DESTINO
INFO: Binding entity from annotated class: entities.Pedido
INFO: Binding Named query: Pedido.findAll => SELECT p FROM Pedido p
INFO: Bind entity entities.Pedido on table PEDIDO
INFO: Binding entity from annotated class: entities.Servico
INFO: Binding Named query: Servico.findAll => SELECT s FROM Servico s
INFO: Bind entity entities.Servico on table SERVICO
INFO: Binding entity from annotated class: entities.Solicitante
INFO: Binding Named query: Solicitante.findAll => SELECT s FROM Solicitante s
INFO: Bind entity entities.Solicitante on table SOLICITANTE
INFO: Binding entity from annotated class: entities.ValorPrazo
INFO: Binding Named query: ValorPrazo.findAll => SELECT v FROM ValorPrazo v
INFO: Bind entity entities.ValorPrazo on table VALOR_PRAZO
INFO: Mapping collection: entities.Afiliado.pedidoList -> PEDIDO
INFO: Mapping collection: entities.Campo.campoValorList -> CAMPO_VALOR
INFO: Mapping collection: entities.Item.campoValorList -> CAMPO_VALOR
INFO: Mapping collection: entities.OrigemDestino.pedidoList -> PEDIDO
INFO: Mapping collection: entities.OrigemDestino.pedidoList1 -> PEDIDO
INFO: Mapping collection: entities.Pedido.itemList -> ITEM
INFO: Mapping collection: entities.Servico.itemList -> ITEM
INFO: Mapping collection: entities.Servico.valorPrazoList -> VALOR_PRAZO
INFO: Mapping collection: entities.Solicitante.pedidoList -> PEDIDO
INFO: Hibernate Validator not found: ignoring
INFO: Using Hibernate built-in connection pool (not for production use!)
INFO: Hibernate connection pool size: 20
INFO: autocommit mode: true
INFO: using driver: com.microsoft.sqlserver.jdbc.SQLServerDriver at URL: jdbc:sqlserver://localhost\SQLEXPRESS:1433;databaseName=WS3
INFO: connection properties: {user=SA, password=****, autocommit=true, release_mode=auto}
INFO: RDBMS: Microsoft SQL Server, version: 9.00.4053
INFO: JDBC driver: Microsoft SQL Server JDBC Driver 2.0, version: 2.0.1803.100
INFO: Using dialect: org.hibernate.dialect.SQLServerDialect
INFO: Transaction strategy: org.hibernate.transaction.JDBCTransactionFactory
INFO: No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
INFO: Automatic flush during beforeCompletion(): disabled
INFO: Automatic session close at end of transaction: disabled
INFO: Scrollable result sets: enabled
INFO: JDBC3 getGeneratedKeys(): enabled
INFO: Connection release mode: auto
INFO: Default batch fetch size: 1
INFO: Generate SQL with comments: disabled
INFO: Order SQL updates by primary key: disabled
INFO: Order SQL inserts for batching: disabled
INFO: Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
INFO: Using ASTQueryTranslatorFactory
INFO: Query language substitutions: {}
INFO: JPA-QL strict compliance: enabled
INFO: Second-level cache: enabled
INFO: Query cache: disabled
INFO: Cache provider: org.hibernate.cache.NoCacheProvider
INFO: Optimize cache for minimal puts: disabled
INFO: Structured second-level cache entries: disabled
INFO: Statistics: disabled
INFO: Deleted entity synthetic identifier rollback: disabled
INFO: Default entity-mode: pojo
INFO: Named query checking : enabled
INFO: building session factory
INFO: Not binding factory to JNDI, no JNDI name configured



Can anybody tell me What I'm doing wrong, please? JTA.jar is in the classpath. I'm working with netbeans by the way. Not using datasource


Top
 Profile  
 
 Post subject: Re: Not binding factory to JNDI, no JNDI name configured
PostPosted: Fri Dec 30, 2011 3:23 pm 
Newbie

Joined: Fri Dec 30, 2011 3:18 pm
Posts: 1
I am not getting how to resolve below issue:
Please help. Reply to biradar.shiv88@gmail.com

Inside ActionEvent method
Update_Customer
00:35:08,903 INFO Version:15 - Hibernate Annotations 3.4.0.GA
00:35:08,926 INFO Environment:560 - Hibernate 3.3.2.GA
00:35:08,929 INFO Environment:593 - hibernate.properties not found
00:35:08,935 INFO Environment:771 - Bytecode provider name : javassist
00:35:08,941 INFO Environment:652 - using JDK 1.4 java.sql.Timestamp handling
00:35:09,051 INFO Version:14 - Hibernate Commons Annotations 3.1.0.GA
00:35:09,062 INFO Configuration:1474 - configuring from resource: hibernate.cfg.xml
00:35:09,063 INFO Configuration:1451 - Configuration resource: hibernate.cfg.xml
00:35:09,169 INFO Configuration:1589 - Configured SessionFactory: null
00:35:09,180 INFO HibernateSearchEventListenerRegister:53 - Unable to find org.hibernate.search.event.FullTextIndexEventListener on the classpath. Hibernate Search is not enabled.
00:35:09,250 INFO AnnotationBinder:419 - Binding entity from annotated class: com.shiv.otherscreensclass.CustomerClass
00:35:09,301 INFO EntityBinder:422 - Bind entity com.shiv.otherscreensclass.CustomerClass on table CustomerTable
00:35:09,366 INFO AnnotationConfiguration:369 - Hibernate Validator not found: ignoring
00:35:09,439 INFO DriverManagerConnectionProvider:64 - Using Hibernate built-in connection pool (not for production use!)
00:35:09,440 INFO DriverManagerConnectionProvider:65 - Hibernate connection pool size: 2
00:35:09,440 INFO DriverManagerConnectionProvider:68 - autocommit mode: false
00:35:09,452 INFO DriverManagerConnectionProvider:103 - using driver: oracle.jdbc.driver.OracleDriver at URL: jdbc:oracle:thin:@localhost:1521:XE
00:35:09,452 INFO DriverManagerConnectionProvider:109 - connection properties: {user=billing, password=****}
00:35:09,698 INFO SettingsFactory:114 - RDBMS: Oracle, version: Oracle Database 10g Express Edition Release 10.2.0.1.0 - Beta
00:35:09,698 INFO SettingsFactory:115 - JDBC driver: Oracle JDBC driver, version: 10.2.0.1.0XE
00:35:09,735 INFO Dialect:175 - Using dialect: org.hibernate.dialect.Oracle10gDialect
00:35:09,742 INFO TransactionFactoryFactory:59 - Using default transaction strategy (direct JDBC transactions)
00:35:09,745 INFO TransactionManagerLookupFactory:80 - No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
00:35:09,745 INFO SettingsFactory:161 - Automatic flush during beforeCompletion(): disabled
00:35:09,746 INFO SettingsFactory:165 - Automatic session close at end of transaction: disabled
00:35:09,746 INFO SettingsFactory:172 - JDBC batch size: 15
00:35:09,747 INFO SettingsFactory:175 - JDBC batch updates for versioned data: disabled
00:35:09,748 INFO SettingsFactory:180 - Scrollable result sets: enabled
00:35:09,749 INFO SettingsFactory:188 - JDBC3 getGeneratedKeys(): disabled
00:35:09,749 INFO SettingsFactory:196 - Connection release mode: auto
00:35:09,751 INFO SettingsFactory:223 - Default batch fetch size: 1
00:35:09,752 INFO SettingsFactory:227 - Generate SQL with comments: disabled
00:35:09,752 INFO SettingsFactory:231 - Order SQL updates by primary key: disabled
00:35:09,753 INFO SettingsFactory:235 - Order SQL inserts for batching: disabled
00:35:09,753 INFO SettingsFactory:397 - Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
00:35:09,757 INFO ASTQueryTranslatorFactory:47 - Using ASTQueryTranslatorFactory
00:35:09,757 INFO SettingsFactory:243 - Query language substitutions: {}
00:35:09,757 INFO SettingsFactory:248 - JPA-QL strict compliance: disabled
00:35:09,758 INFO SettingsFactory:253 - Second-level cache: enabled
00:35:09,758 INFO SettingsFactory:257 - Query cache: disabled
00:35:09,765 INFO SettingsFactory:382 - Cache region factory : org.hibernate.cache.impl.bridge.RegionFactoryCacheProviderBridge
00:35:09,765 INFO RegionFactoryCacheProviderBridge:61 - Cache provider: org.hibernate.cache.NoCacheProvider
00:35:09,766 INFO SettingsFactory:267 - Optimize cache for minimal puts: disabled
00:35:09,766 INFO SettingsFactory:276 - Structured second-level cache entries: disabled
00:35:09,772 INFO SettingsFactory:296 - Echoing all SQL to stdout
00:35:09,773 INFO SettingsFactory:305 - Statistics: disabled
00:35:09,773 INFO SettingsFactory:309 - Deleted entity synthetic identifier rollback: disabled
00:35:09,773 INFO SettingsFactory:324 - Default entity-mode: pojo
00:35:09,774 INFO SettingsFactory:328 - Named query checking : enabled
00:35:09,819 INFO SessionFactoryImpl:193 - building session factory
00:35:10,055 INFO SessionFactoryObjectFactory:105 - Not binding factory to JNDI, no JNDI name configured
In Updt After beginTransaction
Exception in thread "AWT-EventQueue-0" org.hibernate.hql.ast.QuerySyntaxException: CustomerTable is not mapped [from CustomerTable where customer_code = :customer_code ]
at org.hibernate.hql.ast.util.SessionFactoryHelper.requireClassPersister(SessionFactoryHelper.java:181)
at org.hibernate.hql.ast.tree.FromElementFactory.addFromElement(FromElementFactory.java:110)
at org.hibernate.hql.ast.tree.FromClause.addFromElement(FromClause.java:94)
at org.hibernate.hql.ast.HqlSqlWalker.createFromElement(HqlSqlWalker.java:316)
at org.hibernate.hql.antlr.HqlSqlBaseWalker.fromElement(HqlSqlBaseWalker.java:3228)
at org.hibernate.hql.antlr.HqlSqlBaseWalker.fromElementList(HqlSqlBaseWalker.java:3112)
at org.hibernate.hql.antlr.HqlSqlBaseWalker.fromClause(HqlSqlBaseWalker.java:720)
at org.hibernate.hql.antlr.HqlSqlBaseWalker.query(HqlSqlBaseWalker.java:571)
at org.hibernate.hql.antlr.HqlSqlBaseWalker.selectStatement(HqlSqlBaseWalker.java:288)
at org.hibernate.hql.antlr.HqlSqlBaseWalker.statement(HqlSqlBaseWalker.java:231)
at org.hibernate.hql.ast.QueryTranslatorImpl.analyze(QueryTranslatorImpl.java:254)
at org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:185)
at org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:136)
at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:101)
at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:80)
at org.hibernate.engine.query.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:94)
at org.hibernate.impl.AbstractSessionImpl.getHQLQueryPlan(AbstractSessionImpl.java:156)
at org.hibernate.impl.AbstractSessionImpl.createQuery(AbstractSessionImpl.java:135)
at org.hibernate.impl.SessionImpl.createQuery(SessionImpl.java:1651)
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.hibernate.context.ThreadLocalSessionContext$TransactionProtectionWrapper.invoke(ThreadLocalSessionContext.java:342)
at $Proxy8.createQuery(Unknown Source)
at com.shiv.otherscreensdb.CustomerDb.CustomerUpdate(CustomerDb.java:60)
at com.shiv.otherscreens.LOVScreens.actionPerformed(LOVScreens.java:458)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$000(Unknown Source)
at java.awt.EventQueue$1.run(Unknown Source)
at java.awt.EventQueue$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$2.run(Unknown Source)
at java.awt.EventQueue$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)


Top
 Profile  
 
 Post subject: Re: Not binding factory to JNDI, no JNDI name configured
PostPosted: Wed Jan 04, 2012 4:56 am 
Newbie

Joined: Wed Jan 04, 2012 4:50 am
Posts: 1
Hello, I am beginner in Hibernate and i've got this error...
Can somebody help me... Thanks!

INFO: Default entity-mode: pojo
Jan 4, 2012 10:44:28 AM org.hibernate.impl.SessionFactoryImpl <init>
INFO: building session factory
Jan 4, 2012 10:44:28 AM org.hibernate.impl.SessionFactoryObjectFactory addInstance
INFO: Not binding factory to JNDI, no JNDI name configured
Exception in thread "main" java.lang.ClassCastException: org.hibernate.impl.SessionImpl cannot be cast to org.hibernate.SessionFactory
at model.UtilizatoriHome.<init>(UtilizatoriHome.java:27)
at test.test.main(test.java:25)


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 8 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.