This content has been marked as final.
Show 5 replies
-
1. Re: jbossws 1.0.4 kills my MBean
doug.palmer Jan 17, 2007 8:01 AM (in response to doug.palmer)Ignore my original diagnosis; the web service is removed when the start method fails. The problem appears to be the same as this http://jira.jboss.com/jira/browse/JBWS-1407
Regards
Doug -
2. Re: jbossws 1.0.4 kills my MBean
doug.palmer Jan 17, 2007 8:04 AM (in response to doug.palmer)"Doug.Palmer" wrote:
Ignore my original diagnosis; the web service is removed when the start method fails. The problem appears to be the same as this http://jira.jboss.com/jira/browse/JBWS-1407?page=all.
Regards
Doug
No it isn't but it is similar but the "premature end of file" occurs in maindeployer.start().
Regards
Doug -
3. Re: jbossws 1.0.4 kills my MBean
doug.palmer Jan 17, 2007 8:58 AM (in response to doug.palmer)Now I'm really confused. If I use any of the following
mainDeployer.deploy(warFile.toString());
mainDeployer.deploy(warFile.toURL());
mainDeployer.deploy(warFile.toURL().toString());
then the war is deployed correctly but if I callmainDeployer.deploy(new DeploymentInfo(warFile.toURL(), di, server))
I get org.jboss.ws.metadata.wsdl.WSDLException: org.xml.sax.SAXParseException: Premature end of file.
Does anyone know why this would happen?
Regards
Doug -
4. Re: jbossws 1.0.4 kills my MBean
doug.palmer Jan 17, 2007 9:06 AM (in response to doug.palmer)Calling
mainDeployer.deploy(new DeploymentInfo(warFile.toURL(), null, server));
also results in the war file being deployed correctly but I still get premature end of file errors if I nest the deployment and I need to nest the deployment. Do I need to set anything on the DeploymentInfo?
Regards
Doug -
5. Re: jbossws 1.0.4 kills my MBean
doug.palmer Jan 17, 2007 1:47 PM (in response to doug.palmer)Ok, I've found a workaround. Possibly even a more appropriate solution. I now build the war in the MBean init() method (instead of in the create method) and call deployUrl() instead of mainDeployer.deploy().
This works with JBossWS 1.0.0 to JBossWS 1.0.4 on JBoss 4.0.4 and JBoss 4.0.5.
Regards
Doug