ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Cody <>
Subject RE: EJBJar
Date Tue, 09 Oct 2001 01:57:25 GMT

Looks like you and I are going the same thing today.  I've yet to get *all*
my issues resolved also...  Here's what I have so far.  Ping me with other
questions if you want...

$ pwd

$ find . -type d


$ ls -l src/dd/*
-rw-r--r--    1 Administ None          833 Oct  8 11:18
-rw-r--r--    1 Administ None          360 Oct  5 11:21

$ cat src/dd/Client-ejb-jar.xml
<?xml version="1.0" encoding="ISO-8859-1"?>

  '-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN'

  <description>The Client is the abstraction of session data</description>
  <display-name>Client Component</display-name>

      <description>This ejb allows you to do not much yet</description>


$ cat src/dd/Client-weblogic-ejb-jar.xml
<?xml version="1.0"?>

<!DOCTYPE weblogic-ejb-jar PUBLIC
  '-//BEA Systems, Inc.//DTD WebLogic 6.0.0 EJB//EN'


$ cat build.xml


  <!-- build-ejb classpath -->
  <path id="build-ejb.classpath">
    <pathelement location="${build.classes}"/> 
    <fileset dir="${build.lib}">
      <include name="**/*.jar"/>

  <!-- build ejb jars -->
  <target name="build-ejb-jars" depends="build-compile" >
    <ejbjar srcdir="${build.classes}" descriptordir="${home.src.dd}">
      <classpath refid="build-ejb.classpath"/>
      <weblogic destdir="${build}/deploy" compiler="default">
	    <!-- --><pathelement location="${build.classes}"/><!-- -->
      <include name="**/*-ejb-jar.xml"/>
      <exclude name="**/*weblogic*.xml"/>

> 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:
> to a local entity
> 2.  [ejbjar] Could not resolve ( publicId: -//BEA Systems, Inc.//DTD
> WebLogic 6.0.0 EJB//EN, systemId:
> jb-jar.dtd) to a local entity

I get the first one, but ont the second.  It does not seem to affect the
outcome of the task.
Also see

> 3.  [ejbc] <Oct 8, 2001 3:32:43 PM CDT> <Warning> <EJB> <EJB 
> Deployment:
> DealManagerBean has a class 
> 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

Also read this message:

View raw message