Try having the manifest with just
Name: Test.ser
Enterprise-Bean: True
in the ejb bean's directory.
The make jar should be run in the directory of the EJB, and it will make only
a jar of that EJB ...
I don't actually use the jar's myself, too much hassle when developing.
If you want to make all the jar's in one go, then copy a line the
the root Makefile (like clean or clobber) and change the make
command to make jar ... it should recurse through all the
diretories and make the jar's for you.
At 09:43 AM 4/11/99 -0600, Shawn McKisson wrote:
>How does the jar work below?
>
>It appears as though the jar: in the Makefile.inc is intended to let users call
>jar: from the individual bean Makefiles. This would proceed to try and execute
>jar from the nested bean directory.
>
>I've been playing around with jar (blackdown jdk v1.1.7), and it seems that I am
>not able to create an ejb-jar file unless I am currently in the top level
>directory.
>
>i.e. if my directory structure is src/A/B/C, and I want to build an ejb-jar for
>a bean that lies in directory C, then I have to cd into src and execute jar from
>there.
>
>I cannot find a way to be sitting in C and build the ejb-jar file.
>
>The following is the closest guess I have: (assume we are in directory C)
>
>jar cmvf manifest TestEJB.jar ../../../A/B/C/Test*.class ../../../A/B/C/Test.ser
>
>but this produces an error because the Name: in the manifest file is "incorrect"
>given that I am lying in the directory C
>
>Name: A/B/C/Test.ser
>Enterprise-Bean: True
>
>Any help or suggestions?
>
>--shawn
--
Subvert the dominant paradigm
http://www.cyber4.org/members/grumpy/index.html