Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Running OWS Java cartridge classes from the command line

Running OWS Java cartridge classes from the command line

From: Fergus Gallagher <Fergus.Gallagher_at_orbis-tech.co.uk>
Date: Tue, 15 Sep 1998 15:31:54 +0100
Message-ID: <35FE7A5A.7D104C73@orbis-tech.co.uk>


The OWS Java Cartridge documentation (see "Building the Java Application") implies that I should be able to run the non-"Java Web Toolkit" stuff using command line java, but the following class fails:



import oracle.rdbms.*;
public class testSession {
	public static void main(String args[]) throws Exception {
		Session.setProperty("ORACLE_HOME",System.getProperty("oracleHome"));
	}

}

% java -classpath $CLASSPATH:$ORAWEB_HOME/java/oracle.zip -DoracleHome=$ORACLE_HOME testSession
java.lang.ExceptionInInitializerError
        at 
        at testSession.main(testSession.java:4)
============================

which is an error in the static initializer for oracle.rdbms.Session. Any property name/value gives the same error. If I try the alternative :

Session session = new Session(properties);

or other varients, the error is indeed located at oracle.rdbms.Session.<init>(Session.java)

Any suggestions?

Thanks,

Fergus

P.S.
1) I have LD_LIBRARY_PATH set correctly to include $ORAWEB_HOME/lib (and CLASSPATH is set!)
2) OWS 3.0, Oracle 8.0.4 on Solaris 2.5.1 3) Oracle and the OWS are pretty much vanilla installs.

--
Fergus Gallagher
Orbis Technology Ltd, UK Received on Tue Sep 15 1998 - 09:31:54 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US