[JBoss Portal] - Re: Securing Portal Page - please help!
by PeterJ
I would bring up the portal, log in as admin, click on the admin link to get to the admin portal, 'home' page, and play with the security settings on the 'default' portal and its pages until I get the proper behavior. Once I had the proper settings figured out, I might consider editing the jboss-portal.sar/conf/data/default-object.xml file to apply the security settings. Of course, changing the settings in that file might not work unless you are starting off with a clean installation, even with setting 'if-exists' to 'overwrite'. (I am not very trusting of 'overwrite', some changes seem to go through ok, others just don't make it.) But if your are attempting to put together a custom portal to deploy, that file is the perfect place to make such changes.
As an example of limiting access to a page, I changed the access control for the 'default' portal as follows:
default portal: Unchecked has view and personalize access
pages:
* default - Unchecked has viewrecursive access
* news - Admins and Users have view access
* weather - Unchecked has viewrecursive access
When noone is logged in, only the 'default' and 'weather' pages are accessible (only those two tabs show up). If I log in as admin or user, all three pages (tabs) are visible. Thus, I have set up the news page to require login before it can be accessed.
Note that a page's tab does not show up unless the user has access. As far as I know, there is no way to have the tab show up and when the user clicks on it, to display the login prompt.
The one thing that surprised me was that I had to give Administrators view access to the news page. I recall in 2.4 that this was not necessary (though my memory could be off, it has been months since I have done an exhaustive analysis of how security works in 2.4). I seem to recall that in 2.4 the "users" role was a special roll encompassing anyone who was logged in, now it appears to be a normal role like any other.
Hope this helps.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4072718#4072718
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4072718
18Â years, 10Â months
[Messaging, JMS & JBossMQ] - Error with EJB3 application deployment
by snagar
Hi All
I have been trying to deploy one of my application that works perfect on JBOSS 4.0.5 while on JBOSS 4.2.0 GA version it is not deployed with the ROOT CAUSE being as shown below...
What I was keen to understand is what the error " Reason: java.lang.NoClassDefFoundError: org.hibernate.cfg.EJB3DTDEntityResolver" signifies.
2007-08-10 01:09:37,667 ERROR [org.jboss.deployment.scanner.URLDeploymentScanner] Incomplete Deployment listing:
--- Incompletely deployed packages ---
org.jboss.deployment.DeploymentInfo@75ca39c6 { url=file:/data/jboss-4.2.0.GA/server/default/deploy/mail-service.xml }
deployer: org.jboss.deployment.SARDeployer@72897289
status: null
state: FAILED
watch: file:/data/jboss-4.2.0.GA/server/default/deploy/mail-service.xml
altDD: null
lastDeployed: 1186688239196
lastModified: 1186688239000
mbeans:
org.jboss.deployment.DeploymentInfo@229581fd { url=file:/data/jboss-4.2.0.GA/server/default/deploy/compliancetracker.ear }
deployer: org.jboss.deployment.EARDeployer@bef0bef
status: null
state: FAILED
watch: file:/data/jboss-4.2.0.GA/server/default/deploy/compliancetracker.ear
altDD: null
lastDeployed: 1186688243682
lastModified: 1186688243000
mbeans:
--- MBeans waiting for other MBeans ---
ObjectName: jboss.j2ee:service=EJB3,module=compliancetrackerEjb.jar
State: FAILED
Reason: java.lang.NoClassDefFoundError: org.hibernate.cfg.EJB3DTDEntityResolver
--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
ObjectName: jboss.j2ee:service=EJB3,module=compliancetrackerEjb.jar
State: FAILED
Reason: java.lang.NoClassDefFoundError: org.hibernate.cfg.EJB3DTDEntityResolver
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4072716#4072716
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4072716
18Â years, 10Â months
[EJB 3.0] - Interrupting a stateful session bean in use
by mike.nardone
In the project I am working on, there is a method call which takes in several parameters and then calls a stateful session bean to perform some heavy-duty processing on the server-side. This processing consumes a (very) non-trivial amount of memory. Our client software allows the user to cancel this process, but the cancellation is currently implemented by simply dropping the client's reference to the SFSB and getting a handle to a new bean. The old SFSB continues its processing until it finishes, which consumes an awful lot of memory I would like to reclaim. I can't directly destroy the bean while it's processing because I get a ConcurrentAccessException. Is there a way to interrupt the method this SFSB while running without hitting the concurrent access issue?
-Mike
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4072712#4072712
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4072712
18Â years, 10Â months