Win a copy of Spring Boot in Practice this week in the Spring forum!

lechon manok

Greenhorn
+ Follow
since Nov 12, 2002
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 lechon manok

I have the same problem, just curious if anybody has the solution.
15 years ago
hi,

how can i display the timestamp for error messages in the stderr.txt log file? i've tried turning on the datetime properties in simplelog.properties and this enables the display of timestamps in the stdout.txt log file but not in stderr.txt. i'm using WAS3.5x.

thanks!
18 years ago
Hi, I'm having the same problem. Just wondering if you've figured out the solution already. If so, could you please tell me?
Thanks!
I agree with Ilja, the thinking part is critical - two heads are definitely better than one. This to me is the most important benefit of pair programing.
It would also be interesting to know if any social or personality issues come into play. How well does a developer with a "lone wolf" personality adapt to pair programming? What if contrasting personalities make it very difficult to work together?
Thanks Simon!
I can see the LoginHelper class but I'm not sure how to use it. Can you direct me to some sample code where an EJB can pick up the caller's ID after using LoginHelper?
Thanks!
19 years ago
here it is:
<code>
<assembly-descriptor>
<security-role>
<description>Test User</description>
<role-name>UserRole</role-name>
</security-role>
<method-permission>
<role-name>UserRole</role-name>
<method>
<ejb-name>Manok</ejb-name>
<method-intf>Home</method-intf>
<method-name>*</method-name>
</method>
<method>
<ejb-name>Manok</ejb-name>
<method-intf>Remote</method-intf>
<method-name>*</method-name>
</method>
</method-permission>
</assembly-descriptor>
</code>
any thoughts? suggestions?
[ November 14, 2002: Message edited by: lechon manok ]
19 years ago
Does anybody know how to set up security in Websphere? I have a session bean and I'm trying to get the user's username in order to do audit logs. Whenever i try calling the session context's getCallerPrincipal(), I end up having 'UNAUTHENTICATED' as the Principal. I've tried setting the Principal using the code below but this does not seem to work. I'm still getting 'UNAUTHENTICATED' as Principal.
<code>
Properties properties = new Properties();
properties.put(Context.PROVIDER_URL,"iiop://localhost:910/");
properties.put(Context.INITIAL_CONTEXT_FACTORY,"com.ibm.websphere.naming.WsnInitialContextFactory");
properties.put(Context.SECURITY_PRINCIPAL,"UserName");
properties.put(Context.SECURITY_CREDENTIALS,"Password");
Context initial = new InitialContext(properties);
</code>
I also tried enabling security in Websphere by editing the server-cfg.xml file as well as configuring the administrative client. Apparently this works to some extent, however I'm getting this exception:
<code>
java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.RemoteException: ; nested exception is:
com.ibm.websphere.csi.CSIException: SECJ0053E: Authorization failed for ??? while invoking (Home)ejb/org/manok/ManokHome create:0 securityName: ???;accessID: ??? is not granted any of the required roles: UserRole
java.rmi.RemoteException: ; nested exception is:
com.ibm.websphere.csi.CSIException: SECJ0053E: Authorization failed for ??? while invoking (Home)ejb/org/manok/ManokHome create:0 securityName: ???;accessID: ??? is not granted any of the required roles: UserRole
com.ibm.websphere.csi.CSIException: SECJ0053E: Authorization failed for ??? while invoking (Home)ejb/org/manok/ManokHome create:0 securityName: ???;accessID: ??? is not granted any of the required roles: UserRole
</code>
I'd appreciate any suggestions. Thanks!
19 years ago