ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gilbert, Mike <mike.gilb...@ecet.com>
Subject RE: Problem while using ejb-jar deployment files for multiple J2EE servers
Date Tue, 18 Sep 2001 16:50:49 GMT
Daniel,
 
try adding **/*weblogic*.xml to the exclude list for the JBoss target
 
HTH
 
Mike
 

-----Original Message-----
From: daniel caune [mailto:danielc@in-fusio.com]
Sent: Tuesday, September 18, 2001 12:41 PM
To: ant-user@jakarta.apache.org
Subject: Problem while using ejb-jar deployment files for multiple J2EE
servers


Hi,

I encounter some problems while I try to use different ejb-jar deployment
files for multiple J2EE servers, such as JBoss and Weblogic:

MyBean-ejb-jar.xml
MyBean-weblogic-ejb-jar.xml
MyBean-jboss.xml

(1). I use different targets to create JBoss and Weblogic EJB JAR files. But
the jboss built-in task doesn't react as the weblogic built-in task does. I
think it looks at all the -ejb-jar.xml files and tries then to build the
corresponding EJB JAR files. But in my case it takes also the
-weblogic-ejb-jar.xml and finds obviously some errors: "Could not resolve (
publicId: -//BEA Systems, Inc.//DTD WebLogic 5.1.0 EJB//EN, systemId:
http://www.bea.com/servers/wls510/dtd/weblogic-ejb-jar.dtd) to a local
entity"
!

(2). The Weblogic built-in task just looks at the -weblogic-ejb-jar files
and thus doesn't raise any error. It creates correctly the different EJB JAR
files.

How to make cohabit the JBoss and Weblogic deployment files?

Regards,


Daniel



P.S.: My Ant targets are as follow:

 <target name="jboss-ejbjar" depends="compile">
   <ejbjar descriptordir="${res}"
           destdir="${lib}"
           srcdir="${classes}">
     <classpath refid="project.class.path"/>
     <include name="**/*-ejb-jar.xml"/>
     <include name="${classes}/**/*Exception.class"/>
     <exclude name="**/*jboss*.xml"/>
     <jboss destdir="${lib}"/>
     <dtd publicId="-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans
1.1//EN"
          location=" http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd
<http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd> "/>
     <dtd publicId="-//JBoss//DTD JBOSS//EN"
          location=" http://www.jboss.org/j2ee/dtd/jboss.dtd
<http://www.jboss.org/j2ee/dtd/jboss.dtd> "/>
   </ejbjar>
 </target>


 <target name="weblogic-ejbjar" depends="compile">
   <ejbjar descriptordir="${res}"
           destdir="${lib}"
           srcdir="${classes}">
     <weblogic destdir="${lib}"
               suffix="-weblogic.jar">
       <classpath refid="project.class.path"/>
     </weblogic>
     <include name="**/*-ejb-jar.xml"/>
     <include name="${classes}/**/*Exception.class"/>
     <exclude name="**/*weblogic*.xml"/>
     <dtd publicId="-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans
1.1//EN"
          location=" http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd
<http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd> "/>
     <dtd publicId="-//BEA Systems, Inc.//DTD WebLogic 5.1.0 EJB//EN"
          location="
http://www.bea.com/servers/wls510/dtd/weblogic-ejb-jar.dtd
<http://www.bea.com/servers/wls510/dtd/weblogic-ejb-jar.dtd> "/>
   </ejbjar>
 </target>


 <target name="ejbjar" depends="jboss-ejbjar, weblogic-ejbjar"/>



Mime
View raw message