I am getting an error trying to use the latest build with the
JspTestcaller class.
If i run some tests that use ServletTestCase first, then run a
JspTestCase it doesn't repeat.
The error is:
java.lang.ExceptionInInitializerError: java.lang.RuntimeException: Must
call init() first
at
org.apache.commons.cactus.util.log.LogService.getLog(LogService.java:149)
at org.apache.commons.cactus.ServletURL.<clinit>(ServletURL.java:151)
at
org.apache.commons.cactus.server.JspTestCaller.doTest(JspTestCaller.java:190)
at _jsp._test._redirector__jsp._jspService(_redirector__jsp.java:81)
at com.caucho.jsp.JavaPage.service(JavaPage.java:87)
at com.caucho.jsp.JavaPage.subservice(JavaPage.java:81)
at com.caucho.jsp.Page.service(Page.java:407)
at com.caucho.jsp.QServlet.service(QServlet.java:163)
at
com.caucho.server.http.QNamedDispatcher.service(QNamedDispatcher.java:149)
at
com.caucho.server.http.QNamedDispatcher.forward(QNamedDispatcher.java:77)
at com.caucho.server.http.Invocation.service(Invocation.java:308)
at
com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:121)
at
com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:238)
at
com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:157)
at com.caucho.server.TcpConnection.run(TcpConnection.java:140)
at java.lang.Thread.run(Thread.java:484)
Once this error has happened you need to restart the JVM running the
server side tests. To make the tests pass then use a ServletTestCase
followed by the JspTestCase.
Seems like the log isn't initialized properly for JspTestCases
Jari
--
Jari Worsley
Senior Programmer
Hyperlink Interactive Ltd