Hi,
    i created a jsp page to insert data from a bean in
to db2 iam using the websphere application.
    so plz help me

Information provide to DATASOURCE
------------------------------------
Type: name     
Content: Sample
Type: dataBaseVersion    
Content: 0
Type: dataSourceClassName  
Content: COM.ibm.db2.jdbc.DB2ConnectionPoolDataSource

Type: databaseName
Content: SAMPLE
Type: connectionAttribute
Content: cursorhold=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:282)
        at
com.ibm.websphere.advanced.cm.factory.DataSourceFactory$ResourceReferenceObjectFactory.getObjectInstance(DataSourceFactory.java:944)
        at
javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:313)
        at
com.ibm.ws.naming.util.Helpers.processSerializedObjectForLookupExt(Helpers.java:873)
        at
com.ibm.ws.naming.util.Helpers.processSerializedObjectForLookup(Helpers.java:680)
        at
com.ibm.ws.naming.jndicos.CNContextImpl.processResolveResults(CNContextImpl.java:1712)
        at
com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1567)
        at
com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1480)
        at
com.ibm.ws.naming.jndicos.CNContextImpl.lookupExt(CNContextImpl.java:1187)
        at
com.ibm.ws.naming.jndicos.CNContextImpl.lookup(CNContextImpl.java:1067)
        at
com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:132)
        at
javax.naming.InitialContext.lookup(InitialContext.java:360)
        at Dbean.insertdb(Dbean.java:28)
        at serjsp.doPost(serjsp.java:36)
        at
javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
        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:983)
        at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:564)
        at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
        at
com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:119)
        at
com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:276)
        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:618)
        at
com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)
        at
com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:672)

[7/5/06 17:27:39:659 IST] 57c757d1 Helpers       W
NMSV0610I: A NamingException is being thrown from a
javax.naming.Context implementation. Details follow:
Context implementation:
com.ibm.ws.naming.jndicos.CNContextImpl
Context method: lookupExt
Context name:
localhost/nodes/localhost/servers/server1
Target name: jdbc/SampleDB
Other data: 
Exception stack trace:
com.ibm.websphere.naming.CannotInstantiateObjectException:
Exception occurred while the JNDI NamingManager was
processing a javax.naming.Reference object.  Root
exception is 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:282)
        at
com.ibm.websphere.advanced.cm.factory.DataSourceFactory$ResourceReferenceObjectFactory.getObjectInstance(DataSourceFactory.java:944)
        at
javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:313)
        at
com.ibm.ws.naming.util.Helpers.processSerializedObjectForLookupExt(Helpers.java:873)
        at
com.ibm.ws.naming.util.Helpers.processSerializedObjectForLookup(Helpers.java:680)
        at
com.ibm.ws.naming.jndicos.CNContextImpl.processResolveResults(CNContextImpl.java:1712)
        at
com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1567)
        at
com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1480)
        at
com.ibm.ws.naming.jndicos.CNContextImpl.lookupExt(CNContextImpl.java:1187)
        at
com.ibm.ws.naming.jndicos.CNContextImpl.lookup(CNContextImpl.java:1067)
        at
com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:132)
        at
javax.naming.InitialContext.lookup(InitialContext.java:360)
        at Dbean.insertdb(Dbean.java:28)
        at serjsp.doPost(serjsp.java:36)
        at
javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
        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:983)
        at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:564)
        at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
        at
com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:119)
        at
com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:276)
        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:618)
        at
com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)
        at
com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:672)

           Regards,
           Sridhar

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 





------------------------ Yahoo! Groups Sponsor --------------------~--> 
See what's inside the new Yahoo! Groups email.
http://us.click.yahoo.com/2pRQfA/bOaOAA/yQLSAA/umvwlB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspNet2/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to