Topic
  • 9 replies
  • Latest Post - ‏2014-09-16T06:09:46Z by franzw
SystemAdmin
SystemAdmin
9855 Posts

Pinned topic Can't find bundle for base name com.tivoli.pd.nls.pdbjares, locale en_US - TAM API ERROR

‏2006-07-17T13:11:41Z |
Hi,

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

When I am creating PDContext object i am getting the following error.

Error Description :

java.util.MissingResourceException: Can't find bundle for base name com.tivoli.pd.nls.pdbjares, locale en_US
at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:838)
at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:728)
at java.util.ResourceBundle.getBundle(ResourceBundle.java:701)
at com.tivoli.pd.jras.PDMsgService.getString(PDMsgService.java:45)
at com.tivoli.pd.jras.PDMsgService.getString(PDMsgService.java:32)
at com.tivoli.pd.jutil.bo.a(bo.java:33)
at com.tivoli.pd.jutil.PDBasicContext.<init>(PDBasicContext.java:61)
at com.tivoli.pd.jutil.PDContext.<init>(PDContext.java:147)
at com.tivoli.pd.jutil.PDContext.<init>(PDContext.java:69)
at com.tivoli.pd.jutil.PDContext.<init>(PDContext.java:71)
at com.bp.common.TAMConnectionServlet.doGet(TAMConnectionServlet.java:42)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:534)

Source Code:

