ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <jakarta-...@ehatchersolutions.com>
Subject Re: Adding XMLCatalog support
Date Mon, 23 Sep 2002 20:30:26 GMT
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
> 
> 
>>>>jakarta-ant@ehatchersolutions.com 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:ant-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>
> 
> 
> 


--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message