internal error: ...NoClassDefFoundError: java/sql/Blob

From: aa <aaax777aa_at_yahoo.com>
Date: 20 Feb 2002 13:20:29 -0800
Message-ID: <e1a62053.0202201320.2a6859d2_at_posting.google.com>


I am trying to load the simple PropertyHelper class (which compiled okay) found in Steve Muench's Oracle XML Application book pg 122 and am getting this

initialization complete
loading : PropertyHelper
internal error: unanticipated exception: java.lang.NoClassDefFoundError: java/sq l/Blob
java.lang.NoClassDefFoundError: java/sql/Blob

  at oracle.jdbc.driver.OracleStatement.get_blob_value(Compiled Code) 
  at oracle.jdbc.driver.OracleStatement.getBLOBValue(Compiled Code) 
  at oracle.jdbc.driver.OracleResultSetImpl.getBLOB(Compiled Code) 
  at oracle.aurora.server.tools.loadjava.LoadJava.load(Compiled Code) 
  at oracle.aurora.server.tools.loadjava.LoadJava.load(Compiled Code 

This is the code:
public class PropertyHelper {
 public static void setSystemProperty(String name, String value) {    System.setProperty(name,value);
   }
 }

My loadjava script has this contents:

#!/bin/sh 

#
# %W% %E%
#

unset JAVA_HOME
JAVA_HOME=/u01/app/oracle/product/8.1.7/JRE export JAVA_HOME
JRECLASSPATH=/u01/app/oracle/product/8.1.7/JRE/lib/rt.jar:/u01/app/oracle/produc t/8.1.7/JRE/lib/i18n.jar:/u01/app/oracle/product/8.1.7/jlib/javax-ssl-1_1.jar:/u 01/app/oracle/product/8.1.7/jlib/jssl-1_1.jar:$ORACLE_HOME/jdbc/lib/classes12.zi p:$ORACLE_HOME/sqlj/lib/translator.zip:$ORACLE_HOME/javavm/lib/aurora.zip export JRECLASSPATH
LD_LIBRARY_PATH=$ORACLE_HOME/lib:$JAVA_HOME/lib export LD_LIBRARY_PATH
exec $JAVA_HOME/bin/jre -classpath $JRECLASSPATH oracle.aurora.server.tools.load java.LoadJavaMain "$_at_"

How to fix this missing Blob.class from the oracle rt.jar? Even, why would a System.setProperty(name,value) even require this Blob.class? I don't see the correlation. Also, since this rt.jar of oracle is different from the j2sdk1.3 that I have, I hate to pick off something from my jdk rt.jar and put it in oracle's, I am a newbie and dont know what impact this has.

AA Received on Wed Feb 20 2002 - 22:20:29 CET

Original text of this message