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.  [ 6 posts ] 
Author Message
 Post subject: Websphere 5.0.2.11 and Datasource v5
PostPosted: Thu Jun 23, 2005 12:10 pm 
Beginner
Beginner

Joined: Fri Jul 16, 2004 3:21 am
Posts: 40
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version:
3.0.4

Mapping documents:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>

<property name="hibernate.connection.datasource">jdbc/dbname</property>
<property name="hibernate.transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</property>
<property name="hibernate.transaction.manager_lookup_class">org.hibernate.transaction.WebSphereTransactionManagerLookup</property>

<property name="hibernate.cglib.use_reflection_optimizer">true</property>
<property name="hibernate.dialect">org.hibernate.dialect.DB2Dialect</property>
<property name="hibernate.show_sql">false</property>

<mapping resource="Languages.hbm.xml"/>
<mapping resource="Setlang.hbm.xml"/>
<mapping resource="Usedmachine.hbm.xml"/>
<mapping resource="Description.hbm.xml"/>
<mapping resource="Seller.hbm.xml"/>
<mapping resource="Lelyuser.hbm.xml"/>
<mapping resource="Category.hbm.xml"/>
<mapping resource="Images.hbm.xml"/>
</session-factory>
</hibernate-configuration>


Code between sessionFactory.openSession() and session.close():
session = HibernateUtil.currentSession();
Full stack trace of any exception that occurs:
[6/23/05 17:52:39:984 CEST] 4cf91d7b WsServer A WSVR0001I: Server server1 open for e-business
[6/23/05 17:53:17:375 CEST] 2b21dd61 SessionContex E SESN0043E: BackedHashtable: problem obtaining the configured datasource. Ensure that you have properly configured a datasource. When Session Manager persistence is enabled the Session Manager configuration must contain a valid datasource.
[6/23/05 17:53:17:375 CEST] 2b21dd61 SessionContex E Exception is: javax.naming.NameNotFoundException: jdbc/Sessions. Root exception is org.omg.CosNaming.NamingContextPackage.NotFound
at com.ibm.ws.naming.ipcos.WsnOptimizedNamingImpl.do_resolve_complete_info(WsnOptimizedNamingImpl.java:964)
at com.ibm.ws.naming.cosbase.WsnOptimizedNamingImplBase.resolve_complete_info(WsnOptimizedNamingImplBase.java:1416)
at com.ibm.WsnOptimizedNaming._NamingContextStub.resolve_complete_info(Unknown Source)
at com.ibm.ws.naming.jndicos.CNContextImpl.cosResolve(CNContextImpl.java:3537)
at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1568)
at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1528)
at com.ibm.ws.naming.jndicos.CNContextImpl.lookup(CNContextImpl.java:1228)
at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:144)
at javax.naming.InitialContext.lookup(InitialContext.java:359)
at com.ibm.ws.webcontainer.httpsession.BackedHashtable.getDataSource(BackedHashtable.java:473)
at com.ibm.ws.webcontainer.httpsession.BackedHashtable.getConnection(BackedHashtable.java:1040)
at com.ibm.ws.webcontainer.httpsession.BackedHashtable.readFromExternal(BackedHashtable.java:1822)
at com.ibm.ws.webcontainer.httpsession.BackedHashtable.retrieveSession(BackedHashtable.java:1620)
at com.ibm.ws.webcontainer.httpsession.BackedHashtable.getSession(BackedHashtable.java:1574)
at com.ibm.ws.webcontainer.httpsession.BackedHashtable.get(BackedHashtable.java:1974)
at com.ibm.ws.webcontainer.httpsession.SessionContext.tableGet(SessionContext.java:2119)
at com.ibm.ws.webcontainer.httpsession.SessionContext.findSession(SessionContext.java:1355)
at com.ibm.ws.webcontainer.httpsession.SessionContext.getIHttpSession(SessionContext.java:1392)
at com.ibm.ws.webcontainer.httpsession.SessionContext.getIHttpSession(SessionContext.java:2365)
at com.ibm.ws.webcontainer.webapp.WebAppDispatcherContext.getSession(WebAppDispatcherContext.java:178)
at com.ibm.ws.webcontainer.webapp.WebAppDispatcherContext.encodeURL(WebAppDispatcherContext.java:237)
at com.ibm.ws.webcontainer.srt.SRTServletResponseContext.encodeURL(SRTServletResponseContext.java:378)
at com.ibm.ws.webcontainer.srt.SRTServletResponse.encodeURL(SRTServletResponse.java:342)
at com.ibm.ws.webcontainer.srt.SRTServletResponse.encodeRedirectURL(SRTServletResponse.java:331)
at com.ibm.ws.webcontainer.webapp.WebAppRootDispatcher.handleWebAppDispatch(WebAppRootDispatcher.java:42)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:598)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:206)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:80)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:214)
at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:182)
at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:622)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:447)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:672)



