[jdom-interest] JDOM, Resin 2.0.13, org.jdom.input.SAXBuilder.build()

John Rosocha john at clandecadence.com
Thu May 12 14:59:35 PDT 2005

I have a jsp file listed below (and running here: 
http://www.clandecadence.com/john/jdom.jsp). I am using the JDOM 1.0 
release against an Atom.xml file (located here:  
http://jrosocha.blogspot.com/atom.xml ).

Locally on my pc, running Tomcat 5.5.9 Server, Resin 2.1.14 and 3.0.13, 
this file executes fine with : [Document: No DOCTYPE declaration, Root 
is [Element: ]] as output.

Running at the supplied URL above ( 
http://www.clandecadence.com/john/jdom.jsp ), this file executes with 
the following error: Error: org.jdom.IllegalNameException: The name 
"xml:lang" is not legal for JDOM/XML attributes: Attribute names cannot 
contain colons.

I can not figure out how or why this is the case. My local apps run 
fine, but when deployed to my lunarpages host, things fall apart. I've 
tried several different ways to build the document with JDOM and all 
fail in the same fashion.

Can anyone help me?
jsp file below ------------

try {
  java.net.URL atomURL = new 
  org.jdom.input.SAXBuilder domSaxBuilder = new org.jdom.input.SAXBuilder();
  org.jdom.Document atomDocument = domSaxBuilder.build( 
atomURL.openStream() );
} catch (Exception e)
  out.print("Error: " + e);

More information about the jdom-interest mailing list