easybeans.xml and classpath issues whih EB standalone

View: New views
1 Messages — Rating Filter:   Alert me  

easybeans.xml and classpath issues whih EB standalone

by Pierre-Yves Gibello-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Easybeans standalone never sees easybeans.xml, because it is launched
using java -jar .

When doing so, any external CLASSPATH is ignored by the JVM (both -cp or
set CLASSPATH have no effect).
And easybeans.xml has to be in the CLASSPATH ...

So, here's what I suggest :
- Add the following line to easybean's META-INF/MANIFEST.MF :
Class-Path: .

I made the test (un-jar easybeans, fix the manifest, then jar cfm ).
And it works fine : I just have to copy my easybeans.xml in the
directory where the EB jar lies (in lib/ on my installation), then start
my easybeans again...

So, if you could add such a trick in the next version, it would be of
great help to easily configure EB standalone !

Regards,
 Pierre-Yves Gibello - EBM Websourcing