Newsgroup: it.comp.java
Titolo: Accesso a DB2 con IBM WebSphere 3.5

Ciao,
stò usando IBM WebSphere 3.5 e cerco di accedre al DB2 ma il caricamento
della classe
    try {
     Class.forName("COM.ibm.db2.jdbc.app.DB2Driver");
     }
    catch (ClassNotFoundException cnf){
      System.err.println("[GETPRLIST Error]");
       cnf.printStackTrace();
    }
Genera questo errore:
[GETPRLIST Error]
java.lang.ClassNotFoundException: COM.ibm.db2.jdbc.app.DB2Driver
 at
com.ibm.servlet.classloader.DynamicClassLoader.loadNonSystemClass(DynamicCla
ssLoader.java:108)
 at
com.ibm.servlet.classloader.ClassLoaderTemplate.loadClass(ClassLoaderTemplat
e.java:57)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
 at java.lang.Class.forName1(Native Method)
 at java.lang.Class.forName(Class.java:137)
 at GetPrList.doPost(GetPrList.java:32)
 at GetPrList.doGet(GetPrList.java:68)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:534)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:639)
 at
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager
.java:580)
 at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycl
eServlet.java:160)
 at
com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServle
t.java:287)
 at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycle
Servlet.java:105)
 at
com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:35
3)
 at
com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletMan
ager.java:729)
 at
com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManag
er.java:655)
 at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(W
ebApp.java:1269)
 at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebApp.java:1
106)
 at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebApp.java:10
39)
 at
com.ibm.servlet.engine.webapp.InvokerServlet.service(InvokerServlet.java:199
)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:639)
 at
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager
.java:580)
 at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycl
eServlet.java:160)
 at
com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServle
t.java:287)
 at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycle
Servlet.java:105)
 at
com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:35
3)
 at
com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletMan
ager.java:729)
 at
com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManag
er.java:655)
 at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(W
ebApp.java:1269)
 at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebApp.java:1
106)
 at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebApp.java:10
39)
 at
com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebGroup.java:
646)
 at
com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedIn
vocation.java:67)
 at
com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequ
estProcessor.java:155)
 at
com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener
.java:300)
 at
com.ibm.servlet.engine.oselistener.SQEventListenerImp$ServiceRunnable.run(SQ
EventListenerImp.java:230)
 at
com.ibm.servlet.engine.oselistener.SQEventListenerImp.notifySQEvent(SQEventL
istenerImp.java:104)
 at
com.ibm.servlet.engine.oselistener.serverqueue.SQEventSource.notifyEvent(SQE
ventSource.java:202)
 at
com.ibm.servlet.engine.oselistener.serverqueue.SQWrapperEventSource$SelectRu
nnable.notifyService(SQWrapperEventSource.java:347)
 at
com.ibm.servlet.engine.oselistener.serverqueue.SQWrapperEventSource$SelectRu
nnable.run(SQWrapperEventSource.java:216)
 at
com.ibm.servlet.engine.oselistener.outofproc.OutOfProcThread$CtlRunnable.run
(OutOfProcThread.java:248)
 at java.lang.Thread.run(Thread.java:481)
Grazie per l'aiuto!
Lorenzo

Controlla che la variabile d'ambiente CLASSPATH sia settata:
set CLASSPATH=x:\percorso\db2java.zip
db2java.zip è il file contenente la classe DB2Driver
ciao


 wrote in message
news:8q75ta$i12$1...@news.flashnet.it...
