Hi,

Thx for trying james 3.0 beta3. I'm not sure, but I think other people
have successfully used james 3 as a windows service (to be confirmed...).

As local system, it seems the process can not create a tmp file. Check
with System.getProperty("java.io.tmpdir")) and give the needed
permissions on that folder. Optionally, try override the tmp folder
starting james with  -Djava.io.tmpdir=/path/to/tmpdir or setting the TMP
environment variable.

When you start as administrator, do you see any exception in the james
log or in the windows service log?

Thx,

Eric


On 25/12/11 15:37, 勐 杨 wrote:
> I have tried to install james as windows service,But in case set the service 
> login as local system,is starts,But when I use telnet to send a mail,t
> WARN  22:33:41,398 | james.smtpserver | ID=2158849 Error creating 
> mimemessagesource for incoming data
> javax.mail.MessagingException: Unable to get canonical file path: system 
> can’t find the specified path。
>    nested exception is:
>      java.io.IOException: system can’t find the specified path。
>      at 
> org.apache.james.core.MimeMessageInputStreamSource.<init>(MimeMessageInputStreamSource.java:118)
>      at 
> org.apache.james.smtpserver.JamesDataCmdHandler.doDATA(JamesDataCmdHandler.java:46)
>      at 
> org.apache.james.protocols.smtp.core.DataCmdHandler.onCommand(DataCmdHandler.java:95)
>      at 
> org.apache.james.protocols.smtp.core.DataCmdHandler.onCommand(DataCmdHandler.java:43)
>      at 
> org.apache.james.protocols.api.AbstractCommandDispatcher.onLine(AbstractCommandDispatcher.java:150)
>      at 
> org.apache.james.protocols.impl.AbstractChannelUpstreamHandler.messageReceived(AbstractChannelUpstreamHandler.java:139)
>      at 
> org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:80)
>      at 
> org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:545)
>      at 
> org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:754)
>      at 
> org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:69)
>      at 
> org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:316)
>      at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
>      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>      at java.lang.Thread.run(Unknown Source)
> Caused by: java.io.IOException:system can’t find the specified path。
>      at java.io.WinNTFileSystem.createFileExclusively(Native Method)
>      at java.io.File.createTempFile(Unknown Source)
>      at java.io.File.createTempFile(Unknown Source)
>      at 
> org.apache.james.core.MimeMessageInputStreamSource.<init>(MimeMessageInputStreamSource.java:115)
>      ... 13 more
> INFO  22:33:41,398 | james.smtpserver | ID=2158849 
> org.apache.james.smtpserver.JamesDataCmdHandler: 451 [Unexpected error 
> preparing to receive DATA.]
> he log shows:
> on other hand,when I set the service login as an administrator user,It 
> doesn’t  start.

-- 
Eric http://about.echarles.net

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to