hwellmann / jeeunit

Automatically exported from code.google.com/p/jeeunit
Other
0 stars 1 forks source link

get the error in deploying war #14

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
0.8.0
on windows XP

Please provide any additional information below.
When I try to run the test, got the deploying war error.  Could you please tell 
me where I should look?

Thank you.

PlainTextActionReporterFAILUREApplication jeeunit is not deployed on this 
target [server]
Process finished with exit code -1

java.lang.RuntimeException: java.lang.RuntimeException: error deploying WAR
    at com.googlecode.jeeunit.glassfish.EmbeddedGlassfishContainer.autodeploy(EmbeddedGlassfishContainer.java:292)
    at com.googlecode.jeeunit.glassfish.EmbeddedGlassfishLauncher.autodeploy(EmbeddedGlassfishLauncher.java:55)
    at com.googlecode.jeeunit.JeeunitRunner.<init>(JeeunitRunner.java:63)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    at org.junit.internal.builders.AnnotatedBuilder.buildRunner(AnnotatedBuilder.java:31)
    at org.junit.internal.builders.AnnotatedBuilder.runnerForClass(AnnotatedBuilder.java:24)
    at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:57)
    at org.junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForClass(AllDefaultPossibilitiesBuilder.java:29)
    at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:57)
    at org.junit.internal.requests.ClassRequest.getRunner(ClassRequest.java:24)
    at com.intellij.rt.junit4.Junit4ClassSuite.<init>(Junit4ClassSuite.java:33)
    at com.intellij.rt.junit4.JUnit4Util.createClassSuite(JUnit4Util.java:50)
    at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:40)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)
Caused by: java.lang.RuntimeException: error deploying WAR
    at com.googlecode.jeeunit.glassfish.EmbeddedGlassfishContainer.deployWar(EmbeddedGlassfishContainer.java:235)
    at com.googlecode.jeeunit.glassfish.EmbeddedGlassfishContainer.autodeploy(EmbeddedGlassfishContainer.java:286)
    ... 24 more

Original issue reported on code.google.com by richard....@gmail.com on 10 Sep 2011 at 5:51

GoogleCodeExporter commented 9 years ago
For some reason, Embedded Glassfish cannot deploy the WAR assembled by jeeunit 
from the current classpath.

Maybe you see some more information in your log by enabling debug logging for 
GlassFish? Otherwise, you can try looking at the WAR built by jeeunit by 
setting a breakpoint at the end of EmbeddedGlassfishContainer.buildWar().

I see you're using IntelliJ - so there might be some IntelliJ components on the 
classpath which end up in the WAR where they don't belong.

In that case, you can use ContainerLauncher.setClasspathFilter() to filter them 
out.

Original comment by hwellman...@gmail.com on 12 Sep 2011 at 5:49