Return-Path: Delivered-To: apmail-jakarta-cactus-user-archive@apache.org Received: (qmail 26530 invoked from network); 12 Apr 2002 22:38:56 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 12 Apr 2002 22:38:56 -0000 Received: (qmail 21735 invoked by uid 97); 12 Apr 2002 22:39:00 -0000 Delivered-To: qmlist-jakarta-archive-cactus-user@jakarta.apache.org Received: (qmail 21714 invoked by uid 97); 12 Apr 2002 22:39:00 -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 21703 invoked from network); 12 Apr 2002 22:38:59 -0000 Message-Id: <5.1.0.14.0.20020412183658.00a7f7e8@mail.cerebellumsoft.com> X-Sender: pbutler@mail.cerebellumsoft.com X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Fri, 12 Apr 2002 18:41:38 -0400 To: "Cactus Users List" From: Pete Butler Subject: RE: HTTP 405 Error with cactus and HPAS In-Reply-To: <028e01c1e26f$289c1750$0200a8c0@octovma> References: <5.1.0.14.0.20020412152759.01d520e0@mail.cerebellumsoft.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Vincent, Option 2/ did the trick; everything's running smoothly now. Thank you VERY much. -- Pete Butler At 11:12 PM 4/12/2002 +0100, you wrote: >Pete, > >Several questions : >1/ Are you sure your webapp context is "immigration" ? >2/ Can you try without specifying a trailing "/" in cactus.properties >and making sure that the mapping in web.xml matches that (i.e. no >trailing slash). > >Thanks >-Vincent > > > -----Original Message----- > > From: Pete Butler [mailto:pbutler@cerebellumsoft.com] > > Sent: 12 April 2002 20:38 > > To: cactus-user@jakarta.apache.org > > Subject: HTTP 405 Error with cactus and HPAS > > > > I found a very similar question in the archives, but since I can't >find > > any > > evidence it was answered, I'd like to ask it again since I'm having >the > > same problem. > > > > (The e-mail I'm referring to was posted 2/21/02 by Terrence C. >McDermond > > and has the same subject line as above.) > > > > I'm using Hewlett Packerd's application server (HP-AS), and would like >to > > do some unit testing with Cactus. Unfortunately, I get the following > > error > > when I run TestRunner, I wind up with the following stack trace: > > > > java.io.IOException: Server returned HTTP response code: 405 for URL: > > http://localhost:9090/immigration/ServletRedirector/ > > > > at > > sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown >Source) > > > > at > > >org.apache.cactus.client.AutoReadHttpURLConnection.getInputStream(AutoRe >ad > > HttpURLConnection.java:127) > > > > at > > >org.apache.cactus.client.AbstractHttpClient.doTest(AbstractHttpClient.ja >va > > :136) > > > > at > > >org.apache.cactus.AbstractTestCase.runGenericTest(AbstractTestCase.java: >42 > > 2) > > > > at > > org.apache.cactus.ServletTestCase.runTest(ServletTestCase.java:130) > > > > at > > org.apache.cactus.AbstractTestCase.runBare(AbstractTestCase.java:371) > > > > > > > > The code I'm using for this is dirt simple: > > > > > > > > import java.util.*; > > import java.lang.reflect.*; > > import org.apache.log4j.*; > > import java.sql.Timestamp; > > import org.apache.regexp.*; > > import org.apache.cactus.*; > > import junit.framework.*; > > > > public class SimpleTest extends ServletTestCase { > > > > > > public SimpleTest(String name) { > > super(name); > > } > > > > public void testTrue() { > > assertEquals("fish", "fish"); > > } > > > > public static Test suite() > > { > > return new TestSuite(SimpleTest.class); > > } > > } > > > > > > > > Could anybody offer any insight into what's likely to be causing this? > > And > > has anybody successfully used Cactus with HP-AS? > > > > Thanks. > > > > -- Pete Butler > > > > > > -- > > 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: -- To unsubscribe, e-mail: For additional commands, e-mail: