This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
7/16/08 14:50:17:018 CDT] 00000024 SystemErr R javax.naming.NameNotFoundException: Context: an27808Node02Cell/nodes/an27808Node02/servers/server1, name: an27808Node02/testAlias: First component in name an27808Node02/testAlias not found. [Root exception is org.omg.CosNaming.NamingContextPackage.NotFound: IDL mg.org/CosNaming/NamingContext/NotFound:1.0] [
Any help will be greatly appreciated...
Joined: Jul 16, 2008
Found an example of code fragment how to store User id and password securely in Application Server configuration file which can be used by an application running on Application Server.
HashMap map = new HashMap(); map.put("com.ibm.mapping.authDataAlias", j2cAlias); WSMappingCallbackHandler callbackHandler = new WSMappingCallbackHandler(map, null); LoginContext lc = new LoginContext("DefaultPrincipalMapping", callbackHandler); lc.login();
The problem is when I tested in RAD 7, it works great but with WSAD 5.1.2, I am getting the following error:
"WSMappingCallbackHandler cannot be resolved or is not a type"
It looks like WSMappingCallbackHandler is part of IBM WebSphere Application Server, Release 6 API not 5.
Any idea how I can do this in WSAD 5.1.2 with WAS 5.0.2??