Name and version of the database you are using:
DB2 8.2.1

The generated SQL (show_sql=true):

Debug level Hibernate log excerpt:

i configured the DS 5 in Websphere and tested the connection and it runs.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 23, 2005 12:18 pm 
Beginner
Beginner

Joined: Fri Jul 16, 2004 3:21 am
Posts: 40
here the whole trace:
[6/23/05 17:53:20:297 CEST] 2b21dd61 Environment I org.hibernate.cfg.Environment Hibernate 3.0.2
[6/23/05 17:53:20:297 CEST] 2b21dd61 Environment I org.hibernate.cfg.Environment hibernate.properties not found
[6/23/05 17:53:20:297 CEST] 2b21dd61 Environment I org.hibernate.cfg.Environment using CGLIB reflection optimizer
[6/23/05 17:53:20:312 CEST] 2b21dd61 Environment I org.hibernate.cfg.Environment JVM does not support Statement.getGeneratedKeys()
[6/23/05 17:53:20:312 CEST] 2b21dd61 Environment I org.hibernate.cfg.Environment JVM does not support LinkedHasMap, LinkedHashSet - ordered maps and sets disabled
[6/23/05 17:53:20:312 CEST] 2b21dd61 Environment I org.hibernate.cfg.Environment using workaround for JVM bug in java.sql.Timestamp
[6/23/05 17:53:20:312 CEST] 2b21dd61 Environment I org.hibernate.cfg.Environment using pre JDK 1.4 java.sql.Timestamp handling
[6/23/05 17:53:20:672 CEST] 2b21dd61 Configuration I org.hibernate.cfg.Configuration configuring from resource: /hibernate.cfg.xml
[6/23/05 17:53:20:672 CEST] 2b21dd61 Configuration I org.hibernate.cfg.Configuration Configuration resource: /hibernate.cfg.xml
[6/23/05 17:53:20:922 CEST] 2b21dd61 Configuration I org.hibernate.cfg.Configuration Mapping resource: Languages.hbm.xml
[6/23/05 17:53:21:156 CEST] 2b21dd61 HbmBinder I org.hibernate.cfg.HbmBinder Mapping class: com.lely.shop.db.Languages -> LANGUAGES
[6/23/05 17:53:21:203 CEST] 2b21dd61 Configuration I org.hibernate.cfg.Configuration Mapping resource: Setlang.hbm.xml
[6/23/05 17:53:21:219 CEST] 2b21dd61 HbmBinder I org.hibernate.cfg.HbmBinder Mapping class: com.lely.shop.db.Setlang -> SETLANG
[6/23/05 17:53:21:422 CEST] 2b21dd61 Configuration I org.hibernate.cfg.Configuration Mapping resource: Usedmachine.hbm.xml
[6/23/05 17:53:21:469 CEST] 2b21dd61 HbmBinder I org.hibernate.cfg.HbmBinder Mapping class: com.lely.shop.db.Usedmachine -> USEDMACHINE
[6/23/05 17:53:21:469 CEST] 2b21dd61 Configuration I org.hibernate.cfg.Configuration Mapping resource: Description.hbm.xml
[6/23/05 17:53:21:547 CEST] 2b21dd61 HbmBinder I org.hibernate.cfg.HbmBinder Mapping class: com.lely.shop.db.Description -> DESCRIPTION
[6/23/05 17:53:21:547 CEST] 2b21dd61 Configuration I org.hibernate.cfg.Configuration Mapping resource: Seller.hbm.xml
[6/23/05 17:53:21:562 CEST] 2b21dd61 HbmBinder I org.hibernate.cfg.HbmBinder Mapping class: com.lely.shop.db.Seller -> SELLER
[6/23/05 17:53:21:562 CEST] 2b21dd61 Configuration I org.hibernate.cfg.Configuration Mapping resource: Lelyuser.hbm.xml
[6/23/05 17:53:21:594 CEST] 2b21dd61 HbmBinder I org.hibernate.cfg.HbmBinder Mapping class: com.lely.shop.db.Lelyuser -> LELYUSER
[6/23/05 17:53:21:594 CEST] 2b21dd61 Configuration I org.hibernate.cfg.Configuration Mapping resource: Category.hbm.xml
[6/23/05 17:53:21:609 CEST] 2b21dd61 HbmBinder I org.hibernate.cfg.HbmBinder Mapping class: com.lely.shop.db.Category -> CATEGORY
[6/23/05 17:53:21:609 CEST] 2b21dd61 Configuration I org.hibernate.cfg.Configuration Mapping resource: Images.hbm.xml
[6/23/05 17:53:21:625 CEST] 2b21dd61 HbmBinder I org.hibernate.cfg.HbmBinder Mapping class: com.lely.shop.db.Images -> IMAGES
[6/23/05 17:53:21:625 CEST] 2b21dd61 Configuration I org.hibernate.cfg.Configuration Configured SessionFactory: null
[6/23/05 17:53:21:625 CEST] 2b21dd61 Configuration I org.hibernate.cfg.Configuration processing extends queue
[6/23/05 17:53:21:625 CEST] 2b21dd61 Configuration I org.hibernate.cfg.Configuration processing collection mappings
[6/23/05 17:53:21:625 CEST] 2b21dd61 HbmBinder I org.hibernate.cfg.HbmBinder Mapping collection: com.lely.shop.db.Languages.SetOfLelyuser -> LELYUSER
[6/23/05 17:53:21:625 CEST] 2b21dd61 HbmBinder I org.hibernate.cfg.HbmBinder Mapping collection: com.lely.shop.db.Languages.SetOfSetlang -> SETLANG
[6/23/05 17:53:21:625 CEST] 2b21dd61 HbmBinder I org.hibernate.cfg.HbmBinder Mapping collection: com.lely.shop.db.Usedmachine.SetOfImages -> IMAGES
[6/23/05 17:53:21:625 CEST] 2b21dd61 HbmBinder I org.hibernate.cfg.HbmBinder Mapping collection: com.lely.shop.db.Usedmachine.SetOfSetlang -> SETLANG
[6/23/05 17:53:21:625 CEST] 2b21dd61 HbmBinder I org.hibernate.cfg.HbmBinder Mapping collection: com.lely.shop.db.Description.SetOfSetlang -> SETLANG
[6/23/05 17:53:21:641 CEST] 2b21dd61 HbmBinder I org.hibernate.cfg.HbmBinder Mapping collection: com.lely.shop.db.Seller.SetOfUsedmachine -> USEDMACHINE
[6/23/05 17:53:21:641 CEST] 2b21dd61 HbmBinder I org.hibernate.cfg.HbmBinder Mapping collection: com.lely.shop.db.Category.SetOfUsedmachine -> USEDMACHINE
[6/23/05 17:53:21:641 CEST] 2b21dd61 Configuration I org.hibernate.cfg.Configuration processing association property references
[6/23/05 17:53:21:641 CEST] 2b21dd61 Configuration I org.hibernate.cfg.Configuration processing foreign key constraints
[6/23/05 17:53:21:672 CEST] 2b21dd61 NamingHelper I org.hibernate.util.NamingHelper JNDI InitialContext properties:{}
[6/23/05 17:53:21:812 CEST] 2b21dd61 DatasourceCon I org.hibernate.connection.DatasourceConnectionProvider Using datasource: jdbc/lelyshop
[6/23/05 17:53:24:172 CEST] 2b21dd61 InternalGener I DSRA8203I: Database product name : DB2/NT
[6/23/05 17:53:24:188 CEST] 2b21dd61 InternalGener I DSRA8204I: Database product version : 08.01.0002
[6/23/05 17:53:24:188 CEST] 2b21dd61 InternalGener I DSRA8205I: JDBC driver name : IBM DB2 JDBC 2.0 Type 2
[6/23/05 17:53:24:188 CEST] 2b21dd61 InternalGener I DSRA8206I: JDBC driver version : 08.01.0002
[6/23/05 17:53:24:391 CEST] 2b21dd61 SettingsFacto I org.hibernate.cfg.SettingsFactory RDBMS: DB2/NT, version: 08.01.0002
[6/23/05 17:53:24:406 CEST] 2b21dd61 SettingsFacto I org.hibernate.cfg.SettingsFactory JDBC driver: IBM DB2 JDBC 2.0 Type 2, version: 08.01.0002
[6/23/05 17:53:24:500 CEST] 2b21dd61 Dialect I org.hibernate.dialect.Dialect Using dialect: org.hibernate.dialect.DB2Dialect
[6/23/05 17:53:24:516 CEST] 2b21dd61 SettingsFacto I org.hibernate.cfg.SettingsFactory Scrollable result sets: enabled
[6/23/05 17:53:24:516 CEST] 2b21dd61 SettingsFacto I org.hibernate.cfg.SettingsFactory JDBC3 getGeneratedKeys(): disabled
[6/23/05 17:53:24:578 CEST] 2b21dd61 SettingsFacto I org.hibernate.cfg.SettingsFactory Aggressive release : disabled
[6/23/05 17:53:24:578 CEST] 2b21dd61 SettingsFacto I org.hibernate.cfg.SettingsFactory Default batch fetch size: 1
[6/23/05 17:53:24:578 CEST] 2b21dd61 SettingsFacto I org.hibernate.cfg.SettingsFactory Generate SQL with comments: disabled
[6/23/05 17:53:24:578 CEST] 2b21dd61 SettingsFacto I org.hibernate.cfg.SettingsFactory Order SQL updates by primary key: disabled
[6/23/05 17:53:24:578 CEST] 2b21dd61 SettingsFacto I org.hibernate.cfg.SettingsFactory Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
[6/23/05 17:53:24:594 CEST] 2b21dd61 ASTQueryTrans I org.hibernate.hql.ast.ASTQueryTranslatorFactory Using ASTQueryTranslatorFactory
[6/23/05 17:53:24:594 CEST] 2b21dd61 SettingsFacto I org.hibernate.cfg.SettingsFactory Query language substitutions: {}
[6/23/05 17:53:24:609 CEST] 2b21dd61 TransactionFa I org.hibernate.transaction.TransactionFactoryFactory Transaction strategy: org.hibernate.transaction.JTATransactionFactory
[6/23/05 17:53:24:609 CEST] 2b21dd61 NamingHelper I org.hibernate.util.NamingHelper JNDI InitialContext properties:{}
[6/23/05 17:53:24:625 CEST] 2b21dd61 TransactionMa I org.hibernate.transaction.TransactionManagerLookupFactory instantiating TransactionManagerLookup: org.hibernate.transaction.WebSphereTransactionManagerLookup
[6/23/05 17:53:24:625 CEST] 2b21dd61 TransactionMa I org.hibernate.transaction.TransactionManagerLookupFactory instantiated TransactionManagerLookup
[6/23/05 17:53:24:625 CEST] 2b21dd61 TransactionMa I org.hibernate.transaction.TransactionManagerLookupFactory instantiating TransactionManagerLookup: org.hibernate.transaction.WebSphereTransactionManagerLookup
[6/23/05 17:53:24:625 CEST] 2b21dd61 TransactionMa I org.hibernate.transaction.TransactionManagerLookupFactory instantiated TransactionManagerLookup
[6/23/05 17:53:24:641 CEST] 2b21dd61 SettingsFacto I org.hibernate.cfg.SettingsFactory Automatic flush during beforeCompletion(): disabled
[6/23/05 17:53:24:641 CEST] 2b21dd61 SettingsFacto I org.hibernate.cfg.SettingsFactory Automatic session close at end of transaction: disabled
[6/23/05 17:53:24:688 CEST] 2b21dd61 SettingsFacto I org.hibernate.cfg.SettingsFactory Second-level cache: enabled
[6/23/05 17:53:24:688 CEST] 2b21dd61 SettingsFacto I org.hibernate.cfg.SettingsFactory Query cache: disabled
[6/23/05 17:53:24:688 CEST] 2b21dd61 SettingsFacto I org.hibernate.cfg.SettingsFactory Cache provider: org.hibernate.cache.EhCacheProvider
[6/23/05 17:53:24:703 CEST] 2b21dd61 SettingsFacto I org.hibernate.cfg.SettingsFactory Optimize cache for minimal puts: disabled
[6/23/05 17:53:24:703 CEST] 2b21dd61 SettingsFacto I org.hibernate.cfg.SettingsFactory Structured second-level cache entries: enabled
[6/23/05 17:53:24:734 CEST] 2b21dd61 SettingsFacto I org.hibernate.cfg.SettingsFactory Statistics: disabled
[6/23/05 17:53:24:734 CEST] 2b21dd61 SettingsFacto I org.hibernate.cfg.SettingsFactory Deleted entity synthetic identifier rollback: disabled
[6/23/05 17:53:24:734 CEST] 2b21dd61 SettingsFacto I org.hibernate.cfg.SettingsFactory Default entity-mode: pojo
[6/23/05 17:53:25:078 CEST] 2b21dd61 SessionFactor I org.hibernate.impl.SessionFactoryImpl building session factory
[6/23/05 17:53:25:109 CEST] 2b21dd61 Configurator W net.sf.ehcache.config.Configurator No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: wsjar:file:/D:/WebSphere/AppServer/installedApps/nnas02t/LelyShop.ear/LelyShop-20050623.war/WEB-INF/lib/ehcache-1.1.jar!/ehcache-failsafe.xml
[6/23/05 17:53:26:109 CEST] 2b21dd61 SessionFactor I org.hibernate.impl.SessionFactoryObjectFactory Not binding factory to JNDI, no JNDI name configured
[6/23/05 17:53:26:109 CEST] 2b21dd61 WebSphereTran I org.hibernate.transaction.WebSphereTransactionManagerLookup WebSphere 5.0
[6/23/05 17:53:26:109 CEST] 2b21dd61 SessionFactor I org.hibernate.impl.SessionFactoryImpl Checking 0 named queries
[6/23/05 17:53:26:422 CEST] 2b21dd61 WebGroup I SRVE0180I: [LelyShop] [/lelyshop] [Servlet.LOG]: /result.jsp: init
[6/23/05 17:53:26:438 CEST] 2b21dd61 PropertyMessa I org.apache.struts.util.PropertyMessageResources Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
[6/23/05 17:53:26:438 CEST] 2b21dd61 PropertyMessa I org.apache.struts.util.PropertyMessageResources Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
[6/23/05 17:53:26:453 CEST] 2b21dd61 PropertyMessa I org.apache.struts.util.PropertyMessageResources Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
[6/23/05 17:53:26:453 CEST] 2b21dd61 PropertyMessa I org.apache.struts.util.PropertyMessageResources Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
[6/23/05 17:53:26:969 CEST] 2b21dd61 SessionContex E SESN0043E: BackedHashtable: problem obtaining the configured datasource. Ensure that you have properly configured a datasource. When Session Manager persistence is enabled the Session Manager configuration must contain a valid datasource.
[6/23/05 17:53:26:969 CEST] 2b21dd61 SessionContex E Exception is: javax.naming.NameNotFoundException: jdbc/Sessions. Root exception is org.omg.CosNaming.NamingContextPackage.NotFound
at com.ibm.ws.naming.ipcos.WsnOptimizedNamingImpl.do_resolve_complete_info(WsnOptimizedNamingImpl.java:964)
at com.ibm.ws.naming.cosbase.WsnOptimizedNamingImplBase.resolve_complete_info(WsnOptimizedNamingImplBase.java:1416)
at com.ibm.WsnOptimizedNaming._NamingContextStub.resolve_complete_info(Unknown Source)
at com.ibm.ws.naming.jndicos.CNContextImpl.cosResolve(CNContextImpl.java:3537)
at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1568)
at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1528)
at com.ibm.ws.naming.jndicos.CNContextImpl.lookup(CNContextImpl.java:1228)
at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:144)
at javax.naming.InitialContext.lookup(InitialContext.java:359)
at com.ibm.ws.webcontainer.httpsession.BackedHashtable.getDataSource(BackedHashtable.java:473)
at com.ibm.ws.webcontainer.httpsession.BackedHashtable.getConnection(BackedHashtable.java:1040)
at com.ibm.ws.webcontainer.httpsession.BackedHashtable.ejbCreate(BackedHashtable.java:2542)
at com.ibm.ws.webcontainer.httpsession.BackedHashtable.insertSession(BackedHashtable.java:2069)
at com.ibm.ws.webcontainer.httpsession.BackedHashtable.put(BackedHashtable.java:2678)
at com.ibm.ws.webcontainer.httpsession.DatabaseSessionContext.sync(DatabaseSessionContext.java:164)
at com.ibm.ws.webcontainer.httpsession.SessionData.releaseSession(SessionData.java:283)
at com.ibm.ws.webcontainer.httpsession.SessionContext.sessionPostInvoke(SessionContext.java:2698)
at com.ibm.ws.webcontainer.webapp.WebAppDispatcherContext.sessionPostInvoke(WebAppDispatcherContext.java:225)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:760)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:206)
at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:1073)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:598)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:206)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:80)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:214)
at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:182)
at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:622)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:457)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:672)


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 24, 2005 4:35 am 
Beginner
Beginner

