Start with server/jbossweb-standalone and remove the web components (deployers/jbossweb.deployer, deploy/ROOT.war, deploy/jbossweb.sar). That might get you a minimal configuration that still supports datastores and the JNDI/RMI mechanism necessary to access the datasource.