<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">

<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>

                                <td>

                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">Community</a></h1>
                                                                </td>

                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
    'Target container name not set' deployment error
</h3>
<span style="margin-bottom: 10px;">
    reply from <a href="http://community.jboss.org/people/mvoegele">Michael Voegele</a> in <i>JBoss Web Services</i> - <a href="http://community.jboss.org/message/548880#548880">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p> I am facing exactly the same problem. When deploying a webservice as EJB3 stateless session bean, I get 'Target container name not set' in 'JA<span style="font-size: 10pt;">XWSDeployerHookEJB3.createDeployment'.</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>The webservice looks as follows:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span style="color: #646464; font-size: 10pt;"><span style="color: #646464; font-size: 10pt;">@Stateless<span style=": ; font-size: 2; font-color: #646464; "><p><p align="left">@WebService<span style="font-size: 10pt;">(name = </span><span style="color: #2a00ff; font-size: 10pt; ">"SilentPrint"</span><span style="font-size: 10pt;">, targetNamespace = </span><span style="color: #2a00ff; font-size: 10pt; "><span>"</span><a class="jive-link-external-small" href="http://localhost:8080/silentprint" target="_blank">http://localhost:8080/silentprint</a><span>"</span></span><span style="font-size: 10pt;">, serviceName = </span><span style="color: #2a00ff; font-size: 10pt; ">"SilentPrintService"</span><span style="font-size: 10pt;">)</span><span style="color: #7f0055; font-size: 10pt; "><strong> </strong><p><strong>public </strong><span style="color: #7f0055; font-size: 10pt; "><strong><span style="color: #7f0055; font-size: 10pt; ">class</span><span style="font-size: 10pt;"> SilentPrintServer {</span></strong><span style="font-size: 10pt;"><p align="left"><strong>&#160;&#160;&#160;&#160; <span style="color: #646464; font-size: 10pt; ">@WebMethod</span></strong><span style="font-size: 10pt;"><strong> </strong><p align="left"><strong><span style="color: #7f0055; font-size: 10pt; ">&#160;&#160;&#160;&#160; public</span><span style="font-size: 10pt;"> String sayHelloTo(String name) {</span></strong><span style="font-size: 10pt;"><strong> </strong><p align="left"><strong><span style="color: #7f0055; font-size: 10pt; ">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; return</span><span style="font-size: 10pt;"> </span><span style="color: #2a00ff; font-size: 10pt; ">"Hello "</span><span style="font-size: 10pt;"> + name;</span></strong><span style="font-size: 10pt;"><strong> </strong><p align="left"><strong>&#160;&#160;&#160;&#160; }</strong></p><p><strong>}</strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>When deploying to JBoss6M3 it works.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>When deploying to JBoss5.1.0GA it does not work and I get 'Target container name not set'. I tried on JBoss5.1.0GA 'native', which means the original JBoss5.1.0GA download. I also tried to download the newest JBoss-WS (jbossws-native-3.3.1.GA) and installed it by using '<span style="font-size: 10pt;">ant deploy-jboss510'. In both ways, I get the same error:</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"><span style="font-size: 10pt;"> </span>&#160;</p><p><span style="font-size: 10pt;">Caused by:</span><span style="color: #000080; font-size: 10pt; text-decoration: underline; ">Java.lang.IllegalArgumentException</span><span style="font-size: 10pt;">: Target container name not set<span style="font-size: 2; "><p align="left">at org.jboss.wsf.container.jboss50.deployer.JAXWSDeployerHookEJB3.createDeployment(<span style="text-decoration: underline;"><span style="color: #000080; font-size: 10pt; ">JAXWSDeployerHookEJB3.java:87</span><span style="font-size: 10pt;">)</span></span></p></span></span></p><p align="left"><span style="font-size: 10pt;">at org.jboss.wsf.container.jboss50.deployer.ArchiveDeployerHook.deploy(<span style="text-decoration: underline;"><span style="color: #000080; font-size: 10pt; ">ArchiveDeployerHook.java:71</span><span style="font-size: 10pt;">)</span></span></span><span style=": ; font-size: 2; "><p align="left">at org.jboss.wsf.container.jboss50.deployer.AbstractWebServiceDeployer.internalDeploy(<span style="text-decoration: underline;"><span style="color: #000080; font-size: 10pt; ">AbstractWebServiceDeployer.java:60</span><span style="font-size: 10pt;">)</span></span></p></span></p><p align="left"><span style="font-size: 10pt;">at org.jboss.wsf.container.jboss50.deployer.WebServiceDeployerEJB.internalDeploy(<span style="text-decoration: underline;"><span style="color: #000080; font-size: 10pt; ">WebServiceDeployerEJB.java:113</span><span style="font-size: 10pt;">)</span></span></span><span style=": ; font-size: 2; "><p align="left">at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(<span style="text-decoration: underline;"><span style="color: #000080; font-size: 10pt; ">AbstractRealDeployer.java:50</span><span style="font-size: 10pt;">)</span></span></p></span></p><p align="left"><span style="font-size: 10pt;">at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(<span style="text-decoration: underline;"><span style="color: #000080; font-size: 10pt; ">DeployerWrapper.java:171</span><span style="font-size: 10pt;">)</span></span></span><span style="font-size: 10pt;"><p align="left">... 30 more</p><p align="left">08:36:58,088 ERROR [ProfileServiceBootstrap] Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):</p><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p align="left">DEPLOYMENTS IN ERROR:</p><span style="font-size: 2; "><p align="left">Deployment "vfszip:/C:/Java/jboss/server/default/deploy/SilentPrintServer.ear/" is in error due to the following reason(s):</p></span></span></p><p align="left"><span style="color: #000080; font-size: 10pt; text-decoration: underline; ">java.lang.IllegalArgumentException</span><span style="font-size: 10pt;">: Target container name not set</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I am using jre6, so I also copied the 4 jaxws-native libraries to JBOSS_HOME/lib/endorsed, I also downloaded JBoss5.1.0GA-jdk6, no success.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Any help or hint would be very much appreciated.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Thanks.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"><span style="font-size: 10pt;"> </span>&#160;</p></span></p></span></p></span></p></span></span></p></span></p></p></span></span><span style="font-color: #646464; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"><span style="font-size: 10pt;"> </span>&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span style="font-size: 10pt;"><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/548880#548880">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss Web Services at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2044">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>