Hi Jacopo,

When doing som indept analysis on the output of the target:
sudo ./ant run-test-suite -Dtest.component=service
-Dtest.suiteName=servicetests

I found that ports are set in accordance of latest
framework/base/config/test-containers.xml
RMI port = 1100, host is 127.0.0.1
AJP port = 8010
HTTP port = 8081
HTTPS port = 8444

but that the RMI service is pointing to the production ports:

AbstractEngine.java:73 :INFO ] Loaded Service Locations :
{main-rmi=rmi://localhost:1099/RMIDispatcher, main-http=
http://localhost:8080/webtools/control/httpService,
entity-sync-rmi=rmi://localhost:1099/RMIDispatcher, entity-sync-http=
http://localhost:8080/webtools/control/httpService,
rita-rmi=rmi://localhost:1099/RMIDispatcher, eedcc-test=
http://localhost:8080/webtools/control/httpService}

Can this be the underlying issue?

See exerpt of my log below.

Regards,

Pierre

[java] 2012-04-10 16:07:20,329 (catalina-startup-0) [
 ConfigXMLReader.java:120:INFO ] controller loaded: 0.0010s, 9 requests, 1
views in
file:/Users/s0001/Documents/workspace/ofbiz-trunk/framework/testtools/webapp/testtools/WEB-INF/controller.xml
     [java] 2012-04-10 16:07:20,342 (main) [
 CatalinaContainer.java:251:INFO ] Connector AJP/1.3 @ 8010 - not-secure
[org.apache.coyote.ajp.AjpProtocol] started.
     [java] 2012-04-10 16:07:20,342 (main) [
 CatalinaContainer.java:248:INFO ] Connector "http-bio-0.0.0.0-8081" @ 8081
- not-secure [org.apache.coyote.http11.Http11Protocol] started.
     [java] 2012-04-10 16:07:20,342 (main) [
 CatalinaContainer.java:248:INFO ] Connector "http-bio-0.0.0.0-8444" @ 8444
- secure [org.apache.coyote.http11.Http11Protocol] started.
     [java] 2012-04-10 16:07:20,342 (main) [
 CatalinaContainer.java:255:INFO ] Started Apache Tomcat/7.0.26
     [java] 2012-04-10 16:07:20,358 (main) [  GenericDispatcher.java:69
:INFO ] Creating new dispatcher [entity-test-NhODrXc3Iv] (main)
     [java] 2012-04-10 16:07:20,358 (main) [  ServiceDispatcher.java:88
:INFO ] [ServiceDispatcher] : Creating new instance.
     [java] 2012-04-10 16:07:20,362 (main) [ ServiceGroupReader.java:88
:INFO ] Loaded [1] Group definitions from
file:/Users/s0001/Documents/workspace/ofbiz-trunk/framework/common/servicedef/groups_test.xml
     [java] 2012-04-10 16:07:20,364 (main) [ ServiceGroupReader.java:88
:INFO ] Loaded [4] Group definitions from
file:/Users/s0001/Documents/workspace/ofbiz-trunk/framework/entityext/servicedef/groups.xml
     [java] 2012-04-10 16:07:20,367 (main) [ ServiceGroupReader.java:88
:INFO ] Loaded [2] Group definitions from
file:/Users/s0001/Documents/workspace/ofbiz-trunk/applications/workeffort/servicedef/service_groups.xml
     [java] 2012-04-10 16:07:20,370 (main) [ ServiceGroupReader.java:88
:INFO ] Loaded [4] Group definitions from
file:/Users/s0001/Documents/workspace/ofbiz-trunk/applications/accounting/servicedef/groups.xml
     [java] 2012-04-10 16:07:20,371 (main) [  GenericDispatcher.java:69
:INFO ] Creating new dispatcher [test-dispatcher-NhODrXc3Iv] (main)
     [java] 2012-04-10 16:07:20,382 (main) [
ModelTestSuite.java:112:INFO ] Added 1 tests [1 cases] from the class:
org.ofbiz.service.test.ServiceEngineTests
     [java] 2012-04-10 16:07:20,384 (main) [
ModelTestSuite.java:112:INFO ] Added 1 tests [2 cases] from the class:
org.ofbiz.service.test.ServiceSOAPTests
     [java] 2012-04-10 16:07:20,393 (main) [
ModelTestSuite.java:112:INFO ] Added 1 tests [1 cases] from the class:
org.ofbiz.service.test.XmlRpcTests
     [java] 2012-04-10 16:07:20,405 (main) [
TestRunContainer.java:238:INFO ] [JUNIT] : testBasicJavaInvocation
starting...
     [java] 2012-04-10 16:07:20,415 (main) [     AbstractEngine.java:73
:INFO ] Loaded Service Locations :
{main-rmi=rmi://localhost:1099/RMIDispatcher, main-http=
http://localhost:8080/webtools/control/httpService,
entity-sync-rmi=rmi://localhost:1099/RMIDispatcher, entity-sync-http=
http://localhost:8080/webtools/control/httpService,
rita-rmi=rmi://localhost:1099/RMIDispatcher, eedcc-test=
http://localhost:8080/webtools/control/httpService}
     [java] 2012-04-10 16:07:20,539 (main) [
ModelService.java:464:INFO ] Set default value [999.9999] for parameter
[defaultValue]
     [java] 2012-04-10 16:07:20,545 (main) [
ServiceEcaRule.java:137:INFO ] For Service ECA [testScv] on [invoke] got
false for condition: [message][equals][auto][true][String]
     [java] ---- SVC-CONTEXT: message => Unit Test
     [java] ---- SVC-CONTEXT: locale => en
     [java] ---- SVC-CONTEXT: defaultValue => 999.9999
     [java] -----SERVICE TEST----- : Unit Test
     [java] ----- SVC: test-dispatcher-NhODrXc3Iv -----
     [java] 2012-04-10 16:07:20,552 (main) [
ServiceEcaRule.java:137:INFO ] For Service ECA [testScv] on [commit] got
false for condition: [message][equals][12345][true][String]
     [java] 2012-04-10 16:07:20,553 (main) [
 ServiceDispatcher.java:593:INFO ] Sync service
[test-dispatcher-NhODrXc3Iv/testScv] finished in [147] milliseconds with
response [{responseMessage=success, resp=service done}]
     [java] 2012-04-10 16:07:20,553 (main) [
TestRunContainer.java:234:INFO ] [JUNIT] : testBasicJavaInvocation finished.
     [java] 2012-04-10 16:07:20,555 (main) [
TestRunContainer.java:238:INFO ] [JUNIT] : testSOAPSimpleService starting...
     [java] 2012-04-10 16:07:21,054 (main) [
SOAPClientEngine.java:100:INFO ] [SOAPClientEngine.invoke] : Parameter
length - 7
     [java] 2012-04-10 16:07:21,055 (main) [
SOAPClientEngine.java:112:INFO ] [SOAPClientEngine.invoke} : Parameter:
userLogin (INOUT) - 0
     [java] 2012-04-10 16:07:21,055 (main) [
SOAPClientEngine.java:112:INFO ] [SOAPClientEngine.invoke} : Parameter:
login.username (IN) - 1
     [java] 2012-04-10 16:07:21,055 (main) [
SOAPClientEngine.java:112:INFO ] [SOAPClientEngine.invoke} : Parameter:
login.password (IN) - 2
     [java] 2012-04-10 16:07:21,055 (main) [
SOAPClientEngine.java:112:INFO ] [SOAPClientEngine.invoke} : Parameter:
locale (INOUT) - 3
     [java] 2012-04-10 16:07:21,055 (main) [
SOAPClientEngine.java:112:INFO ] [SOAPClientEngine.invoke} : Parameter:
timeZone (INOUT) - 4
     [java] 2012-04-10 16:07:21,055 (main) [
SOAPClientEngine.java:112:INFO ] [SOAPClientEngine.invoke} : Parameter:
defaultValue (IN) - 5
     [java] 2012-04-10 16:07:21,055 (main) [
SOAPClientEngine.java:112:INFO ] [SOAPClientEngine.invoke} : Parameter:
message (IN) - 6
     [java] 37224 [main] INFO
org.apache.commons.httpclient.HttpMethodDirector - I/O exception
(java.net.ConnectException) caught when processing request: Connection
refused
     [java] 37224 [main] INFO
org.apache.commons.httpclient.HttpMethodDirector - Retrying request
     [java] 37224 [main] INFO
org.apache.commons.httpclient.HttpMethodDirector - I/O exception
(java.net.ConnectException) caught when processing request: Connection
refused
     [java] 37224 [main] INFO
org.apache.commons.httpclient.HttpMethodDirector - Retrying request
     [java] 37224 [main] INFO
org.apache.commons.httpclient.HttpMethodDirector - I/O exception
(java.net.ConnectException) caught when processing request: Connection
refused
     [java] 37224 [main] INFO
org.apache.commons.httpclient.HttpMethodDirector - Retrying request
     [java] 37225 [main] INFO org.apache.axis2.transport.http.HTTPSender -
Unable to sendViaPost to url[
http://localhost:8080/webtools/control/SOAPService]


Op 10 april 2012 14:36 schreef Jacopo Cappellato <
[email protected]> het volgende:

> Pierre,
>
> you are right: I have two tests failing too.
> May it be related to the changes to ports recently committed... I didn't
> have time to investigate.
>
> Jacopo
>
>
> On Apr 10, 2012, at 12:22 PM, Pierre Smits wrote:
>
> > Hi Jacopo,
> >
> > Currently in my Jenkins environment following testsuites are failing:
> >
> >   1. bash -ex ./ant run-test-suite -Dtest.component=service
> >   -Dtest.suiteName=servicetests - which seem to have to do with a port
> >   already in use due to code:  public static final String url = "
> >   http://localhost:8080/webtools/control/xmlrpc in
> >   framework/service/src/org/ofbiz/service/test/XmlRpcTests.java
> >   2. bash -ex ./ant run-test-suite -Dtest.component=webapp
> >   -Dtest.suiteName=webapptests - I haven't looked into this one yet.
> >
> >
> > Regards,
> >
> > Pierre
> >
> >
> >
> >
> >
> > Op 8 april 2012 20:11 schreef Jacopo Cappellato <
> > [email protected]> het volgende:
> >
> >> On Apr 8, 2012, at 4:30 PM, Pierre Smits wrote:
> >>
> >>> 4. Do ant target "run-tests" (fails - see below - triggers 5 even when
> >>>  fails)
> >>
> >> Pierre, I don't know if it is useful but run-tests completes
> successfully
> >> in my local box.
> >>
> >> Jacopo
> >>
> >>
>
>

Reply via email to