You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cactus-user@jakarta.apache.org by Vikas Malla <ma...@yahoo.co.in> on 2002/11/21 17:58:18 UTC

Re: Tutorial help{With my problems}

If I keep commons-logging.jar in my WEB-INF/lib and <tomcat home>/common/lib, then my application runs fine. I can test the cactus example and it runs fine. The problem comes when I run the tests. Here is my error stack:
The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request

org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: org.apache.commons.l
ogging.LogConfigurationException: Class org.apache.commons.logging.impl.Log4JCategoryLog does not implement Log
    [junit]     at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(Lo
gFactoryImpl.java:555)
    [junit]     at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(Lo
gFactoryImpl.java:289)
    [junit]     at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(Lo
gFactoryImpl.java:259)
    [junit]     at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:
390)
    [junit]     at org.apache.cactus.server.ServletTestRedirector.around112_doGe
t(ServletTestRedirector.java;org/apache/cactus/util/log/LogAspect.aj(1k):1142)
    [junit]     at org.apache.cactus.server.ServletTestRedirector.doGet(ServletT
estRedirector.java;org/apache/cactus/util/log/LogAspect.aj(1k):92)
    [junit]     at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    [junit]     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    [junit]     at org.apache.catalina.core.ApplicationFilterChain.internalDoFil
ter(ApplicationFilterChain.java:247)
    [junit]     at org.apache.catalina.core.ApplicationFilterChain.doFilter(Appl
icationFilterChain.java:193)
    [junit]     at org.apache.catalina.core.StandardWrapperValve.invoke(Standard
WrapperValve.java:243)
    [junit]     at org.apache.catalina.core.StandardPipeline.invokeNext(Standard
Pipeline.java:566)
    [junit]     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipe
line.java:472)
    [junit]     at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.j
ava:943)

If I remove commons-logging from the WEB-INF/lib, I get the following error:

org.apache.commons.logging.LogConfigurationException: java.lang.ClassCastException: org.apache.commons.logging.impl.LogFactoryImpl


I am using tomcat 4.0.3, cactus 1.4.1, junit 3.7, and use ant 1.4.1 to run my tests. This is proving to be a real roadblock in my development. Any help will be really appreciated.

Thanks, 

 

 Michael Burke <mb...@bestweb.net> wrote:Vikas Malla wrote:

>Michael,
>
>Have you been able to resolve the issue?
>
>Thanks,
>
> Michael Burke wrote:Michael Burke wrote:
>
> 
>
>>I'm trying to run the tutorial, when I try to run the test in tomcat 
>>I'm getting 'requested resource/test/ServletTestRunner is not 
>>available'. I've got cactus.jar, junit.jar, aspecjrt.jar, 
>>commons-logging.jar in tomcat-home/common/lib. Any help would be 
>>appreciated.
>>
>>
>>-- 
>>To unsubscribe, e-mail: 
>>
>>For additional commands, e-mail: 
>>
>>
>>
>> 
>>
>Not really. When I removed the jars from my webapp/lib dir I don't get the above error but now I get a blank page in the browser and no error messages in tomcat's logs. Any suggestions would be appreciated. 
>
>
>
>--
>To unsubscribe, e-mail: 
>For additional commands, e-mail: 
>
>Catch all the cricket action. Download Yahoo! Score tracker
> 
>




--
To unsubscribe, e-mail: 
For additional commands, e-mail: 

Catch all the cricket action. Download Yahoo! Score tracker

RE: Tutorial help{With my problems}

Posted by Vincent Massol <vm...@octo.com>.
Hi Vikas,

