You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Neta Bar Tal <NE...@Amdocs.com> on 2004/05/04 08:18:57 UTC

EJB problem

Hi All,
I'm trying to build my ejb's and deploy them.
I'm using the weblogic ejbc and when I give the attribute rebuild="true"
I get the following error message:

create_ejbs_job:
   [ejbjar] Could not resolve ( publicId: -//Sun Microsystems, Inc.//DTD
Enterpr
ise JavaBeans 1.1//EN, systemId:
http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd)
to a local entity
   [ejbjar] building AccountServicesBean.jar with 5 files

BUILD FAILED
/iphome.e65003a/ip/ccip/mb_ccip/bb/gcme/v60_0/build.xml:49: Following
error occu
red while executing this line
java.lang.NoClassDefFoundError: javax/ejb/EJBObject

when I don't pass this attribute it creates all the jars as expected.

any suggestions?

thanks

netaB


The information contained in this message is proprietary of Amdocs,
protected from disclosure, and may be privileged.
The information is intended to be conveyed only to the designated recipient(s)
of the message. If the reader of this message is not the intended recipient,
you are hereby notified that any dissemination, use, distribution or copying of
this communication is strictly prohibited and may be unlawful.
If you have received this communication in error, please notify us immediately
by replying to the message and deleting it from your computer.
Thank you.

RE: EJB problem

Posted by Pawanraj Sadhwani <pa...@elitecore.com>.
web logic jars are not on the classpath. u will need to put the j2ee jar of
weblogic in the classpath. or specify the dtd's as below in the ejbjar
element.

    <ejbjar descriptordir="${src.dir}" srcdir="${build.classes}">
       <dtd publicId="-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans
1.1//EN"
 
location="${weblogic.home}/classes/weblogic/ejb/deployment/xml/ejb-jar.dtd"/
>
       <dtd publicId="-//BEA Systems, Inc.//DTD WebLogic 5.1.0 EJB//EN"
 
location="${weblogic.home}/classes/weblogic/ejb/deployment/xml/weblogic-ejb-
jar.dtd"/>
    </ejbjar>

hope this helps..

btw, rebuild is supposed to be "true" by default isnt it?

Cheers
Pawan


-----Original Message-----
From: Neta Bar Tal [mailto:NETAB@Amdocs.com]
Sent: Tuesday, May 04, 2004 11:49 AM
To: user@ant.apache.org
Subject: EJB problem



Hi All,
I'm trying to build my ejb's and deploy them.
I'm using the weblogic ejbc and when I give the attribute rebuild="true"
I get the following error message:
 create_ejbs_job:
   [ejbjar] Could not resolve ( publicId: -//Sun Microsystems, Inc.//DTD
Enterpr
ise JavaBeans 1.1//EN, systemId:
http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd)
to a local entity
   [ejbjar] building AccountServicesBean.jar with 5 files
 BUILD FAILED
/iphome.e65003a/ip/ccip/mb_ccip/bb/gcme/v60_0/build.xml:49: Following
error occu
red while executing this line
java.lang.NoClassDefFoundError: javax/ejb/EJBObject

when I don't pass this attribute it creates all the jars as expected.
 any suggestions?
 thanks
 netaB


The information contained in this message is proprietary of Amdocs,
protected from disclosure, and may be privileged.
The information is intended to be conveyed only to the designated
recipient(s)
of the message. If the reader of this message is not the intended recipient,
you are hereby notified that any dissemination, use, distribution or copying
of this communication is strictly prohibited and may be unlawful. If you
have received this communication in error, please notify us immediately
by replying to the message and deleting it from your computer.
Thank you.