Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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
Author

problem when running container tests in weblogic server

Jacob Sonia
Ranch Hand

Joined: Jun 28, 2009
Posts: 174
]] 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(AbstractWebTestCaller.java:176)
at org.apache.cactus.internal.server.AbstractWebTestController.handleRequest_aroundBody0(AbstractWebTestController.java:98)
at org.apache.cactus.internal.server.AbstractWebTestController.handleRequest_aroundBody1$advice(AbstractWebTestController.java:224)
at org.apache.cactus.internal.server.AbstractWebTestController.handleRequest(AbstractWebTestController.java)
at org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody2(ServletTestRedirector.java:101)
at org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody3$advice(ServletTestRedirector.java:224)
at org.apache.cactus.server.ServletTestRedirector.doPost(ServletTestRedirector.java)
at org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody0(ServletTestRedirector.java:72)
at org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody1$advice(ServletTestRedirector.java:224)
at org.apache.cactus.server.ServletTestRedirector.doGet(ServletTestRedirector.java)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3498)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
>
David Newton
Author
Rancher

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,

L


Live Free, Live Happy
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: problem when running container tests in weblogic server
 
Similar Threads
Does anyone know what this error means?
Webservice using axis2 1.0 and rampart
Please help me with the reason for this error..this error is when i run container tests in weblogic
Cactus: java.lang.NoSuchErrorField: Config
Finding the java file of the compiled jsp file in Weblogic 9.2