You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "jeffrey (JIRA)" <ji...@codehaus.org> on 2007/07/06 19:54:13 UTC
[jira] Created: (SUREFIRE-344) java.util.MissingResourceException:
Can't find bundle for base name
com.mycom.errorhandler.ErrorMessagesResourceBundle, locale en_US
java.util.MissingResourceException: Can't find bundle for base name com.mycom.errorhandler.ErrorMessagesResourceBundle, locale en_US
------------------------------------------------------------------------------------------------------------------------------------
Key: SUREFIRE-344
URL: http://jira.codehaus.org/browse/SUREFIRE-344
Project: Maven Surefire
Issue Type: Bug
Affects Versions: 2.3
Environment: Windows XP, IBM ThinkPad
Reporter: jeffrey
Attachments: com.mycom.errorhandler.TestErrorhandler.txt, TestErrorhandler.java
I am trying to move my Ant projects to Maven. I am able to build all the source codes and run some JUnit tests. When I tried to run a JUnit test that involves ResourceBundle, it gave the above exception. I ran the test with debug on and make sure that the test classpath include the above class:
[DEBUG] Adding to surefire test classpath: C:\Documents and Settings\JTFL\.m2\repository\org\apache\maven\surefire\surefire-junit\2.3\surefire-junit-2.3.jar
[DEBUG] Test Classpath :
[DEBUG] C:\p4_tittle1666_L0088485\stsmaven\BundleTest\components\target\classes
[DEBUG] C:\p4_tittle1666_L0088485\stsmaven\BundleTest\components\target\test-classes
[DEBUG] C:\Documents and Settings\JTFL\.m2\repository\junit\junit\3.8.1\junit-3.8.1.jar
where C:\p4_tittle1666_L0088485\stsmaven\BundleTest\components\target\classes consists of the bundle com\mycom\errorhandler\ErrorMessagesResourceBundle.class.
This same Junit test run fine if I am using Ant script.
Thanks!
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Closed: (SUREFIRE-344) java.util.MissingResourceException:
Can't find bundle for base name
com.mycom.errorhandler.ErrorMessagesResourceBundle, locale en_US
Posted by "jeffrey (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/SUREFIRE-344?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
jeffrey closed SUREFIRE-344.
----------------------------
Resolution: Fixed
Fix Version/s: 2.3
It turns out to be a dependency issue. Certain jar files are missing from the pom.xml. Once the correct jar files are specified, the missing resources exception is gone.
> java.util.MissingResourceException: Can't find bundle for base name com.mycom.errorhandler.ErrorMessagesResourceBundle, locale en_US
> ------------------------------------------------------------------------------------------------------------------------------------
>
> Key: SUREFIRE-344
> URL: http://jira.codehaus.org/browse/SUREFIRE-344
> Project: Maven Surefire
> Issue Type: Bug
> Affects Versions: 2.3
> Environment: Windows XP, IBM ThinkPad
> Reporter: jeffrey
> Fix For: 2.3
>
> Attachments: com.mycom.errorhandler.TestErrorhandler.txt, TestErrorhandler.java
>
>
> I am trying to move my Ant projects to Maven. I am able to build all the source codes and run some JUnit tests. When I tried to run a JUnit test that involves ResourceBundle, it gave the above exception. I ran the test with debug on and make sure that the test classpath include the above class:
> [DEBUG] Adding to surefire test classpath: C:\Documents and Settings\JTFL\.m2\repository\org\apache\maven\surefire\surefire-junit\2.3\surefire-junit-2.3.jar
> [DEBUG] Test Classpath :
> [DEBUG] C:\p4_tittle1666_L0088485\stsmaven\BundleTest\components\target\classes
> [DEBUG] C:\p4_tittle1666_L0088485\stsmaven\BundleTest\components\target\test-classes
> [DEBUG] C:\Documents and Settings\JTFL\.m2\repository\junit\junit\3.8.1\junit-3.8.1.jar
> where C:\p4_tittle1666_L0088485\stsmaven\BundleTest\components\target\classes consists of the bundle com\mycom\errorhandler\ErrorMessagesResourceBundle.class.
> This same Junit test run fine if I am using Ant script.
> Thanks!
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira