Make sure that the WSHOME and JAVA_HOME environment variables are set correctly.
Set the repository using the lh command and the no check option:
lh setRepo -n -ofile -ttype -iInitContextFactory -fDataSourcePath |
For example:
lh setRepo -n -oServerRepository.xml -tOracle -iorg.jnp.interfaces.NamingContextFactory -fjava:DatasourceName |
The lh setRepo command is documented in Appendix F, setRepo Reference.
Make a backup copy of the ServerRepository.xml file located in %WSHOME%\WEB-INF (Windows) or $WSHOME/WEB-INF (UNIX).
Copy the new ServerRepository.xml config file to %WSHOME%\WEB-INF (Windows) or $WSHOME/WEB-INF (UNIX).
Create a .war file from WSHOME
Copy the idm.war file to your server configuration.
Start the JBoss server.