I am trying to track down the Weblogic 10.3 JAR that contains weblogic.rmi.RemoteException in order to solve a build path issue.
Thanks in advance.
I am trying to track down the Weblogic 10.3 JAR that contains weblogic.rmi.RemoteException in order to solve a build path issue.
Thanks in advance.
I don't have WebLogic installed here, but I keep a shell/cygwin script around to find classes in jars:
#! /bin/sh
target=$1
for jf in `find . -name '*.jar' -type f -print`; do
jar tvf $jf | awk "/\/$target\.class/ { print \"$jf: \" \$NF }"
done
Just call the script something like jarfind.sh and put it in your path somewhere. Then jarfind.sh RemoteException
in your weblogic tree.
I finally found it in $BEA-HOME/modules/com.bea.core.weblogic.rmi.client_1.4.0.0.jar
It seems in 10.3 or (10g as Orcale are branding it) they have moved a lot of what was in $BEA-HOME/wlserver_10.x/server/lib/weblogic.jar into a seperate modules directory in the root of the bea install.
I also had to include $BEA-HOME/modules/com.bea.core.weblogic.workmanager_1.4.0.0.jar on my build path to use com.bea.core.weblogic.rmi.client_1.4.0.0.jar
The script above is useful, a slightly simpler version which will recurse through sub-directories searching each jar file it encounters for a specified class is
find -name "*.jar" -exec grep "" {} \;
e.g. find -name "*.jar" -exec grep "weblogic/rmi/RemoteException.class" {} \;
I found the tip courtesy of
http://snipplr.com/view/12702/find-in-which-jar-a-class-is-defined/
The website jarhoo claims to have searchable indexes of all common JAR files - but I haven't used it in years and you now seem to require a logon:
The scripts given in the other answers will obviously give better results for your CLASSPATH :-)