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 Justin Thomas <Ju...@RCP.co.uk> on 2003/05/21 11:12:44 UTC

it's back! :-(

Hi I installed a new server and thought I had made an exact backup of it.
However when I build my project and run the cactus tests I am getting this
error again!

My classpath is setup inside ANT and contains the whole cactus1.4.1/lib
directory, I have also copied that dir to WEB-INF/lib with no joy.  I am
baffled by this error and don't understand why it says Error Finding class
for one of my classes which I know exists.  I have also copied the
cactus1.4.1/lib to TOMCAT_HOME/common/lib.  

I am really stuck and need some ideas on how to solve this problem please.


 [junit] Testcase:
testGetValueParam(org.dateConversion.test.RequestUtilTest):  Caused an ERROR
    [junit] Error finding class [org.dateConversion.test.RequestUtilTest]
using both the Context classloader and the webapp classloader. Possible
causes include:
    [junit]     - Your webapp does not include your test classes,
    [junit]     - The cactus.jar is not located in your WEB-INF/lib
directory and your Container has not set the Context classloader to point to
the webapp one
    [junit] javax.servlet.ServletException: Error finding class
[org.wwww.dateConversion.test.RequestUtilTest] using both the Context
classloader and the webapp classloader. Possible causes include:
    [junit]     - Your webapp does not include your test classes,
    [junit]     - The cactus.jar is not located in your WEB-INF/lib
directory and your Container has not set the Context classloader to point to
the webapp one
    [junit]     at
org.apache.cactus.server.AbstractWebTestCaller.getTestClassClass(AbstractWeb
TestCaller.java:344)
    [junit]     at
org.apache.cactus.server.AbstractWebTestCaller.getTestClassInstance(Abstract
WebTestCaller.java:301)
    [junit]     at
org.apache.cactus.server.AbstractWebTestCaller.doTest(AbstractWebTestCaller.
java:143)
    [junit]     at
org.apache.cactus.server.AbstractWebTestController.dispatch87_handleRequest(
AbstractWebTestController.java;org/apache/cactus/util/log/LogAspect.aj(1k):1
25)
    [junit]     at
org.apache.cactus.server.AbstractWebTestController.around87_handleRequest(Ab
stractWebTestController.java;org/apache/cactus/util/log/LogAspect.aj(1k):115
6)
    [junit]     at
org.apache.cactus.server.AbstractWebTestController.handleRequest(AbstractWeb
TestController.java;org/apache/cactus/util/log/LogAspect.aj(1k):101)
    [junit]     at
org.apache.cactus.server.ServletTestRedirector.dispatch113_doPost(ServletTes
tRedirector.java;org/apache/cactus/util/log/LogAspect.aj(1k):123)
    [junit]     at
org.apache.cactus.server.ServletTestRedirector.around113_doPost(ServletTestR
edirector.java;org/apache/cactus/util/log/LogAspect.aj(1k):1156)
    [junit]     at
org.apache.cactus.server.ServletTestRedirector.doPost(ServletTestRedirector.
java;org/apache/cactus/util/log/LogAspect.aj(1k):109)
    [junit]     at
org.apache.cactus.server.ServletTestRedirector.dispatch112_doGet(ServletTest
Redirector.java;org/apache/cactus/util/log/LogAspect.aj(1k):96)
    [junit]     at
org.apache.cactus.server.ServletTestRedirector.around112_doGet(ServletTestRe
director.java;org/apache/cactus/util/log/LogAspect.aj(1k):1156)
    [junit]     at
org.apache.cactus.server.ServletTestRedirector.doGet(ServletTestRedirector.j
ava;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.internalDoFilter(Application
FilterChain.java:247)
    [junit]     at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
    [junit]     at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:260)
    [junit]     at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
    [junit]     at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    [junit]     at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    [junit]     at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
    [junit]     at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
    [junit]     at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    [junit]     at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    [junit]     at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
    [junit]     at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
    [junit]     at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
    [junit]     at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
    [junit]     at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
    [junit]     at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
    [junit]     at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
    [junit]     at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    [junit]     at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    [junit]     at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
    [junit]     at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
    [junit]     at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    [junit]     at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    [junit]     at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
    [junit]     at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)
    [junit]     at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:386)
    [junit]     at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
    [junit]     at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:530)
    [junit]     at java.lang.Thread.run(Thread.java:536)



