jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nekkalapudi, Viplava" <VNekkalap...@erac.com>
Subject RE: problems in running the Sample examples using Tomcat4.0
Date Fri, 02 Nov 2001 19:43:46 GMT
Please ignore my post regarding the same problem. As I have joined the 
mailing list yesterday, I coulndn't confirm whether My post was there in the
list.

Thanks for the NOTE:

   It is very important that you understand what files you need to put in
the client and server classpaths, 
as 99% of Cactus errors come from an incorrect classpath ! 



Even I have weblogicaux.jar(WLS 5.1) in classpath, I got the error on
compiling the JSP file.
So I put servlet.jar(2.3) in client classpath and It worked. (I haven't
investigated 
the differences between the servlet2.3 and servlet2.2 with cactus1.2).
And I know weblogicaux.jar has servlet api 2.2.

But anyway, All tests are working with Tomcat4.0. 
Thanks Vincent.

-- Viplava.
 


-----Original Message-----
From: Vincent Massol [mailto:vmassol@octo.com]
Sent: Friday, November 02, 2001 12:07 PM
To: Cactus Users List
Subject: Re: problems in running the Sample examples using Tomcat4.0


I have seen someone having the same problem as you seem to be having but I
don't know the solution. It works fine for me with tomcat 4.x. Ah, an idea
... :) Can you make sure you have the JDK tools.jar in your classpath ?

-Vincent

----- Original Message -----
From: "Nekkalapudi, Viplava" <VNekkalapudi@erac.com>
To: <cactus-user@jakarta.apache.org>
Sent: Thursday, November 01, 2001 10:25 PM
Subject: problems in running the Sample examples using Tomcat4.0


> 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>
>
>


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

--
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