Joe:
I am on WAS 2.02.
I added ''.;/qibm/proddata/http/public/jt400/lib/jt400.zip” to CLASSPATH
variable (using WRKENVVAR *SYS) and the same error occurs.
According to WAS 2.02 document “WAS for AS/400 Documentation Center” page 6:
-----------------------------------------------
A simplified Application Server Classpath. In version 1.x, you had to
specify the WebSphere Application server JAR files in the Application Server
Classpath. In version 2.02, WebSphere Application Server automatically
searches the /QIBM/ProdData/IBMWebAS/lib directory for the necessary JAR
files. This directory search feature applies to other JAR and ZIP files you
might add to the classpath: you no longer need to specify each individual
JAR or ZIP file—just the directory in which the file resides.
-----------------------------------------------
Following this instruction, I copied jt400.zip to
/QIBM/ProdData/IBMWebAS/lib and the same error occurs.
Bruce
Error message:
500 Internal Server Error
The servlet named invoker at the requested URL
http://192.168.0.122:8001/servlet/jdbc2
reported this exception jdbc2: com.ibm.as400.access.AS400. Please report
this to the administrator of the web server.
jdbc2: com.ibm.as400.access.AS400 java.lang.ClassNotFoundException:
com.ibm.as400.access.AS400 java/lang/Throwable.(Ljava/lang/String;)V+4
(Throwable.java:81)
com/ibm/servlet/classloader/DynamicClassLoader.loadNonSystemClass(Ljava/lang
/String;)Ljava/lang/Class;+134 (DynamicClassLoader.java:92)
com/ibm/servlet/classloader/ClassLoaderTemplate.loadClass(Ljava/lang/String;
Z)Ljava/lang/Class;+14 (ClassLoaderTemplate.java:51)
java/lang/ClassLoader.loadClassInternal(Ljava/lang/String;Z)Ljava/lang/Class
;+30 (ClassLoader.java:308)
jdbc2.doGet(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpS
ervletResponse;)V+1 (jdbc2.java:18)
javax/servlet/http/HttpServlet.service(Ljavax/servlet/http/HttpServletReques
t;Ljavax/servlet/http/HttpServletResponse;)V+58 (HttpServlet.java:499)
javax/servlet/http/HttpServlet.service(Ljavax/servlet/ServletRequest;Ljavax/
servlet/ServletResponse;)V+25 (HttpServlet.java:588)
com/sun/server/ServletState.callService(Ljavax/servlet/ServletRequest;Ljavax
/servlet/ServletResponse;)V+50 (ServletState.java:316)
com/sun/server/ServletManager.callServletService(Ljava/lang/String;Ljavax/se
rvlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+81
(ServletManager.java:1324)
com/ibm/servlet/engine/SEServletManager.callServletService(Ljava/lang/String
;Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+12
(SEServletManager.java:133)
com/sun/server/http/InvokerServlet.service(Ljavax/servlet/http/HttpServletRe
quest;Ljavax/servlet/http/HttpServletResponse;)V+131
(InvokerServlet.java:104)
javax/servlet/http/HttpServlet.service(Ljavax/servlet/ServletRequest;Ljavax/
servlet/ServletResponse;)V+25 (HttpServlet.java:588)
com/sun/server/ServletState.callService(Ljavax/servlet/ServletRequest;Ljavax
/servlet/ServletResponse;)V+50 (ServletState.java:316)
com/sun/server/ServletManager.callServletService(Ljava/lang/String;Ljavax/se
rvlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+81
(ServletManager.java:1324)
com/ibm/servlet/engine/SEServletManager.callServletService(Ljava/lang/String
;Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+12
(SEServletManager.java:133)
com/sun/server/ProcessingState.invokeTargetServlet()V+106
(ProcessingState.java:434)
com/sun/server/http/HttpProcessingState.execute(Lcom/sun/server/ProcessingSt
age;)V+29 (HttpProcessingState.java:93)
com/sun/server/ProcessingSupport.process(Lcom/sun/server/ProcessingState;Lja
vax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)Z+73
(ProcessingSupport.java:260)
com/sun/server/Service.process(Lcom/sun/server/ProcessingState;Ljavax/servle
t/ServletRequest;Ljavax/servlet/ServletResponse;)Z+11 (Service.java:231)
com/ibm/servlet/engine/SELauncher.processMultiThreaded(Lcom/ibm/servlet/engi
ne/SEService;Lcom/ibm/servlet/engine/SEConnectionHandler;)Z+13
(SEEngine.java:599)
com/ibm/servlet/engine/SEEngine.service(Lcom/ibm/servlet/engine/api/IAppServ
erConnection;)V+117 (SEEngine.java:319)
com/ibm/servlet/engine/api/ServerEntry.service(Lcom/ibm/servlet/engine/api/I
ServerRequestConnection;)I+89 (ServerEntry.java:201)
com/ibm/servlet/engine/nativeEntry/NativeServerEntry.service(JJILjava/lang/S
tring;Ljava/lang/String;)I+48 (NativeServerEntry.java:144)
-----Original Message-----
From: jpluta <jpluta@plutabrothers.com>
To: JAVA400-L@midrange.com <JAVA400-L@midrange.com>
Date: Wednesday, January 10, 2001 1:39 PM
Subject: Re: ToolBox classes not found when calling RPG program from
servlet,
>You need to have the jar file in your WebSphere classpath. How you do that
depends on the version of WebSphere.
>
>Joe
>
>---------- Original Message ----------------------------------
>From: "Bruce Jin" <brucej@MRC-PRODUCTIVITY.COM>
>Reply-To: JAVA400-L@midrange.com
>Date: Wed, 10 Jan 2001 12:03:45 -0600
>
>> I try to call an RPG program from a servlet and I get class not found
error
>(com.ibm.as400.access.AS400).
>I then copied jt400.zip to /qibm/proddata/ibmwebas/lib directory and get
the
>same error.
>
>(BTW, the calling RPG part works OK when I run a Java program from my PC)
>
>Any ideas?
>+---
>| This is the JAVA/400 Mailing List!
>| To submit a new message, send your mail to JAVA400-L@midrange.com.
>| To subscribe to this list send email to JAVA400-L-SUB@midrange.com.
>| To unsubscribe from this list send email to JAVA400-L-UNSUB@midrange.com.
>| Questions should be directed to the list owner: joe@zappie.net
>+---
+---
| This is the JAVA/400 Mailing List!
| To submit a new message, send your mail to JAVA400-L@midrange.com.
| To subscribe to this list send email to JAVA400-L-SUB@midrange.com.
| To unsubscribe from this list send email to JAVA400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner: joe@zappie.net
+---