BUILD FAILED
file:/home/justint/dateConversion/build.xml:618: 
Total time: 7 seconds


Re: it's back! :-(

Posted by Christopher Lenz <cm...@gmx.de>.
Hi Justin,

Justin Thomas wrote:
> Hi I installed a new server and thought I had made an exact backup of it.
> However when I build my project and run the cactus tests I am getting this
> error again!
> 
> My classpath is setup inside ANT and contains the whole cactus1.4.1/lib
> directory, I have also copied that dir to WEB-INF/lib with no joy.  I am
> baffled by this error and don't understand why it says Error Finding class
> for one of my classes which I know exists.  I have also copied the
> cactus1.4.1/lib to TOMCAT_HOME/common/lib.  

Just to be sure: have you also tried this setup *without* copying the 
libs into TOMCAT_HOME/common/lib?

> I am really stuck and need some ideas on how to solve this problem please.
[snip]

-chris



Re: it's back! :-(

Posted by Christopher Lenz <cm...@gmx.de>.
Hi Justin,

What I'm missing here is the original exception thrown. Maybe you can 
post the relevant part of the server-side log?

Justin Thomas wrote:
> Hi I installed a new server and thought I had made an exact backup of it.
> However when I build my project and run the cactus tests I am getting this
> error again!
> 
> My classpath is setup inside ANT and contains the whole cactus1.4.1/lib
> directory, I have also copied that dir to WEB-INF/lib with no joy.  I am
> baffled by this error and don't understand why it says Error Finding class
> for one of my classes which I know exists.  I have also copied the
> cactus1.4.1/lib to TOMCAT_HOME/common/lib.  
> 
> I am really stuck and need some ideas on how to solve this problem please.
> 
>  [junit] Testcase:
> testGetValueParam(org.dateConversion.test.RequestUtilTest):  Caused an ERROR
>     [junit] Error finding class [org.dateConversion.test.RequestUtilTest]
> using both the Context classloader and the webapp classloader. Possible
> causes include:
>     [junit]     - Your webapp does not include your test classes,
>     [junit]     - The cactus.jar is not located in your WEB-INF/lib
> directory and your Container has not set the Context classloader to point to
> the webapp one
>     [junit] javax.servlet.ServletException: Error finding class
> [org.wwww.dateConversion.test.RequestUtilTest] using both the Context
> classloader and the webapp classloader. Possible causes include:
>     [junit]     - Your webapp does not include your test classes,
>     [junit]     - The cactus.jar is not located in your WEB-INF/lib
> directory and your Container has not set the Context classloader to point to
> the webapp one
>     [junit]     at
> org.apache.cactus.server.AbstractWebTestCaller.getTestClassClass(AbstractWeb
> TestCaller.java:344)
>     [junit]     at
> org.apache.cactus.server.AbstractWebTestCaller.getTestClassInstance(Abstract
> WebTestCaller.java:301)
>     [junit]     at
> org.apache.cactus.server.AbstractWebTestCaller.doTest(AbstractWebTestCaller.
> java:143)
>     [junit]     at
> org.apache.cactus.server.AbstractWebTestController.dispatch87_handleRequest(
> AbstractWebTestController.java;org/apache/cactus/util/log/LogAspect.aj(1k):1
> 25)
>     [junit]     at
> org.apache.cactus.server.AbstractWebTestController.around87_handleRequest(Ab
> stractWebTestController.java;org/apache/cactus/util/log/LogAspect.aj(1k):115
> 6)
>     [junit]     at
> org.apache.cactus.server.AbstractWebTestController.handleRequest(AbstractWeb
> TestController.java;org/apache/cactus/util/log/LogAspect.aj(1k):101)
>     [junit]     at
> org.apache.cactus.server.ServletTestRedirector.dispatch113_doPost(ServletTes
> tRedirector.java;org/apache/cactus/util/log/LogAspect.aj(1k):123)
>     [junit]     at
> org.apache.cactus.server.ServletTestRedirector.around113_doPost(ServletTestR
> edirector.java;org/apache/cactus/util/log/LogAspect.aj(1k):1156)
>     [junit]     at
> org.apache.cactus.server.ServletTestRedirector.doPost(ServletTestRedirector.
> java;org/apache/cactus/util/log/LogAspect.aj(1k):109)
>     [junit]     at
> org.apache.cactus.server.ServletTestRedirector.dispatch112_doGet(ServletTest
> Redirector.java;org/apache/cactus/util/log/LogAspect.aj(1k):96)
>     [junit]     at
> org.apache.cactus.server.ServletTestRedirector.around112_doGet(ServletTestRe
> director.java;org/apache/cactus/util/log/LogAspect.aj(1k):1156)
>     [junit]     at
> org.apache.cactus.server.ServletTestRedirector.doGet(ServletTestRedirector.j
> ava;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.internalDoFilter(Application
> FilterChain.java:247)
>     [junit]     at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
> ain.java:193)
>     [junit]     at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
> va:260)
>     [junit]     at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> eNext(StandardPipeline.java:643)
>     [junit]     at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>     [junit]     at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>     [junit]     at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
> va:191)
>     [junit]     at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> eNext(StandardPipeline.java:643)
>     [junit]     at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>     [junit]     at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>     [junit]     at
> org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
>     [junit]     at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
> )
>     [junit]     at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> eNext(StandardPipeline.java:643)
>     [junit]     at
> org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
> java:170)
>     [junit]     at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> eNext(StandardPipeline.java:641)
>     [junit]     at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
> )
>     [junit]     at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> eNext(StandardPipeline.java:641)
>     [junit]     at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>     [junit]     at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>     [junit]     at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
> :174)
>     [junit]     at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> eNext(StandardPipeline.java:643)
>     [junit]     at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>     [junit]     at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>     [junit]     at
> org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
>     [junit]     at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)
>     [junit]     at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
> ction(Http11Protocol.java:386)
>     [junit]     at
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
>     [junit]     at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
> a:530)
>     [junit]     at java.lang.Thread.run(Thread.java:536)
> 
> 
> 
> BUILD FAILED
> file:/home/justint/dateConversion/build.xml:618: 
> Total time: 7 seconds



