0

I have a mabven project structure as follow

project1 -- Main pom is here

project2 -- This is my EAR project

Project3 -- This is my JAX-WS client project

Project4 -- This is my EAR project

All of these are bundled together in a single EAR file. Maven build run successfully and ear also gets deployed to WebSphere(v7) from ADMIN console.

But When I am trying to publish it to WAS from eclipse(I have web sphere developer tools plugin installed in my Eclipse) it shows some weird error as follows..

javax.wsdl.WSDLException: WSDLException: faultCode=PARSER_ERROR: Problem parsing 'file:/C:/Workspaces/Project3/target/classes/META-INF/wsdl/'.: org.xml.sax.SAXParseException: Content is not allowed in prolog.

Any help will be appreciated.

ᄂ ᄀ
  • 5,669
  • 6
  • 43
  • 57
Arajit
  • 133
  • 3
  • 15
  • That message typically happens when there are extra characters inserted prior to the XML declaration, which looks like this . Check the WSDL file and remove any of these characters – Alasdair Dec 11 '15 at 19:01
  • There is nothing like that. Same ear is getting deployed to WAS when I am deploying it through admin console – Arajit Dec 11 '15 at 23:53
  • I assume you aren't deploying the application from WDT? Do you have a full stack trace or is that all you are seeing? Do you know if the XML file has the unicode BOM character in it? Any chance you could provide the WSDL file? – Alasdair Dec 16 '15 at 00:29
  • I am not deploying using WDT. I am just trying to deploy from inside Eclipse. – Arajit Dec 17 '15 at 18:07
  • How to Identify if it has BOM character in it? Any suggestion? – Arajit Dec 17 '15 at 18:08
  • I think if you look in a hex viewer it'll show up as these hex codes in the first 3 bytes: 0xEF 0xBB 0xBF. If you aren't using WDT (or RAD which is based on WDT) how are you deploying from inside Eclipse? Eclipse doesn't come with any support for deploying to WAS. – Alasdair Dec 18 '15 at 00:31
  • I tried using Hex Editor to check the WSDL file.It shows something like below.. 3C 3F 78 6D 6C 20 76 65 72 73 69 6F 6E 3D 22 31. Also you are right, I am using WDT plugin inside eclipse to publish to WAS – Arajit Dec 21 '15 at 16:07

0 Answers0