Re: Invalid merge in jboss.xml

Andrew Stevens <[email protected]> Sun, 17 Feb 2008 18:22:04 +0000
Newsgroups gmane.comp.java.xdoclet.user
Message-ID <[email protected]>
On Fri, 2008-02-15 at 09:56 +0100, Emilio Prato wrote:
> I'm using xdoclet 1.2.3, ant 1.6.2, jdk 1.5.
> I wand to include the definition of a bean witch is not processed with
> the tags to the jboss.xml. Here is the ant build file fragment:
> 
> 			
> 	<jboss version="4.0" mergeDir="${ejb.conf.dir}"
> 		   xmlencoding="UTF-8"
> 		   destDir="${ejb.gen.dir}/META-INF"
> 		   validateXML="true"	
> 	/>
> 
> and here is how it looks the jboss-beans.xml:
> 
> 	<session>
> 		<ejb-name>PA_STASv2-SO_RicercaService</ejb-name>
> 		<jndi-name>stasv2/so/ejb/RicercaFCDSBPA</jndi-name>
> 	</session>
> 
> and finally here is a fragment of the jboss.xml that I get:
> 
>   <enterprise-beans>
> 
>   
> 	<session>
> 		<ejb-name>PA_STASv2-SO_RicercaService</ejb-name>
> 		<jndi-name>stasv2/so/ejb/RicercaFCDSBPA</jndi-name>
> 	</session>
> 
>      [.....]
> 
>    </enterprise-beans>
> 
> 
> the problem is the invalid character sequence [].
> If I exclude the merge bean definition (e.g. I rename the
> jboss-beans.xml) everythink works well.
> How comes?

What encoding is your merge file saved in?  I'm thinking the invalid
character might be a UTF-8 byte order marker at the start of the merge
file, which is then being treated as character data in the combined file
(making it invalid according to the DTD).


Andrew.
-- 
http://pseudoq.sourceforge.net/  Open source java Sudoku application


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/