Joined: Fri Jul 16, 2004 3:21 am
Posts: 40
[6/24/05 10:29:35:469 CEST] 20876136 SessionFactor I org.hibernate.impl.SessionFactoryObjectFactory Not binding factory to JNDI, no JNDI name configured
[6/24/05 10:29:35:469 CEST] 20876136 WebSphereTran I org.hibernate.transaction.WebSphereTransactionManagerLookup WebSphere 5.0
[6/24/05 10:29:35:469 CEST] 20876136 SessionFactor I org.hibernate.impl.SessionFactoryImpl Checking 0 named queries

Waht means Not binding factory to JNDI?

shoud i something to configre in the Websphere?

rdgs pfenn


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 24, 2005 10:07 am 
Senior
Senior

Joined: Tue Jun 21, 2005 10:18 am
Posts: 135
Location: South Carolina, USA
Quote:
[6/23/05 17:53:26:969 CEST] 2b21dd61 SessionContex E Exception is: javax.naming.NameNotFoundException: jdbc/Sessions. Root exception is org.omg.CosNaming.NamingContextPackage.NotFound


This looks to me like either an appserver configuration problem or a lookup problem on the JNDI DataSource. Have you tried writing a quick program using JDBC to test the connection (obviously, looking up the DataSource from JNDI)

