jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Suvasis Mukherjee" <smukher...@firstam.com>
Subject RE: building cactus source - junit failing
Date Tue, 16 Sep 2003 00:46:02 GMT
hi Vincent,

You are right, I was using the most recent versions of jstl/standard jars.
Now the junit tests are passing.

Cactus build works for Weblogic 8.1.

How do I integrate the patch? I did not sync the cvs. Do I need to do that?
How does it work?

Thanks.

suvasis

The output is shown below:

 [cactus] -----------------------------------------------------------------
 [cactus] Running tests against WebLogic 8.x
 [cactus] -----------------------------------------------------------------
 [cactus] Deleting 111 files from
C:\DOCUME~1\SMUKHE~1\LOCALS~1\Temp\cactus\weblogic8x
 [cactus] Deleted 51 directories from
C:\DOCUME~1\SMUKHE~1\LOCALS~1\Temp\cactus\weblogic8x
 [cactus] Building jar:
C:\DOCUME~1\SMUKHE~1\LOCALS~1\Temp\cactus\weblogic8x\testdomain\applications
\test.war
 [cactus] Testsuite: org.apache.cactus.sample.unit.TestBasicAuthentication
 [cactus] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.371 sec

 [cactus] Testsuite:
org.apache.cactus.sample.unit.TestClientServerSynchronization
 [cactus] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 3.405 sec

 [cactus] Testsuite: org.apache.cactus.sample.unit.TestCookie
 [cactus] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.23 sec

 [cactus] Testsuite: org.apache.cactus.sample.unit.TestFilterHttpHeaders
 [cactus] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.27 sec

 [cactus] ------------- Standard Error -----------------
 [cactus] Rhino classes (js.jar) not found - Javascript disabled
 [cactus] ------------- ---------------- ---------------
 [cactus] Testsuite: org.apache.cactus.sample.unit.TestGlobalBeginEnd
 [cactus] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.24 sec

 [cactus] Testsuite: org.apache.cactus.sample.unit.TestHttpHeaders
 [cactus] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 0.33 sec

 [cactus] Testsuite: org.apache.cactus.sample.unit.TestHttpParameters
 [cactus] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0.26 sec

 [cactus] Testsuite: org.apache.cactus.sample.unit.TestHttpRequest
 [cactus] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 0.29 sec

 [cactus] Testsuite: org.apache.cactus.sample.unit.TestHttpRequestSpecific
 [cactus] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0.27 sec

 [cactus] Testsuite: org.apache.cactus.sample.unit.TestHttpResponse
 [cactus] Tests run: 7, Failures: 0, Errors: 0, Time elapsed: 0.39 sec

 [cactus] ------------- Standard Error -----------------
 [cactus] Sep 15, 2003 3:47:02 PM
org.apache.commons.httpclient.HttpMethodBase processRedirectResponse
 [cactus] INFO: Redirect requested but followRedirects is disabled
 [cactus] ------------- ---------------- ---------------
 [cactus] Testsuite: org.apache.cactus.sample.unit.TestHttpSession
 [cactus] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 0.31 sec

 [cactus] Testsuite: org.apache.cactus.sample.unit.TestHttpUnitIntegration
 [cactus] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0.3 sec

 [cactus] ------------- Standard Error -----------------
 [cactus] Rhino classes (js.jar) not found - Javascript disabled
 [cactus] ------------- ---------------- ---------------
 [cactus] Testsuite: org.apache.cactus.sample.unit.TestJspOut
 [cactus] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 1.713 sec

 [cactus] Testsuite: org.apache.cactus.sample.unit.TestJspPageContext
 [cactus] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.23 sec

 [cactus] Testsuite: org.apache.cactus.sample.unit.TestJspTagLifecycle
 [cactus] Tests run: 24, Failures: 0, Errors: 0, Time elapsed: 1.793 sec

 [cactus] Testsuite: org.apache.cactus.sample.unit.TestJUnitTestCaseWrapper
 [cactus] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.28 sec

 [cactus] Testsuite: org.apache.cactus.sample.unit.TestRequestDispatcher
 [cactus] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 1.702 sec

 [cactus] Testsuite: org.apache.cactus.sample.unit.TestServerSideExceptions
 [cactus] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 0.421 sec

 [cactus] Testsuite: org.apache.cactus.sample.unit.TestServletConfig
 [cactus] Tests run: 5, Failures: 0, Errors: 0, Time elapsed: 0.591 sec

 [cactus] Testsuite:
org.apache.cactus.sample.unit.TestServletRedirectorOverride
 [cactus] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 0.28 sec

 [cactus] Testsuite: org.apache.cactus.sample.unit.TestSetUpTearDown
 [cactus] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0.31 sec

 [cactus] Testsuite: org.apache.cactus.sample.unit.TestSetURL
 [cactus] Tests run: 7, Failures: 0, Errors: 0, Time elapsed: 0.411 sec

 [cactus] Testsuite: org.apache.cactus.sample.unit.TestTearDownException
 [cactus] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.291 sec

 [cactus] Testsuite: org.apache.cactus.sample.TestSampleBodyTag
 [cactus] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.241 sec

 [cactus] Testsuite: org.apache.cactus.sample.TestSampleFilter
 [cactus] Tests run: 5, Failures: 0, Errors: 0, Time elapsed: 0.331 sec

 [cactus] Testsuite: org.apache.cactus.sample.TestSampleServlet
 [cactus] Tests run: 13, Failures: 0, Errors: 0, Time elapsed: 0.912 sec

 [cactus] ------------- Standard Error -----------------
 [cactus] Sep 15, 2003 3:47:19 PM
org.apache.commons.httpclient.HttpMethodBase processResponseHeaders
 [cactus] WARNING: Cookie rejected: "$Version=0; responsecookie=this is a
response cookie; $Domain=jakarta.apache.org". Illegal domai
attribute "jakarta.apache.org". Domain of origin: "localhost"
 [cactus] ------------- ---------------- ---------------
 [cactus] Testsuite: org.apache.cactus.sample.TestSampleServletConfig
 [cactus] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.291 sec

 [cactus] Testsuite: org.apache.cactus.sample.TestSampleTag
 [cactus] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 0.301 sec























-----Original Message-----
From: Vincent Massol [mailto:vmassol@pivolis.com]
Sent: Friday, September 12, 2003 10:54 PM
To: 'Cactus Users List'; smukherjee@firstam.com
Subject: RE: building cactus source - junit failing


Hi Suvasis,

I think I have some idea. The reason is probably that you are using a
recent version of the standard.jar/jstl.jar jars. The recent version of
these files require Servlet API 2.4 and JSP API 2.0 which contain the
class javax/servlet/jsp/JspContext.

If you use the version provided by Cactus you should be fine (it's the
1.0.2 one I think).

BTW, it seems you have WL 8.1 working. That's cool as it is not yet
supported directly in the Cactus/Ant integration and I'm keen to add it.
If/when you have some time, could you send a patch so that I can include
its support in the main Cactus distribution?

Thanks
-Vincent

