[Security & JAAS/JBoss] - Re: SimplePrincipal ClassCastException
by clevelam
Moving my LoginModule to a seperate JAR still does not work. I have one correction. The classcastexception does not occur in the CustomLoginModule. It occurs in a servlet(spring controller) that has access to the httprequest object.
The following calls: request.getUserPrincipal().getClass() returns an object of type: org.jboss.security.SimplePrincipal
Where as I am expecting my custom class. I have updated login-config as follows:
<application-policy name = "xxx-Domain">
<login-module code="xxx.xxx.CustomLoginModule"
flag = "required">
<module-option name="principalClassName">
xxx.xxx.CustomPrincipal
</module-option>
<module-option name="principalClass">
xxx.xxx.CustomPrincipal
</module-option>
</login-module>
</application-policy>
I am also using JBoss' WebAuthentication class to have JAAS authentication work with programmatic security.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4185854#4185854
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185854
17 years, 5 months
[Performance Tuning] - JVM arguments for increasing performance of JBoss.
by dgenkin
Hello,
We are using JRockit with JBoss 4.2.3-GA.
We use the following arguments to start JBoss. These parameters helped us to increase performance of JBoss, though they might not be perfect and if anyone can suggest something better that would be great.
JAVA_OPTS=" -Xms2047M -Xmx2047M -jrockit -Xgc:parallel -Xverbose:memory -Xgcreport -XXaggressive -XXlazyunlocking -XXtlasize:min=4k,preferred=512k -XXcallprofiling -Djava.security.policy=$JAVA_HOME/lib/security/java.policy"
As you can see these arguments are specific for JRockit jvm.
For the experiment we might switch from JRockit to SUN JVM.
These arguments:
Xgc:parallel -Xverbose:memory -Xgcreport -XXaggressive -XXlazyunlocking -XXtlasize:min=4k,preferred=512k -XXcallprofiling
are specific for JRockit JVM and in SUN they are defined differently. I have found some SUN equivalents, but not 100% sure they are correct.
Can anyone please advice on SUN equivalents for these JRockit arguments?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4185826#4185826
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185826
17 years, 5 months