ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Herry <herry...@yahoo.com>
Subject Problems with EJB JAR
Date Wed, 10 Oct 2001 09:29:02 GMT
Hi,
I am currently trying to do ejbjar in Weblogic 6.1
using Ant 1.4. I am having some problems in which any
help will be much appreciated.

I have placed my ejb-jar.xml and weblogic-ejb-jar.xml
into the same folder, which I point to using the
ejbjar attribute descriptordir.
However, when ejbjar generates the intermediate jar
file before calling weblogic's ejbc, I found that the
file named ejb-jar.xml in the intermediate jar file is
actually the BEA's DD!!!. I have checked the files in
my DD folder to ensure that they are correct.

Question is: how did ejbjar task manage to get the
wrong xml file(the BEA file) and renamed it to the
SUN's ejb-jar.xml file??? Or are we not suppose to
plase both ejb-jar.xml and weblogic-ejb-jar.xml into
the same folder?
The weblogic's nested task does not seem to allow us
to define the location of its weblogic-ejb-jar.xml
file.

Any help in this is very much appreciated as this
problem has been troubling me for a few days now.

Thanks in advance,

Cheers,
Herry.

 --- Douglas WF Acheson <dwfa@yahoo.com> wrote: >
Hello,
> 
>   Here is a an excerpt form build.xml file for
> creating a jar file that
> contains two EJBs.
> 
> 	<target name="build.ejb" depends="compile">
> 		<mkdir dir="${build.home}/lib"/>
> 		<ejbjar srcdir="${build.home}/classes"
> 						descriptordir="${artifacts.home}/deploy">
>       <!-- include name="**/*jar.xml"/ -->
> 			<weblogic
> 				
>
destdir="${build.home}/../../wlsSandbox/config/dwfa/applications"
>        	 suffix=".jar"
>        	 rebuild="false">
> 				<classpath   refid="classes.classpath"/>
>        	<wlclasspath refid="wls.classpath"/>
> 			</weblogic>
> 			<support dir="${build.home}/classes">
> 				<include name="**/JDBCTest.class"/>
> 			</support>
> 			<dtd publicId="-//Sun Microsystems, Inc.//DTD
> Enterprise JavaBeans
> 2.0//EN"
> 					
>
location="${artifacts.home}/deploy/ejb/ejb20-jar.dtd"/>
> 			<dtd publicId="-//BEA Systems, Inc.//DTD WebLogic
> 6.0.0 EJB//EN"
> 					
>
location="${artifacts.home}/deploy/ejb/weblogic600-ejb-jar.dtd"/>
> 			<include name="**/*-ejb-jar.xml"/>
> 			<exclude name="**/*weblogic*.xml"/>
> 		</ejbjar>
> 	</target>
> 
> 
> 
> Hope this helps ...
> dwfa
> 
> --- Steven Leija <Steven.Leija@valtech.com> wrote:
> > Hello All,
> > 
> > Does anyone have an example that I can look at
> running ejbjar for
> > weblogic
> > 6.1?  I'm having the following issues and can't
> see to solve the
> > problem. 
> > 
> > Currently I'm trying to create my ejb jar file and
> I continue to get
> > the
> > following message:
> > 
> > 1.  [ejbjar] Could not resolve ( publicId: -//Sun
> Microsystems,
> > Inc.//DTD
> > Enterprise JavaBeans 1.1//EN, systemId:
> > http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd) to
> a local entity
> > 
> > 2.  [ejbjar] Could not resolve ( publicId: -//BEA
> Systems, Inc.//DTD
> > WebLogic 6.0.0 EJB//EN, systemId:
> > http://www.bea.com/servers/wls600/dtd/weblogic-e
> > jb-jar.dtd) to a local entity
> > 
> > 3.  [ejbc] <Oct 8, 2001 3:32:43 PM CDT> <Warning>
> <EJB> <EJB
> > Deployment:
> > DealManagerBean has a class
> > com.ees.everest.deal.ejb.client.DealManagerHome
> > which is in the classpath. This class should only
> be located in the
> > ejb-jar
> > file.>
> > Does this mean I need to reset my classpath?  If
> so, how?
> > 
> > 4.  How do I add additional class files to my ejb
> jar file?
> > 
> > Thanks for any help!
> > 
> > Steven
> 
> 
> =====
> Douglas WF Acheson
> 
> __________________________________________________
> Do You Yahoo!?
> NEW from Yahoo! GeoCities - quick and easy web site
> hosting, just $8.95/month.
> http://geocities.yahoo.com/ps/info1 

__________________________________________________
Do You Yahoo!?
Yahoo! Events Guide - Entertainment, community events and more!
http://www.events.yahoo.com.sg/

Mime
View raw message