jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Lemieux (QC/EMC)" <David.Lemi...@ericsson.com>
Subject cactus.contextURL disapeared....
Date Fri, 28 Nov 2003 16:47:26 GMT
Anybody have an idea of where to start looking to solve this puzzle?

The test are grouped like this
                                AllTest(suite)
                ---------------------------------------
        AllFrameworkTest (suite)               AllApplicationTest(suite)
---------------------------------       ------------------------------
6 Test (All failed)                     4 Test (All success)


public class AllTest{

	public static Test suite()
	{
		String cactusURL = System.getProperty("cactus.contextURL")!=null?System.getProperty				
					("cactus.contextURL"):"cactus.contextURL not initiated";
		LoggerFactory.getInstance().logInfo("All YYY Test","cactus.contextURL : " + cactusURL);
		TestSuite mysuite = new TestSuite();
		mysuite.addTest(AllTestApplications.suite());
        	mysuite.addTest(AllTestFramework.suite());
		return mysuite;
	}
}

public class AllTestApplications{

	public static Test suite()
	{
		TestSuite mysuite = new TestSuite();
		mysuite.addTest(TestHello.suite());
		mysuite.addTest(TestHelloServlet.suite());
		mysuite.addTest(TestHelloService.suite());
		return mysuite;
	}
}

public class AllTestFramework{

	public static Test suite()
	{
		TestSuite mysuite = new TestSuite();
       	mysuite.addTest(TestConfigurationHandler.suite());
		mysuite.addTest(TestNameValueList.suite());
		return mysuite;
	}
}


test:
    [junit] Running XXX.AllTest
    [junit] >>INFO LOGGED, ORIGIN: All YYY Test DESCRIPTION: cactus.contextURL : http://XXX:7001/YYY
    [junit] >>INFO LOGGED, ORIGIN: TestHello DESCRIPTION: suite()
    [junit] >>INFO LOGGED, ORIGIN: TestHelloServlet DESCRIPTION: suite()
    [junit] >>INFO LOGGED, ORIGIN: TestHelloService DESCRIPTION: suite()
    [junit] >>TIMER TestConfigurationHandler - suite started at : 1070036023017
    [junit] >>TIMER TestNameValueList - suite started at : 1070036023382
    [junit] Tests run: 10, Failures: 0, Errors: 6, Time elapsed: 6.636 sec
    [junit] Testsuite: XXX.AllTest
    [junit] Tests run: 10, Failures: 0, Errors: 6, Time elapsed: 6.636 sec

    [junit] Testcase: testXXX took 4.064 sec
    [junit] Testcase: testResultSessionBean took 0.677 sec
    [junit] Testcase: testResponseHelloServlet took 0.307 sec
    [junit] Testcase: testGetMessageHelloEJBService took 0.089 sec
    [junit] Testcase: testGetParameterCount took 0.193 sec
    [junit]     Caused an ERROR
    [junit] Missing Cactus property [cactus.contextURL]				<--------------------------------
    [junit] org.apache.cactus.util.ChainedRuntimeException: Missing Cactus property [cactus.contextURL]
    [junit]     at org.apache.cactus.configuration.BaseConfiguration.getContextURL(BaseConfiguration.java:114)
    [junit]     at org.apache.cactus.configuration.AbstractWebConfiguration.getRedirectorURL_aroundBody0(AbstractWebConfiguration.java:85)
    [junit]     at org.apache.cactus.configuration.AbstractWebConfiguration.getRedirectorURL_aroundBody1$advice(AbstractWebConfiguration.java:240)
    [junit]     at org.apache.cactus.configuration.AbstractWebConfiguration.getRedirectorURL(AbstractWebConfiguration.java)
    [junit]     at org.apache.cactus.client.connector.http.DefaultHttpClient.callRunTest(DefaultHttpClient.java:197)
    [junit]     at org.apache.cactus.client.connector.http.DefaultHttpClient.doTest_aroundBody0(DefaultHttpClient.java:119)
    [junit]     at org.apache.cactus.client.connector.http.DefaultHttpClient.doTest_aroundBody1$advice(DefaultHttpClient.java:240)
    [junit]     at org.apache.cactus.client.connector.http.DefaultHttpClient.doTest(DefaultHttpClient.java)
    [junit]     at org.apache.cactus.internal.client.WebClientTestCaseDelegate.runWebTest(WebClientTestCaseDelegate.java:333)
    [junit]     at org.apache.cactus.internal.client.WebClientTestCaseDelegate.runGenericTest(WebClientTestCaseDelegate.java:281)
    [junit]     at org.apache.cactus.internal.client.WebClientTestCaseDelegate.runTest(WebClientTestCaseDelegate.java:257)
    [junit]     at org.apache.cactus.ServletTestCase.runCactusTest(ServletTestCase.java:300)
    [junit]     at org.apache.cactus.ServletTestCase.runBare(ServletTestCase.java:263)
    [junit]     at org.apache.cactus.ServletTestCase.runCactusTest(ServletTestCase.java:291)
    [junit]     at org.apache.cactus.ServletTestCase.runBare(ServletTestCase.java:263)
    [junit]     at org.apache.cactus.server.AbstractWebTestCaller.doTest(AbstractWebTestCaller.java:156)
    [junit]     at org.apache.cactus.server.AbstractWebTestController.handleRequest_aroundBody0(AbstractWebTestController.java:130)
    [junit]     at org.apache.cactus.server.AbstractWebTestController.handleRequest_aroundBody1$advice(AbstractWebTestController.java:158)
    [junit]     at org.apache.cactus.server.AbstractWebTestController.handleRequest(AbstractWebTestController.java)
    [junit]     at org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody2(ServletTestRedirector.java:138)
    [junit]     at org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody3$advice(ServletTestRedirector.java:158)
    [junit]     at org.apache.cactus.server.ServletTestRedirector.doPost(ServletTestRedirector.java)
    [junit]     at org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody0(ServletTestRedirector.java:109)
    [junit]     at org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody1$advice(ServletTestRedirector.java:158)
    [junit]     at org.apache.cactus.server.ServletTestRedirector.doGet(ServletTestRedirector.java)
    [junit]     at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    [junit]     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    [junit]     at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1053)
    [junit]     at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:387)
    [junit]     at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
    [junit]     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
    [junit]     at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6316)
    [junit]     at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
    [junit]     at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
    [junit]     at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3622)
    [junit]     at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2569)
    [junit]     at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
    [junit]     at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170) 
	...
	Every error are the same

Mime
View raw message