This discussion is archived
7 Replies Latest reply: Mar 1, 2013 1:36 AM by Appu RSS

java.util.MissingResourceException: Can't find bundle for base name

Appu Newbie
Currently Being Moderated
Hi all,

I am newbie in weblogic and using weblogic 10.3.5. I am getting the following error...........




java.util.MissingResourceException: Can't find bundle for base name Formattting, locale en_US
at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1427)
at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1250)
at java.util.ResourceBundle.getBundle(ResourceBundle.java:777)

The Formattting.properties file is under the following directory in aclTestDomain folder

|--oracle
      |--Middleware
            |--user_projects
                  |--domains
                        |--aclTestDomain



Can you please help me sort out the problem?
Thanks in advance.....
  • 1. Re: java.util.MissingResourceException: Can't find bundle for base name
    Kishore Rout Journeyer
    Currently Being Moderated
    Hi Appu,
    What is the OS on top which you have installed weblogic 10.3.5?

    Thanks,
    Kishore
  • 2. Re: java.util.MissingResourceException: Can't find bundle for base name
    Appu Newbie
    Currently Being Moderated
    Hi Kishore,

    Thanks for the reply.

    It's windows XP. Another Info I would like to add(maybe the problem lies here), weblogic is installed in E drive as per the following directory whereas the domain has been created in D drive. Though the properties files are right there in D drive.

    Weblogic installation directory:: E:\Oracle\Middleware\wlserver_10.3

    Domain Directory:: D:\Oracle\Middleware\user_projects\domains\aclTestDomain
  • 3. Re: java.util.MissingResourceException: Can't find bundle for base name
    Appu Newbie
    Currently Being Moderated
    Hi Kishore,

    Thanks for the reply.

    It's windows XP. Another Info I would like to add(maybe the problem lies here), weblogic is installed in E drive as per the following directory whereas the domain has been created in D drive. Though the properties files are right there in D drive.

    Weblogic installation directory:: E:\Oracle\Middleware\wlserver_10.3

    Domain Directory:: D:\Oracle\Middleware\user_projects\domains\aclTestDomain
  • 4. Re: java.util.MissingResourceException: Can't find bundle for base name
    Kishore Rout Journeyer
    Currently Being Moderated
    Hi Appu,
    There is no issue with weblogic server installation and domain creation. You can create domain in any directory, not required to create in installation directory.
    Can you check the system locale in your machine. Follow below steps:
    1. Open command prompt.
    2. Write "systeminfo" , press enter
    3. What is value against system locale, Please paste it here.

    Thanks,
    Kishore
  • 5. Re: java.util.MissingResourceException: Can't find bundle for base name
    Appu Newbie
    Currently Being Moderated
    Hi Kishore,

    Sorry for late reply. I guess there is no problem with the locale settings... since I have another domain created in E drive with the same application deployed. That domain is working fine and the application is up and running fine.

    Any other issue might be there which I cant really figure out.

    Can you provide me with some other tips.
  • 6. Re: java.util.MissingResourceException: Can't find bundle for base name
    Appu Newbie
    Currently Being Moderated
    Anyways, for the answer of your query, it is "United States". Thnx
  • 7. Re: java.util.MissingResourceException: Can't find bundle for base name
    Appu Newbie
    Currently Being Moderated
    Hi Kishore,

    After all these days of haywire searching, I found the solution to my problem.

    Seems like there were some issues with JAVA_HOME and MW_HOME settings.

    I just copied and pasted the following segment of code at the start of the startWebLogic.cmd file. That solved my problem.

    @ECHO OFF

    @rem ******* MY CODE GOES HERE ******

    set JAVA_HOME=E:\Oracle\Middleware\jdk160_24
    set MW_HOME=E:\Oracle\Middleware


    if not defined MW_HOME (
    echo "ERROR: You must set MW_HOME and it must point to a directory".
    echo " where an installation of WebLogic exists. Ensure you point "
    echo " this variable to the extract location of the zip distribution."
    goto finish
    )

    if not defined JAVA_HOME (
    echo "ERROR: You must set JAVA_HOME and point it to a valid location"
    echo " of where your JDK has been installed"
    goto finish
    )

    @echo "Setting up proper ACLs for %MW_HOME% ... (operation takes awhile)"
    echo Y|cacls %MW_HOME% /G administrators:F "creator owner":F system:F %USERDOMAIN%\%USERNAME%:F /T > NUL

    @rem
    @rem Setup the environment
    @rem
    call "%MW_HOME%\wlserver_10.3\server\bin\setWLSEnv.cmd"

    @rem
    @rem Generate the .product.properties and the registry.xml
    @rem
    %JAVA_HOME%\bin\java.exe -Dant.home=%MW_HOME%\modules\org.apache.ant_1.7.1 org.apache.tools.ant.Main -f %MW_HOME%\configure.xml

    :finish

    @rem ******* MY CODE ENDS ******

    @REM WARNING: This file is created by the Configuration Wizard.
    @REM Any changes to this script may be lost when adding extensions to this configuration.

    Thanks,

    Appu

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points