Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@jakarta.apache.org Received: (qmail 29671 invoked by uid 500); 18 Sep 2001 17:40:38 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: ant-user@jakarta.apache.org Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 29658 invoked from network); 18 Sep 2001 17:40:38 -0000 X-Originating-IP: [170.252.19.2] From: "Chris Flemetakis" To: ant-user@jakarta.apache.org Bcc: Subject: Re: Problem while using ejb-jar deployment files for multiple J2EE servers Date: Tue, 18 Sep 2001 10:40:13 -0700 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 18 Sep 2001 17:40:13.0833 (UTC) FILETIME=[F8D15790:01C14068] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N What I would do is depending on which target you are executing, copy only those descriptors that apply to the j2ee server you are using in the descriptor staging directory... So for example.. if you are running the weblogic target, then create a copy tasks that goes through your deployment descriptors and copies them to the staging directory.. then point that task to that staging directory. that way when the ejbjar task goes to look for descriptors it only sees the descriptors you want it to see... of course with each build you need to make sure that you clean out the staging directory so the only descriptors that end up there are the ones you intented... Hope this helps Chris >From: daniel caune >Reply-To: ant-user@jakarta.apache.org >To: ant-user@jakarta.apache.org >Subject: Problem while using ejb-jar deployment files for multiple J2EE >servers >Date: 18 Sep 2001 13:40:52 +0200 > >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: > > > destdir="${lib}" > srcdir="${classes}"> > > > > > > location=" http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd > "/> > location=" http://www.jboss.org/j2ee/dtd/jboss.dtd > "/> > > > > > > destdir="${lib}" > srcdir="${classes}"> > suffix="-weblogic.jar"> > > > > > > location=" http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd > "/> > location=" >http://www.bea.com/servers/wls510/dtd/weblogic-ejb-jar.dtd > "/> > > > > > > _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp