- This topic has 8 replies, 2 voices, and was last updated 19 years ago by
Riyad Kalla.
-
AuthorPosts
-
poesysMemberI’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 WorkbenchVersion: 4.0.3 GA
Build id: 20051025-4.0.3-GA*** Eclipse details:
Eclipse SDKVersion: 3.1.0
Build id: I20050627-1435Eclipse Project SDK
Version: 3.1.0
Build id: I20050627-1435Eclipse Platform
Version: 3.1.0
Build id: I20050627-1435Eclipse Java Development Tools
Version: 3.1.0
Build id: I20050627-1435Eclipse Graphical Editing Framework
Version: 3.1
Build id: 200507071758Eclipse RCP
Version: 3.1.0
Build id: I20050627-1435Eclipse Plug-in Development Environment
Version: 3.1.0
Build id: I20050627-1435Eclipse 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
poesysMemberForgot to add that I’m using MyFaces.
Riyad KallaMemberMoving 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?
poesysMemberHere’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.
Riyad KallaMemberWhen 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?
poesysMemberYes, 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?
Riyad KallaMemberShut 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 upIf 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.
poesysMemberI 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.
Riyad KallaMemberGlad it’s working now.
-
AuthorPosts