I fixed the problem by putting the commons-logging package in the JUnit exclude.properties (thanks),
and ran into another problem.
Maybe you can help with this as well?
It seems like the beginTag method (with some authentication stuff) is run, but the testTag method is not.
beginTag method does this
theRequest.setRedirectorName("ServletRedirectorSecure");
theRequest.setAuthentication(new BasicAuthentication("user", "password"));
JUnit results:
testTag(no.uio.nesys.web.taglib.test.GetCachedIdsTagTester): Failed to get the test results at [http://localhost:8988/nesys/ServletRedirectorSecure]
JUnit failures:
org.apache.cactus.util.ChainedRuntimeException: Failed to get the test results at [http://localhost:8988/nesys/ServletRedirectorSecure]
at org.apache.cactus.client.connector.http.DefaultHttpClient.doTest_aroundBody0(DefaultHttpClient.java:131)
at org.apache.cactus.client.connector.http.DefaultHttpClient.doTest_aroundBody1$advice(DefaultHttpClient.java:240)
JDeveloper:
GET /nesys/ServletRedirectorSecure?Cactus_TestMethod=testTag&Cactus_TestClass=no.uio.nesys.web.taglib.test.GetCachedIdsTagTester&Cactus_AutomaticSession=true&Cactus_Service=CALL_TEST HTTP/1.1
Content-type: application/x-www-form-urlencoded
Authorization: Basic bmVzeXM6Y29ydGV4
User-Agent: Jakarta Commons-HttpClient/2.0rc2
Host: localhost:8988
HTTP/1.1 500 Internal Server Error
Date: Thu, 12 Feb 2004 14:23:50 GMT
Server: Oracle9iAS (9.0.3.0.0) Containers for J2EE
Content-Length: 2545
Connection: Close
Content-Type: text/html
DEBUG [TestRunner-Thread] (Wire.java:119) - << "<HTML><HEAD><TITLE>500 Internal Server Error</TITLE></HEAD><BODY><H1>500 Internal Server Error</H1><PRE>org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: Class org.apache.commons.logging.impl.Log4JLogger does not implement Log[\r]<br>[0x9]at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:532)[\r]<br>[0x9]at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:272)[\r]<br>[0x9]at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:246)[\r]<br>[0x9]at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:395)[\r]<br>[0x9]at org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody1$advice(ServletTestRedirector.java:143)[\r]<br>[0x9]at org.apache.cactus.server.ServletTestRedirector.doGet(ServletTestRedirector.java)[\r]<br>[0x9]at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)[\r]<br>[0x9]at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)[\r]<br>[0x9]at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:721)[\r]<br>[0x9]at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)[\r]<br>[0x9]at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)[\r]<br>[0x9]at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)[\r]<br>[0x9]at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)[\r]<br>[0x9]at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)[\r]<br>[0x9]at java.lang.Thread.run(Thread.java:536)[\r]<br>Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: Class org.apache.commons.logging.impl.Log4JLogger does not implement Log[\r]<br>[0x9]at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:416)[\r]<br>[0x9]at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:525)[\r]<br>[0x9]... 14 more[\r]<br>Caused by: org.apache.commons.logging.LogConfigurationException: Class org.apache.commons.logging.impl.Log4JLogger does not implement Log[\r]<br>[0x9]at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:412)[\r]<br>[0x9]... 15 more[\r]<br></PRE></BODY></HTML>
GET /nesys/ServletRedirectorSecure?Cactus_Service=GET_RESULTS HTTP/1.1
Content-type: application/x-www-form-urlencoded
Authorization: Basic bmVzeXM6Y29ydGV4
User-Agent: Jakarta Commons-HttpClient/2.0rc2
Host: localhost:8988
HTTP/1.1 500 Internal Server Error Date: Thu, 12 Feb 2004 14:23:51 GMT Server: Oracle9iAS (9.0.3.0.0) Containers for J2EE Content-Length: 2545 Connection: Close Content-Type: text/html
thanks, jan ok
At 14:27 12.02.2004 +0100, you wrote:
Hi Jan,
We would need the full stack trace to know more about your problem.
Thanks -Vincent
> -----Original Message----- > From: Jan Olav Kj|de [mailto:[EMAIL PROTECTED] > Sent: 11 February 2004 10:44 > To: [EMAIL PROTECTED] > Subject: Log4j / JDeveloper trouble > > Hello > I'm trying to get started with Cactus, but I've run into some log4j > trouble. > When I try to run my very first (and very simple) test I get the following > error: > > junit.framework.AssertionFailedError: Exception in constructor: > testdownloadD (org.apache.commons.logging.LogConfigurationException: > org.apache.commons.logging.LogConfigurationException: > org.apache.commons.logging.LogConfigurationException: Class > org.apache.commons.logging.impl.Log4JLogger does not implement Log > > I'm using Oracle 9i JDeveloper, and have placed all the cactus jar (+ > log4j > jar) files in WEB-INF/lib. > I've also removed an old commons-logging jar file (as suggested by a > previous post), but this didn't help very much. > > jan ok > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
