Hi,

* If you wish to see what ant executes for running the test, use the -debug
parameter on the command line and you'll see that you don't start the tests
in the same way which accounts for the different results you're getting.

* What version of JUnit are you using ?

* Line 88 in AbstractHttpClient is 'public final static ResourceBundle
CONFIG = PropertyResourceBundle.getBundle(CONFIG_NAME);' (and 'public final
static String CONFIG_NAME = "cactus";')

The only possibility I see so far, is that cactus.properties is not in your
classpath (i.e. the directory where cactus.properties is not in the
classapth).

-Vincent

----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, October 19, 2001 1:57 PM
Subject: [junit] java.lang.ExceptionInInitializerError:
java.util.MissingResourceException: Can't find bundle for base name cactus,
locale de_CH


> Hi,
>
> I tried to test EJB with cactus. I'm triying to run the ejb example
> available on the cactus site. When I start the test from ant I get the
> MissingResourceException below and when I start the cactus test my self
> with Junit I get the "java.io.StreamCorruptedException: InputStream does
> not contain a serialized object" exception.
>
> I'm glad for any help
>
> Sergio D'Oronzio
>
> run_tests:
>     [junit] Running org.apache.cactus.sample.ejb.ConverterTest
>     [junit] Tests run: 2, Failures: 0, Errors: 2, Time elapsed: 1.052 sec
>     [junit] Testsuite: org.apache.cactus.sample.ejb.ConverterTest
>     [junit] Tests run: 2, Failures: 0, Errors: 2, Time elapsed: 1.052 sec
>     [junit]
>     [junit] Testcase: testDummy took 1.032 sec
>     [junit]     Caused an ERROR
>     [junit] null
>     [junit] java.lang.ExceptionInInitializerError:
> java.util.MissingResourceException: Can't find bundle for base name c
> actus, locale de_CH
>     [junit]     at
>
java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:7
12)
>     [junit]     at
> java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:683)
>     [junit]     at
> java.util.ResourceBundle.getBundle(ResourceBundle.java:546)
>     [junit]     at
>
org.apache.cactus.client.AbstractHttpClient.<clinit>(AbstractHttpClient.java
:88)
>     [junit]     at
> org.apache.cactus.ServletTestCase.runTest(ServletTestCase.java:130)
>     [junit]     at
> org.apache.cactus.AbstractTestCase.runBare(AbstractTestCase.java:371)
>     [junit]     at
> junit.framework.TestResult$1.protect(TestResult.java:106)
>     [junit]     at
> junit.framework.TestResult.runProtected(TestResult.java:124)
>     [junit]     at junit.framework.TestResult.run(TestResult.java:109)
>     [junit]     at junit.framework.TestCase.run(TestCase.java:131)
>     [junit]     at junit.framework.TestSuite.runTest(TestSuite.java:173)
>     [junit]     at junit.framework.TestSuite.run(TestSuite.java:168)
>     [junit]     at
>
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRu
nner.java:231)
>     [junit]     at
>
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestR
unner.java:409)
>     [junit]
>     [junit] Testcase: testConvert took 0 sec
>     [junit]     Caused an ERROR
>     [junit] null
>     [junit] java.lang.NoClassDefFoundError
>     [junit]     at
> org.apache.cactus.ServletTestCase.runTest(ServletTestCase.java:130)
>     [junit]     at
> org.apache.cactus.AbstractTestCase.runBare(AbstractTestCase.java:371)
>     [junit]     at
> junit.framework.TestResult$1.protect(TestResult.java:106)
>     [junit]     at
> junit.framework.TestResult.runProtected(TestResult.java:124)
>     [junit]     at junit.framework.TestResult.run(TestResult.java:109)
>     [junit]     at junit.framework.TestCase.run(TestCase.java:131)
>     [junit]     at junit.framework.TestSuite.runTest(TestSuite.java:173)
>     [junit]     at junit.framework.TestSuite.run(TestSuite.java:168)
>     [junit]     at
>
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRu
nner.java:231)
>     [junit]     at
>
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestR
unner.java:409)
>     [junit]
>     [junit] TEST org.apache.cactus.sample.ejb.ConverterTest FAILED
>
> ************************* started Junit manualy
> *********************************************************
>
> java.io.StreamCorruptedException: InputStream does not contain a
serialized
> object
>
>      at java.io.ObjectInputStream.readStreamHeader(Unknown Source)
>
>      at java.io.ObjectInputStream.<init>(Unknown Source)
>
>      at
>
org.apache.cactus.client.AbstractHttpClient.doTest(AbstractHttpClient.java:1
48)
>
>      at
>
org.apache.cactus.AbstractTestCase.runGenericTest(AbstractTestCase.java:422)
>
>      at
org.apache.cactus.ServletTestCase.runTest(ServletTestCase.java:130)
>
>      at
> org.apache.cactus.AbstractTestCase.runBare(AbstractTestCase.java:371)
>
>
>

Reply via email to