You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-user@james.apache.org by David Poelz <da...@univie.ac.at> on 2008/02/06 17:50:06 UTC

Start James fron ant file

Hi 

I am trying to automate the build process of my custom mailet with ant.
First i am building my mailet and copy it into the SAR-INF/lib
directory. This works fine. But i also want to start the James server
from the ant file.

So far i came up with:

<java jar="${phoenix_home}/bin/phoenix-loader.jar" fork="true" >	
<jvmarg value="-Djava.ext.dirs=
${phoenix_home}/lib:{phoenix_home}/tools/lib -Dphoenix.home=
${phoenix_home} -Djava.io.tmpdir=${phoenix_temp}"/></java>

But this yields into the follwoing error:

Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/avalon/excalibur/i18n/ResourceManager

It seems that the "-Djava.ext.dirs" parameter is not considered by ant
and therefore the library is not found. Did anyone try something
similar? Any help is much appreciated.

David


---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org