> -----Original Message-----
> From: Suvasis Mukherjee [mailto:smukherjee@firstam.com]
> Sent: 13 September 2003 03:11
> To: Cactus Users List
> Subject: building cactus source - junit failing
>
>
>
> hi Vincent,
>
>
> I compile the cactus source code, the junit test for
TestJspTagLifecycle
> fails. Any clue why this might be happening?
>
>
> The error is as shown below:
>
>
>   [cactus]
---------------------------------------------------------------
> --
>    [cactus] Running tests against WebLogic 8.x
>
>   [cactus]
---------------------------------------------------------------
> --
>    [cactus] Deleting 111 files from
> C:\DOCUME~1\SMUKHE~1\LOCALS~1\Temp\cactus\weblogic8x
>    [cactus] Deleted 51 directories from
> C:\DOCUME~1\SMUKHE~1\LOCALS~1\Temp\cactus\weblogic8x
>    [cactus] Building jar:
>
C:\DOCUME~1\SMUKHE~1\LOCALS~1\Temp\cactus\weblogic8x\testdomain\applicat
io
> ns
> \test.war
>    [cactus] Testsuite:
> org.apache.cactus.sample.unit.TestBasicAuthentication
>    [cactus] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.5
sec
>
>    [cactus] Testsuite:
> org.apache.cactus.sample.unit.TestClientServerSynchronization
>    [cactus] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 3.405
sec
>
>    [cactus] Testsuite: org.apache.cactus.sample.unit.TestCookie
>    [cactus] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.25
sec
>
>    [cactus] Testsuite:
org.apache.cactus.sample.unit.TestFilterHttpHeaders
>    [cactus] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.401
sec
>
>    [cactus] ------------- Standard Error -----------------
>    [cactus] Rhino classes (js.jar) not found - Javascript disabled
>    [cactus] ------------- ---------------- ---------------
>    [cactus] Testsuite:
org.apache.cactus.sample.unit.TestGlobalBeginEnd
>    [cactus] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.26
sec
>
>    [cactus] Testsuite: org.apache.cactus.sample.unit.TestHttpHeaders
>    [cactus] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 0.39
sec
>
>    [cactus] Testsuite:
org.apache.cactus.sample.unit.TestHttpParameters
>    [cactus] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0.301
sec
>
>    [cactus] Testsuite: org.apache.cactus.sample.unit.TestHttpRequest
>    [cactus] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 0.301
sec
>
>    [cactus] Testsuite:
> org.apache.cactus.sample.unit.TestHttpRequestSpecific
>    [cactus] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0.28
sec
>
>    [cactus] Testsuite: org.apache.cactus.sample.unit.TestHttpResponse
>    [cactus] Tests run: 7, Failures: 0, Errors: 0, Time elapsed: 0.41
sec
>
>    [cactus] ------------- Standard Error -----------------
>    [cactus] Sep 12, 2003 5:06:36 PM
> org.apache.commons.httpclient.HttpMethodBase processRedirectResponse
>    [cactus] INFO: Redirect requested but followRedirects is disabled
>    [cactus] ------------- ---------------- ---------------
>    [cactus] Testsuite: org.apache.cactus.sample.unit.TestHttpSession
>    [cactus] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 0.341
sec
>
>    [cactus] Testsuite:
> org.apache.cactus.sample.unit.TestHttpUnitIntegration
>    [cactus] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0.301
sec
>
>    [cactus] ------------- Standard Error -----------------
>    [cactus] Rhino classes (js.jar) not found - Javascript disabled
>    [cactus] ------------- ---------------- ---------------
>    [cactus] Testsuite: org.apache.cactus.sample.unit.TestJspOut
>    [cactus] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 5.759
sec
>
>    [cactus] Testsuite:
org.apache.cactus.sample.unit.TestJspPageContext
>    [cactus] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.461
sec
>
>    [cactus] Testsuite:
org.apache.cactus.sample.unit.TestJspTagLifecycle
>    [cactus] Tests run: 24, Failures: 0, Errors: 23, Time elapsed:
1.963
> sec
>
>    [cactus] Testcase:
>
testConstructorWithNullPageContext(org.apache.cactus.sample.unit.TestJsp
Ta
> gL
> ifecycle):    Caused an ERROR
>    [cactus] javax/servlet/jsp/JspContext
>    [cactus] java.lang.NoClassDefFoundError:
javax/servlet/jsp/JspContext
>    [cactus]     at
>
org.apache.cactus.sample.unit.TestJspTagLifecycle.testConstructorWithNul
lP
> ag
> eContext(Unknown Source)
>    [cactus]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
>    [cactus]     at
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:
> 39
> )
>    [cactus]     at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Im
> pl
> .java:25)
>    [cactus]     at
>
org.apache.cactus.ServletTestCase.runCactusTest(ServletTestCase.java:282
)
>    [cactus]     at
> org.apache.cactus.ServletTestCase.runBare(ServletTestCase.java:250)
>    [cactus]     at
>
org.apache.cactus.server.AbstractWebTestCaller.doTest(AbstractWebTestCal
le
> r.
> java:156)
>    [cactus]     at
>
org.apache.cactus.server.AbstractWebTestController.handleRequest(Abstrac
tW
> eb
> TestController.java:130)
>    [cactus]     at
>
org.apache.cactus.server.JspTestRedirector.doGet(JspTestRedirector.java:
94
> )
>    [cactus]     at
> jsp_servlet.__jspredirector._jspService(__jspredirector.java:144)
>    [cactus]     at
weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
>    [cactus]     at
>
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Se
rv
> le
> tStubImpl.java:1053)
>    [cactus]     at
>
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.
ja
> va
> :387)
>    [cactus]     at
> weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
>    [cactus]     at
>
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:
27
> )
>    [cactus]     at
>
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.r
un
> (W
> ebAppServletContext.java:6316)
>    [cactus]     at
>
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSu
bj
> ec
> t.java:317)
>    [cactus]     at
>
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118
)
>    [cactus]     at
>
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServl
et
> Co
> ntext.java:3622)
>    [cactus]     at
>
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.
ja
> va
> :2569)
>    [cactus]     at
> weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
>    [cactus]     at
> weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
>
>
>    [cactus] Testcase:
>
testAddInterceptorWithNull(org.apache.cactus.sample.unit.TestJspTagLifec
yc
> le
> ):    Caused an ERROR
>    [cactus] javax/servlet/jsp/JspContext
>    [cactus] java.lang.NoClassDefFoundError:
javax/servlet/jsp/JspContext
>    [cactus]     at
>
org.apache.cactus.sample.unit.TestJspTagLifecycle.testAddInterceptorWith
Nu
> ll
> (Unknown Source)
>    [cactus]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
>    [cactus]     at
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:
> 39
> )
>    [cactus]     at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Im
> pl
> .java:25)
>    [cactus]     at
>
org.apache.cactus.ServletTestCase.runCactusTest(ServletTestCase.java:282
)
>    [cactus]     at
> org.apache.cactus.ServletTestCase.runBare(ServletTestCase.java:250)
>    [cactus]     at
>
org.apache.cactus.server.AbstractWebTestCaller.doTest(AbstractWebTestCal
le
> r.
> java:156)
>    [cactus]     at
>
org.apache.cactus.server.AbstractWebTestController.handleRequest(Abstrac
tW
> eb
> TestController.java:130)
>    [cactus]     at
>
org.apache.cactus.server.JspTestRedirector.doGet(JspTestRedirector.java:
94
> )
>    [cactus]     at
> jsp_servlet.__jspredirector._jspService(__jspredirector.java:144)
>    [cactus]     at
weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
>    [cactus]     at
>
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Se
rv
> le
> tStubImpl.java:1053)
>    [cactus]     at
>
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.
ja
> va
> :387)
>    [cactus]     at
> weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
>    [cactus]     at
>
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:
27
> )
>    [cactus]     at
>
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.r
un
> (W
> ebAppServletContext.java:6316)
>    [cactus]     at
>
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSu
bj
> ec
> t.java:317)
>    [cactus]     at
>
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118
)
>    [cactus]     at
>
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServl
et
> Co
> ntext.java:3622)
>    [cactus]     at
>
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.
ja
> va
> :2569)
>    [cactus]     at
> weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
>    [cactus]     at
> weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
>
> -----Original Message-----
> From: Vincent Massol [mailto:vmassol@pivolis.com]
> Sent: Thursday, September 11, 2003 6:39 AM
> To: 'Cactus Users List'
> Subject: RE: cactus ant integration with OC4J / Orion
>
>
> Hi Andrew,
>
> > -----Original Message-----
> > From: Andrew Chapman [mailto:Andrew.Chapman@ons.gsi.gov.uk]
> > Sent: 10 September 2003 12:45
> > To: cactus-user@jakarta.apache.org
> > Subject: cactus ant integration with OC4J / Orion
> >
> > Hi,
> >
> > Has anybody succesfully used the <cactus> task with an ear file on
> oc4j or
> > Orion 1x?
>
> I have never tried yet. I have successfully deployed war files on
orion
> 1.x with the <cactus> task though.
>
> > As far as I can tell the configurations for oc4j and orion 1x
> > should be the same. Everything seems to work OK but the resulting
> > configuration doesn't look right to me...
> >
> > The server.xml file points to the (global) application.xml file
which
> in
> > turn decalres a <web-module> with the path set to
> > "../ejb-component-cactus,war". But as the cactus task only generates
> the
> > ear which contains the war this setup can surely never work.
>
> Ah right... You're correct, this can certainly not work...
>
> >
> > As the task doesn't use the admin utility to deploy the ear,
>
> It really looks like we should use this admin utility...
>
> > then surely
> > it
> > should add an <application> element to server.xml to point to the
> > generated
> > ear - e.g.
> >
> >       <application name="ejb-component-cactus"
> > path="../ejb-component-cactus.ear" auto-start="true" />
> >
> > and a <web-app> element in default-web-site.xml such as:
> >
> >       <web-app application="ejb-component-cactus"
> > name="ejb-component-cactus" root="/ejb-component-cactus"/>
> >
> > I thought perhaps it was a bug but then I had a look at
> > http://issues.apache.org/bugzilla/show_bug.cgi?id=22794 and saw
> Vincent's
> > comment at the bottom saying he'd tested it with an ear and it
worked
> > fine.
>
> Not really. I have done a unit test with an EAR but not a functional
> test... which would have failed...
>
> > Am I missing something?
> >
>
> Nope. You've discovered a bug :-)
>
> I'll try to look into that.
>
> Thanks
> -Vincent
>
> > Andy
> >
> >
> >
> >
> > For the latest data on the economy and society
> > consult National Statistics at http://www.statistics.gov.uk
> >
> >
**********************************************************************
> > Please Note:  Incoming and outgoing email messages
> > are routinely monitored for compliance with our policy
> > on the use of electronic communications
> >
**********************************************************************
> > Legal Disclaimer  :  Any views expressed by
> > the sender of this message are not necessarily
> > those of the Office for National Statistics
> >
**********************************************************************
> >
> >
---------------------------------------------------------------------
> > To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: cactus-user-help@jakarta.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: cactus-user-help@jakarta.apache.org
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: cactus-user-help@jakarta.apache.org





Mime
View raw message