Is that an answer to the thread entitled "Tutorial help" or a new
question? If it is a new question I have answered to this question
today, or tried to (can't recall the name of the thread).

-Vincent

> -----Original Message-----
> From: Vikas Malla [mailto:malla6um@yahoo.co.in]
> Sent: 21 November 2002 16:58
> To: Cactus Users List
> Subject: Re: Tutorial help{With my problems}
> 
> 
> If I keep commons-logging.jar in my WEB-INF/lib and <tomcat
> home>/common/lib, then my application runs fine. I can test the cactus
> example and it runs fine. The problem comes when I run the tests. Here
is
> my error stack:
> The server encountered an internal error (Internal Server Error) that
> prevented it from fulfilling this request
> 
> org.apache.commons.logging.LogConfigurationException:
> org.apache.commons.logging.LogConfigurationException:
org.apache.commons.l
> ogging.LogConfigurationException: Class
> org.apache.commons.logging.impl.Log4JCategoryLog does not implement
Log
>     [junit]     at
> org.apache.commons.logging.impl.LogFactoryImpl.newInstance(Lo
> gFactoryImpl.java:555)
>     [junit]     at
> org.apache.commons.logging.impl.LogFactoryImpl.getInstance(Lo
> gFactoryImpl.java:289)
>     [junit]     at
> org.apache.commons.logging.impl.LogFactoryImpl.getInstance(Lo
> gFactoryImpl.java:259)
>     [junit]     at
> org.apache.commons.logging.LogFactory.getLog(LogFactory.java:
> 390)
>     [junit]     at
> org.apache.cactus.server.ServletTestRedirector.around112_doGe
>
t(ServletTestRedirector.java;org/apache/cactus/util/log/LogAspect.aj(1k)
:1
> 142)
>     [junit]     at
> org.apache.cactus.server.ServletTestRedirector.doGet(ServletT
> estRedirector.java;org/apache/cactus/util/log/LogAspect.aj(1k):92)
>     [junit]     at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
>     [junit]     at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>     [junit]     at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFil
> ter(ApplicationFilterChain.java:247)
>     [junit]     at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(Appl
> icationFilterChain.java:193)
>     [junit]     at
> org.apache.catalina.core.StandardWrapperValve.invoke(Standard
> WrapperValve.java:243)
>     [junit]     at
> org.apache.catalina.core.StandardPipeline.invokeNext(Standard
> Pipeline.java:566)
>     [junit]     at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipe
> line.java:472)
>     [junit]     at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.j
> ava:943)
> 
> If I remove commons-logging from the WEB-INF/lib, I get the following
> error:
> 
> org.apache.commons.logging.LogConfigurationException:
> java.lang.ClassCastException:
> org.apache.commons.logging.impl.LogFactoryImpl
> 
> 
> I am using tomcat 4.0.3, cactus 1.4.1, junit 3.7, and use ant 1.4.1 to
run
> my tests. This is proving to be a real roadblock in my development.
Any
> help will be really appreciated.
> 
> Thanks,
> 
> 
> 
>  Michael Burke <mb...@bestweb.net> wrote:Vikas Malla wrote:
> 
> >Michael,
> >
> >Have you been able to resolve the issue?
> >
> >Thanks,
> >
> > Michael Burke wrote:Michael Burke wrote:
> >
> >
> >
> >>I'm trying to run the tutorial, when I try to run the test in tomcat
> >>I'm getting 'requested resource/test/ServletTestRunner is not
> >>available'. I've got cactus.jar, junit.jar, aspecjrt.jar,
> >>commons-logging.jar in tomcat-home/common/lib. Any help would be
> >>appreciated.
> >>
> >>
> >>--
> >>To unsubscribe, e-mail:
> >>
> >>For additional commands, e-mail:
> >>
> >>
> >>
> >>
> >>
> >Not really. When I removed the jars from my webapp/lib dir I don't
get
> the above error but now I get a blank page in the browser and no error
> messages in tomcat's logs. Any suggestions would be appreciated.
> >
> >
> >
> >--
> >To unsubscribe, e-mail:
> >For additional commands, e-mail:
> >
> >Catch all the cricket action. Download Yahoo! Score tracker
> >
> >
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:
> For additional commands, e-mail:
> 
> Catch all the cricket action. Download Yahoo! Score tracker


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>