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 Satish <sa...@nunet-tech.com> on 2003/07/19 13:30:32 UTC

custom mailet

Hi .
I am writing a custom mailet..I have put my classes in a package and
build a jar file.
Later I gave the class path of that mailet and try to start the james
mail server.But I could not.
Below is the error logged in the log file.Could u plz tell me the reason
for that
 
INFO    2003-07-19 15:58:55.327 [Phoenix ] (): Logger started
WARN    2003-07-19 15:58:55.477 [Phoenix ] (): Phoenix was not started
by the daemon thus it will not be possible to restart the JVM via the
Management interface.
INFO    2003-07-19 15:58:58.071 [Phoenix.] (): Installing Sar located at
file:/E:/jamesmail/james-2.1.1/apps/james.sar.
WARN    2003-07-19 15:58:58.382 [Phoenix.] (): The file
SAR-INF/lib/mm.mysql.LICENCE can not be extracted from the Sar
"file:/E:/jamesmail/james-2.1.1/apps/james.sar" into directory
E:\jamesmail\james-2.1.1\apps\james\SAR-INF\lib\mm.mysql.LICENCE because
there is a file in the way.
WARN    2003-07-19 15:58:58.382 [Phoenix.] (): The file
conf/sqlResources.xml can not be extracted from the Sar
"file:/E:/jamesmail/james-2.1.1/apps/james.sar" into directory
E:\jamesmail\james-2.1.1\apps\james\conf\sqlResources.xml because there
is a file in the way.
WARN    2003-07-19 15:58:58.382 [Phoenix.] (): The file
SAR-INF/config.xml can not be extracted from the Sar
"file:/E:/jamesmail/james-2.1.1/apps/james.sar" into directory
E:\jamesmail\james-2.1.1\apps\james\SAR-INF\config.xml because there is
a file in the way.
WARN    2003-07-19 15:58:58.382 [Phoenix.] (): The file
SAR-INF/assembly.xml can not be extracted from the Sar
"file:/E:/jamesmail/james-2.1.1/apps/james.sar" into directory
E:\jamesmail\james-2.1.1\apps\james\SAR-INF\assembly.xml because there
is a file in the way.
WARN    2003-07-19 15:58:58.382 [Phoenix.] (): The file
SAR-INF/environment.xml can not be extracted from the Sar
"file:/E:/jamesmail/james-2.1.1/apps/james.sar" into directory
E:\jamesmail\james-2.1.1\apps\james\SAR-INF\environment.xml because
there is a file in the way.
INFO    2003-07-19 15:58:58.632 [Phoenix.] (): No policy specified in
server.xml, giving full permissions to ServerApplication.
INFO    2003-07-19 15:58:59.263 [Phoenix.] (): Verifying that the name
specified for Blocks and BlockListeners are valid.
INFO    2003-07-19 15:58:59.263 [Phoenix.] (): Verifying that the name
specified for Blocks and BlockListeners are unique.
INFO    2003-07-19 15:58:59.263 [Phoenix.] (): Verifying that the
specified Dependencies are valid according to BlockInfo.
INFO    2003-07-19 15:58:59.263 [Phoenix.] (): Verifying that the
dependencies of Blocks are valid with respect to other Blocks.
INFO    2003-07-19 15:58:59.263 [Phoenix.] (): Verifying that there are
no circular dependencies between Blocks.
INFO    2003-07-19 15:58:59.273 [Phoenix.] (): Verifying that the
specified Blocks have valid types.
WARN    2003-07-19 15:58:59.323 [Phoenix.] (): Error deleting Work
Directory "E:\jamesmail\james-2.1.1\work\james-1058610538071". (Reason:
File
E:\jamesmail\james-2.1.1\work\james-1058610538071\SAR-INF\lib\mm.mysql-2
.0.14.jar unable to be deleted.)
java.io.IOException: File
E:\jamesmail\james-2.1.1\work\james-1058610538071\SAR-INF\lib\mm.mysql-2
.0.14.jar unable to be deleted.
            at
org.apache.avalon.excalibur.io.FileUtil.forceDelete(FileUtil.java:638)
            at
org.apache.avalon.excalibur.io.FileUtil.cleanDirectory(FileUtil.java:806
)
            at
org.apache.avalon.excalibur.io.FileUtil.deleteDirectory(FileUtil.java:76
2)
            at
org.apache.avalon.excalibur.io.FileUtil.forceDelete(FileUtil.java:630)
            at
org.apache.avalon.excalibur.io.FileUtil.cleanDirectory(FileUtil.java:806
)
            at
org.apache.avalon.excalibur.io.FileUtil.deleteDirectory(FileUtil.java:76
2)
            at
org.apache.avalon.excalibur.io.FileUtil.forceDelete(FileUtil.java:630)

RE: custom mailet

Posted by "Noel J. Bergman" <no...@devtech.com>.
> I am writing a custom mailet..I have put my classes in a package and
> build a jar file.

> Later I gave the class path of that mailet and try to start the james
> mail server.But I could not.

> [Phoenix.] (): Installing Sar located at
file:/E:/jamesmail/james-2.1.1/apps/james.sar.

If you are using James v2.1.anything, it is more difficult.  James v2.2
improves support for custom mailet packages.

See: http://nagoya.apache.org/wiki/apachewiki.cgi?James/CustomMailetPackages

Clean out the work/ directory, but I don't think that's your problem.  Check
the other logs.

	--- Noel


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