ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Quintus, Guenter" <guenter.quin...@wirecard.com>
Subject RE: HELP: WLS ejb building error
Date Fri, 09 Nov 2001 16:34:25 GMT
Hi,

i had this error some time ago, too.
It just tells you that the classes specified in your descriptor (Bean
class, home, remote or local interface) can't be found in the specified
<ejb>.jar file. Did you compare the classnames inside your dd with the
real classnames, also packages? Or are they not included because the
directories are not right?
I can't you tell if you can look into the jar file itself i had just
used the weblogic ejb compiler by calling a java target ...

cu,
Guenter

-----Original Message-----
From: Douglas WF Acheson [mailto:dwfa@yahoo.com]
Sent: Friday, November 09, 2001 5:23 PM
To: ant-user@jakarta.apache.org
Subject: HELP: WLS ejb building error


Hello,

  I am using ANT v1.4 and WLS v6.1 with SP1.  I am trying to create a
MDBean the error I am getting is 
build.ejb:
    [mkdir] Created dir: C:\Home\Projects\BEA\CIBC\track1\build\lib
   [ejbjar] building consumer.jar with 2 files
     [ejbc]
     [ejbc] ERROR: Error from ejbc: Unable to load a class specified in
your ejb-jar.xml: <EJB className goes here>
     [ejbc] ERROR: ejbc found errors

What it is telling me is that it cannot find the class specified in the
DD? HELP PLEASE ...

Here is the ant task

<!--
	NAME		: build.ejb
	Purpose : compiles and builds all ejb classes into jar files
-->
	<target name="build.ejb" depends="compile">
		<mkdir dir="${build.home}/lib"/>
		<ejbjar srcdir="${build.home}/classes"
	
descriptordir="${artifacts.home}/deploy/ejb">
			<weblogic
	
destdir="${sandbox.dir}/config/${wls.domain}/applications"
       	 suffix=".jar"
				 rebuild="false"
				 keepgeneric="false">
				<classpath   refid="build.classpath"/>
       	<wlclasspath refid="build.classpath"/>
			</weblogic>
			<dtd publicId="-//Sun Microsystems, Inc.//DTD
Enterprise JavaBeans
2.0//EN"
	
location="${artifacts.home}/deploy/ejb/dtd/ejb20-jar.dtd"/>
			<dtd publicId="-//BEA Systems, Inc.//DTD
WebLogic 6.0.0 EJB//EN"
					
location="${artifacts.home}/deploy/ejb/dtd/weblogic600-ejb-jar.dtd"/>
			<include name="**/*-ejb-jar.xml"/>
			<exclude name="**/*weblogic*.xml"/>
		</ejbjar>
	</target>


Douglas WF Acheson

=====
Douglas WF Acheson

__________________________________________________
Do You Yahoo!?
Find a job, post your resume.
http://careers.yahoo.com

--
To unsubscribe, e-mail:
<mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:ant-user-help@jakarta.apache.org>


--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message