[jbossts-issues] [JBoss JIRA] (JBTM-959) Some XTS services fail to deploy to AS7 when deploying from Arquillian based test

Paul Robinson (Commented) (JIRA) jira-events at lists.jboss.org
Fri Nov 11 06:50:45 EST 2011


    [ https://issues.jboss.org/browse/JBTM-959?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12642076#comment-12642076 ] 

Paul Robinson commented on JBTM-959:
------------------------------------

Ivo,

I have a workaround which seems to make the tests pass. Set a fully qualified jbossHome in xt-arquillian.xml:

{code}
<?xml version="1.0" encoding="UTF-8"?>
<arquillian xmlns="http://jboss.org/schema/arquillian" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://jboss.org/schema/arquillian http://jboss.org/schema/arquillian/arquillian_1_0.xsd">

        <container qualifier="jboss" default="true">
                <configuration>
                        <property name="jbossHome">/home/paul/dev/jboss-as.ivo/testsuite/integration/target/xts</property>
            <property name="javaVmArguments">${server.jvm.args}</property>
            <property name="serverConfig">${server.config:standalone-xts.xml}</property>
                        <property name="allowConnectingToRunningServer">true</property>
                </configuration>
        </container>
</arquillian>
{code}

I accept that this is not a long term solution, but it now means that I should be able to reproduce this in a simple example. 

The next problem I have is that maven seems to still want to run the smoke tests, which I take from your previous messages is bad:

{code}
.io has been deprecated
[INFO] 
[INFO] --- maven-surefire-plugin:2.10:test (tests-xts.surefire) @ jboss-as-testsuite-integration ---
[INFO] Surefire report directory: /home/paul/dev/jboss-as.ivo/testsuite/integration/target/surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running org.jboss.as.test.xts.XTSUnitTestCase
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 277.924 sec

Results :

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

[INFO] 
[INFO] --- maven-surefire-plugin:2.10:test (smoke-default.surefire) @ jboss-as-testsuite-integration ---
[INFO] Surefire report directory: /home/paul/dev/jboss-as.ivo/testsuite/integration/target/surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running org.jboss.as.test.xts.XTSUnitTestCase
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 5.8 sec <<< FAILURE!

Results :

Tests in error: 
  org.jboss.as.test.xts.XTSUnitTestCase: Could not deploy to container

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

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5:25.745s
[INFO] Finished at: Fri Nov 11 11:37:29 GMT 2011
[INFO] Final Memory: 65M/659M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.10:test (smoke-default.surefire) on project jboss-as-testsuite-integration: There are test failures.
[ERROR] 
[ERROR] Please refer to /home/paul/dev/jboss-as.ivo/testsuite/integration/target/surefire-reports for the individual test results.
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
{code}

I'll attach the full log shortly. Just waiting for it to re-run with -X.
                
> Some XTS services fail to deploy to AS7 when deploying from Arquillian based test
> ---------------------------------------------------------------------------------
>
>                 Key: JBTM-959
>                 URL: https://issues.jboss.org/browse/JBTM-959
>             Project: JBoss Transaction Manager
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: XTS
>    Affects Versions: 4.15.3
>            Reporter: Ivo Studensky
>            Assignee: Paul Robinson
>         Attachments: jbtm-959-target.tar.gz
>
>
> Some of the XTS services fail to deploy to AS7 when deploying by an Arquillian test within the AS7 testsuite. The org.jboss.as.webservices.publish.EndpointPublisherImpl.publish() method fails in org.apache.naming.resources.FileDirContext.setDocBase() method which gets an invalid path to the AS7 tmp directory in which the context path occurs twice, see the stacktrace below and take notice of 'target/xts/standalone/tmp' substring in it. 
> This issue does not occur when the AS7 is manually started from the command line, but it only occurs when started by Arquillian from the new AS7 testsuite. However, it does not seem to hit all the XTS functionality as the wsas and wscf tests pass. Only ws-c, ws-t and ws-tx tests are hit by it.
> The stacktrace snippet from target/xts/standalone/logs/server.log:
> {noformat}
> 14:48:30,579 INFO  [org.jboss.wsf.stack.cxf.deployment.WSDLFilePublisher] (MSC service thread 1-2) WSDL published to: file:/home/studensky/job/git/jboss-as/testsuite/integration/target/xts/standalone/data/wsdl/ws-t11-client.deployment/TerminationParticipantService.wsdl
> 14:48:30,585 INFO  [org.apache.cxf.endpoint.ServerImpl] (MSC service thread 1-7) Setting the server's publish address to be http://localhost:8080/ws-t11-participant/BusinessAgreementWithCoordinatorCompletionParticipantService
> 14:48:30,597 ERROR [org.apache.catalina.core.StandardContext] (MSC service thread 1-2) Error starting static Resources: java.lang.IllegalArgumentException: Document base /home/studensky/job/git/jboss-as/testsuite/integration/target/xts/standalone/tmp/target/xts/standalone/tmp/ws-t11-client does not exist or is not a readable directory
> 	at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:148) [jbossweb-7.0.3.Final.jar:7.1.0.Alpha2-SNAPSHOT]
> 	at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:3554) [jbossweb-7.0.3.Final.jar:7.1.0.Alpha2-SNAPSHOT]
> 	at org.apache.catalina.core.StandardContext.start(StandardContext.java:3723) [jbossweb-7.0.3.Final.jar:7.1.0.Alpha2-SNAPSHOT]
> 	at org.jboss.as.webservices.publish.EndpointPublisherImpl.startWebApp(EndpointPublisherImpl.java:133) [jboss-as-webservices-server-integration-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]
> 	at org.jboss.as.webservices.publish.EndpointPublisherImpl.publish(EndpointPublisherImpl.java:103) [jboss-as-webservices-server-integration-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]
> 	at org.jboss.as.webservices.publish.EndpointPublisherImpl.publish(EndpointPublisherImpl.java:81) [jboss-as-webservices-server-integration-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]
> 	at org.jboss.as.webservices.publish.EndpointPublisherImpl.publish(EndpointPublisherImpl.java:76) [jboss-as-webservices-server-integration-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]
> 	at org.jboss.as.webservices.service.EndpointPublishService.start(EndpointPublishService.java:87) [jboss-as-webservices-server-integration-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]
> 	at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
> 	at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_29]
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_29]
> 	at java.lang.Thread.run(Thread.java:662) [:1.6.0_29]
> 14:48:30,599 ERROR [org.apache.catalina.core.StandardContext] (MSC service thread 1-2) Error in resourceStart()
> 14:48:30,603 ERROR [org.apache.catalina.core.StandardContext] (MSC service thread 1-2) Context [/ws-t11-client] startup failed due to previous errors
> 14:48:30,603 INFO  [org.apache.catalina.core.StandardContext] (MSC service thread 1-2) Container org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/ws-t11-client] has not been started
> {noformat}
> The list of services affected by this issue:
> /ws-t11-client
> /ws-t11-participant
> /ws-t11-coordinator
> /ws-c11

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbossts-issues mailing list