jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vincent Massol" <vmas...@pivolis.com>
Subject RE: Log4j / JDeveloper trouble
Date Thu, 12 Feb 2004 16:02:27 GMT
Hmm... What version of commons-logging are you using? Are you using the
commons-logging jar that is packaged with the cactus version you're
using?

Thanks
-Vincent

> -----Original Message-----
> From: Jan Olav Kj|de [mailto:j.o.kjode@basalmed.uio.no]
> Sent: 12 February 2004 15:57
> To: Cactus Users List
> Subject: RE: Log4j / JDeveloper trouble
> 
> Hello.
> 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_aroundB
od
> y0(DefaultHttpClient.java:131)
>          at
>
org.apache.cactus.client.connector.http.DefaultHttpClient.doTest_aroundB
od
> y1$advice(DefaultHttpClient.java:240)
> 
> JDeveloper:
> GET
>
/nesys/ServletRedirectorSecure?Cactus_TestMethod=testTag&Cactus_TestClas
s=
>
no.uio.nesys.web.taglib.test.GetCachedIdsTagTester&Cactus_AutomaticSessi
on
> =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(LogFactoryImp
l.
> java:532)[\r]<br>[0x9]at
>
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImp
l.
> java:272)[\r]<br>[0x9]at
>
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImp
l.
> 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(
Se
> rvletTestRedirector.java:143)[\r]<br>[0x9]at
>
org.apache.cactus.server.ServletTestRedirector.doGet(ServletTestRedirect
or
> .java)[\r]<br>[0x9]at
>
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)[\r]<br>[0x9
]a
> t
>
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)[\r]<br>[0x9
]a
> t
> com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
>
J2EE].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatch
er
> .java:721)[\r]<br>[0x9]at
> com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
>
J2EE].server.http.ServletRequestDispatcher.forwardInternal(ServletReques
tD
> ispatcher.java:306)[\r]<br>[0x9]at
> com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
>
J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.j
av
> a: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(PooledExecuto
r.
> 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(LogFact
or
> yImpl.java:416)[\r]<br>[0x9]at
>
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImp
l.
> 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(LogFact
or
> yImpl.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:j.o.kjode@basalmed.uio.no]
> > > Sent: 11 February 2004 10:44
> > > To: cactus-user@jakarta.apache.org
> > > 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: cactus-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail:
cactus-user-help@jakarta.apache.org
> >
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> >For additional commands, e-mail: cactus-user-help@jakarta.apache.org
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: cactus-user-help@jakarta.apache.org



Mime
View raw message