Community

'Target container name not set' deployment error

reply from Michael Voegele in JBoss Web Services - View the full discussion

I am facing exactly the same problem. When deploying a webservice as EJB3 stateless session bean, I get 'Target container name not set' in 'JAXWSDeployerHookEJB3.createDeployment'.

 

The webservice looks as follows:

 

@Stateless

@WebService(name = "SilentPrint", targetNamespace = "http://localhost:8080/silentprint", serviceName = "SilentPrintService")

public class SilentPrintServer {

     @WebMethod

     public String sayHelloTo(String name) {

          return "Hello " + name;

     }

}

 

When deploying to JBoss6M3 it works.

 

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 'ant deploy-jboss510'. In both ways, I get the same error:

 

Caused by:Java.lang.IllegalArgumentException: Target container name not set

at org.jboss.wsf.container.jboss50.deployer.JAXWSDeployerHookEJB3.createDeployment(JAXWSDeployerHookEJB3.java:87)

at org.jboss.wsf.container.jboss50.deployer.ArchiveDeployerHook.deploy(ArchiveDeployerHook.java:71)

at org.jboss.wsf.container.jboss50.deployer.AbstractWebServiceDeployer.internalDeploy(AbstractWebServiceDeployer.java:60)

at org.jboss.wsf.container.jboss50.deployer.WebServiceDeployerEJB.internalDeploy(WebServiceDeployerEJB.java:113)

at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)

at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)

... 30 more

08:36:58,088 ERROR [ProfileServiceBootstrap] Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

 

DEPLOYMENTS IN ERROR:

Deployment "vfszip:/C:/Java/jboss/server/default/deploy/SilentPrintServer.ear/" is in error due to the following reason(s):

java.lang.IllegalArgumentException: Target container name not set

 

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.

 

Any help or hint would be very much appreciated.

 

Thanks.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Reply to this message by going to Community

Start a new discussion in JBoss Web Services at Community