[jboss-user] [JBoss Web Services] - 'Target container name not set' deployment error
Michael Voegele
do-not-reply at jboss.com
Sun Jun 20 03:18:51 EDT 2010
Michael Voegele [http://community.jboss.org/people/mvoegele] replied to the discussion
"'Target container name not set' deployment error"
To view the discussion, visit: http://community.jboss.org/message/548880#548880
--------------------------------------------------------------
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 at 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 setat 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
[http://community.jboss.org/message/548880#548880]
Start a new discussion in JBoss Web Services at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2044]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100620/b650fcc8/attachment.html
More information about the jboss-user
mailing list