-->
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.  [ 1 post ] 
Author Message
 Post subject: JNDI datasource config "strange servlet 2.3" messa
PostPosted: Fri Jun 10, 2005 6:09 am 
Newbie

Joined: Wed Jun 01, 2005 11:00 am
Posts: 17
Location: UK
Hi,
I am getting a strange error when I try and configure my hibernate impl to us a type 4 datasource. I am trying to plug into WebSphere commerce server which has its own pecularities. Anyway any help welcomed.
Do I need a type 5 data source type?
Thanks in advance.
Ben


Hibernate version:
3.5

config documents:
<property name="hibernate.connection.datasource">jdbc/WebSphere Commerce DB2 DataSource ezMarket</property>

Full stack trace of any exception that occurs:

[10/06/05 09:58:38:156 GMT] 4390a285 Helpers W NMSV0605W: A Reference object looked up from the context "localhost/nodes/localhost/servers/server1" with the name "jdbc/WebSphere Commerce DB2 DataSource ezMarket" was sent to the JNDI Naming Manager and an exception resulted. Reference data follows:
Reference Factory Class Name: com.ibm.websphere.advanced.cm.factory.DataSourceFactory$ResourceReferenceObjectFactory
Reference Factory Class Location URLs: <null>
Reference Class Name: com.ibm.ejs.cm.portability.PortableDataSource
Type: name
Content: jdbc/WebSphere Commerce DB2 DataSource ezMarket
Type: dataBaseVersion
Content: 0
Type: minimumPoolSize
Content: 1
Type: maximumPoolSize
Content: 800
Type: connectionTimeout
Content: 180
Type: idleTimeout
Content: 1800
Type: orphanTimeout
Content: 1800
Type: statementCacheSize
Content: 1000
Type: disableAutoConnectionCleanup
Content: false
Type: informixLockModeWait
Content: 0
Type: oracleStmtCacheSize
Content: 0
Type: disable2Phase
Content: false
Type: connectionValidation
Content: false
Type: logOrphan
Content: false
Type: dataSourceClassName
Content: COM.ibm.db2.jdbc.DB2ConnectionPoolDataSource
Type: j2ee.resource.factory.href
Content: cells/localhost/nodes/localhost/servers/server1/resources.xml#WAS40DataSource_1
Type: j2ee.resource.provider.href
Content: cells/localhost/nodes/localhost/servers/server1/resources.xml#JDBCProvider_2
Type: resetReadOnly
Content: false
Type: secureXACredential
Content: false
Type: user
Content: db2admin
Type: password
Content: {xor}Oz1tPjsyNjE=
Type: connectionAttribute
Content: cursorhold=0
Type: databaseName
Content: EZMARKET
Type: loginTimeout
Content: 0

Exception data follows:
javax.naming.NamingException: Attempted to use a 4.0 DataSource from a 2.3 (or higher) servlet. Invalid configuration.
at com.ibm.ejs.cm.DSFactoryImpl.verifyConfiguration(DSFactoryImpl.java:253)
at com.ibm.websphere.advanced.cm.factory.DataSourceFactory$ResourceReferenceObjectFactory.getObjectInstance(DataSourceFactory.java:841)
at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:313)
at com.ibm.ws.naming.util.Helpers.processSerializedObjectForLookup(Helpers.java:884)
at com.ibm.ws.naming.jndicos.CNContextImpl.processResolveResults(CNContextImpl.java:1762)
at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1615)
at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1525)
at com.ibm.ws.naming.jndicos.CNContextImpl.lookup(CNContextImpl.java:1225)
at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:132)
at javax.naming.InitialContext.lookup(InitialContext.java(Compiled Code))
at org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:44)
at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:80)
at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:301)
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:111)
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1505)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1053)
at com.du.ezmarket.integration.utils.HibernateUtilsImpl.<clinit>(HibernateUtilsImpl.java:26)
at com.du.ezmarket.integration.marketbasket.MarketBasketHibernateCustomFinder.findBasketsByMarketId(MarketBasketHibernateCustomFinder.java:29)
at com.du.ezmarket.business.transport.marketbasket.AuctionSummaryDTOBuilder.getAuctionBasketSummary(AuctionSummaryDTOBuilder.java:57)
at com.du.ezmarket.reverseauction.controllercommands.AuctionSummaryRedirectorCmdImpl.performExecute(AuctionSummaryRedirectorCmdImpl.java:83)
at com.ibm.commerce.command.ECCommandTarget.executeCommand(ECCommandTarget.java:132)
at com.ibm.ws.cache.command.CommandCache.executeCommand(CommandCache.java:282)
at com.ibm.websphere.command.CacheableCommandImpl.execute(CacheableCommandImpl.java:161)
at com.ibm.commerce.command.AbstractECTargetableCommand.execute(AbstractECTargetableCommand.java:175)
at com.ibm.commerce.webcontroller.ControllerCmdExecUnit.execute(ControllerCmdExecUnit.java:193)
at com.ibm.commerce.webcontroller.WebController.executeTransaction(WebController.java:222)
at com.ibm.commerce.webcontroller.WebController.processRequest(WebController.java:877)
at com.ibm.commerce.adapter.AbstractHttpAdapter.processRequest(AbstractHttpAdapter.java:330)
at com.ibm.commerce.server.RequestServlet$2.run(RequestServlet.java:1504)
at com.ibm.commerce.server.RequestServlet.service(RequestServlet.java:1574)
at com.du.ezmarket.reverseauction.servlets.EZMRequestServlet.service(EZMRequestServlet.java:85)
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.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:76)
at com.ibm.commerce.dynacache.filter.CacheFilter$1.run(CacheFilter.java:359)
at com.ibm.commerce.dynacache.filter.CacheFilter.doFilter(CacheFilter.java:396)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:132)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:71)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:939)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:530)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:176)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:79)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:201)
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:610)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:435)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:593)



Name and version of the database you are using:
DB"


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

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.