i.e.

Code:
...
InitialContext ic = new InitialContext();
DataSource ds = (DataSource)ic.lookup("jdbc/Sessions");
                          //also try java:comp/env/jdbc/Sessions
Connection conn = ds.getConnection();
PreparedStatement statment;

statement = conn.prepareStatement(/* some valid SQL here */);

ResultSet results = statement.executeQuery();

System.out.println(results.getString("SOME_COLUMN"));

results.close();
statement.close();
conn.close();


This may help you diagnose where things are going wrong.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 24, 2005 10:41 am 
Beginner
Beginner

Joined: Fri Jul 16, 2004 3:21 am
Posts: 40
i've made such a class and the connection over the datasource object runs. also the test from websphere / datasource/ testConnection runs trouht.

i think its a problem with the configuration from hibernate/ Websphere.


[6/24/05 10:29:35:469 CEST] 20876136 SessionFactor I org.hibernate.impl.SessionFactoryObjectFactory Not binding factory to JNDI, no JNDI name configured
[6/24/05 10:29:35:469 CEST] 20876136 WebSphereTran I org.hibernate.transaction.WebSphereTransactionManagerLookup WebSphere 5.0

rgds pfenn


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jul 17, 2005 1:31 am 
Senior
Senior

Joined: Tue Jun 21, 2005 10:18 am
Posts: 135
Location: South Carolina, USA
Notice this is an information entry, not an error.

Hibernate is simply telling you that you have not chosen to bind a SessionFactory to a JNDI variable, because you have not specified a JNDI name.

See http://www.hibernate.org/hib_docs/v3/reference/en/html_single/#configuration-optional-jndi


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