Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 1 of 1

Thread: error when build jar using Apache Ant 1.6.5

  1. #1
    Junior Member
    Join Date
    Aug 2017
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Post error when build jar using Apache Ant 1.6.5

    Kindly help me to fix the problem. I am getting below error when build jar using Apache Ant 1.6.5
    I am using weblogic workspace(bea weblogic9.2), jdk150_04,

    [java] DEPRECATED: The weblogic.ejbc compiler is deprecated and will be removed in a future version of WebLogic Server. Please use weblogic.appc instead.
    [java] There are 2 nested errors:
    [java] weblogic.utils.compiler.ToolFailureException: ERROR: Error from ejbc: Unable to load a class specified in your ejb-jar.xml: com.elsevier.virtual.ejb.ProfileEJB
    [java] at weblogic.ejbc20.formatErrorsInCollection(ejbc20.ja va:659)
    [java] at weblogic.ejbc20.runBody(ejbc20.java:517)
    [java] at weblogic.utils.compiler.Tool.run(Tool.java:158)
    [java] at weblogic.utils.compiler.Tool.run(Tool.java:115)
    [java] at weblogic.ejbc.main(ejbc.java:36)
    [java] and
    [java] weblogic.utils.compiler.ToolFailureException: ERROR: ejbc couldn't invoke compiler
    [java] at weblogic.ejbc20.runBody(ejbc20.java:518)
    [java] at weblogic.utils.compiler.Tool.run(Tool.java:158)
    [java] at weblogic.utils.compiler.Tool.run(Tool.java:115)
    [java] at weblogic.ejbc.main(ejbc.java:36)

    BUILD FAILED
    C:\apache-ant-1.6.5\VEB\build.xml:95: Java returned: 1

    ejb_jar.xml
    ========

    <?xml version="1.0"?>
    <!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN' 'http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd'>
    <ejb-jar id="ejb-jar_ID">
    <enterprise-beans>
    <session>
    <description></description>
    <ejb-name>Profile</ejb-name>
    <home>com.virtual.ejb.ProfileHome</home>
    <remote>com.virtual.ejb.Profile</remote>
    <ejb-class>com.virtual.ejb.ProfileEJB</ejb-class>
    <session-type>Stateless</session-type>
    <transaction-type>Container</transaction-type>
    <env-entry>
    <env-entry-name>virtualDSN</env-entry-name>
    <env-entry-type>java.lang.String</env-entry-type>
    <env-entry-value>jdbc/virtualDSN</env-entry-value>
    </env-entry>
    </session>
    <session>

    build.xml
    =======

    <target depends="compile" name="deployprep">
    <mkdir dir="${dist.home}"/>
    <jar basedir="${build.home}" jarfile="${dist.home}/std_VirtualEJB.jar"/>

    <java classname="weblogic.ejbc" fork="yes" failonerror="yes">
    <sysproperty key="weblogic.home" value="${bea.serverhome}"/>
    <arg line="-compiler javac ${dist.home}/std_VirtualEJB.jar ${dist.home}/${app.name}.jar"/>
    <classpath>
    <pathelement path="${bea.serverhome}\server\lib\weblogic.jar;C: \bea\weblogic92\config\VEB\applications\docs-virtuale\WEB-INF\lib\log4j-1.2.8.jar"/>
    </classpath>
    </java>
    <delete file="${dist.home}/std_VirtualEJB.jar"/>
    <delete dir="ejbcgen"/>
    </target>
    Last edited by Radhakrishnan-Sai; August 23rd, 2017 at 11:21 AM.

Similar Threads

  1. read the word file without using apache poi jar
    By sivanand in forum What's Wrong With My Code?
    Replies: 1
    Last Post: August 21st, 2013, 08:41 AM
  2. Replies: 2
    Last Post: July 2nd, 2013, 04:59 PM
  3. Error in ant files
    By workforsiva in forum What's Wrong With My Code?
    Replies: 1
    Last Post: April 17th, 2013, 08:38 AM
  4. Replies: 0
    Last Post: November 9th, 2012, 02:38 AM
  5. [SOLVED] jar file Built(clean and build) perfectly, but not running as jar
    By chronoz13 in forum What's Wrong With My Code?
    Replies: 18
    Last Post: July 11th, 2011, 11:41 AM