2014年3月14日 星期五

cactus - 執行時出現 org.apache.cactus.util.ChainedRuntimeException: Failed to get the test results at...


今天撰寫FilterTest的時候執行cactus出現:

Failed to get the test results at [http://localhost:8080/CTBC_MI_Web/FilterRedirector]
org.apache.cactus.util.ChainedRuntimeException: Failed to get the test results at
...


其實原因就出在於web.xml沒有加上相對應的設定,因為我是filter出問題,因此應該加上下列:

    
        FilterRedirector
        org.apache.cactus.server.FilterTestRedirector
    

    
        FilterRedirector
        /FilterRedirector
    

之後再重新開啟WebServer就可以了.

沒有留言:

張貼留言