Re: Failed to get the test results

Shay Thompson <[email protected]>
Newsgroups gmane.comp.jakarta.cactus.user
Message-ID <[email protected]>
One other thing to check, which you might have done already, is are the 
actual class files for your tests inside the cactus war?  I've seen this 
problem numerous times and most of the time it was because someone 
forgot to compile there tests first, and so when they packed up the ear 
they didn't get any actual test files.

Magnus Grimsell wrote:
> The descriptor looks fine as far as I can see. Is it possible that the cactified 
> web-app isn't deployed correctly after all? In some application servers you have to add extra configuration to get the modules deployed. In Weblogic for example you have to choose a target server and so on.
>
> What happens if you point a web-browser to the test-URL http://localhost:8080/BOB_JUnitWebClient/ServletRedirector
>
> If Cactus is correctly deployed you should get a 500 with the message "Missing service name parameter..."
>
> /Magnus
>
>   
>> -----Original Message-----
>> From: matts Sundin [mailto:[email protected]]
>> Sent: Friday, February 02, 2007 11:11 AM
>> To: [email protected]
>> Subject: RE: Failed to get the test results
>>
>>
>> Hello,
>>
>> I run my Tests with the Java Testrunner, nothing else...
>>
>> The applictaion.xml looks like that:
>>
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE 
>> Application 1.3//EN" "http://java.sun.com/dtd/application_1_3.dtd">
>> <application id="Application_ID">
>> 	<display-name>BOB_BatchProcessManager</display-name>
>> 	<module id="EjbModule_1116586413414">
>> 		<ejb>BOB_BatchProcessManagerEJB.jar</ejb>
>> 	</module>
>> 	<module id="WebModule_1170410967555">
>> 		<web>
>> 			<web-uri>BOB_JUnitWebClient.war</web-uri>
>> 			<context-root>BOB_JUnitWebClient</context-root>
>> 		</web>
>> 	</module>
>> </application>
>>
>>
>> Regards
>> Matts
>>
>>
>>     
>>> From: "Magnus Grimsell" <[email protected]>
>>> Reply-To: "Cactus Users List" <[email protected]>
>>> To: "Cactus Users List" <[email protected]>
>>> Subject: RE: Failed to get the test results
>>> Date: Tue, 23 Jan 2007 17:57:08 +0100
>>>
>>> How do you run your tests? Could you submit an Ant-script or 
>>>       
>> something like 
>>     
>>> that.
>>>
>>> What does the application.xml of your ear look like?
>>>
>>>       
>>>> -----Original Message-----
>>>> From: matts Sundin [mailto:[email protected]]
>>>> Sent: Tuesday, January 23, 2007 5:38 PM
>>>> To: [email protected]
>>>> Subject: Failed to get the test results
>>>>
>>>>
>>>>
>>>> Hello,
>>>>
>>>> I am new in using cactus and have the following error, when I
>>>> run my test:
>>>>
>>>> .E
>>>> Time: 1.328
>>>> There was 1 error:
>>>> 1)
>>>> testCase1(org.apache.cactus.ServletTestCase)org.apache.cactus.
>>>> util.ChainedRuntimeException:
>>>> Failed to get the test results at
>>>> [http://localhost:8080/BOB_JUnitWebClient/ServletRedirector]
>>>> 	at
>>>> org.apache.cactus.internal.client.connector.http.DefaultHttpCl
>>>> ient.doTest_aroundBody0(DefaultHttpClient.java:92)
>>>> 	at
>>>> org.apache.cactus.internal.client.connector.http.DefaultHttpCl
>>>> ient.doTest_aroundBody1$advice(DefaultHttpClient.java:306)
>>>> 	at
>>>> org.apache.cactus.internal.client.connector.http.DefaultHttpCl
>>>> ient.doTest(DefaultHttpClient.java)
>>>> 	at
>>>> org.apache.cactus.internal.client.connector.http.HttpProtocolH
>>>> andler.runWebTest(HttpProtocolHandler.java:159)
>>>> 	at
>>>> org.apache.cactus.internal.client.connector.http.HttpProtocolH
>>>> andler.runTest_aroundBody0(HttpProtocolHandler.java:80)
>>>> 	at
>>>> org.apache.cactus.internal.client.connector.http.HttpProtocolH
>>>> andler.runTest_aroundBody1$advice(HttpProtocolHandler.java:306)
>>>> 	at
>>>> org.apache.cactus.internal.client.connector.http.HttpProtocolH
>>>> andler.runTest(HttpProtocolHandler.java)
>>>> 	at
>>>> org.apache.cactus.internal.client.ClientTestCaseCaller.runTest
>>>> (ClientTestCaseCaller.java:144)
>>>> 	at
>>>> org.apache.cactus.internal.AbstractCactusTestCase.runBareClien
>>>> t(AbstractCactusTestCase.java:215)
>>>> 	at
>>>> org.apache.cactus.internal.AbstractCactusTestCase.runBare(Abst
>>>> ractCactusTestCase.java:133)
>>>> 	at
>>>> org.apache.cactus.internal.AbstractTestSuite.runTest(AbstractT
>>>> estSuite.java:259)
>>>> 	at
>>>> org.apache.cactus.internal.AbstractTestSuite.run_aroundBody0(A
>>>> bstractTestSuite.java:250)
>>>> 	at
>>>> org.apache.cactus.internal.AbstractTestSuite.run_aroundBody1$a
>>>> dvice(AbstractTestSuite.java:224)
>>>> 	at
>>>> org.apache.cactus.internal.AbstractTestSuite.run(AbstractTestS
>>>> uite.java)
>>>> 	at
>>>> com.ubs.swidBOB.v5.batch.basel2.RealEstateServiceTest.main(Rea
>>>> lEstateServiceTest.java:102)
>>>> org.apache.cactus.internal.client.ParsingException: Not a
>>>> valid response
>>>> [500 Internal Server Error]
>>>> 	at
>>>> org.apache.cactus.internal.client.connector.http.DefaultHttpCl
>>>> ient.callGetResult(DefaultHttpClient.java:211)
>>>> 	at
>>>> org.apache.cactus.internal.client.connector.http.DefaultHttpCl
>>>> ient.doTest_aroundBody0(DefaultHttpClient.java:87)
>>>> 	at
>>>> org.apache.cactus.internal.client.connector.http.DefaultHttpCl
>>>> ient.doTest_aroundBody1$advice(DefaultHttpClient.java:306)
>>>> 	at
>>>> org.apache.cactus.internal.client.connector.http.DefaultHttpCl
>>>> ient.doTest(DefaultHttpClient.java)
>>>> 	at
>>>> org.apache.cactus.internal.client.connector.http.HttpProtocolH
>>>> andler.runWebTest(HttpProtocolHandler.java:159)
>>>> 	at
>>>> org.apache.cactus.internal.client.connector.http.HttpProtocolH
>>>> andler.runTest_aroundBody0(HttpProtocolHandler.java:80)
>>>> 	at
>>>> org.apache.cactus.internal.client.connector.http.HttpProtocolH
>>>> andler.runTest_aroundBody1$advice(HttpProtocolHandler.java:306)
>>>> 	at
>>>> org.apache.cactus.internal.client.connector.http.HttpProtocolH
>>>> andler.runTest(HttpProtocolHandler.java)
>>>> 	at
>>>> org.apache.cactus.internal.client.ClientTestCaseCaller.runTest
>>>> (ClientTestCaseCaller.java:144)
>>>> 	at
>>>> org.apache.cactus.internal.AbstractCactusTestCase.runBareClien
>>>> t(AbstractCactusTestCase.java:215)
>>>> 	at
>>>> org.apache.cactus.internal.AbstractCactusTestCase.runBare(Abst
>>>> ractCactusTestCase.java:133)
>>>> 	at
>>>> org.apache.cactus.internal.AbstractTestSuite.runTest(AbstractT
>>>> estSuite.java:259)
>>>> 	at
>>>> org.apache.cactus.internal.AbstractTestSuite.run_aroundBody0(A
>>>> bstractTestSuite.java:250)
>>>> 	at
>>>> org.apache.cactus.internal.AbstractTestSuite.run_aroundBody1$a
>>>> dvice(AbstractTestSuite.java:224)
>>>> 	at
>>>> org.apache.cactus.internal.AbstractTestSuite.run(AbstractTestS
>>>> uite.java)
>>>> 	at
>>>> com.ubs.swidBOB.v5.batch.basel2.RealEstateServiceTest.main(Rea
>>>> lEstateServiceTest.java:102)
>>>>
>>>> FAILURES!!!
>>>> Tests run: 1,  Failures: 0,  Errors: 1
>>>>
>>>> I have absolutely no idea what to do.
>>>> The war is in the same EAR like my EJB.
>>>> Could anyone help me?
>>>>
>>>> -Thanks
>>>>
>>>> regards
>>>>
>>>> Matts
>>>>
>>>> _________________________________________________________________
>>>> Die MSN Homepage liefert Ihnen alle Infos zu Ihren 
>>>>         
>> Lieblingsthemen.
>>     
>>>> http://ch.msn.com/
>>>>
>>>>
>>>>
>>>>         
>> ---------------------------------------------------------------------
>>     
>>>> To unsubscribe, e-mail: [email protected]
>>>> For additional commands, e-mail: 
>>>>         
>> [email protected]
>>     
>>>>         
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [email protected]
>>> For additional commands, e-mail: [email protected]
>>>
>>>       
>> _________________________________________________________________
>> Die Vielfalt der Optionen lässt Sie im Internet erfolgreich 
>> recherchieren. 
>> http://search.msn.ch/
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>
>>     
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
>   

-- 

If you apply Ohms Law, e=mc2, to the hypotenuse and add to that a catalyst consisting of a set of struts and a gigahertz, you will theoretically arrive at an answer yesterday...

Shay Thompson - Lead Computer Scientist
Adobe Systems, Inc. - Titan Core QE 
Voice: x34728 or 612.251.5415
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.