• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

creating ejb-jar.xml ??

 
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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>
 
Ranch Hand
Posts: 2713
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
Never trust an airline that limits their passengers to one carry on iguana. Put this tiny ad in your shoe:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic