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: EJBJar
Date Tue, 09 Oct 2001 16:44:18 GMT
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

Mime
View raw message