jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nekkalapudi, Viplava" <VNekkalap...@erac.com>
Subject problems in running the Sample examples using Tomcat4.0
Date Thu, 01 Nov 2001 22:25:19 GMT
Hi,
     I ran successfully the TestSampleTag within JBuilder4.0.
     I created test cases for my custom tag, It runs fine within JB.
     Now Iam trying to run Sample examples using ANT (1.4).
     I downloaded cactus-23-1.2, new Servlet(2.3) jar, Tomcat4.0 from
Jakarta 
     and followed the directions from Docs.
     When I try to run tests_tomcat_40, with only one test class
TestSampleTag 
    (Which was running in JB4.0), I get the following error:
    The changes I made to build.properties are, 
    uncomment  test_port:8180, tomcat.home.40 
    and all jars pointing to the correct locations.
    And I changed the target tests in build-share.xml to run only one test
i.e TestSampleTag.
    Renamed the file build.properties.sample to build.properties.

  I appreciate your help.

  Viplava.

****************************************************************************
**********************************************
    tests:
    [junit] Running org.apache.cactus.sample.TestSampleTag
     [java] StandardWrapper[/test:JspRedirector]: Using Jasper classloader
for servlet JspRedirector
     [java] StandardWrapperValve[JspRedirector]: Servlet.service() for
servlet JspRedirector threw exception
     [java] org.apache.jasper.JasperException: Unable to compile class for
JSP            if (pageContext != null) pageC
ontext.handlePageException(t);
     [java]
^
     [java] 1 error
     [java]
     [java] org.apache.jasper.JasperException: Unable to compile class for
JSP            if (pageContext != null) pageC
ontext.handlePageException(t);
     [java]
^
     [java] 1 error
     [java]
     [java]     at org.apache.jasper.compiler.Compiler.compile(Unknown
Source)
     [java]     at org.apache.jasper.servlet.JspServlet.loadJSP(Unknown
Source)
     [java]     at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(Unkno
wn Source)
     [java]     at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Unknown
Source)
     [java]     at
org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown Source)
     [java]     at org.apache.jasper.servlet.JspServlet.service(Unknown
Source)
     [java]     at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
     [java]     at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown
Source)
     [java]     at
org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source)
     [java]     at
org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source)
     [java]     at
org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
     [java]     at org.apache.catalina.core.StandardPipeline.invoke(Unknown
Source)
     [java]     at org.apache.catalina.core.ContainerBase.invoke(Unknown
Source)
     [java]     at
org.apache.catalina.core.StandardContextValve.invoke(Unknown Source)
     [java]     at
org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
     [java]     at org.apache.catalina.core.StandardPipeline.invoke(Unknown
Source)
     [java]     at org.apache.catalina.core.ContainerBase.invoke(Unknown
Source)
     [java]     at org.apache.catalina.core.StandardContext.invoke(Unknown
Source)
     [java]     at org.apache.catalina.core.StandardHostValve.invoke(Unknown
Source)
     [java]     at
org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
     [java]     at org.apache.catalina.core.StandardPipeline.invoke(Unknown
Source)
     [java]     at org.apache.catalina.core.ContainerBase.invoke(Unknown
Source)
     [java]     at
org.apache.catalina.core.StandardEngineValve.invoke(Unknown Source)
     [java]     at
org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
     [java]     at org.apache.catalina.core.StandardPipeline.invoke(Unknown
Source)
     [java]     at org.apache.catalina.core.ContainerBase.invoke(Unknown
Source)
     [java]     at
org.apache.catalina.connector.http.HttpProcessor.process(Unknown Source)
     [java]     at
org.apache.catalina.connector.http.HttpProcessor.run(Unknown Source)
     [java]     at java.lang.Thread.run(Thread.java:484)
     [java] StandardWrapperValve[JspRedirector]: Servlet.service() for
servlet JspRedirector threw exception
     [java] org.apache.jasper.JasperException: Unable to compile class for
JSP            if (pageContext != null) pageC
ontext.handlePageException(t);
     [java]
