File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Testing and the fly likes problem when running container tests in weblogic server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Testing
Bookmark "problem when running container tests in weblogic server" Watch "problem when running container tests in weblogic server" New topic

problem when running container tests in weblogic server

Jacob Sonia
Ranch Hand

Joined: Jun 28, 2009
Posts: 179
]] Root cause of ServletException.
javax.servlet.ServletException: Error getting test result. This could happen for example if you're using a load-balancer. Please disable it before running Cactus tests.
at org.apache.cactus.internal.server.AbstractWebTestCaller.doGetResults(
at org.apache.cactus.internal.server.AbstractWebTestController.handleRequest_aroundBody0(
at org.apache.cactus.internal.server.AbstractWebTestController.handleRequest_aroundBody1$advice(
at org.apache.cactus.internal.server.AbstractWebTestController.handleRequest(
at org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody2(
at org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody3$advice(
at org.apache.cactus.server.ServletTestRedirector.doPost(
at org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody0(
at org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody1$advice(
at org.apache.cactus.server.ServletTestRedirector.doGet(
at javax.servlet.http.HttpServlet.service(
at javax.servlet.http.HttpServlet.service(
at weblogic.servlet.internal.StubSecurityHelper$
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(
at weblogic.servlet.internal.ServletStubImpl.execute(
at weblogic.servlet.internal.ServletStubImpl.execute(
at weblogic.servlet.internal.WebAppServletContext$
at Source)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(
at weblogic.servlet.internal.WebAppServletContext.execute(
David Newton

Joined: Sep 29, 2008
Posts: 12617

Are you?
L Duperval
Ranch Hand

Joined: May 14, 2003
Posts: 63
Yes, I know this thread is old but since not much has been said on it...

I have the same issue and I am not running a load balancer. The tests are running locally on my machine, in a RAD/Websphere environment. I noticed that, in my case, only the first test would fail with no result. After that, the other tests would run normally. So, what did I do? I created a dummy test which fails. I put it first in my file to (make it more likely that it will) make it run before the other tests.

It sorta works. The error is not caught, so I always get a failure in the dummy test. However, the other tests run and function as expected.

Another way to make it work is to run the test suite twice, without redeploying the war or the restarting the server.

I don't understand the behaviour, however. Any insight appreciated,


Live Free, Live Happy
I agree. Here's the link:
subject: problem when running container tests in weblogic server
It's not a secret anymore!