RE: it's back! :-(

Posted by "W. Sean Hennessy" <sh...@goldenhourdata.com>.
<!-- Once you find the right combination consider adding new target to your
build.xml in order to verify system configuration
sorta like this.. -->
<target name="eval">
<condition property="cactus.is.not.ready">
    <not>
    <and>
      <available file="${tomcat.root.common.lib.dir}/${aspectjrt.jar}"/>
      <available file="${tomcat.root.common.lib.dir}/${cactus.jar}"/>
      <available
file="${tomcat.root.common.lib.dir}/${commons-httpclient.jar}"/>
      <available
file="${tomcat.root.common.lib.dir}/${commons-logging.jar}"/>
      <available file="${tomcat.root.common.lib.dir}/${junit.jar}"/>
      </and>
    </not>
</condition>
</target>

-----Original Message-----
From: Justin Thomas [mailto:Justin.Thomas@RCP.co.uk]
Sent: Wednesday, May 21, 2003 2:13 AM
To: 'cactus-user@jakarta.apache.org'
Subject: it's back! :-(


Hi I installed a new server and thought I had made an exact backup of it.
However when I build my project and run the cactus tests I am getting this
error again!

My classpath is setup inside ANT and contains the whole cactus1.4.1/lib
directory, I have also copied that dir to WEB-INF/lib with no joy.  I am
baffled by this error and don't understand why it says Error Finding class
for one of my classes which I know exists.  I have also copied the
cactus1.4.1/lib to TOMCAT_HOME/common/lib.

