I have a Servlet application using Castor-XML which is working well on Tomcat.

On Resin, however, I'm getting the following exception when I try to unmarshal:

throwable class name: org.exolab.castor.xml.MarshalException
toString(): org.xml.sax.SAXException: The namespace associated with the prefix 'null' could not be resolved.
getMessage(): The namespace associated with the prefix 'null' could not be resolved.
Stack Trace: org.xml.sax.SAXException: The namespace associated with the prefix 'null' could not be resolved.
at org.exolab.castor.xml.UnmarshalHandler.processAttributeList(UnmarshalHandler.java:1844)
at org.exolab.castor.xml.UnmarshalHandler.startElement(UnmarshalHandler.java:874)
at org.exolab.castor.xml.util.DOMEventProducer.process(DOMEventProducer.java:245)
at org.exolab.castor.xml.util.DOMEventProducer.process(DOMEventProducer.java:182)
at org.exolab.castor.xml.util.DOMEventProducer.processChildren(DOMEventProducer.java:333)
at org.exolab.castor.xml.util.DOMEventProducer.process(DOMEventProducer.java:247)
at org.exolab.castor.xml.util.DOMEventProducer.process(DOMEventProducer.java:182)
at org.exolab.castor.xml.util.DOMEventProducer.processChildren(DOMEventProducer.java:333)
at org.exolab.castor.xml.util.DOMEventProducer.process(DOMEventProducer.java:247)
at org.exolab.castor.xml.util.DOMEventProducer.process(DOMEventProducer.java:182)
at org.exolab.castor.xml.util.DOMEventProducer.start(DOMEventProducer.java:110)
at org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:507)
at org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:591)
at org.sourceid.sso.util.XMLUtils.unmarshal(XMLUtils.java:512)


I am using Xerces 2.2.1, and have put a copy of it in Resin's shared lib directory, as well as my servlet's private WEB-INF/lib directory, so there is no chance of a parser version mismatch. I'm at a loss at this point to explain this exception, or what it's looking for, or why it's working (with the same XML document I believe) on Tomcat. Any help would be appreciated.

Thank you,

Bryan

Reply via email to