<html><head><META content="text/html; charset=utf-8" http-equiv="Content-Type">

<STYLE><!-- /* Style Definitions */ p.ece35efa-dd75-44ff-8d4d-cfc31848dfd6, li.ece35efa-dd75-44ff-8d4d-cfc31848dfd6, div.ece35efa-dd75-44ff-8d4d-cfc31848dfd6, table.ece35efa-dd75-44ff-8d4d-cfc31848dfd6Table        {margin:0cm; margin-bottom:.0001pt;}div.Section1 {page:Section1;}--></STYLE>

<META CONTENT="text/html; charset=us-ascii" HTTP-EQUIV="Content-Type">
<meta content="Microsoft Word 11 (filtered medium)" name=Generator>
<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:#606420;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Arial;
        color:windowtext;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>

</head><BODY>
<P CLASS="ece35efa-dd75-44ff-8d4d-cfc31848dfd6">

<div class=Section1>

<p class=MsoNormal><font face=Arial size=2><span style='font-size:10.0pt;
font-family:Arial'>I've written a WS client using CXF.&nbsp; It works perfectly fine
outside of an app server, as a standalone application.&nbsp; Now I need to get it
working inside JBoss 4.2.1.&nbsp; I have a web app (WAR) that needs to make some
calls to the WS that I'm consuming.&nbsp; I keep getting the following error
message...<o:p></o:p></span></font></p>

<p class=MsoNormal><font face=Arial size=2><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><u><font color=navy face="Courier New" size=2><span style='font-size:10.0pt;font-family:"Courier New";color:navy'>java.lang.ClassCastException</span></font></u><font color=black face="Courier New" size=2><span style='font-size:10.0pt;font-family:
"Courier New";color:black'>: org.apache.cxf.jaxws.ServiceImpl cannot be cast to
javax.xml.ws.spi.ServiceDelegate21<o:p></o:p></span></font></p>

<p class=MsoNormal><font color=black face="Courier New" size=2><span style='font-size:10.0pt;font-family:"Courier New";color:black'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font color=black face=Arial size=2><span style='font-size:
10.0pt;font-family:Arial;color:black'>This happens when my code tries to
execute...<o:p></o:p></span></font></p>

<p class=MsoNormal><font color=black face="Courier New" size=2><span style='font-size:10.0pt;font-family:"Courier New";color:black'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><b><font color=black face="Courier New" size=2><span style='font-size:10.0pt;font-family:"Courier New";color:black;font-weight:bold'>protected</span></font></b><font color=black face="Courier New" size=2><span style='font-size:10.0pt;font-family:
"Courier New";color:black'> Service(java.net.URL wsdlDocumentLocation, QName
serviceName)</span></font><font face=Arial size=2><span style='font-size:10.0pt;
font-family:Arial'><o:p></o:p></span></font></p>

<p class=MsoNormal><font face="Times New Roman" size=3><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font face="Times New Roman" size=3><span style='font-size:
12.0pt'>(My service client extends Service.&nbsp; That's the way CXF's wsdl2java
generated it.)<o:p></o:p></span></font></p>

<p class=MsoNormal><font face="Times New Roman" size=3><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font face="Times New Roman" size=3><span style='font-size:
12.0pt'>I've tried the advice found here...<o:p></o:p></span></font></p>

<p class=MsoNormal><font face="Times New Roman" size=3><span style='font-size:
12.0pt'><a href="http://www.mail-archive.com/cxf-user@incubator.apache.org/msg03499.html">http://www.mail-archive.com/cxf-user@incubator.apache.org/msg03499.html</a><o:p></o:p></span></font></p>

<p class=MsoNormal><font face="Times New Roman" size=3><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font face="Times New Roman" size=3><span style='font-size:
12.0pt'>It didn't seem to do the trick for me.&nbsp; It got me past one error, but
straight into this one.<o:p></o:p></span></font></p>

<p class=MsoNormal><font face="Times New Roman" size=3><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font face="Times New Roman" size=3><span style='font-size:
12.0pt'>Any ideas?<o:p></o:p></span></font></p>

</div>

</P>
<P><SPAN STYLE="FONT-SIZE: 8pt">------------------------- </SPAN></P>
<P><SPAN STYLE="FONT-SIZE: 8pt">This e-mail and any attachments may contain confidential material for the sole use of the intended recipient. If you are not the intended recipient, please be aware that any disclosure, copying, distribution or use of this e-mail or any attachment is prohibited. If you have received this e-mail in error, please contact the sender and delete all copies.</SPAN></P>
<P><SPAN STYLE="FONT-SIZE: 8pt">Thank you for your cooperation </SPAN></P></BODY></html>