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(AutoReadHttpURLConnection.java:127)

        at 
org.apache.cactus.client.AbstractHttpClient.doTest(AbstractHttpClient.java:136)

        at 
org.apache.cactus.AbstractTestCase.runGenericTest(AbstractTestCase.java:422)

        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:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to