Hi,
I have seen some posts regarding this particular issue, but did not see a
posted solution. When I try to build ejb's with the ejbjar task I am
getting an error about the JNDI name not being set. When I look at the
intermediate jar file being created, I notice that the weblogic-ejb-jar.xml
has not been included in the jar file. Has someone had the same problem?
Here is an excerpt from my build.xml file:
<!-- ###### TARGET: accountFactory.jar ###### -->
<target name="accountFactory.jar"
depends="externals">
<ejbjar srcdir="${INTERNAL_CLASSES}"
descriptordir="${CORE_INTERNAL_SRC}/com/msdw/online/model/factory/account">
<weblogic destdir="c:\temp"
classpath="${CLASSPATH}"
compiler="jikes"/>
<include name="**/ejb-jar.xml"/>
<exclude name="**/*weblogic*.xml"/>
</ejbjar>
</target>
[java] Forking java -classpath
C:\build_classes;M:\re_coreMsdw_V1\coreMsdw\classes\jakartaregexp11.jar;M:\r
e_coreMsdw_V1\coreMsdw\classes\AdventNetSnmp.jar;M:\re_coreMsdw_V1\coreMsdw\
classes\AdventNetSnmpAgent.jar;M:\re_coreMsdw_V1\coreMsdw\classes\log4j.jar;
M:\re_coreMsdw_V1\coreMsdw\classes\Acme.jar;M:\re_coreMs
dw_V1\coreMsdw\classes\jaxp.jar;M:\re_coreMsdw_V1\coreMsdw\classes\mqjms.jar
;C:\weblogic\lib\jConnect.jar;C:\weblogic\lib\poolorb.jar;C:\weblogic\lib\te
ngahbeans.jar;C:\weblogic\lib\weblogicaux.jar;C:\weblogic\lib\weblogicbeans.
jar;C:\weblo
gic\classes;C:\jakarta-ant\lib\ant.jar;C:\jakarta-ant\lib\parser.jar;C:\jdk1
.2.2\lib\tools.jar weblogic.ejbc -compiler jikes -noexit
C:\temp\ejb-generic.jar C:\temp\ejb.jar
[java] ERROR: Error from ejbc: The JNDI name of bean AccountFactory was
not set
[java] ERROR: Error from ejbc: No JNDI name set for the referenced EJB
in EJB Reference ejb/AcctParticipantFactoryHome
[java] ERROR: Error from ejbc: No JNDI name set for the referenced EJB
in EJB Reference ejb/SubAccountFactoryHome
[java] weblogic.utils.compiler.ToolFailureException: ERROR: ejbc found
errors
[java] at weblogic.ejbc.runBody(ejbc.java, Compiled Code)
[java] at weblogic.utils.compiler.Tool.run(Tool.java:80)
[java] at weblogic.ejbc.main(ejbc.java:353)
[java] Java Result: 1
[ejbjar] deleting generic jar C:\temp\ejb-generic.jar
|