[Security & JAAS/JBoss] - Trying to get active users..
by paulaunderwood
I have this in a file called GetActiveUsersAction.java..
| MBeanServer server = (MBeanServer) MBeanServerFactory.findMBeanServer(null).get(0);
| String jaasMgrName = "jboss.security:service=JaasSecurityManager";
| ObjectName jaasMgr = new ObjectName(jaasMgrName);
| Object[] params = { "SecurityPolicy" };
| String[] signature = { "java.lang.String" };
| activeUsers = (List<User>) server.invoke(jaasMgr, "getAuthenticationCachePrincipals", params, signature);
|
My list always comes back with a 0 length.. Am I missing something?
Also, what exactly does this return.. I know a list.. but what information about the user does it return? I haven't been able to find an explanation other than to use the code above. We would like to have a page that will show all the users logged into our system.
Thanks,
Paula
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098401#4098401
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098401
18Â years, 8Â months
[Beginners Corner] - Coldfusion WAR Deployment fun
by GreatSeaSpider
Hello all,
I'm a software developer trying to deploy a website packaged in a war file using a fresh jboss install on a dev machine. The website is written in coldfusion and the war file was generated by coldfusion MX7.
When i start the server it loads but throws a pile of erros upon encountering my war file.
First error in server.log:
--------------------------------------------------------------------------------------
2007-10-24 16:09:39,359 ERROR [org.apache.catalina.startup.ContextConfig] Parse error in application web.xml file at jndi:/localhost/test_webstite/WEB-INF/web.xml
java.lang.IllegalArgumentException: Invalid <url-pattern> *.cfml/* in servlet mapping
at org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2807)
at org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2833)
at org.apache.tomcat.util.digester.Digester.endElement(Digester.java:1139)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
...
...
--------------------------------------------------------------------------------------
then further down i get this:
--------------------------------------------------------------------------------------
--- Incompletely deployed packages ---
org.jboss.deployment.DeploymentInfo@c584878e { url=file:/C:/jboss-4.2.2.GA/server/default/deploy/test_webstite.war }
deployer: MBeanProxyExt[jboss.web:service=WebServer]
status: Deployment FAILED reason: URL file:/C:/jboss-4.2.2.GA/server/default/tmp/deploy/tmp41423test_webstite-exp.war/ deployment failed
state: FAILED
watch: file:/C:/jboss-4.2.2.GA/server/default/deploy/test_webstite.war
altDD: null
lastDeployed: 1193238578531
lastModified: 1193238578484
mbeans:
--- MBeans waiting for other MBeans ---
ObjectName: jboss.web.deployment:war=test_webstite.war,id=-981170290
State: FAILED
Reason: org.jboss.deployment.DeploymentException: URL file:/C:/jboss-4.2.2.GA/server/default/tmp/deploy/tmp41423test_webstite-exp.war/ deployment failed
--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
ObjectName: jboss.web.deployment:war=test_webstite.war,id=-981170290
State: FAILED
Reason: org.jboss.deployment.DeploymentException: URL file:/C:/jboss-4.2.2.GA/server/default/tmp/deploy/tmp41423test_webstite-exp.war/ deployment failed
--------------------------------------------------------------------------------------
any ideas how i could go about fixing this?
does anybody have any experience running coldfusion sites in jboss? any help greatly appreciated!
Pete
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098400#4098400
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098400
18Â years, 8Â months
[JBoss jBPM] - SEAM/jBPM Synchronization
by jayzaw
Hi,
we intend to separate page-flow from process-flow in our application.
This means:
a) to every activity/task in a business process, there is a set of pages assigned, within which there is pageflow. One such set of pages is assigned to one and exactly one activity/task in a business process. (there are exceptions, like the login page, and the page in which you can chose to trigger one of several business processes at your disposal as a user)
b) the "web rendering" tier (where pageflow takes place, and we will use SEAM here) does basically NOT know about the business process (loose coupling). All it knows is :
- which activity/task is performed right now, while the current pageset is active
- at the end of the dialogue for the activity, it tells jBPM to resume the business process instance. jBPM would then either acknowledge the resume of the business process, or signal a fault in case the submit of the activity to jBPM has somehow failed. In case jBPM would signal a success, it would tell to the "web rendering" tier what the next activity is. That way, the web tier would know what the next set of pages is to load.
This is the loosest coupling I can imagine between page- and process-flow. The question is: is it feasible that way, and where do I find material/infos on it ? How would the synchronization take place ?
How would the user interface controller be notified of the next activity in the business process, without having knowledge of the whole business process ?
How would the jBPM tell the user interface controller that the successful completion of an activity has failed and that it must be restarted ? (meaning, e.g. that a user would have to correct some values submitted and resume the business process again)
Kind regards,
Jay
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098397#4098397
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098397
18Â years, 8Â months