Again, do you have a stack trace?! :)
What line in XMLCatalog is throwing it?
Erik
Kyle Adams wrote:
Background:
I'm writing a task that will extract all deployment descriptors from an EAR file. All of our EJBs have their deployment descriptors in META-INF/ejb-jar.xml, so we need to extract those to ${dest.dir}/[EJB NAME]/META-INF/ejb-jar.xml. Otherwise I'd just do several unzips with patternsets & filesets.
The task reads in the application.xml to find all of the EJBs contained within. The execute() function sends the file (application.xml) off to a helper fuction, createDom(), who returns a Document object from that file.
The error occurs in this chunk of code from createDom():
// Step 1: create a DocumentBuilderFactory and configure it DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
// Step 2: create a DocumentBuilder that satisfies the constraints // specified by the DocumentBuilderFactory DocumentBuilder db = null; db.setEntityResolver(xmlCatalog);
Specifically, that last line is the one throwing the NPE.
Kyle
[EMAIL PROTECTED] 09/23/02 04:01PM >>>
Could you share some details of that NPE so we can track it down?
From what I recall, I don't think you even need to call setProject,
but that probably wouldn't hurt.
Erik
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
