Return-Path: Delivered-To: apmail-jakarta-cactus-user-archive@apache.org Received: (qmail 1841 invoked from network); 4 Aug 2002 20:58:23 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 4 Aug 2002 20:58:23 -0000 Received: (qmail 1990 invoked by uid 97); 4 Aug 2002 20:58:46 -0000 Delivered-To: qmlist-jakarta-archive-cactus-user@jakarta.apache.org Received: (qmail 1974 invoked by uid 97); 4 Aug 2002 20:58:45 -0000 Mailing-List: contact cactus-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Cactus Users List" Reply-To: "Cactus Users List" Delivered-To: mailing list cactus-user@jakarta.apache.org Received: (qmail 1962 invoked by uid 98); 4 Aug 2002 20:58:45 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) From: "Vincent Massol" To: "'Cactus Users List'" Subject: RE: org.apache.cactus.util.ChainedRuntimeException: Not a valid response Date: Sun, 4 Aug 2002 21:57:58 +0100 Organization: OCTO Technology Message-ID: <001f01c23bf9$9d1ec490$0200a8c0@octovma> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.3416 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 In-Reply-To: Importance: Normal X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi Michel, Yes, you are right, the Cactus client part cannot access the Servlet redirector on the server side.=20 Looking at your URL, it seems you're missing the web app context. The canonical form of a webapp url is : http://server:port/webappcontext/somepath Unless you have used WL Default web application. WL 6.0 should not be the problem. It simply means that either your webapp is not correctly deployed or that you're not providing the correct to Cactus in its cactus.properties file. Thanks -Vincent > -----Original Message----- > From: Klaus-B Michel [mailto:klaus-b.michel@db.com] > Sent: 11 July 2002 08:12 > To: cactus-user@jakarta.apache.org > Subject: RE: org.apache.cactus.util.ChainedRuntimeException: Not a valid > response >=20 >=20 >=20 >=20 > Hi Folks, >=20 > i although use Cactus 1.3 like Holger did and had nearly the same > problem. >=20 > I vissited the web sites and FAQs, but don't get an answer. I had > enabled logging on the client and on the server side. But only the clide > side produces logs. Teh log4j-1.2rc1.jar exists in the classpath. butz I > am > Using Weblogic 6.0. could this the problem? I don't use Filter, onlythe > ServletTestCase. >=20 > When I try to make a direct call like > http://localhost:7001/ServletRedirector?Cactus_Service=3DRUN_TEST > I get an Error 404-Page not found. This is looged in the clie >=20 >=20 >=20 >=20 > The ineresting part ob my web.xml > >=20 > ServletRedirector >=20 > org.apache.cactus.server.ServletTestRedirector class> > >=20 > >=20 > ServletRedirector >=20 > /ServletRedirector > >=20 > .... > .... > ... > .... > > HardFactDefManagerImpl > Session >=20 > com.db.pfa.product.ejb.HardFactDefManagerImplHome >=20 > com.db.pfa.product.ejb.HardFactDefManagerImpl > >=20 >=20 > The client side log output: > ########################################################### > 19:39:34,662 [TestRunner-Thread] DEBUG client.WebTestResultParser - > >parse([ > > > Error 404--Not Found > 05/24/2001 11:55:28 #117037"> > > >
> >

>

Error = 404--Not > Found

>
> >
BGCOLOR=3Dwhite> SIZE=3D"3">

From RFC 2068 > Hypertex >

10.4.5 404 Not = Found

>

The server has not found = anything > matching the Request-URI. No indication is given of whether the > condition is temporary or permanent.

dden) can be used instead. The 410 (Gone) status code SHOULD be used if > the server knows, through some internally configurable mechanism, that > an old resource is permanentl >

>=20 > > > ]) > 19:39:34,672 [TestRunner-Thread] DEBUG test.CactusTest - > Exception in test > 19:39:34,682 [TestRunner-Thread] DEBUG util.ChainedRuntimeException - > >printStackTrace([org.apache.log4j.spi.VectorWriter@32c6a6]) > 19:39:34,682 [TestRunner-Thread] DEBUG util.ChainedRuntimeException - > >printStackTrace([org.apache.log4j.spi.VectorWriter@32c6a6]) > 19:39:34,682 [TestRunner-Thread] DEBUG util.ChainedRuntimeException - > 19:39:34,682 [TestRunner-Thread] DEBUG util.ChainedRuntimeException - > org.apache.cactus.util.ChainedRuntimeException: Not a valid response > at >=20 > org.apache.cactus.client.WebTestResultParser.readRootElement(WebTestResu lt > Parser.java;org/apache/cactus/util/log/LogAspect.java(1k):134) > at >=20 > org.apache.cactus.client.WebTestResultParser.dispatch29_parse(WebTestRes ul > tParser.java;org/apache/cactus/util/log/LogAspect.java(1k):101) > at >=20 > org.apache.cactus.client.WebTestResultParser.around29_parse(WebTestResul tP > arser.java;org/apache/cactus/util/log/LogAspect.java(1k):1204) > at >=20 > org.apache.cactus.client.WebTestResultParser.parse(WebTestResultParser.j av > a;org/apache/cactus/util/log/LogAspect.java(1k):96) > at >=20 > org.apache.cactus.client.AbstractHttpClient.callGetResult(AbstractHttpCl ie > nt.java;org/apache/cactus/util/log/LogAspect.java(1k):231) > at >=20 > org.apache.cactus.client.AbstractHttpClient.dispatch1_doTest(AbstractHtt pC > lient.java;org/apache/cactus/util/log/LogAspect.java(1k):123) > at >=20 > org.apache.cactus.client.AbstractHttpClient.around1_doTest(AbstractHttpC li > ent.java;org/apache/cactus/util/log/LogAspect.java(1k):1204) > at >=20 > org.apache.cactus.client.AbstractHttpClient.doTest(AbstractHttpClient.ja va > ;org/apache/cactus/util/log/LogAspect.java(1k):115) > at >=20 > org.apache.cactus.AbstractTestCase.runGenericTest(AbstractTestCase.java: 45 > 7) > at > org.apache.cactus.ServletTestCase.runTest(ServletTestCase.java:133) > at > org.apache.cactus.AbstractTestCase.runBare(AbstractTestCase.java:400) > at junit.framework.TestResult$1.protect(TestResult.java:106) > at junit.framework.TestResult.runProtected(TestResult.java:124) > at junit.framework.TestResult.run(TestResult.java:109) > at junit.framework.TestCase.run(TestCase.java:122) > at junit.framework.TestSuite.runTest(TestSuite.java:173) > at junit.framework.TestSuite.run(TestSuite.java:168) > at junit.framework.TestSuite.runTest(TestSuite.java:173) > at junit.framework.TestSuite.run(TestSuite.java:168) > at junit.swingui.TestRunner$16.run(TestRunner.java:637) > 19:39:34,692 [AWT-EventQueue-0] DEBUG util.ChainedRuntimeException - > >printStackTrace([java.io.PrintWriter@163b3e]) > 19:39:34,692 [AWT-EventQueue-0] DEBUG util.ChainedRuntimeException - > >printStackTrace([java.io.PrintWriter@163b3e]) > 19:39:34,702 [AWT-EventQueue-0] DEBUG util.ChainedRuntimeException - > 19:39:34,702 [AWT-EventQueue-0] DEBUG util.ChainedRuntimeException - > 19:39:34,702 [AWT-EventQueue-0] DEBUG util.ChainedRuntimeException - > >printStackTrace([java.io.PrintWriter@e2291]) > 19:39:34,702 [AWT-EventQueue-0] DEBUG util.ChainedRuntimeException - > >printStackTrace([java.io.PrintWriter@e2291]) > 19:39:34,712 [AWT-EventQueue-0] DEBUG util.ChainedRuntimeException - > 19:39:34,712 [AWT-EventQueue-0] DEBUG util.ChainedRuntimeException - > =20 >=20 >=20 >=20 >=20 > my TestClass > package com.db.pfa.test; >=20 > import junit.framework.Test; > import junit.framework.TestCase; > import junit.framework.TestSuite; >=20 > /** > * Run all the Sample Servlet API 2.3 Cactus tests. > * > * @author Vincent Massol > * > * @version $Id: TestAll.java,v 1.2 2002/04/10 00:14:49 vmassol Exp $ > */ > public class TestAll extends TestCase > { > /** > * Defines the testcase name for JUnit. > * > * @param theName the testcase's name. > */ > public TestAll(String theName) > { > super(theName); > } >=20 > /** > * Start the tests. > * > * @param theArgs the arguments. Not used > */ > public static void main(String[] theArgs) > { > junit.swingui.TestRunner.main(new > String[]{TestAll.class.getName()}); > } >=20 > /** > * @return a test suite (TestSuite) that includes all > methods > * starting with "test" > */ > public static Test suite() > { > TestSuite suite =3D > new TestSuite("SCactus Test"); >=20 > // Functional tests > suite.addTest(com.db.pfa.test.CactusTest.suite()); >=20 > return suite; > } >=20 > } >=20 >=20 >=20 >=20 >=20 >=20 >=20 >=20 >=20 >=20 >=20 >=20 >=20 > my TestCase > ########################################## > package com.db.pfa.test; >=20 > import javax.naming.*; > import javax.rmi.*; > import junit.framework.*; >=20 > import org.apache.cactus.*; > import com.db.pfa.product.ejb.HardFactDefManager; > import com.db.pfa.share.ejb.EJBUtil; >=20 > public class CactusTest extends ServletTestCase { > private HardFactDefManager hfdm; >=20 > public CactusTest(String name) { > super(name); > } >=20 > public static Test suite() { > return new TestSuite(CactusTest.class); > } >=20 > public void setUp() throws Exception { >=20 > Context ctx =3D new InitialContext(); > hfdm =3D >=20 > EJBUtil.getHardFactDefManagerImplHome().create().getHardFactDefManager() ; > } >=20 > public void testCactus() throws Exception { > long id =3D > hfdm.getAssetNodeDefRoot().getGeneralDefId().getNumId(); > assertEquals(id , 501); > } > } >=20 >=20 >=20 >=20 >=20 >=20 >=20 >=20 > It looks like I can't reach the server. in the FAQ is an article which > contains 404, but I dont ahve an StreamCorruptedException. >=20 > Could anybody help me? >=20 > Best regards > Klaus >=20 >=20 >=20 >=20 >=20 >=20 >=20 >=20 >=20 >=20 >=20 >=20 > -- >=20 > Diese E-Mail enth=E4lt vertrauliche und/oder rechtlich gesch=FCtzte > Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail > irrt=FCmlich erhalten haben, informieren Sie bitte sofort den Absender und > vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte > Weitergabe dieser Mail ist nicht gestattet. >=20 > This e-mail may contain confidential and/or privileged information. If you > are not the intended recipient (or have received this e-mail in error) > please notify the sender immediately and destroy this e-mail. Any > unauthorized copying, disclosure or distribution of the material in this > e-mail is strictly forbidden. >=20 >=20 >=20 > -- > To unsubscribe, e-mail: unsubscribe@jakarta.apache.org> > For additional commands, e-mail: help@jakarta.apache.org> -- To unsubscribe, e-mail: For additional commands, e-mail: