PQ68428: JAVA.LANG.NOCLASSDEFFOUNDERROR COM/IBM/DB2/JCC/DB2BASEDATASOURCERUNNING JSPBATCHCOMPILER.SH | |||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||
APAR status Closed as documentation error. Error description When running the JspBatchCompiler.sh script for WebSphere Application Server v4.01 for zOS, users may see this error: java.lang.NoClassDefFoundError com/ibm/db2/jcc/DB2BaseDataSource at com.ibm.ws.runtime.BatchCService.compileJSPs at java.lang.reflect.Method.invoke at com.ibm.ws.runtime.ServiceProxy.invokeMethod Users will experience this error regardless of whether the application makes references to DB2 classes.Local fix Add this DB2 zip file to the environment variable DB2LIB : db2j2classes.zip (located in the 'classes' directory of your DB2 install path)Problem summary **************************************************************** * USERS AFFECTED: All users of the JspBatchCompiler.sh script * * on WebSphere Application Server V4.0.1 for * * z/OS and OS/390 * **************************************************************** * RECOMMENDATION: * **************************************************************** At runtime, users of the JspBatchCompiler.sh script for WebSphere Application Server V4.01 for z/OS may see this error: java.lang.NoClassDefFoundError com/ibm/db2/jcc/DB2BaseDataSource at com.ibm.ws.runtime.BatchCService.compileJSPs (BatchCService.java:49) at java.lang.reflect.Method.invoke(Native Method) at com.ibm.ws.runtime.ServiceProxy.invokeMethod (ServiceProxy.java:241) at com.ibm.ws.runtime.ServiceProxy.invoke (ServiceProxy.java:196) at com.ibm.ws.runtime.Server.runStandAlone(Server.java:1164) at com.ibm.ws.runtime.Server.initializeRuntime(Server.java:970) at com.ibm.ws.runtime.Server.startWebContainerPhase1 (Server.java:1016) at java.lang.reflect.Method.invoke(Native Method) at com.ibm.ws390.wc.container.WebContainerBootStrap.runPhase1 (WebContainerBootStrap.java:259) at com.ibm.ws390.wc.container.WebContainerBootStrap.startServer (WebContainerBootStrap.java:325) at com.ibm.ws390.wc.container.StartWebContainer.standAlone (StartWebContainer.java:258) at com.ibm.ws.jsp.compiler.ibmtools.JspBatchCompiler.compile (JspBatchCompiler.java:61) at com.ibm.ws.jsp.compiler.ibmtools.JspBatchCompiler.main (JspBatchCompiler.java:34) at java.lang.reflect.Method.invoke(Native Method) at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:160) Users will experience this error regardless of whether the application makes references to DB2 classes if they do not have the /<db2_install_directory>/classes/db2j2classes.zip defined either in the DB2LIB environment variable or in their CLASSPATH. This error occurs because the BatchCService.compileJSPs method creates a new WS390ContainerManager object. The constructor for WS390ContainerManager references com/ibm/db2/jcc/DB2BaseDataSource.Problem conclusion The documentation for the JspBatchCompiler.sh script will be updated to state that the DB2 classes need to be specified either in DB2LIB or in the CLASSPATH. The description of the JspPBatchCompiler.sh script contained in "WebSphere Application Server V4.0.1 for z/OS and OS/390 Assembling Java 2 Platform Enterprise Edition (J2EE) Applications," SA22-7836 will be updated as follows: Step 4 under "Steps for pre-compiling JSPs" will be changed from: 4. If the JSPs being compiled reference DB2 classes, enter the following command on a single line at an OMVS command prompt to set the DB2LIB variable to the classpath for the DB2 class files. export DB2LIB=db2_install_directory/classes/db2j2classes.zip: db2_install_directory/classes/db2jdbcclasses.zip: db2_install_directory/classes/db2sqljclasses.zip db2_install_directory is the directory where DB2 is installed on your z/OS or OS/390 system. to: 4. Enter the following command on a single line at an OMVS command prompt to set the DB2LIB variable to the classpath for the DB2 class files. export DB2LIB=db2_install_directory/classes/db2j2classes.zip: db2_install_directory/classes/db2jdbcclasses.zip: db2_install_directory/classes/db2sqljclasses.zip db2_install_directory is the directory where DB2 is installed on your z/OS or OS/390 system. Optionally, the DB2 class files could be added to the CLASSPATH environment variable. To access the latest version of this publication, go to the product library page at : http://www.ibm.com/software/webservers/appserv/zos_os390/ library.htmlTemporary fix Comments
APAR is sysrouted FROM one or more of the following: APAR is sysrouted TO one or more of the following: Modules/Macros
|
Document Information |
Product categories: Software > Application Servers >
Distributed Application & Web Servers > WebSphere Application
Server for z/OS
Operating system(s):
Software version: 401
Software edition:
Reference #: PQ68428
IBM Group: Software Group
Modified date: Jan 28, 2003
(C) Copyright IBM Corporation 2000, 2006. All Rights Reserved.