[ 
https://issues.apache.org/jira/browse/TUSCANY-3829?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12989598#comment-12989598
 ] 

Mike Edwards commented on TUSCANY-3829:
---------------------------------------

Looking at the classpath for these testcases, I note that the jaxws API classes 
derive from the jaxws-api.jar at the 2.2.1 level.

Investigating, I find that there is an entry in the POM for ws-external-client:

        <dependency>
            <groupId>com.sun.xml.ws</groupId>
            <artifactId>jaxws-rt</artifactId>
            <version>2.2.1</version>
        </dependency>

This is in effect patching in a set of replacement classes for some of the 
JAXWS stuff that is in the base JDK in 1.6.x - this is in general a BAD idea 
since it can lead to mismatches of material that is in the JDK and in the 
additional jars, which I believe is what has happened here.

We should be VERY cautious in using any packages that attempt to replace stuff 
in the base JDK.

The fix for this bug is simply to REMOVE the dependency expressed in 
ws-external-client - the build then runs clean.

Committed in:

1066413

> Test Failure whe building trunk - iTest WS Launcher Axis2 testscases all fail
> -----------------------------------------------------------------------------
>
>                 Key: TUSCANY-3829
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-3829
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Integration Tests
>    Affects Versions: Java-SCA-2.x
>            Reporter: Mike Edwards
>            Assignee: Mike Edwards
>             Fix For: Java-SCA-2.x
>
>
> Running the iTests when building trunk results in all the tests in iTest WS 
> Launcher failing.
> All test fail with a method not found fault for
> javax.xml.ws.Webfault.messageName( String ) 
> It is notable that this is a jaxws API class and it is being called from an 
> internal com.sun implementation class.  This smacks strongly of a code level 
> mismatch.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to