You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Thomas Diesler (JIRA)" <ji...@apache.org> on 2008/04/08 14:53:24 UTC

[jira] Created: (CXF-1511) WrappedMessageContext does not implement SOAPMessageContext

WrappedMessageContext does not implement SOAPMessageContext
-----------------------------------------------------------

                 Key: CXF-1511
                 URL: https://issues.apache.org/jira/browse/CXF-1511
             Project: CXF
          Issue Type: Bug
    Affects Versions: 2.0.5
            Reporter: Thomas Diesler


[tdiesler@tddell trunk]$ ant -Dtest=jaxws/binding test

tests-run-internal:
    [junit] Running org.jboss.test.ws.jaxws.binding.SOAPBindingTestCase
    [junit] Retrieving document at 'http://localhost:8080/jaxws-binding?wsdl'.
    [junit] Tests run: 2, Failures: 1, Errors: 1, Time elapsed: 6.716 sec
    [junit] Test org.jboss.test.ws.jaxws.binding.SOAPBindingTestCase FAILED


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


[jira] Updated: (CXF-1511) WrappedMessageContext does not implement SOAPMessageContext

Posted by "Thomas Diesler (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-1511?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thomas Diesler updated CXF-1511:
--------------------------------


To reproduce, please have a look at

http://jbws.dyndns.org/mediawiki/index.php?title=Building_From_Source

> WrappedMessageContext does not implement SOAPMessageContext
> -----------------------------------------------------------
>
>                 Key: CXF-1511
>                 URL: https://issues.apache.org/jira/browse/CXF-1511
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.0.5
>            Reporter: Thomas Diesler
>
> [tdiesler@tddell trunk]$ ant -Dtest=jaxws/binding test
> tests-run-internal:
>     [junit] Running org.jboss.test.ws.jaxws.binding.SOAPBindingTestCase
>     [junit] Retrieving document at 'http://localhost:8080/jaxws-binding?wsdl'.
>     [junit] Tests run: 2, Failures: 1, Errors: 1, Time elapsed: 6.716 sec
>     [junit] Test org.jboss.test.ws.jaxws.binding.SOAPBindingTestCase FAILED

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


[jira] Commented: (CXF-1511) WrappedMessageContext does not implement SOAPMessageContext

Posted by "Thomas Diesler (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-1511?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12586785#action_12586785 ] 

Thomas Diesler commented on CXF-1511:
-------------------------------------

Caused by: java.lang.ClassCastException: org.apache.cxf.jaxws.context.WrappedMessageContext
        at org.jboss.test.ws.jaxws.binding.SOAPEndpointBean.namespace(SOAPEndpointBean.java:55)
        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.jboss.wsf.container.jboss42.DefaultInvocationHandler.invoke(DefaultInvocationHandler.java:102)
        at org.jboss.wsf.stack.cxf.AbstractInvoker.invoke(AbstractInvoker.java:113)


> WrappedMessageContext does not implement SOAPMessageContext
> -----------------------------------------------------------
>
>                 Key: CXF-1511
>                 URL: https://issues.apache.org/jira/browse/CXF-1511
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.0.5
>            Reporter: Thomas Diesler
>
> [tdiesler@tddell trunk]$ ant -Dtest=jaxws/binding test
> tests-run-internal:
>     [junit] Running org.jboss.test.ws.jaxws.binding.SOAPBindingTestCase
>     [junit] Retrieving document at 'http://localhost:8080/jaxws-binding?wsdl'.
>     [junit] Tests run: 2, Failures: 1, Errors: 1, Time elapsed: 6.716 sec
>     [junit] Test org.jboss.test.ws.jaxws.binding.SOAPBindingTestCase FAILED

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


[jira] Commented: (CXF-1511) WrappedMessageContext does not implement SOAPMessageContext

Posted by "Thomas Diesler (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-1511?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12586783#action_12586783 ] 

Thomas Diesler commented on CXF-1511:
-------------------------------------

   @Resource
   public WebServiceContext context;


   public String namespace()
   {
      try
      {
         SOAPMessageContext msgContext = (SOAPMessageContext)context.getMessageContext();
         SOAPMessage soapMessage = msgContext.getMessage();
         SOAPEnvelope soapEnvelope = (SOAPEnvelope)soapMessage.getSOAPPart().getEnvelope();
         String nsURI = soapEnvelope.getNamespaceURI();

         log.info(nsURI);

         return nsURI;
      }
      catch (SOAPException ex)
      {
         throw new WebServiceException(ex);
      }
   }


> WrappedMessageContext does not implement SOAPMessageContext
> -----------------------------------------------------------
>
>                 Key: CXF-1511
>                 URL: https://issues.apache.org/jira/browse/CXF-1511
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.0.5
>            Reporter: Thomas Diesler
>
> [tdiesler@tddell trunk]$ ant -Dtest=jaxws/binding test
> tests-run-internal:
>     [junit] Running org.jboss.test.ws.jaxws.binding.SOAPBindingTestCase
>     [junit] Retrieving document at 'http://localhost:8080/jaxws-binding?wsdl'.
>     [junit] Tests run: 2, Failures: 1, Errors: 1, Time elapsed: 6.716 sec
>     [junit] Test org.jboss.test.ws.jaxws.binding.SOAPBindingTestCase FAILED

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