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>