ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCune" <mcc...@pop.peoplescape.com>
Subject RE: problem with JARing an EJB
Date Thu, 13 Apr 2000 17:28:56 GMT
So is the Customer EJB in the "cmp" package?  I use ant to build EJB jar
files as well (for weblogic) and had to do some trickery to maintain the
package structure.

If the Customer EJB is in the cmp package, (similar situation that I have as
well), you need to make sure that your JAR file mimics this package
structure, with the Customer*.class files being in the cmp directory.

I guess my question would be, what do you want your Jar file to look like?
The first case you describe, or the second?

Mike

-----Original Message-----
From: Stefan Arentz [mailto:stefan.arentz@soze.com]
Sent: Wednesday, April 12, 2000 1:06 PM
To: ant-dev@jakarta.apache.org
Subject: problem with JARing an EJB


I'm using Ant to build an EJB and I have a weird problem with
the layout of the JAR file which confuses the app server.

Ant builds this directory structure:

.../deploy.home:
  drwxr-xr-x   2 stefan   stefan       4096 Apr 12 21:58 META-INF/
    -rw-r--r--   1 stefan   stefan       1614 Apr 12 21:58 ejb-inprise.xml
    -rw-r--r--   1 stefan   stefan       1536 Apr 12 21:58 ejb-jar.xml
  drwxr-xr-x   2 stefan   stefan       4096 Apr 12 21:58 cmp/
    -rw-r--r--   1 stefan   stefan        503 Apr 12 21:58 Customer.class
    -rw-r--r--   1 stefan   stefan       1940 Apr 12 21:58
CustomerBean.class
    -rw-r--r--   1 stefan   stefan        626 Apr 12 21:58
CustomerHome.class
    -rw-r--r--   1 stefan   stefan        459 Apr 12 21:58 CustomerPK.class

However the jar file looks like this:

     0 Wed Apr 12 21:58:18 CEST 2000 META-INF/
    22 Wed Apr 12 21:58:18 CEST 2000 META-INF/MANIFEST.MF
     0 Wed Apr 12 21:58:18 CEST 2000 cmp/
  1536 Wed Apr 12 21:58:18 CEST 2000 META-INF/ejb-jar.xml
  1614 Wed Apr 12 21:58:18 CEST 2000 META-INF/ejb-inprise.xml
   503 Wed Apr 12 21:58:18 CEST 2000 cmp/Customer.class
  1940 Wed Apr 12 21:58:18 CEST 2000 cmp/CustomerBean.class
   626 Wed Apr 12 21:58:18 CEST 2000 cmp/CustomerHome.class
   459 Wed Apr 12 21:58:18 CEST 2000 cmp/CustomerPK.class

The META-INF/ en cmp/ entries seem to be a problem. Has anyone run into
this problem?

  Stefan




Mime
View raw message