Might be a stupid question, but do you have the admin, management, identity and cms portals deployed? I.e. are there portal-admin.sar and the like in your JBoss deploy/ directory?
I just now checked the results of a build on 2.6.2. I recall from 2.4.x that the build produced a functionally complete jboss-portal.sar file, suitable for deployment (all you had to add was the *-ds.xml file to configure the datasource). But in 2.6.2, the jboss-portal.sar is incomplete. While I can understand the rational behind this, it would be nice if the build constructed a functionally complete version of jboss-portal.sar, perhaps at build/output/jboss-portal.sar.
You could still get functionally complete jboss-portal.sar using ant -f distrib.xml -Dno-doc=true or ant -f distrib.xml package-normal
I guess I should have read the build script first...
Thanks for everyone reply, it was very helpful. Just to summarize what the issue(s) were:
- Following the instructions from the JBoss Portal Reference guide and just doing a "build deploy" results in an incomplete jboss-portal.sar. Just as poster "roth" mentioned, I was missing key sar files (e.g. portal-admin.sar, portal-cms.sar, etc.).
- Just poster "prabhat" mentioned, the solution is to do a ant -f distrib.xml -Dno-doc=true package-normal.
*Note: I found a an error in the distrib.xml file which I will submit at a later time. The error is it was trying to copy portal-wsrp-exploded.sar which does not exist as part of the portal source downloaded. I changed the build file to copy portal-wsrp.sar instead.
Another option is to use the deploy-all target when you build Portal. Starting with 2.6, deploy only deploys the minimum that is required to run. If you just want to add the admin portlets, you can do:
cd build;./build.sh deploy;cd ../core-admin;./build.sh deploy
Note that this is all documented in section 2.3.5 of the reference guide: http://docs.jboss.com/jbportal/v2.6.2/referenceGuide/html/installation.html#d0e946
See also http://wiki.jboss.org/wiki/Wiki.jsp?page=PortalModules.