[jdom-interest] JDOM via Servlet

John Muhlestein jmuhlestein at i-link.net
Mon Jul 23 13:42:35 PDT 2001

I seem to continue to be running up against a brick wall trying to pass XML
to a servlet and then building a JDOM Document (see SAXBuilder.buid()
weirdness and second try).  I have decided to ignore my entire back-end
application and just concentrate on sending XML and building the Document.
Thanks to Joseph Bowbeer I have come up with some code I thought would do
the trick (attempting to buffer the XML stream as mentioned in the FAQ) and
so far no luck.

Here are the details:
Tomcat 3.2
Xerces 1.4.1
JDOM b7 (cvs 7/14/2001)

When I attempt SAXBuilder.build() the servlet hangs and I ultimately receive

    java.io.FileNotFoundException: http://devboard/xml/servlet/whlsl 	
	at com.ilink.whlsl.util.WhlslPostTest.send(WhlslPostTest.java:39)

	at com.ilink.whlsl.util.WhlslPostTest.main(WhlslPostTest.java:77) 

If I skip the build and just echo back my request the servlet returns
HttpURLConnection.HTTP_OK and the result is the XML that I POSTed to the

I hava attached the XML, the class the POST's and the servlet (They are all

If there are any other suggestions, please, let me know.  

thanks for the help,


 <<WhlslServlet.java>>  <<WhlslPostTest.java>>  <<whlsl.xml>> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: WhlslServlet.java
Type: application/octet-stream
Size: 4081 bytes
Desc: not available
Url : http://jdom.org/pipermail/jdom-interest/attachments/20010723/4ff4c2d7/WhlslServlet.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: WhlslPostTest.java
Type: application/octet-stream
Size: 2832 bytes
Desc: not available
Url : http://jdom.org/pipermail/jdom-interest/attachments/20010723/4ff4c2d7/WhlslPostTest.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: whlsl.xml
Type: application/octet-stream
Size: 676 bytes
Desc: not available
Url : http://jdom.org/pipermail/jdom-interest/attachments/20010723/4ff4c2d7/whlsl.obj

More information about the jdom-interest mailing list