Set the WSHOME environment variable to point to your Waveset installation; for example:
set WSHOME=C:\bea\user_projects\domains\mydomain\applications\idm |
Make sure that the JAVA_HOME environment variable is set correctly; for example:
set JAVA_HOME=C:\j2sdk1.5 |
Make sure that your chosen database drivers are installed for you Weblogic Server. See the WebLogic documentation for further information. In this example, the Oracle drivers and classes12.jar are installed in following directory:
WebLogicHome\server\lib |
Include weblogic.jar in your CLASSPATH. On Windows, enter:
set CLASSPATH=%CLASSPATH%;WeblogicHome\server\lib\weblogic.jar |
For example:
set CLASSPATH=%CLASSPATH%;c:\bea\weblogic81\server\lib\weblogic.jar |
Change to the %WSHOME% directory (Windows), or $WSHOME (UNIX).
Remove the j2ee.jar file from WEB-INF\lib\ after making a backup.
Change directory to the %WSHOME%\bin directory (Windows), or $WSHOME/bin directory (UNIX).
Point the repository to the new location. For example:
lh setRepo -v -tOracle -iweblogic.jndi.WLInitialContextFactory -fDatasourceName "-ut3:Server:Port" -U"Username" -P"Password" |
For example:
lh setRepo -v -tOracle -iweblogic.jndi.WLInitialContextFactory -fMyOraDataSource "-ut3://localhost:7001/" -Uweblogic -Pweblogic |
Change the -f location flag to match the value you selected for the JNDI Name field.
If there are no reported errors, restart WebLogic to pick up the changes. (This also restarts the Waveset system.)