A lot of this content was taken from this URL, but I’ve listed here what is required for most situations.
First, we’ll assume that JBoss and User Application have been installed at the default location of /opt/novell/idm/ and that the Advanced/Provisioning module has been installed with the default context of IDMProv.
Stop the JBoss process.
Most User App installs will create a novlua linux user, if not, create one and give it rights to the file system:
chown -R novlua /opt/novell/idm
NOTE: If you’re using the builtin PostgreSQL, you will need to run these two commands to return the rights for the postgres daemon:
chown -R :daemon /opt/novell/idm/Postgres
chown -R postgres:postgres /opt/novell/idm/Postgres/data
Edit the /etc/init.d/jboss_init script and change the following parameter:
Set up SSL as described in my other article How to SSLize User Application on JBoss using eDirectory’s Certificate Authority for Linux.
It’s always safe to move the following to a backup location rather than deleting blindly:
- File: jax-ws-catalog.xml
- File: jbossws-roles.properties
- File: jbossws-users.properties
- Directory: admin-console.war
- Directory: jbossws.sar
- Directory: jmx-console.war
- Directory: jmx-remoting.sar
- Directory: management
- File: profileservice-jboss-beans.xml
- Directory: profileservice-secured.jar
- Directory: xnio-provider.jar
- Directory: jbossws.deployer
- Directory: seam.deployer
- Directory: webbeans.deployer
- Directory: xnio.deployer
Keep the file /opt/novell/idm/jboss/server/IDMProv/deploy/jmx-invoker-service.xml as it is required by the init script to stop the jboss server.
Edit the /opt/novell/idm/jboss/server/IDMProv/deploy/ROOT.war/WEB-INF/web.xml file and comment out the following (you may want to keep this bit if you’re behind a Load Balancer as it provides the health status of JBoss):
<!-- <servlet> <servlet-name>Status Servlet</servlet-name> <servlet-class>org.jboss.web.tomcat.service.StatusServlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>Status Servlet</servlet-name> <url-pattern>/status</url-pattern> </servlet-mapping> -->
Finally, clean up the old deployments:
rm -fr /opt/novell/idm/jboss/server/IDMProv/tmp/*
rm -fr /opt/novell/idm/jboss/server/IDMProv/work/jboss.web/localhost/
Now JBoss can be started.