jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nekkalapudi, Viplava" <VNekkalap...@erac.com>
Subject Problem in running tests_tomcat_40 of Sample application
Date Fri, 02 Nov 2001 18:26:24 GMT
Hi,
    I am trying to run the sample application.
   Changes I made to the files:
   1. build.properties.sample:  Copied this file to build.properties and
uncommented 
       and modified the file for test.port, tomcat home and for all jar
files required.   
   2.  Modified build-share.xml for task tests to test only TestSampleTag
class.
  
   Running Ant for the target: tests_tomcat_40 is failed in executing target
"tests".
   I have downloaded (just 2 days back) latest Cactus(23-1.2), servlet.jar
and tomcat4.0 softwares.
  
   Note: This TestSampleTag is running within JBuilder4.0 and I had written 
            a test case also for my custom tag which works fine in IDE
JBuilder4.0.

  In the mailing list Vincent mentioned, 
  A trailing "/" in the URL eliminates the problem of HttpUrlConnection bug.

  But I checked the URLs in cactus properties file and web.xml. They are
fine.
  BTW, I copied the URL of  /JspRedirector/ after started tomcat within
Jbuilder, 
  I am getting 500 error claiming that a parameter was not in the request.

  From ANT it is failing. Any help would be appreciated.
  
 Thanks,
 Viplava.



     [java] StandardWrapper[/test:jsp]: Using Jasper classloader for servlet
jsp
     [java] HttpConnector[8180] Starting background thread

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)
     [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)
    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 2.613 sec
    [junit] Testsuite: org.apache.cactus.sample.TestSampleTag
    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 2.613 sec
    [junit]
     [java]     at
org.apache.catalina.connector.http.HttpProcessor.process(Unknown Source)
    [junit] Testcase: testDoStartTag took 2.593 sec
    [junit]     Caused an ERROR
    [junit] InputStream does not contain a serialized object
     [java]     at
org.apache.catalina.connector.http.HttpProcessor.run(Unknown Source)
     [java]     at java.lang.Thread.run(Thread.java:484)
    [junit] java.io.StreamCorruptedException: InputStream does not contain a
serialized object
    [junit]     at
java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:849)
    [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

D:\cactus\jakarta-cactus-23-1.2\sample\build\build.xml:376: Test
org.apache.cactus.sample.TestSampleTag 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