I am really stuck and need some ideas on how to solve this problem please.


 [junit] Testcase:
testGetValueParam(org.dateConversion.test.RequestUtilTest):  Caused an ERROR
    [junit] Error finding class [org.dateConversion.test.RequestUtilTest]
using both the Context classloader and the webapp classloader. Possible
causes include:
    [junit]     - Your webapp does not include your test classes,
    [junit]     - The cactus.jar is not located in your WEB-INF/lib
directory and your Container has not set the Context classloader to point to
the webapp one
    [junit] javax.servlet.ServletException: Error finding class
[org.wwww.dateConversion.test.RequestUtilTest] using both the Context
classloader and the webapp classloader. Possible causes include:
    [junit]     - Your webapp does not include your test classes,
    [junit]     - The cactus.jar is not located in your WEB-INF/lib
directory and your Container has not set the Context classloader to point to
the webapp one
    [junit]     at
org.apache.cactus.server.AbstractWebTestCaller.getTestClassClass(AbstractWeb
TestCaller.java:344)
    [junit]     at
org.apache.cactus.server.AbstractWebTestCaller.getTestClassInstance(Abstract
WebTestCaller.java:301)
    [junit]     at
org.apache.cactus.server.AbstractWebTestCaller.doTest(AbstractWebTestCaller.
java:143)
    [junit]     at
org.apache.cactus.server.AbstractWebTestController.dispatch87_handleRequest(
AbstractWebTestController.java;org/apache/cactus/util/log/LogAspect.aj(1k):1
25)
    [junit]     at
org.apache.cactus.server.AbstractWebTestController.around87_handleRequest(Ab
stractWebTestController.java;org/apache/cactus/util/log/LogAspect.aj(1k):115
6)
    [junit]     at
org.apache.cactus.server.AbstractWebTestController.handleRequest(AbstractWeb
TestController.java;org/apache/cactus/util/log/LogAspect.aj(1k):101)
    [junit]     at
org.apache.cactus.server.ServletTestRedirector.dispatch113_doPost(ServletTes
tRedirector.java;org/apache/cactus/util/log/LogAspect.aj(1k):123)
    [junit]     at
org.apache.cactus.server.ServletTestRedirector.around113_doPost(ServletTestR
edirector.java;org/apache/cactus/util/log/LogAspect.aj(1k):1156)
    [junit]     at
org.apache.cactus.server.ServletTestRedirector.doPost(ServletTestRedirector.
java;org/apache/cactus/util/log/LogAspect.aj(1k):109)
    [junit]     at
org.apache.cactus.server.ServletTestRedirector.dispatch112_doGet(ServletTest
Redirector.java;org/apache/cactus/util/log/LogAspect.aj(1k):96)
    [junit]     at
org.apache.cactus.server.ServletTestRedirector.around112_doGet(ServletTestRe
director.java;org/apache/cactus/util/log/LogAspect.aj(1k):1156)
    [junit]     at
org.apache.cactus.server.ServletTestRedirector.doGet(ServletTestRedirector.j
ava;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.internalDoFilter(Application
FilterChain.java:247)
    [junit]     at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
    [junit]     at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:260)
    [junit]     at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
    [junit]     at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    [junit]     at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    [junit]     at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
    [junit]     at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
    [junit]     at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    [junit]     at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    [junit]     at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
    [junit]     at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
    [junit]     at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
    [junit]     at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
    [junit]     at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
    [junit]     at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
    [junit]     at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
    [junit]     at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    [junit]     at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    [junit]     at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
    [junit]     at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
    [junit]     at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    [junit]     at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    [junit]     at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
    [junit]     at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)
    [junit]     at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:386)
    [junit]     at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
    [junit]     at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:530)
    [junit]     at java.lang.Thread.run(Thread.java:536)



BUILD FAILED
file:/home/justint/dateConversion/build.xml:618:
Total time: 7 seconds


---------------------------------------------------------------------
To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: cactus-user-help@jakarta.apache.org