Christian,
I had a similar problem a little
while ago. I managed to solve
it like this:
I have this directory structure:
dev
|--META-INF
|--sb
In the META-INF directry
are my two XML deployment
descriptors: ejb-jar.xml and
jonas-ejb-jar.xml. In the sb
directory are my bean classes:
Xxx.java, XxxHome.java and
XxxBean.java.
I then created a .jar file called
XxxSB.jar and put it in the dev
directory. The XxxSB.jar file
looks like this:
M Filemode Length Date Time File
- ---------- -------- ----------- -------- --------------------------
drwxrwxrwx 0 25-Jul-2000 14:37:28 meta-inf/
-rw-rw-rw- 68 25-Jul-2000 14:37:28 meta-inf/manifest.mf
-rw-rw-rw- 245 25-Jul-2000 14:37:10 sb/Op.class
-rw-rw-rw- 1459 25-Jul-2000 14:37:22 sb/OpBean.class
-rw-rw-rw- 279 25-Jul-2000 14:37:16 sb/OpHome.class
-rw-rw-rw- 1313 19-Jul-2000 12:32:06 META-INF/ejb-jar.xml
-rw-rw-rw- 239 24-Jul-2000 16:33:12 META-INF/jonas-ejb-jar.xml
- ---------- -------- ----------- -------- --------------------------
3603 7 files
Originally, I had the value of
jonas.beans.descriptors ejb-jar.xml
in my jonas.properties file. Things
didn't work too well like this.
But when I changed the value to:
jonas.beans.descriptors META-INF/ejb-jar.xml
in my jonas.properties file, things
started happening.
Although my situation wasn't
identical to yours, I had the
same confusion about the
"whats" and "wheres" of these
.xml and .jar files.
Give this a shot.
Kind regards,
Omead
----- Original Message -----
From: "Christian Hummer (MADIBA)" <[EMAIL PROTECTED]>
To: "JONAS (USERS)" <[EMAIL PROTECTED]>
Sent: Wednesday, July 26, 2000 2:41 PM
Subject: EJBServer does not start (deployment fails)
> Hi,
>
> I need your help with the following problem:
>
> I succeeded with setting up Jonas 2 on Windows and managed to configure a
> datasource for Personal Oracle 8. If I leave the <jonas.beans.descriptors>
> entry in <jonas.properties> empty the server starts and everything is
fine.
>
> The next thing was to create a Jar file with the example entity bean
classes
> (account...) and the two descriptor files and to run the genic tool on
this
> jar-file. (Note that the file name had to be ejb-jar.xml, otherwise genic
> failed.)
> Now I got all the classes as well as the jar-file in the classpath and an
> entry in <jonas.properties>, but the server would not start and it does
not
> produce any error message.
> I tried the following entries in <jonas.properties>:
> #jonas.beans.descriptors ..\java\class\eb\Meta-inf\ejb-jar.xml
> #jonas.beans.descriptors ejb-jar.xml
> #jonas.beans.descriptors account.jar
> jonas.beans.descriptors ../java/class/eb/Meta-inf/ejb-jar.xml
>
> For the last try, these are the last lines in <jonas.log>:
> main: 11:12:12:315 Env.getDescBeans()
> main: 11:12:12:315 descriptors=[../java/class/eb/Meta-inf/ejb-jar.xml]
> main: 11:12:12:525 createEJBContainers
> [../java/class/eb/Meta-inf/ejb-jar.xml])
>
> This is it, no errors (not in <error.out> either)... and my batchfile
> <startJonas.cmd> just exits (no errors on the console window either).
>
> Any help would be greatly appreciated. Somehow I am still not sure where
to
> put the xml-files and jar-files and how the appropriate classes are
> associated with the entry in <jonas.properties>
>
> kind regards,
> christian
>
> ----
> To unsubscribe, send email to [EMAIL PROTECTED] and
> include in the body of the message "unsubscribe jonas-users".
> For general help, send email to [EMAIL PROTECTED] and
> include in the body of the message "help".
>
----
To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe jonas-users".
For general help, send email to [EMAIL PROTECTED] and
include in the body of the message "help".