Forwarded to the Cactus user mailing list. -Vincent
> -----Original Message----- > From: Klaus-B Michel [mailto:[EMAIL PROTECTED]] > Sent: 11 July 2002 07:55 > To: [EMAIL PROTECTED] > Subject: RE: org.apache.cactus.util.ChainedRuntimeException: Not a valid > response > > > > > Hi Folks, > > i although use Cactus 1.3 like Holger did and had nearly the same > problem. > > 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. > > When I try to make a direct call like > http://localhost:7001/ServletRedirector?Cactus_Service=RUN_TEST > I get an Error 404-Page not found. This is looged in the clie > > > > > The ineresting part ob my web.xml > <servlet> > > <servlet-name>ServletRedirector</servlet-name> > > <servlet-class>org.apache.cactus.server.ServletTestRedirector</servlet- > class> > </servlet> > > <servlet-mapping> > > <servlet-name>ServletRedirector</servlet-name> > > <url-pattern>/ServletRedirector</url-pattern> > </servlet-mapping> > > .... > .... > ... > .... > <ejb-ref> > <ejb-ref-name>HardFactDefManagerImpl</ejb-ref-name> > <ejb-ref-type>Session</ejb-ref-type> > > <home>com.db.pfa.product.ejb.HardFactDefManagerImplHome</home> > > <remote>com.db.pfa.product.ejb.HardFactDefManagerImpl</remote> > </ejb-ref> > > > The client side log output: > ########################################################### > 19:39:34,662 [TestRunner-Thread] DEBUG client.WebTestResultParser - > >parse([<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Draft//EN"> > <HTML> > <HEAD> > <TITLE>Error 404--Not Found</TITLE> > <META NAME="GENERATOR" CONTENT="WebLogic htmlKona 6.0 Service Pack 2 > 05/24/2001 11:55:28 #117037"> > </HEAD> > <BODY bgcolor="white" alink="#397F70" link="#640078" vlink="#DE7E00"> > <FONT FACE=Helvetica><BR CLEAR=all> > <TABLE border=0 cellspacing=5><TR><TD><BR CLEAR=all> > <FONT FACE="Helvetica" COLOR="black" SIZE="3"><H2>Error 404--Not > Found</H2> > </FONT></TD></TR> > </TABLE> > <TABLE border=0 width=100% cellpadding=10><TR><TD VALIGN=top WIDTH=100% > BGCOLOR=white><FONT FACE="Courier New"><FONT FACE="Helvetica" > SIZE="3"><H3>From RFC 2068 > <i>Hypertex > </FONT><FONT FACE="Helvetica" SIZE="3"><H4>10.4.5 404 Not Found</H4> > </FONT><P><FONT FACE="Courier New">The server has not found anything > matching the Request-URI. No indication is given of whether the > condition is temporary or permanent.</p > 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 > </FONT></TD></TR> > </TABLE> > > </BODY> > </HTML> > ]) > 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 - > <printStackTrace > 19:39:34,682 [TestRunner-Thread] DEBUG util.ChainedRuntimeException - > <printStackTrace > org.apache.cactus.util.ChainedRuntimeException: Not a valid response > at > > org.apache.cactus.client.WebTestResultParser.readRootElement(WebTestResu lt > Parser.java;org/apache/cactus/util/log/LogAspect.java(1k):134) > at > > org.apache.cactus.client.WebTestResultParser.dispatch29_parse(WebTestRes ul > tParser.java;org/apache/cactus/util/log/LogAspect.java(1k):101) > at > > org.apache.cactus.client.WebTestResultParser.around29_parse(WebTestResul tP > arser.java;org/apache/cactus/util/log/LogAspect.java(1k):1204) > at > > org.apache.cactus.client.WebTestResultParser.parse(WebTestResultParser.j av > a;org/apache/cactus/util/log/LogAspect.java(1k):96) > at > > org.apache.cactus.client.AbstractHttpClient.callGetResult(AbstractHttpCl ie > nt.java;org/apache/cactus/util/log/LogAspect.java(1k):231) > at > > org.apache.cactus.client.AbstractHttpClient.dispatch1_doTest(AbstractHtt pC > lient.java;org/apache/cactus/util/log/LogAspect.java(1k):123) > at > > org.apache.cactus.client.AbstractHttpClient.around1_doTest(AbstractHttpC li > ent.java;org/apache/cactus/util/log/LogAspect.java(1k):1204) > at > > org.apache.cactus.client.AbstractHttpClient.doTest(AbstractHttpClient.ja va > ;org/apache/cactus/util/log/LogAspect.java(1k):115) > at > > 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 - > <printStackTrace > 19:39:34,702 [AWT-EventQueue-0] DEBUG util.ChainedRuntimeException - > <printStackTrace > 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 - > <printStackTrace > 19:39:34,712 [AWT-EventQueue-0] DEBUG util.ChainedRuntimeException - > <printStackTrace > > > > > > my TestClass > package com.db.pfa.test; > > import junit.framework.Test; > import junit.framework.TestCase; > import junit.framework.TestSuite; > > /** > * Run all the Sample Servlet API 2.3 Cactus tests. > * > * @author <a href="mailto:[EMAIL PROTECTED]">Vincent Massol</a> > * > * @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); > } > > /** > * Start the tests. > * > * @param theArgs the arguments. Not used > */ > public static void main(String[] theArgs) > { > junit.swingui.TestRunner.main(new > String[]{TestAll.class.getName()}); > } > > /** > * @return a test suite (<code>TestSuite</code>) that includes all > methods > * starting with "test" > */ > public static Test suite() > { > TestSuite suite = > new TestSuite("SCactus Test"); > > // Functional tests > suite.addTest(com.db.pfa.test.CactusTest.suite()); > > return suite; > } > > } > > > > > > > > > > > > > > my TestCase > ########################################## > package com.db.pfa.test; > > import javax.naming.*; > import javax.rmi.*; > import junit.framework.*; > > import org.apache.cactus.*; > import com.db.pfa.product.ejb.HardFactDefManager; > import com.db.pfa.share.ejb.EJBUtil; > > public class CactusTest extends ServletTestCase { > private HardFactDefManager hfdm; > > public CactusTest(String name) { > super(name); > } > > public static Test suite() { > return new TestSuite(CactusTest.class); > } > > public void setUp() throws Exception { > > Context ctx = new InitialContext(); > hfdm = > > EJBUtil.getHardFactDefManagerImplHome().create().getHardFactDefManager() ; > } > > public void testCactus() throws Exception { > long id = > hfdm.getAssetNodeDefRoot().getGeneralDefId().getNumId(); > assertEquals(id , 501); > } > } > > > > > > > > > It looks like I can't reach the server. in the FAQ is an article which > contains 404, but I dont ahve an StreamCorruptedException. > > Could anybody help me? > > Best regards > Klaus > > > > > > > > > > -- > > Diese E-Mail enth�lt vertrauliche und/oder rechtlich gesch�tzte > Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail > irrt�mlich 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. > > 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. > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
