Topic
  • 1 reply
  • Latest Post - ‏2013-09-04T04:48:23Z by VishalDoshi
FelipeVilla
FelipeVilla
2 Posts

Pinned topic Can't find resource for bundle com.tivoli.pd.nls.pdbjares, key es_ES

‏2011-05-27T12:33:30Z |
Hello,

I am using TAM APIS for communicationg Java Application server and TAM Policy server. My java application is running under JBoss 4.0.5 webserver on WINDOWS and my TAM is running under Websphere on Linux.

I get this error when I get a exception in line "new PDPrincipal(pdac, username, password.toCharArray())"

[java.util.MissingResourceException: Can't find resource for bundle com.tivoli.pd.nls.pdbjares, key es_ES
]

Wrappered Exception:
java.util.MissingResourceException: Can't find resource for bundle com.tivoli.pd.nls.pdbjares, key es_ES

java.util.ResourceBundle.getBundle(Unknown Source), com.tivoli.pd.jras.PDMsgService.getString(PDMsgService.java:59), com.tivoli.pd.jras.PDMsgService.getString(PDMsgService.java:32), com.tivoli.pd.jutil.ob.a(ob.java:67), com.tivoli.pd.jutil.ob.a(ob.java:93), com.tivoli.pd.jutil.x.<init>(x.java:27), com.tivoli.pd.jutil.p.a(p.java:95), com.tivoli.pd.jts.h.b(h.java:37), com.tivoli.pd.jts.h.a(h.java:78), com.tivoli.pd.jts.e.a(e.java:32), com.tivoli.pd.jutil.p$0.run(p$0.java), java.security.AccessController.doPrivileged(AccessController.java:251), com.tivoli.pd.jutil.p.b(p.java:21), com.tivoli.pd.jutil.p.a(p.java:126), com.tivoli.pd.jazn.PDAuthorizationContext.a(PDAuthorizationContext.java:72), com.tivoli.pd.jazn.PDAuthorizationContext.a(PDAuthorizationContext.java:62), com.tivoli.pd.jazn.PDAuthorizationContext.<init>(PDAuthorizationContext.java:19), org.andromda.prsalud.tam.PDContext.getPDContext(PDContext.java:96), org.andromda.prsalud.tam.AutentificacionTam.cambiarPasswordTAMPorUsuario(AutentificacionTam.java:68), org.andromda.prsalud.web.cambiarPassword.cambiarPasswordControllerImpl.cambiarPasswordTAM(cambiarPasswordControllerImpl.java:108), org.andromda.prsalud.web.cambiarPassword.cambiarPasswordControllerImpl.cambiarPassword(cambiarPasswordControllerImpl.java:66), org.andromda.prsalud.web.cambiarPassword.CambioPasswordCambioPassword._cambiarPassword(CambioPasswordCambioPassword.java:70), org.andromda.prsalud.web.cambiarPassword.CambioPasswordCambioPassword.execute(CambioPasswordCambioPassword.java:17), org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419), org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224), org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194), org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432), org.andromda.presentation.bpm4struts.ActionServlet.doPost(ActionServlet.java:48), javax.servlet.http.HttpServlet.service(HttpServlet.java:717), javax.servlet.http.HttpServlet.service(HttpServlet.java:810), org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252), org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173), org.displaytag.filter.ResponseOverrideFilter.doFilter(ResponseOverrideFilter.java:125), org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202), org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173), org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:264), org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:107), org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:72), org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274), org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:110), org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274), org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125), org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274), org.acegisecurity.wrapper.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:81), org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274), org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:217), org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274), org.acegisecurity.ui.logout.LogoutFilter.doFilter(LogoutFilter.java:108), org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274), org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:191), org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274), org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:148), org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:90), org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202), org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173), org.ajaxanywhere.AAFilter.doFilter(AAFilter.java:46), org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202), org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173), org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96), org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202), org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173), org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213), org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178), org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175), org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74), org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126), org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105), org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156), org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107), org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148), org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869), org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664), org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527), org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112), java.lang.Thread.run(Thread.java:735)

And this is my code:

PDMessages messages = null;
messages = new PDMessages();
+PDAdmin.initialize("Application", messages); +
+final PDAuthorizationContext pdac = new PDAuthorizationContext(new URL(tamcfgurl)) +
final PDPrincipal princ = new PDPrincipal(pdac, username, password.toCharArray());

Please any one help me on this issue, it would help me a lot.
  • VishalDoshi
    VishalDoshi
    2 Posts

    Re: Can't find resource for bundle com.tivoli.pd.nls.pdbjares, key es_ES

    ‏2013-09-04T04:48:23Z  

    I was having same issue, I found that my connection to PD server is proper and there are no other issues with environment setup but if I pass invalid userId/userName to PDContect for xyzee operation it is giving me the same error. If I pass valid userId/userName it is working properly for any operation(eg. resetPassword).