Hi Christian,
I don't completly understand the various trying you did.
However, I will try to explain how specifying the beans to be loaded
at the JOnAS EJB server launching.
There is two different cases:
1- Beans are NOT PACKAGING in an ejb-jar file
---------------------------------------------
In this case, the value of the jonas.beans.descriptors property
must be the name of the standard XML deployment descriptor file.
The name of the JOnAS specific XML deployment descriptor file must be
the name of the standard XML deployment descriptor prefixed by 'jonas-'.
(Ex: jonas-account.xml for account.xml,
../a/jonas-account.xml for ../a/account.xml,
/b/c/jonas-account.xml for /b/c/account.xml).
In this case, the classes (Home interface, Remote interface, Bean class,
container classes generated by the GenIC tool) must be accessible from
the CLASSPATH.
(Note that the CLASSPATH is updated in the $JONAS_ROOT/bin/config.env
script,
which is called by each JOnAS script (EJBServer, GenIC, ...)).
2- Beans are PACKAGING in an ejb-jar file
-----------------------------------------
In this case, the value of the jonas.beans.descriptors property
is the name of the ejb-jar file.
In this ejb-jar file, the standard XML deployment descriptor must
be stored with the name META-INF/ejb-jar.xml,
(See the EJB Specification 1.1, chapter 17);
the JOnAS specific XML deployment descriptor must be stored with
the name META-INF/jonas-ejb-jar.xml in the ejb-jar file.
In this case, the classes (Home interface, Remote interface, Bean class,
container classes generated by the GenIC tool) must be stored in the
ejb-jar file.
In those two cases, the path of the files (XML deployment descriptor
or ejb-jar) is relative to the directory from where the EJBServer
is launched.
(i.e. if the jonas.beans.descriptors value is account.xml,
the files acoount.xml and jonas-account.xml must be in the
directory from where the server is launched.)
You can check which beans are loaded at the EJBServer launching
by verifying the server traces. When the level trace 31 is on,
(See the jonas.trace.level property in the jonas.properties file),
for each bean loaded, you have the following trace:
EJBHome:.......... for <ejb-name> available
I hope this help.
Bests regards.
H�l�ne.
"Christian Hummer (MADIBA)" wrote:
>
> 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".
--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
PLEASE, TAKE INTO ACCOUNT MY NEW EMAIL
-=- H�l�ne JOANIN -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
mailto:[EMAIL PROTECTED] http://www.evidian.com
Phone: 33.4.76.29.73.53 Fax: 33.4.76.29.76.00
Download our EJB Server JOnAS at http://www.objectweb.org
----
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".