users@jersey.java.net

Re: [Jersey] Jersey Testframework

From: Srinivas Naresh Bhimisetty <shri.naresh_at_gmail.com>
Date: Tue, 2 Feb 2010 18:47:57 +0530

Hi Katrin,

   how did you try running it with the EmbeddedGlassFish.

I assume you are trying to run it as:

"mvn test
-Dtest.containerFactory=com.sun.jersey.test.framework.spi.container.embedded.glassfish.EmbeddedGlassFishTestContainerFactory
-Dcontainer.type=EmbeddedGF"

   Please note that apart from setting the "test.containerFactory" property
you would also have to set "container.type" to "EmbeddedGF" for running your
tests with EmbeddedGF.

Hope this helps,
Naresh

On Tue, Feb 2, 2010 at 5:05 PM, Katrin Egle <katrinegle_at_gmx.de> wrote:

> Hi,
>
> I'm trying to get the jersey-test-framework-1.1.2-ea with an embedded
> glassfish working. My problem is, that it seams that the server starts
> correctly, but then there is a UnsupportedOperationException:
> org.glassfish.embed.ScatteredArchive.entries(String) is not supported yet.
>
> Why does this method get called, when it is not supported yet?
>
> Here is my stack-trace:
> -------------------
> com.sun.jersey.test.framework.spi.container.TestContainerException:
> org.glassfish.embed.EmbeddedException:
> java.lang.UnsupportedOperationException:
> org.glassfish.embed.ScatteredArchive.entries(String) is not supported yet.
> at
> com.sun.jersey.test.framework.spi.container.embedded.glassfish.EmbeddedGlassFishTestContainerFactory$EmbeddedGlassFishTestContainer.start(EmbeddedGlassFishTestContainerFactory.java:141)
> at com.sun.jersey.test.framework.JerseyTest.setUp(JerseyTest.java:264)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
> at
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
> at
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
> at
> org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:27)
> at
> org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
> at
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:73)
> at
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:46)
> at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180)
> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:41)
> at org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173)
> at
> org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
> at
> org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
> at org.junit.runners.ParentRunner.run(ParentRunner.java:220)
> at
> org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46)
> at
> org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
> at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
> at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
> at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
> at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
> Caused by: org.glassfish.embed.EmbeddedException:
> java.lang.UnsupportedOperationException:
> org.glassfish.embed.ScatteredArchive.entries(String) is not supported yet.
> at org.glassfish.embed.EmbeddedDeployer.deploy(EmbeddedDeployer.java:152)
> at
> com.sun.jersey.test.framework.spi.container.embedded.glassfish.EmbeddedGlassFishTestContainerFactory$EmbeddedGlassFishTestContainer.start(EmbeddedGlassFishTestContainerFactory.java:139)
> ... 24 more
> Caused by: java.lang.UnsupportedOperationException:
> org.glassfish.embed.ScatteredArchive.entries(String) is not supported yet.
> at
> org.glassfish.embed.ScatteredArchive.entries(ScatteredArchive.java:182)
> at org.glassfish.persistence.jpa.JPASniffer.handles(JPASniffer.java:82)
> at
> com.sun.enterprise.v3.server.SnifferManager.getSniffers(SnifferManager.java:127)
> at org.glassfish.embed.EmbeddedDeployer.deploy(EmbeddedDeployer.java:132)
> ... 25 more
> -----------
>
> I hope you can help me. If you need more information just let me know.
>
> Thanks,
> Katrin
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>
>