^
     [java] 1 error
     [java]
     [java] org.apache.jasper.JasperException: Unable to compile class for
JSP            if (pageContext != null) pageC
ontext.handlePageException(t);
     [java]
^
     [java] 1 error
     [java]
     [java]     at org.apache.jasper.compiler.Compiler.compile(Unknown
Source)
     [java]     at org.apache.jasper.servlet.JspServlet.loadJSP(Unknown
Source)
     [java]     at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(Unkno
wn Source)
     [java]     at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Unknown
Source)
     [java]     at
org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown Source)
     [java]     at org.apache.jasper.servlet.JspServlet.service(Unknown
Source)
     [java]     at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
     [java]     at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown
Source)
     [java]     at
org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source)
     [java]     at
org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source)
     [java]     at
org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
     [java]     at org.apache.catalina.core.StandardPipeline.invoke(Unknown
Source)
     [java]     at org.apache.catalina.core.ContainerBase.invoke(Unknown
Source)
     [java]     at
org.apache.catalina.core.StandardContextValve.invoke(Unknown Source)
     [java]     at
org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
     [java]     at org.apache.catalina.core.StandardPipeline.invoke(Unknown
Source)
     [java]     at org.apache.catalina.core.ContainerBase.invoke(Unknown
Source)
     [java]     at org.apache.catalina.core.StandardContext.invoke(Unknown
Source)
     [java]     at org.apache.catalina.core.StandardHostValve.invoke(Unknown
Source)
     [java]     at
org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
     [java]     at org.apache.catalina.core.StandardPipeline.invoke(Unknown
Source)
     [java]     at org.apache.catalina.core.ContainerBase.invoke(Unknown
Source)
    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 2.293 sec
    [junit] Testsuite: org.apache.cactus.sample.TestSampleTag
     [java]     at
org.apache.catalina.core.StandardEngineValve.invoke(Unknown Source)
     [java]     at
org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 2.293 sec
    [junit]
    [junit] Testcase: testDoStartTag took 2.293 sec
    [junit]     Caused an ERROR
     [java]     at org.apache.catalina.core.StandardPipeline.invoke(Unknown
Source)
     [java]     at org.apache.catalina.core.ContainerBase.invoke(Unknown
Source)
    [junit] InputStream does not contain a serialized object
    [junit] java.io.StreamCorruptedException: InputStream does not contain a
serialized object
     [java]     at
org.apache.catalina.connector.http.HttpProcessor.process(Unknown Source)
    [junit]     at
java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:849)
     [java]     at
org.apache.catalina.connector.http.HttpProcessor.run(Unknown Source)
     [java]     at java.lang.Thread.run(Thread.java:484)
    [junit]     at
java.io.ObjectInputStream.<init>(ObjectInputStream.java:168)
    [junit]     at
org.apache.cactus.client.AbstractHttpClient.doTest(AbstractHttpClient.java:1
48)
    [junit]     at
org.apache.cactus.AbstractTestCase.runGenericTest(AbstractTestCase.java:422)
    [junit]     at
org.apache.cactus.JspTestCase.runTest(JspTestCase.java:107)
    [junit]     at
org.apache.cactus.AbstractTestCase.runBare(AbstractTestCase.java:371)
    [junit]     at junit.framework.TestResult$1.protect(TestResult.java:106)
    [junit]     at
junit.framework.TestResult.runProtected(TestResult.java:124)
    [junit]     at junit.framework.TestResult.run(TestResult.java:109)
    [junit]     at junit.framework.TestCase.run(TestCase.java:131)
    [junit]     at junit.framework.TestSuite.runTest(TestSuite.java:173)
    [junit]     at junit.framework.TestSuite.run(TestSuite.java:168)
    [junit]     at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRu
nner.java:231)
    [junit]     at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestR
unner.java:409)
    [junit]

stop_tomcat_40:
     [java] Stopping service Tomcat-Standalone
     [java] HttpConnector[8180] Stopping background thread
     [java] StandardHost[localhost]: Removing web application at context
path /test
[runservertests] Server stopped !

BUILD FAILED

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


Mime
View raw message