Fix issues with junit tests running against external binary
-----------------------------------------------------------
Key: JBESB-1571
URL:
http://jira.jboss.com/jira/browse/JBESB-1571
Project: JBoss ESB
Issue Type: Feature Request
Security Level: Public (Everyone can see)
Components: Testing
Affects Versions: 4.2.1 CP1
Reporter: Tom Cunningham
When trying to run the qa/junit tests against an external binary (SOA-P or JBoss AS+ESB)
there are issues :
[java] execute:
[java] [mkdir] Created dir:
/Users/tcunning/src/esb/JBESB_4_2_1_GA_CP/qa/build/junit/report
[java] [junit] 00:13:04,409 INFO [main][DeploymentArchive] Deployment archive
'/Users/tcunning/src/esb/JBESB_4_2_1_GA_CP/qa/build/lib/LogicalEPRUnitTest.esb'
created.
[java] [junit] Running org.jboss.soa.esb.epr.LogicalEPRUnitTest
[java] [junit] Testsuite: org.jboss.soa.esb.epr.LogicalEPRUnitTest
[java] [junit] Found log4j.xml:
file:/Users/tcunning/src/esb/JBESB_4_2_1_GA_CP/qa/log4j.xml
[java] [junit] 00:13:04,510 DEBUG [main][LogicalEPRUnitTest] ==== setUp
org.jboss.soa.esb.epr.LogicalEPRUnitTest ====
[java] [junit] 00:13:04,510 DEBUG [main][LogicalEPRUnitTest]
JBossTestServices.setUp()
[java] [junit] 00:13:04,559 DEBUG [main][LogicalEPRUnitTest]
initialContext.getEnvironment()={jnp.parsedName=,
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory,
java.naming.provider.url=localhost:1099,
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
[java] [junit] 00:13:04,559 INFO [main][LogicalEPRUnitTest] jbosstest.beancount:
${jbosstest.beancount}
[java] [junit] 00:13:04,563 INFO [main][LogicalEPRUnitTest]
jbosstest.iterationcount: ${jbosstest.iterationcount}
[java] [junit] 00:13:04,563 INFO [main][LogicalEPRUnitTest]
jbosstest.threadcount: ${jbosstest.threadcount}
[java] [junit] 00:13:04,563 INFO [main][LogicalEPRUnitTest] jbosstest.nodeploy:
null
[java] [junit] 00:13:04,564 INFO [main][LogicalEPRUnitTest] jbosstest.jndiurl:
localhost:1099
[java] [junit] 00:13:04,564 INFO [main][LogicalEPRUnitTest]
jbosstest.jndifactory: org.jnp.interfaces.NamingContextFactory
[java] [junit] 00:13:04,564 DEBUG [main][LogicalEPRUnitTest]
LogicalEPRUnitTest.esb is not a valid URL, no protocol: LogicalEPRUnitTest.esb
[java] [junit] 00:13:04,564 DEBUG [main][LogicalEPRUnitTest] Testing file:
/Users/tcunning/src/esb/JBESB_4_2_1_GA_CP/qa/build/lib/LogicalEPRUnitTest.esb
[java] [junit] 00:13:04,564 DEBUG [main][LogicalEPRUnitTest]
/Users/tcunning/src/esb/JBESB_4_2_1_GA_CP/qa/build/lib/LogicalEPRUnitTest.esb is a valid
file
[java] [junit] 00:13:04,564 DEBUG [main][LogicalEPRUnitTest] Deploying
LogicalEPRUnitTest.esb,
url=file:/Users/tcunning/src/esb/JBESB_4_2_1_GA_CP/qa/build/lib/LogicalEPRUnitTest.esb
[java] [junit] 00:13:04,763 DEBUG [main][LogicalEPRUnitTest] Invoking
jboss.system:service=MainDeployer method=redeploy
[java] [junit] 00:13:04,763 DEBUG [main][LogicalEPRUnitTest]
args=[file:/Users/tcunning/src/esb/JBESB_4_2_1_GA_CP/qa/build/lib/LogicalEPRUnitTest.esb]
[java] [junit] 00:13:05,569 DEBUG [main][LogicalEPRUnitTest] deployed package:
LogicalEPRUnitTest.esb
[java] [junit] 00:13:05,746 DEBUG [main][LifecycleResource] Creating resource
using factory:
org.jboss.internal.soa.esb.rosetta.pooling.JmsConnectionPoolContainer$JmsConnectionPoolFactory@78743b
with identity ID-DEFAULT
[java] [junit] 00:13:05,753 DEBUG [main][LifecycleResource] Creating resource
using factory: org.jboss.soa.esb.helpers.NamingContextPool$NamingContextPoolFactory@6c14e7
with identity ID-DEFAULT
[java] [junit] 00:13:08,163 DEBUG [main][RegistryFactory] Going to load
org.jboss.internal.soa.esb.services.registry.JAXRRegistryImpl
[java] [junit] 00:13:08,179 ERROR [main][JAXRRegistryImpl] Could not set up a
connection to the Registry. Invalid queryManagerURL:
jnp://localhost:1099/InquiryService?org.apache.juddi.registry.rmi.Inquiry#inquire
[java] [junit] javax.xml.registry.InvalidRequestException: Invalid
queryManagerURL:
jnp://localhost:1099/InquiryService?org.apache.juddi.registry.rmi.Inquiry#inquire
[java] [junit] at
org.apache.ws.scout.registry.ConnectionFactoryImpl.createConnection(ConnectionFactoryImpl.java:77)
[java] [junit] at
org.jboss.internal.soa.esb.services.registry.JAXRRegistryImpl.getConnection(JAXRRegistryImpl.java:121)
[java] [junit] at
org.jboss.internal.soa.esb.services.registry.JAXRRegistryImpl.findEPRs(JAXRRegistryImpl.java:336)
[java] [junit] at
org.jboss.soa.esb.listeners.RegistryUtil.getEprs(RegistryUtil.java:226)
[java] [junit] at
org.jboss.soa.esb.client.ServiceInvoker.loadServiceClusterInfo(ServiceInvoker.java:411)
[java] [junit] at
org.jboss.soa.esb.client.ServiceInvoker.<init>(ServiceInvoker.java:146)
[java] [junit] at
org.jboss.soa.esb.addressing.eprs.LogicalEPR.getServiceInvoker(LogicalEPR.java:98)
[java] [junit] at
org.jboss.soa.esb.epr.LogicalEPRUnitTest.test_logical_extension(LogicalEPRUnitTest.java:79)
[java] [junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[java] [junit] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[java] [junit] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[java] [junit] at java.lang.reflect.Method.invoke(Method.java:585)
[java] [junit] at junit.framework.TestCase.runTest(TestCase.java:164)
[java] [junit] at junit.framework.TestCase.runBare(TestCase.java:130)
[java] [junit] at junit.framework.TestResult$1.protect(TestResult.java:110)
[java] [junit] at junit.framework.TestResult.runProtected(TestResult.java:128)
[java] [junit] at junit.framework.TestResult.run(TestResult.java:113)
[java] [junit] at junit.framework.TestCase.run(TestCase.java:120)
[java] [junit] at junit.framework.TestSuite.runTest(TestSuite.java:228)
[java] [junit] at junit.framework.TestSuite.run(TestSuite.java:223)
[java] [junit] at junit.framework.TestSuite.runTest(TestSuite.java:228)
[java] [junit] at junit.framework.TestSuite.run(TestSuite.java:223)
[java] [junit] at
junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
[java] [junit] at junit.extensions.TestSetup$1.protect(TestSetup.java:23)
[java] [junit] at junit.framework.TestResult.runProtected(TestResult.java:128)
[java] [junit] at junit.extensions.TestSetup.run(TestSetup.java:27)
[java] [junit] at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:421)
[java] [junit] at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:912)
[java] [junit] at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:766)
[java] [junit] Caused by: java.net.MalformedURLException: unknown protocol: jnp
[java] [junit] at java.net.URL.<init>(URL.java:574)
[java] [junit] at java.net.URL.<init>(URL.java:464)
[java] [junit] at java.net.URL.<init>(URL.java:413)
[java] [junit] at
org.apache.ws.scout.registry.ConnectionFactoryImpl.createConnection(ConnectionFactoryImpl.java:74)
[java] [junit] ... 28 more
[java] [junit] 00:13:08,182 ERROR [main][JAXRRegistryImpl] Could not set up a
connection to the Registry. Invalid queryManagerURL:
jnp://localhost:1099/InquiryService?org.apache.juddi.registry.rmi.Inquiry#inquire
[java] [junit] javax.xml.registry.InvalidRequestException: Invalid
queryManagerURL:
jnp://localhost:1099/InquiryService?org.apache.juddi.registry.rmi.Inquiry#inquire
[java] [junit] at
org.apache.ws.scout.registry.ConnectionFactoryImpl.createConnection(ConnectionFactoryImpl.java:77)
[java] [junit] at
org.jboss.internal.soa.esb.services.registry.JAXRRegistryImpl.getConnection(JAXRRegistryImpl.java:121)
[java] [junit] at
org.jboss.internal.soa.esb.services.registry.JAXRRegistryImpl.findService(JAXRRegistryImpl.java:477)
[java] [junit] at
org.jboss.internal.soa.esb.services.registry.JAXRRegistryImpl.findEPRs(JAXRRegistryImpl.java:338)
[java] [junit] at
org.jboss.soa.esb.listeners.RegistryUtil.getEprs(RegistryUtil.java:226)
[java] [junit] at
org.jboss.soa.esb.client.ServiceInvoker.loadServiceClusterInfo(ServiceInvoker.java:411)
[java] [junit] at
org.jboss.soa.esb.client.ServiceInvoker.<init>(ServiceInvoker.java:146)
[java] [junit] at
org.jboss.soa.esb.addressing.eprs.LogicalEPR.getServiceInvoker(LogicalEPR.java:98)
[java] [junit] at
org.jboss.soa.esb.epr.LogicalEPRUnitTest.test_logical_extension(LogicalEPRUnitTest.java:79)
[java] [junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[java] [junit] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[java] [junit] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[java] [junit] at java.lang.reflect.Method.invoke(Method.java:585)
[java] [junit] at junit.framework.TestCase.runTest(TestCase.java:164)
[java] [junit] at junit.framework.TestCase.runBare(TestCase.java:130)
[java] [junit] at junit.framework.TestResult$1.protect(TestResult.java:110)
[java] [junit] at junit.framework.TestResult.runProtected(TestResult.java:128)
[java] [junit] at junit.framework.TestResult.run(TestResult.java:113)
[java] [junit] at junit.framework.TestCase.run(TestCase.java:120)
[java] [junit] at junit.framework.TestSuite.runTest(TestSuite.java:228)
[java] [junit] at junit.framework.TestSuite.run(TestSuite.java:223)
[java] [junit] at junit.framework.TestSuite.runTest(TestSuite.java:228)
[java] [junit] at junit.framework.TestSuite.run(TestSuite.java:223)
[java] [junit] at
junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
[java] [junit] at junit.extensions.TestSetup$1.protect(TestSetup.java:23)
[java] [junit] at junit.framework.TestResult.runProtected(TestResult.java:128)
[java] [junit] at junit.extensions.TestSetup.run(TestSetup.java:27)
[java] [junit] at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:421)
[java] [junit] at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:912)
[java] [junit] at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:766)
[java] [junit] Caused by: java.net.MalformedURLException: unknown protocol: jnp
[java] [junit] at java.net.URL.<init>(URL.java:574)
[java] [junit] at java.net.URL.<init>(URL.java:464)
[java] [junit] at java.net.URL.<init>(URL.java:413)
[java] [junit] at
org.apache.ws.scout.registry.ConnectionFactoryImpl.createConnection(ConnectionFactoryImpl.java:74)
[java] [junit] ... 29 more
[java] [junit] 00:13:08,198 DEBUG [main][LogicalEPRUnitTest]
LogicalEPRUnitTest.esb is not a valid URL, no protocol: LogicalEPRUnitTest.esb
[java] [junit] 00:13:08,198 DEBUG [main][LogicalEPRUnitTest] Testing file:
/Users/tcunning/src/esb/JBESB_4_2_1_GA_CP/qa/build/lib/LogicalEPRUnitTest.esb
[java] [junit] 00:13:08,198 DEBUG [main][LogicalEPRUnitTest]
/Users/tcunning/src/esb/JBESB_4_2_1_GA_CP/qa/build/lib/LogicalEPRUnitTest.esb is a valid
file
[java] [junit] 00:13:08,199 DEBUG [main][LogicalEPRUnitTest] Undeploying
LogicalEPRUnitTest.esb,
url=file:/Users/tcunning/src/esb/JBESB_4_2_1_GA_CP/qa/build/lib/LogicalEPRUnitTest.esb
[java] [junit] 00:13:08,199 DEBUG [main][LogicalEPRUnitTest] Invoking
jboss.system:service=MainDeployer method=undeploy
[java] [junit] 00:13:08,199 DEBUG [main][LogicalEPRUnitTest]
args=[file:/Users/tcunning/src/esb/JBESB_4_2_1_GA_CP/qa/build/lib/LogicalEPRUnitTest.esb]
[java] [junit] 00:13:08,508 DEBUG [main][LogicalEPRUnitTest] undeployed package:
LogicalEPRUnitTest.esb
[java] [junit] 00:13:08,508 DEBUG [main][LogicalEPRUnitTest]
JBossTestServices.tearDown()
[java] [junit] Tests run: 3, Failures: 0, Errors: 1, Time elapsed: 4.083 sec
[java] [junit] Tests run: 3, Failures: 0, Errors: 1, Time elapsed: 4.083 sec
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira