facebook

[Closed] JBoss can’t find the resource bundle

  1. MyEclipse Archived
  2.  > 
  3. Application Servers and Deployment
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #251546 Reply

    poesys
    Member

    I’ve moved my project to a different machine, set up a new Eclipse/MyEclipse web project, and copied the files in. Everything compiles and deploys properly to JBoss 4. When I run the application in JBoss 4, it gives me the error,

    11:39:59,171 ERROR [LoadBundleTag] Resource bundle ‘edu.stanford.polisci.tdb.TdbBundle’ could not be found.

    I look in the deployed war file with WinZip and the file TdbBundle.properties is there in the folder WEBINF/classes/edu/stanford/polisci/tdb, and it is also in the expanded Tomcat temp directory under the same folder.

    This works fine on the machine on which I created the project. Is there some path or setting that needs to be set for JBoss to find this properties file? Could I have deleted or missed a classpath somewhere in the setup?

    *** Date: Wed May 03 11:53:45 GMT-08:00 2006

    *** System properties:
    OS=WindowsXP
    OS version=5.1
    Java version=1.5.0_02

    *** MyEclipse details:
    MyEclipse Enterprise Workbench

    Version: 4.0.3 GA
    Build id: 20051025-4.0.3-GA

    *** Eclipse details:
    Eclipse SDK

    Version: 3.1.0
    Build id: I20050627-1435

    Eclipse Project SDK

    Version: 3.1.0
    Build id: I20050627-1435

    Eclipse Platform

    Version: 3.1.0
    Build id: I20050627-1435

    Eclipse Java Development Tools

    Version: 3.1.0
    Build id: I20050627-1435

    Eclipse Graphical Editing Framework

    Version: 3.1
    Build id: 200507071758

    Eclipse RCP

    Version: 3.1.0
    Build id: I20050627-1435

    Eclipse Plug-in Development Environment

    Version: 3.1.0
    Build id: I20050627-1435

    Eclipse startup command=-os
    win32
    -ws
    win32
    -arch
    x86
    -launcher
    D:\eclipse\eclipse.exe
    -name
    Eclipse
    -showsplash
    600
    -exitdata
    2a8c_58
    -vm
    C:\Program Files\Java\jdk1.5.0_02\bin\javaw.exe

    #251547 Reply

    poesys
    Member

    Forgot to add that I’m using MyFaces.

    #251550 Reply

    Riyad Kalla
    Member

    Moving to OT > Soft Dev

    This really depends on how you are trying to load the resource bundle, can you provide a code snippet on how you load it?

    #251562 Reply

    poesys
    Member

    Here’s the actual line that fails from the JSP:

    <f:loadBundle basename=”edu.stanford.polisci.tdb.TdbBundle” var=”bundle” />

    f: as usual is the Faces taglib.

    #251565 Reply

    Riyad Kalla
    Member

    When JBoss exploded the WAR into the webapps dir, do you see it in there? Your code looks fine… if you setup Tomcat and deploy the identical app to it, does it work I wonder?

    #251571 Reply

    poesys
    Member

    Yes, I see the exploded bundle in the right folder under WEBINF in the tmp directory. But for some reason, JBoss isn’t finding it. I don’t think it’s a JBoss issue, though, as it works fine on the same version of JBoss on the other machine, and other MyEclipse web apps are running on the same JBoss instance with no problem. It’s got to be something related to the deployment or the project configuration, I think. Any ideas?

    #251593 Reply

    Riyad Kalla
    Member

    Shut down your app server
    Remove the deployment
    Right click on your project and Refresh it from the root
    Do a Project > Clean on your project and let it rebuild
    Make sure there are no errors
    Recreate the deployment to JBoss
    Start JBoss back up

    If that didn’t work, is this something you can send me? If so, email it to support@genuitec.com ATTN Riyad with a link to this thread so I know why I’m getting it.

    #251597 Reply

    poesys
    Member

    I just this moment figured out the problem (a good night’s sleep always helps). I carefully looked at all the files and realized that the name on the new system has a lower case initial letter–tdbBundle.properties, not TdbBundle.properties. The JSPs and faces-config.xml all refered to TdbBundle. I renamed the file and everything worked. The interesting part is why it worked on the old system: on the old system, the file was init-capped correctly, and the source control system (Perforce) allowed that but had the file internally as tdb, not Tdb, so when I refreshed onto the new system from version control, I got the wrong file name. All this on Windows, where case I guess is just a matter of opinion :).

    Thanks for your efforts.

    #251614 Reply

    Riyad Kalla
    Member

    Glad it’s working now.

Viewing 9 posts - 1 through 9 (of 9 total)
Reply To: [Closed] JBoss can’t find the resource bundle

You must be logged in to post in the forum log in