Return-Path: list-help: list-unsubscribe: List-Post: List-Id: Mailing-List: contact cactus-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list cactus-user@jakarta.apache.org Received: (qmail 89102 invoked from network); 13 Sep 2003 06:54:26 -0000 Received: from unknown (HELO smarthost2.mail.easynet.fr) (212.180.1.37) by daedalus.apache.org with SMTP; 13 Sep 2003 06:54:26 -0000 Received: from [212.180.36.244] (helo=vma) by smarthost2.mail.easynet.fr with esmtp (Exim 3.35 #1 (Debian)) id 19y4Ik-0001Ge-00; Sat, 13 Sep 2003 08:54:34 +0200 From: "Vincent Massol" To: "'Cactus Users List'" , Subject: RE: building cactus source - junit failing Date: Sat, 13 Sep 2003 08:54:20 +0200 Message-ID: <009c01c379c3$dcd731e0$2502a8c0@vma> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4024 In-Reply-To: Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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 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 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 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 element to server.xml to point to the > > generated > > ear - e.g. > > > > > path="../ejb-component-cactus.ear" auto-start="true" /> > > > > and a element in default-web-site.xml such as: > > > > > 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