ConnectException when building alert-aggregator-webapp
------------------------------------------------------

                 Key: TUSCANY-1787
                 URL: https://issues.apache.org/jira/browse/TUSCANY-1787
             Project: Tuscany
          Issue Type: Bug
          Components: Java SCA Samples
    Affects Versions: Java-SCA-1.0
            Reporter: Simon Nash
             Fix For: Java-SCA-1.0.1


I followed instructions in the demos/alert-aggregator-webapp/README file and 
used mvn to build the demo.  The compilations went OK, but the  tests failed 
with a ConnectException.  I reran mvn and got the same ConnnectException.  
Here's the full output from the tests.

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running org.apache.tuscany.sca.demos.aggregator.AlertsTestCase
21-Sep-2007 12:24:59 org.apache.axis2.deployment.DeploymentEngine 
loadFromClassPath
INFO: Module validation failed: The system is attempting to engage a module 
that is not available: rampart
21-Sep-2007 12:24:59 org.apache.axis2.deployment.DeploymentEngine 
loadFromClassPath
INFO: Module validation failed: The system is attempting to engage a module 
that is not available: rampart
21-Sep-2007 12:25:00 org.apache.tuscany.sca.host.webapp.WebAppServletHost 
addServletMapping
INFO: addServletMapping: /AlertsFeedServiceRSS21-Sep-2007 12:25:00 
org.apache.tuscany.sca.host.webapp.WebAppServletHost addServletMapping
INFO: addServletMapping: /AlertsFeedServiceAtom/*
21-Sep-2007 12:25:00 org.apache.tuscany.sca.host.webapp.WebAppServletHost 
addServletMapping
INFO: addServletMapping: /services/AlertsServiceWebServiceBinding
21-Sep-2007 12:25:00 org.apache.tuscany.sca.host.webapp.WebAppServletHost 
addServletMapping
INFO: addServletMapping: /AlertsServiceJSONRPC
21-Sep-2007 12:25:00 org.apache.tuscany.sca.host.webapp.WebAppServletHost 
addServletMapping
INFO: addServletMapping: /SCADomain/scaDomain.js
21-Sep-2007 12:25:00 org.apache.tuscany.sca.host.webapp.WebAppServletHost 
addServletMapping
INFO: addServletMapping: /services/AlertsSourcesServiceWebServiceBinding
21-Sep-2007 12:25:00 org.apache.tuscany.sca.host.webapp.WebAppServletHost 
addServletMapping
INFO: addServletMapping: /AlertsSourcesServiceJSONRPC
21-Sep-2007 12:25:00 org.apache.tuscany.sca.host.webapp.WebAppServletHost 
addServletMapping
INFO: addServletMapping: /SCADomain/scaDomain.js
Request = {"params":["sometext"],"id":2,"method":"getAllNewAlerts"}
21-Sep-2007 12:25:02 org.apache.axis2.deployment.DeploymentEngine 
loadFromClassPath
INFO: Module validation failed: The system is attempting to engage a module 
that is not available: rampart
21-Sep-2007 12:25:02 org.apache.axis2.deployment.DeploymentEngine 
loadFromClassPath
INFO: Module validation failed: The system is attempting to engage a module 
that is not available: rampart
21-Sep-2007 12:25:02 org.apache.tuscany.sca.host.webapp.WebAppServletHost 
addServletMapping
INFO: addServletMapping: /AlertsFeedServiceRSS
21-Sep-2007 12:25:02 org.apache.tuscany.sca.host.webapp.WebAppServletHost 
addServletMapping
INFO: addServletMapping: /AlertsFeedServiceAtom/*
21-Sep-2007 12:25:02 org.apache.tuscany.sca.host.webapp.WebAppServletHost 
addServletMapping
INFO: addServletMapping: /services/AlertsServiceWebServiceBinding
21-Sep-2007 12:25:02 org.apache.tuscany.sca.host.webapp.WebAppServletHost 
addServletMapping
INFO: addServletMapping: /AlertsServiceJSONRPC
21-Sep-2007 12:25:02 org.apache.tuscany.sca.host.webapp.WebAppServletHost 
addServletMapping
INFO: addServletMapping: /SCADomain/scaDomain.js
21-Sep-2007 12:25:02 org.apache.tuscany.sca.host.webapp.WebAppServletHost 
addServletMapping
INFO: addServletMapping: /services/AlertsSourcesServiceWebServiceBinding
21-Sep-2007 12:25:02 org.apache.tuscany.sca.host.webapp.WebAppServletHost 
addServletMapping
INFO: addServletMapping: /AlertsSourcesServiceJSONRPC
21-Sep-2007 12:25:02 org.apache.tuscany.sca.host.webapp.WebAppServletHost 
addServletMapping
INFO: addServletMapping: /SCADomain/scaDomain.js
Request = 
{"params":[{"feedType":"rss","javaClass":"org.apache.tuscany.sca.demos.aggregator.types.impl.SourceTypeImpl","address":"www.news.com","feedAddress":"http:\/\/news.com.com\/2547-1_3-0-20.xml","name":"news","id":"2","lastChecked":"lastChecked"}],"id":2,"method":"addAlertSource"}
21-Sep-2007 12:25:03 org.apache.axis2.deployment.DeploymentEngine 
loadFromClassPath
INFO: Module validation failed: The system is attempting to engage a module 
that is not available: rampart
21-Sep-2007 12:25:03 org.apache.axis2.deployment.DeploymentEngine 
loadFromClassPath
INFO: Module validation failed: The system is attempting to engage a module 
that is not available: rampart
21-Sep-2007 12:25:03 org.apache.tuscany.sca.host.webapp.WebAppServletHost 
addServletMapping
INFO: addServletMapping: /AlertsFeedServiceRSS
21-Sep-2007 12:25:03 org.apache.tuscany.sca.host.webapp.WebAppServletHost 
addServletMapping
INFO: addServletMapping: /AlertsFeedServiceAtom/*
21-Sep-2007 12:25:03 org.apache.tuscany.sca.host.webapp.WebAppServletHost 
addServletMapping
INFO: addServletMapping: /services/AlertsServiceWebServiceBinding
21-Sep-2007 12:25:03 org.apache.tuscany.sca.host.webapp.WebAppServletHost 
addServletMapping
INFO: addServletMapping: /AlertsServiceJSONRPC
21-Sep-2007 12:25:03 org.apache.tuscany.sca.host.webapp.WebAppServletHost 
addServletMapping
INFO: addServletMapping: /SCADomain/scaDomain.js
21-Sep-2007 12:25:03 org.apache.tuscany.sca.host.webapp.WebAppServletHost 
addServletMapping
INFO: addServletMapping: /services/AlertsSourcesServiceWebServiceBinding
21-Sep-2007 12:25:03 org.apache.tuscany.sca.host.webapp.WebAppServletHost 
addServletMapping
INFO: addServletMapping: /AlertsSourcesServiceJSONRPC
Request = {"params":["sometext"],"id":2,"method":"getAlertSources"}
21-Sep-2007 12:25:03 org.apache.tuscany.sca.host.webapp.WebAppServletHost addSer
vletMapping
INFO: addServletMapping: /SCADomain/scaDomain.js
Tests run: 3, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 9.193 sec <<< 
FAILURE!
testGetAllNewAlerts(org.apache.tuscany.sca.demos.aggregator.AlertsTestCase)  
Time elapsed: 6.249 sec  <<< ERROR!
java.net.ConnectException: Connection refused: connect
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
        at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
        at java.net.Socket.connect(Socket.java:519)
        at java.net.Socket.connect(Socket.java:469)
        at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
        at sun.net.www.http.HttpClient.openServer(HttpClient.java:382)
        at sun.net.www.http.HttpClient.openServer(HttpClient.java:509)
        at sun.net.www.http.HttpClient.<init>(HttpClient.java:231)
        at sun.net.www.http.HttpClient.New(HttpClient.java:304)
        at sun.net.www.http.HttpClient.New(HttpClient.java:316)
        at 
sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:817)
        at 
sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:769)
        at 
sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:694)
        at 
sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:861)
        at 
com.meterware.httpunit.MessageBodyWebRequest.completeRequest(MessageBodyWebRequest.java:106)
        at 
com.meterware.httpunit.WebConversation.newResponse(WebConversation.java:75)
        at com.meterware.httpunit.WebWindow.getResource(WebWindow.java:164)
        at com.meterware.httpunit.WebClient.getResource(WebClient.java:150)
        at 
org.apache.tuscany.sca.demos.aggregator.AlertsTestCase.callService(AlertsTestCase.java:90)
        at 
org.apache.tuscany.sca.demos.aggregator.AlertsTestCase.testGetAllNewAlerts(AlertsTestCase.java:66)
        at 
org.apache.tuscany.sca.demos.aggregator.AlertsTestCase.testGetAllNewAlerts(AlertsTestCase.java:66)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at junit.framework.TestCase.runTest(TestCase.java:154)
        at junit.framework.TestCase.runBare(TestCase.java:127)
        at junit.framework.TestResult$1.protect(TestResult.java:106)
        at junit.framework.TestResult.runProtected(TestResult.java:124)
        at junit.framework.TestResult.run(TestResult.java:109)
        at junit.framework.TestCase.run(TestCase.java:118)
        at junit.framework.TestSuite.runTest(TestSuite.java:208)
        at junit.framework.TestSuite.run(TestSuite.java:203)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at 
org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
        at 
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)
        at 
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:125)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at 
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:290)
        at 
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818)

testAddAlertSources(org.apache.tuscany.sca.demos.aggregator.AlertsTestCase)  
Time elapsed: 1.492 sec  <<< ERROR!
java.net.ConnectException: Connection refused: connect
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
        at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
        at java.net.Socket.connect(Socket.java:519)
        at java.net.Socket.connect(Socket.java:469)
        at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
        at sun.net.www.http.HttpClient.openServer(HttpClient.java:382)
        at sun.net.www.http.HttpClient.openServer(HttpClient.java:509)
        at sun.net.www.http.HttpClient.<init>(HttpClient.java:231)
        at sun.net.www.http.HttpClient.New(HttpClient.java:304)
        at sun.net.www.http.HttpClient.New(HttpClient.java:316)
        at 
sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:817)
        at 
sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:769)
        at 
sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:694)
        at 
sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:861)
        at 
com.meterware.httpunit.MessageBodyWebRequest.completeRequest(MessageBodyWebRequest.java:106)
        at 
com.meterware.httpunit.WebConversation.newResponse(WebConversation.java:75)
        at com.meterware.httpunit.WebWindow.getResource(WebWindow.java:164)
        at com.meterware.httpunit.WebClient.getResource(WebClient.java:150)
        at 
org.apache.tuscany.sca.demos.aggregator.AlertsTestCase.callService(AlertsTestCase.java:90)
        at 
org.apache.tuscany.sca.demos.aggregator.AlertsTestCase.testAddAlertSources(AlertsTestCase.java:73)
        at 
org.apache.tuscany.sca.demos.aggregator.AlertsTestCase.testAddAlertSources(AlertsTestCase.java:73)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at junit.framework.TestCase.runTest(TestCase.java:154)
        at junit.framework.TestCase.runBare(TestCase.java:127)
        at junit.framework.TestResult$1.protect(TestResult.java:106)
        at junit.framework.TestResult.runProtected(TestResult.java:124)
        at junit.framework.TestResult.run(TestResult.java:109)
        at junit.framework.TestCase.run(TestCase.java:118)
        at junit.framework.TestSuite.runTest(TestSuite.java:208)
        at junit.framework.TestSuite.run(TestSuite.java:203)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at 
org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
        at 
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)
        at 
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:125)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at 
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:290)
        at 
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818)

testGetAlertSources(org.apache.tuscany.sca.demos.aggregator.AlertsTestCase)  
Time elapsed: 1.402 sec  <<< ERROR!
java.net.ConnectException: Connection refused: connect
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
        at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
        at java.net.Socket.connect(Socket.java:519)
        at java.net.Socket.connect(Socket.java:469)
        at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
        at sun.net.www.http.HttpClient.openServer(HttpClient.java:382)
        at sun.net.www.http.HttpClient.openServer(HttpClient.java:509)
        at sun.net.www.http.HttpClient.<init>(HttpClient.java:231)
        at sun.net.www.http.HttpClient.New(HttpClient.java:304)
        at sun.net.www.http.HttpClient.New(HttpClient.java:316)
        at 
sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:817)
        at 
sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:769)
        at 
sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:694)
        at 
sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:861)
        at 
com.meterware.httpunit.MessageBodyWebRequest.completeRequest(MessageBodyWebRequest.java:106)
        at 
com.meterware.httpunit.WebConversation.newResponse(WebConversation.java:75)
        at com.meterware.httpunit.WebWindow.getResource(WebWindow.java:164)
        at com.meterware.httpunit.WebClient.getResource(WebClient.java:150)
        at 
org.apache.tuscany.sca.demos.aggregator.AlertsTestCase.callService(AlertsTestCase.java:90)
        at 
org.apache.tuscany.sca.demos.aggregator.AlertsTestCase.testGetAlertSources(AlertsTestCase.java:80)
        at 
org.apache.tuscany.sca.demos.aggregator.AlertsTestCase.testGetAlertSources(AlertsTestCase.java:80)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at junit.framework.TestCase.runTest(TestCase.java:154)
        at junit.framework.TestCase.runBare(TestCase.java:127)
        at junit.framework.TestResult$1.protect(TestResult.java:106)
        at junit.framework.TestResult.runProtected(TestResult.java:124)
        at junit.framework.TestResult.run(TestResult.java:109)
        at junit.framework.TestCase.run(TestCase.java:118)
        at junit.framework.TestSuite.runTest(TestSuite.java:208)
        at junit.framework.TestSuite.run(TestSuite.java:203)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at 
org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
        at 
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)
        at 
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:125)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at 
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:290)
        at 
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818)

Results :

Tests in error:
  testGetAllNewAlerts(org.apache.tuscany.sca.demos.aggregator.AlertsTestCase)
  testAddAlertSources(org.apache.tuscany.sca.demos.aggregator.AlertsTestCase)
  testGetAlertSources(org.apache.tuscany.sca.demos.aggregator.AlertsTestCase)

Tests run: 3, Failures: 0, Errors: 3, Skipped: 0

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] There are test failures.
[INFO] ------------------------------------------------------------------------

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to