To start JBoss 6 as Windows service, it is not necessary to use java service wrapper.
It can be easely make it with the batch file "service.bat" at jboss6/bin folder.
Just edit the "service.bat", go at line who calls run.bat:
- call run.bat < .r.lock >> run.log 2>&1
Put your context params there. For example:
- call run.bat -Dfile.encoding=utf8 < .r.lock >> run.log 2>&1
Just execute the batch with param install:
- c:\jboss6\bin> service.bat install
That's it.