Hi,

 

our products are based on j2ee, and for different customers we have different 
DeploymentDeskriptors.

So, if we add an ejb-ref in a project, we must do it for the 
Sun-DD(ejb-jar.xml), Websphere(...xmi) and JBoss(jboss.xml), and we want to use 
xmltask.

I had problems with each file, cause of loading external DTDs, or namespaces, 
but my current problem is this:

 

I want to insert an ejbRefBindings to the Websphere Deskriptor, and the snippet 
looks like this:

 

<ejbRefBindings xmi:id="EjbRefBinding_1053346050283" 
jndiName="IfxClientConnector">

               <bindingEjbRef xmi:type="common:EJBLocalRef" 
href="META-INF/ejb-jar.xml#EJBLocalRef_1051520213817"/>

</ejbRefBindings>

 

When I do this, I get the error:

 

org.xml.sax.SAXParseException: The prefix "xmi" for attribute "xmi:id" is not 
bound.

 

But when I change the following in 

com.oopsconsultancy.xmltask.InsertAction

to false:

  

{

    // why do I do this ? Causes problems with

    // Pete Hale and namespace-scoped insertions

    dfactory.setNamespaceAware(false);

}

 

everything works fine.

 

Is it possible to set this value via ant: <xmltask namespaceAware="false"..>

or is there a different solution?

 

Many thanks

Burkhard

-----------------------------------------------------------

WINCOR NIXDORF International GmbH 
Sitz der Gesellschaft: Paderborn 
Registergericht Paderborn HRB 3507 
Geschäftsführer: Eckard Heidloff (Vorsitzender), Stefan Auerbach, Jürgen Wilde 
Vorsitzender des Aufsichtsrats: Karl-Heinz Stiller  
Steuernummer: 339/5884/0031 
Ust-ID Nr.: DE812927716 
WEEE-Reg.-Nr. DE44477193 

 

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Xmltask-users mailing list
Xmltask-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xmltask-users

Reply via email to