satish kumar kandukuri

Greenhorn
+ Follow
since Aug 10, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by satish kumar kandukuri

Thank you. This information here helped me to connect from eclipse to download maven plugin. I had to use dev link though and had to configure Proxy settings in eclipse.
Hi Jared Krull

Can you please paste the code samples you used to demonstrate how you solved your issue.Your help is greatly appreciated.
Your inputs might help me solve my issue.

Below was your reply.
------------------------

I just figured the problem - didnt load the security manager on the command line!

I needed to add this in and set a policy class giving the loading class the createClassLoader and other file based permissions
14 years ago
I am trying to develop CustomPermission class in JAAS by extending BasicPermission class.
When i try to using this cusotmpermission class in JAAS Policy file and i try to read the permissions as below

...
ProtectionDomain domain =
new ProtectionDomain(cs, null,SimpleAuthz.class.getClassLoader(),principals);
....
....
PermissionCollection pcoll = Policy.getPolicy().getPermissions(domain);
Enumeration pcollEnum = pcoll.elements();

I iterate through the enumeration and print out the permissions. It says unresolved for my CustomPermission class even though i have put this class file in the jar file.

RESOURCE NAME.......5::com.gabhart.security.PageLevelAuthPermission
ACTIONS.............5::
PERMISSION..........5:unresolved com.gabhart.security.PageLevelAuthPermission
btnUpdate disable)

If i dont provide this class file in jar i was getting NoClassDefFound, now it doesnt so that means it is able to access the class file, but still says its not resovled. I suspect there should be a way of regsitering this class with Java Security or my approach is wrong.

Please provide me your valuable inputs in using JAAS Custom Permission class in JAAS Policy file. Please provide me steps to do the same.






14 years ago
Also another thing i got to know is
Case expressions cannot be wrappers as Avi sinha said. It can neither be regular primitive type as well. But we can specify Compile time constants (Initialed Final variables along with declaration) and it cannot be just final variables.

Below one works

....
final int j = 3; //This works as its a compile time constant
switch(i) {
case j: System.out.println("three”"); break;
default: System.out.println("other”"); break;
}


Where as below one doesnot work and it gives compile time error.
final int j;
j = 3;
switch(i) {
case j: System.out.println("three”"); break;
default: System.out.println("other”"); break;
}







Hi Jeff!!! Welcome.

Thank You
14 years ago
Hi,

I have a JSP with some java scripts in it. It runs fine on Windows XP machines. When i run the same on Windows 2000 machine, it does not work. The webapplication just hangs, without any error messages or log messages on the server. Any suggestions regarding this will be greatly appreciated.

Thank You,
Satish
[ August 10, 2005: Message edited by: Bear Bibeault ]
18 years ago
JSP