This content has been marked as final. Show 2 replies
I am using OC4J version 188.8.131.52.0 on SUN Solaris 7 with JDK 1.3.1
I tried to do the same thing as you. The problem I found was that,
although the classes are loaded, they are not correctly resolved, and
therefore they have a status of "invalid". You can check this by querying
the ALL_OBJECTS view (or the DBA_OBJECTS view -- since it appears that
you loaded the classes into the SYS user's schema).
I then tried to load the "oc4j.jar" file, since I figured that it is
a superset of the "oc4jclient.jar" file, and I am guessing that the
"oc4jclient.jar" has missing dependencies. This didn't make any difference,
the "RMIInitialContextFactory" class was still "invalid". So either
I am missing something, or the "oc4jclient.jar" file cannot be loaded
into the database (despite Oracle's claims that it can).
Sorry I couldn't give you better news!
P.S. If you manage to get it working, please let me know how. Personally
I have given up on it for now. If I really need this functionality,
then I figure I can use a servlet instead.
Can you find any object in all_objects with name 'com/evermind/server/rmi/RMIInitialContextFactory' and type 'JAVA CLASS'?
Also, you can check if status of any Java object is invalid or not.
If you are running your program through a user other than sys, you should create synonym also using "-s -grant public" of loadjava command.