ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vikas Malla <malla...@yahoo.co.in>
Subject java.lang.NoClassDefFoundError
Date Fri, 18 Oct 2002 01:29:51 GMT

Help is required to solve this problem:

I am trying to run this test MyTest.java . I make some API calls ,defined in a package myPackage.f1.f2.f3.MyBean,
in MyTest.java

I am able to compile this file. But when I run this test using ant, I get NoClassDefFoundError.
Please keep in mind that I am able to compile this file, so the possibility of not having
this in my classpath is ruled out(i think so).

Thanks.

Here is the error stack:

    [junit] Testcase: testSimulation took 10.445 sec
    [junit]     Caused an ERROR
    [junit] myPackage/f1/f2/f3/MyBean
    [junit] java.lang.NoClassDefFoundError: myPackage/f1/f2/f3/MyBean
    [junit]     at MyTest.testSimulation(MyTest.java:109)
    [junit]     at org.apache.cactus.AbstractTestCase.runServerTest(AbstractTest
Case.java:332)
    [junit]     at org.apache.cactus.AbstractTestCase.runBareServerTest(Abstract
TestCase.java:235)
    [junit]     at org.apache.cactus.server.AbstractWebTestCaller.doTest(Abstrac
tWebTestCaller.java:149)
    [junit]     at org.apache.cactus.server.AbstractWebTestController.dispatch87
_handleRequest(AbstractWebTestController.java;org/apache/cactus/util/log/LogAspe
ct.aj(1k):125)
    [junit]     at org.apache.cactus.server.AbstractWebTestController.around87_h
andleRequest(AbstractWebTestController.java;org/apache/cactus/util/log/LogAspect
.aj(1k):1149)
    [junit]     at org.apache.cactus.server.AbstractWebTestController.handleRequ
est(AbstractWebTestController.java;org/apache/cactus/util/log/LogAspect.aj(1k):1
01)
    [junit]     at org.apache.cactus.server.JspTestRedirector.dispatch90_doGet(J
spTestRedirector.java;org/apache/cactus/util/log/LogAspect.aj(1k):93)
    [junit]     at org.apache.cactus.server.JspTestRedirector.around90_doGet(Jsp
TestRedirector.java;org/apache/cactus/util/log/LogAspect.aj(1k):1149)
    [junit]     at org.apache.cactus.server.JspTestRedirector.doGet(JspTestRedir
ector.java;org/apache/cactus/util/log/LogAspect.aj(1k):87)
    [junit]     at org.apache.jsp.jspRedirector$jsp._jspService(jspRedirector$js
p.java:81)
    [junit]     at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.jav
a:107)
    [junit]     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    [junit]     at org.apache.jasper.servlet.JspServlet$JspServletWrapper.servic
e(JspServlet.java:202)
    [junit]     at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServle
t.java:382)
    [junit]     at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:
474)
    [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)
    [junit]     at org.apache.catalina.core.StandardContextValve.invoke(Standard
ContextValve.java:190)
    [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)
    [junit]     at org.apache.catalina.core.StandardContext.invoke(StandardConte
xt.java:2343)
    [junit]     at org.apache.catalina.core.StandardHostValve.invoke(StandardHos
tValve.java:180)
    [junit]     at org.apache.catalina.core.StandardPipeline.invokeNext(Standard
Pipeline.java:566)
    [junit]     at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorD
ispatcherValve.java:170)
    [junit]     at org.apache.catalina.core.StandardPipeline.invokeNext(Standard
Pipeline.java:564)
    [junit]     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorRepor
tValve.java:170)
    [junit]     at org.apache.catalina.core.StandardPipeline.invokeNext(Standard
Pipeline.java:564)
    [junit]     at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogVal
ve.java:468)
    [junit]     at org.apache.catalina.core.StandardPipeline.invokeNext(Standard
Pipeline.java:564)
    [junit]     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipe
line.java:472)
    [junit]     at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.j
ava:943)
    [junit]     at org.apache.catalina.core.StandardEngineValve.invoke(StandardE
ngineValve.java:174)
    [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)
    [junit]     at org.apache.catalina.connector.http.HttpProcessor.process(Http
Processor.java:1012)
    [junit]     at org.apache.catalina.connector.http.HttpProcessor.run(HttpProc
essor.java:1107)
    [junit]     at java.lang.Thread.run(Thread.java:484)

    [junit] Testcase: testSimulation

stop.tomcat:
     [java] Stopping service Tomcat-Standalone
[runservertests] Server stopped !

BUILD FAILED
file:C:/jakarta-tomcat-4.0.3/common/classes/build.xml:132: Test MyTest fa
iled

Total time: 28 seconds
finished ant

 

 

 Yahoo! Properties Special  Buy, sell, rent...your flat, or even post an ad
Mime
  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message