ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Douglas WF Acheson <d...@yahoo.com>
Subject RE: HELP: WLS ejb building error <possible bug>
Date Fri, 09 Nov 2001 16:43:41 GMT
Hello,

  I have read what the DOCS read for WLS and ANT.  The nested element
classpath should be used to indicate where the class files are located.
 This in turn should pass the argument -classpath <classpath> to the
WLS ejbc. It does not.  Here is what is foked

   [ejbjar] Calling weblogic.ejbc20 for <name of jar file>
     [ejbc] Forking C:\Apps\Java\JDK\se\v1.3.1\jre\..\bin\java.exe
-classpath C:\Apps\BEA\WLS\v6.1\lib\weblogic.jar weblogic.ejbc20 <name
of jar file> <name of new file>

notice there is no -classpath passed to the ejbc.  IS this a bug?

dwfa

--- "Hogan, John" <JHogan@NDGroup.com> wrote:
> put the root directory of your compiled classes in your environment
> so ejbc
> can find them
> 
> -----Original Message-----
> From: Douglas WF Acheson [mailto:dwfa@yahoo.com]
> Sent: Friday, November 09, 2001 11:23 AM
> 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>
> 


=====
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>


Mime
View raw message