You mean you downloaded the src zip of 2.7 and when you deploy the bits, you see the error you mentioned?
The "build.sh deploy" works fine with no errors. Also, jboss starts up fine with no errors.
When I hit the http://localhost/portal url in a browser, the error that I previously attached is logged in server.log. The browser shows the jboss title bar and footer, but none of the portals show up, and the login dialog is just a white box.
Sorry if I wasn't clear earlier.
I just tried why you are doing with 2.7 CR1 release and I don't see what you are seeing.
Please see if there are other errors before hand. One thing you may want to set up the -XX:MaxPermSize=128m in run.conf under bin directory.
I tried as well with the most recent version of Portal and didn't see any problem. Note that, as noted in: http://docs.jboss.com/jbportal/v2.7.0.B1/referenceGuide/html/installation.html#building_deploying_from_source
sh build.sh deployonly deploys a minimal portal which is not very useful by itself. To be able to see some content, you need to deploy additional modules and/or portlets of your own.
Try deploying the core-samples module:
cd core-samples;sh build.sh deployThis will deploy sample portlets and create some additional pages.
The administration interface can be deployed by:
cd core-admin; sh build.sh deploy