It looks like it relates to the handling of namespaces. This code is
writing out the WSDL <definitions> element start tag, adding all the
namespace declarations to that element. Somehow there's a namespace it's
trying to write with a null URI. Hmmm. The best I can suggest is that
you either debug through this or add a println to the source code and
recompile so that you can see the namespace prefix and URI it's trying
to write.
- Dennis
Tim Sawyer wrote:
Ok, so I spoke to soon. Fixing the name, I got an error where it couldn't cope
with the <?xml bit at the start of the file. I took that out, and now I get
java.lang.NullPointerException
org.jibx.runtime.impl.UTF8StreamWriter.writeAttributeText(UTF8StreamWriter.java:181)
org.jibx.runtime.impl.XMLWriterBase.addAttribute(XMLWriterBase.java:338)
org.jibx.runtime.impl.MarshallingContext.attribute(MarshallingContext.java:488)
org.jibx.soap.wsdl.Sender.writeWSDL(Sender.java:144)
org.jibx.soap.server.SOAPServlet.doGet(SOAPServlet.java:214)
javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
Any clues?
Cheers,
Tim.
Tim Sawyer <[EMAIL PROTECTED]> wrote :
Ah, my fault.
My schema name was not the name in my web service definition...doh!
Thanks,
Tim.
Dennis Sosnoski &lang=en">[EMAIL PROTECTED]>
wrote :
Hi Tim,
It looks like it's not finding the schema file. Where did you put the
schema file in the web application? The path you supply is supposed to
be relative to the application's /WEB-INF directory, and the code
actually uses a ServletContext.getResourceAsStream() call with the path
"/WEB-INF" + your-schema-path.
Some better error handling would obviously be worthwhile here. :-[ Let
me know if this tells you what went wrong.
- Dennis
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users