Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

creating ejb-jar.xml ??

 
smitha verghese
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2712
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic