Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Ant target fails in eclipse, not via command line
Ant target fails in eclipse, not via command line [message #503757] Tue, 15 December 2009 06:02
Eclipse UserFriend
I have an ant target that uses the jebjar task:

<ejbjar destdir="${build.dir}"
                srcdir="${build.dir}/classes/main"
                descriptordir="${conf.dir}/j2ee"
                basejarname="${component}-ejb"
                genericjarsuffix=".jar"
                dependency="none">
            <include name="ejb-jar.xml" />
            <include name="jboss.xml" />
        </ejbjar>


It finds ejb-jar.xml and has problems parsing it.

IOException while parsing'ejb-jar.xml'.  This probably indicates that the descriptor doesn't exist. Details: no protocol: ejb-jar_2_0.dtd


ejb-jar.xml:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ejb-jar PUBLIC 
          "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN"
          "ejb-jar_2_0.dtd">
<ejb-jar>
.
.
.


The dtd and xml are in the same directory (${conf.dir}/j2ee). More importantly the target which uses this task runs successfully if I invoke it from the command line. Any ideas?

[Updated on: Tue, 15 December 2009 06:09] by Moderator

Previous Topic:[ASK] J2ME cannot create jar
Next Topic:Delete Me
Goto Forum:
  


Current Time: Sat Mar 15 17:51:06 EDT 2025

Powered by FUDForum. Page generated in 0.03854 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top