This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Ant, Maven and Other Build Tools and the fly likes creating ejb-jar.xml ?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "creating ejb-jar.xml ??" Watch "creating ejb-jar.xml ??" New topic
Author

creating ejb-jar.xml ??

smitha verghese
Ranch Hand

Joined: Jun 21, 2003
Posts: 42
Hi,
I tried creating ejb-jar.xml with ant tool but it gives me an error this way.
I dont understand where i am wrong.
Pls let me know
I have set the path as
ANT_HOME : C:\apache-ant-1.6.0
JAVA_HOME:C:\j2sdk1.4.1_01
Classpath : .;C:\j2sdk1.4.1_01\lib;C:\j2sdk1.4.1_01\jre\lib;C:\apache-ant-1.6.0\lib\ant.jar;
path : PATH%;%ANT_HOME%\bin
The error i have put up.
Thanks in advance
smitha

C:\Lookup>ant
Buildfile: build.xml
clean:
[echo] =========================================
[echo] Cleansing Lookup
[echo] =========================================
[delete] Deleting: C:\Lookup\dist\SSP_DS_HelloWorld_Client.jar
[delete] Deleting directory C:\Lookup\build\classes
banner:
[echo] ==========================================================
[echo] Lookup Build Script
[echo] ==========================================================
[echo] Use 'ant' or 'ant all' rebuild the SSPLookup kit
[echo] Use 'ant clean' to clean intermediate files
[echo] Use 'ant lookup-client-jar' to rebuild Lookup EJB client files
[echo] Use 'ant client' to rebuild lookup/client files
[echo] ==========================================================
init:
[echo] =========================================
[echo] Preparing Lookup
[echo] =========================================
[mkdir] Created dir: C:\Lookup\build\classes
[echo] Using Classpath: C:\Lookup\build\classes;C:\Common\lib\weblogic.jar
hw-compile:
[echo] =========================================
[echo] Compiling Lookup files
[echo] =========================================
[javac] Compiling 4 source files to C:\Lookup\build\classes
hw-client-jar:
[echo] =========================================
[echo] Packaging SSP_DS_HelloWorld_Client.jar
[echo] =========================================
[jar] Building jar: C:\Lookup\dist\SSP_DS_HelloWorld_Client.jar
[echo] hw-helloworld-client-jar done
hw-ejb-jar:
[echo] =========================================
[echo] Building Lookup EJB jar
[echo] =========================================
[ejbjar] Unable to load dependency analyzer: org.apache.tools.ant.util.depend.bcel.AncestorAnalyzer - dependent class not found: org/apache/bcel/classfile/ClassParser
[ejbjar] Could not resolve ( publicId: -//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN, systemId: http://java.sun.com/dtd/ejb-jar_2_0.dtd) to a local entity
BUILD FAILED
C:\Lookup\build.xml:95: IOException while parsing'ejb-jar.xml'. This probably indicates that the descriptor doesn't exist. Details: java.sun.com
Total time: 14 seconds
C:\Lookup>
Chris Mathews
Ranch Hand

Joined: Jul 18, 2001
Posts: 2712
My guess is that you do not have bcel.jar in your Ant lib directory (isn't packaged with Ant by default). You can find bcel here.
I am moving this to the Ant forum for any further discussions...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: creating ejb-jar.xml ??