try{

String pwd="xxxxx";
char[] password=pwd.toCharArray();
java.net.URL configURL=new java.net.URL("file://
0.0.0.0/opt/IBMJava2-142/jre/lib/ext/TAMTAMConfig.conf");
PDContext pdContext=new PDContext("sec_master",password,configURL);
} catch (PDException e){
e.printStackTrace();
}
Please any one help me on this issue, it would help me a lot.

Regards
Updated on 2011-06-02T09:44:16Z at 2011-06-02T09:44:16Z by FelipeVilla
  • SystemAdmin
    SystemAdmin
    9855 Posts

    Re: Can't find bundle for base name com.tivoli.pd.nls.pdbjares, locale en_US - TAM API ERROR

    ‏2007-11-29T23:11:58Z  
    Its been a while but do you remember how you resolved the issue regarding "Cant find bundly for base ". I am having the same issue and found out that there are certain property files that are not read by tomcat therefore the missing resource issue.

    Will it help if I copy the property files over to some tomcat config folder.

    Any help is appreciated.
    Thanks
    -akash
  • SystemAdmin
    SystemAdmin
    9855 Posts

    Re: Can't find bundle for base name com.tivoli.pd.nls.pdbjares, locale en_US - TAM API ERROR

    ‏2008-04-22T04:51:46Z  
    hi,

    The error come only when compatability of Software. example jdk1.4.2 is not compatable with Tomcat6.0 . it require only Tomcat5.0. I do have the same problem. Pls make sure to compile and run java code in JAVA 1.4.2 which is in Tivoli.

    Message was edited by: LakshmiPathiRaju
    Updated on 2008-04-22T04:51:46Z at 2008-04-22T04:51:46Z by SystemAdmin
  • heidou
    heidou
    16 Posts

    Re: Can't find bundle for base name com.tivoli.pd.nls.pdbjares, locale en_US - TAM API ERROR

    ‏2009-06-09T09:48:52Z  
    hi,

    The error come only when compatability of Software. example jdk1.4.2 is not compatable with Tomcat6.0 . it require only Tomcat5.0. I do have the same problem. Pls make sure to compile and run java code in JAVA 1.4.2 which is in Tivoli.

    Message was edited by: LakshmiPathiRaju
    maybe your path set error.

    1.cmd java -version , show java1
    2.cmd echo $JAVA_HOME show java2

    If there are two JDK on your host.Pls make sure there are the same java.
  • bcarlier
    bcarlier
    1 Post

    Re: Can't find bundle for base name com.tivoli.pd.nls.pdbjares, locale en_US - TAM API ERROR

    ‏2009-11-06T11:17:45Z  
    • heidou
    • ‏2009-06-09T09:48:52Z
    maybe your path set error.

    1.cmd java -version , show java1
    2.cmd echo $JAVA_HOME show java2

    If there are two JDK on your host.Pls make sure there are the same java.
    Hello,

    I'm facing the exact same error: "java.util.MissingResourceException: Can't find bundle for base name com.tivoli.pd.nls.pdbjares, locale en_US"

    Here's my set-up:
    • TAM client is installed on RedHat server using IBM JRE 1.4.2
    • Jboss 4.2 is using Sun JRE : 1.5.0_20,Sun Microsystems Inc.
    • The (Sun IDM) WebApp is calling my custom class which does the "new PDContext(en_US,adminLogin,adminPwd,file:/appl/PD/etc/idm.conf)"

    I tried compiling my custom class using Sun JDK 1.5.0_20, Sun JDK 1.5.0_20 with 1.4 compatibility. This does not work.

    Do you know precisely which JDK I should use to compile my class?
    Thanks.
  • tripl3des
    tripl3des
    1 Post

    Re: Can't find bundle for base name com.tivoli.pd.nls.pdbjares, locale en_US - TAM API ERROR

    ‏2010-05-28T18:15:15Z  
    • bcarlier
    • ‏2009-11-06T11:17:45Z
    Hello,

    I'm facing the exact same error: "java.util.MissingResourceException: Can't find bundle for base name com.tivoli.pd.nls.pdbjares, locale en_US"

    Here's my set-up:
    • TAM client is installed on RedHat server using IBM JRE 1.4.2
    • Jboss 4.2 is using Sun JRE : 1.5.0_20,Sun Microsystems Inc.
    • The (Sun IDM) WebApp is calling my custom class which does the "new PDContext(en_US,adminLogin,adminPwd,file:/appl/PD/etc/idm.conf)"

    I tried compiling my custom class using Sun JDK 1.5.0_20, Sun JDK 1.5.0_20 with 1.4 compatibility. This does not work.

    Do you know precisely which JDK I should use to compile my class?
    Thanks.
    ResourceBundle implementation for IBM JDK does not respect the contract described in the API. At least not for 1.6 version. The spec states that if a locale is not found then the parent locale should be used. For example, if en_US is not found, en should be used, or the default file.

    IBM JDK only works when there is a file for the exact locale requested. The only way this would work is creating an empty file for every possible locale variation, which is quite impossible.

    Try creating a ResourceBundleLoader as workaround.
    (I know this thread is old, I am just helping anyone else who finds this problem)
  • FelipeVilla
    FelipeVilla
    2 Posts

    Re: Can't find bundle for base name com.tivoli.pd.nls.pdbjares, locale en_US - TAM API ERROR

    ‏2011-06-02T09:44:16Z  
    • tripl3des
    • ‏2010-05-28T18:15:15Z
    ResourceBundle implementation for IBM JDK does not respect the contract described in the API. At least not for 1.6 version. The spec states that if a locale is not found then the parent locale should be used. For example, if en_US is not found, en should be used, or the default file.

    IBM JDK only works when there is a file for the exact locale requested. The only way this would work is creating an empty file for every possible locale variation, which is quite impossible.

    Try creating a ResourceBundleLoader as workaround.
    (I know this thread is old, I am just helping anyone else who finds this problem)
    Please, could you specify in detail a possible solution to this problem. I just need it work with "en_US".
  • VishalDoshi
    VishalDoshi
    2 Posts

    Re: Can't find bundle for base name com.tivoli.pd.nls.pdbjares, locale en_US - TAM API ERROR

    ‏2013-09-03T12:45:42Z  

    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 xyz operation it is giving me the same error. If I pass valid userId/userName it is working properly for any operation(eg. changePassword).

  • Umesh-TAMeB
    Umesh-TAMeB
    2 Posts

    Re: Can't find bundle for base name com.tivoli.pd.nls.pdbjares, locale en_US - TAM API ERROR

    ‏2014-09-16T04:47:17Z  
    Please, could you specify in detail a possible solution to this problem. I just need it work with "en_US".

    Replying very old thread. But I have to struggle for 1 week to resolve this issue, So this may help others coming to this thread.

    Point of Error:

    Whenever APIs tries to add error message to message bundle, it throws this error.

    Root Cause:

    JRE is not configured for Access Manager Runtime for Java

    Solution

    Configure JRE for Access Manager Runtime for Java using pdconfig command. If already configured verify that PD.jar exist in <JRE_HOME>/lib/ext folder.

     

  • franzw
    franzw
    390 Posts

    Re: Can't find bundle for base name com.tivoli.pd.nls.pdbjares, locale en_US - TAM API ERROR

    ‏2014-09-16T06:09:46Z  

    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 xyz operation it is giving me the same error. If I pass valid userId/userName it is working properly for any operation(eg. changePassword).

    Probably the pd.jar is a wrong (older) version - try to compare it with a PD.jar from the current TAM JRE level...

    HTH

    Regards

    Franz Wolfhagen