You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by daniel caune <da...@in-fusio.com> on 2001/09/18 13:40:52 UTC
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"/>
ejbjar - super class check
Posted by Jesse Stockall <je...@cryptocard.com>.
I'm trying to build generic jars with the following
<target name="dist-ejb" depends="compile-java">
<!-- Build the generic ejbs -->
<ejbjar descriptordir="${dd.dir}"
srcdir="${build}"
destdir="${dist}/lib"
basejarname="EJBname">
<dtd publicId="-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans
1.1//EN"
location="${dtd.dir}/ejb-jar_1_1.dtd"/>
</ejbjar>
</target>
I get "Could not load class com.company.product.App.class for super
class check" for each class file in the jar.
The jar gets built, but I would like to know the cause of the errors.
TIA
--
Jesse Stockall | Tel: 1+ 613.599.2441 ext. 243
CRYPTOCard Corporation | Fax: 1+ 613.599.2442
Suite 304, 300 March Rd. | email: jesse@cryptocard.com
Ottawa, ON, Canada K2K 2E2 | web: www.cryptocard.com
---------------------------------------------------------------------