You could run web2py in a Jython environment which can then interface to Java libraries. You would still have to get into the JEE container held part of the application but my JEE knowledge is now dated and I never used JBoss so am not sure what would be involved there.
Ron

