- 浏览: 28299 次
- 性别:
- 来自: 揭阳
文章分类
最新评论
-
黑白配:
我一定要赞 因为我找了一下午 不知道是哪个端口
运行james run.bat 处理抛端口被占用的异常 -
a545807638:
好厉害
运行james run.bat 处理抛端口被占用的异常 -
695w:
嗯,写的不错,我查了半天也没看到哪个把端口占了,呵呵,谢谢你的 ...
运行james run.bat 处理抛端口被占用的异常
INFO 2009-10-28 09:48:43.593 [Phoenix ] (): Logger started
WARN 2009-10-28 09:48:43.609 [Phoenix ] (): Phoenix was not started by the daemon thus it will not be possible to restart the JVM via the Management interface.
INFO 2009-10-28 09:48:43.734 [Phoenix.] (): Installing Sar located at file:/D:/james-2.3.2/apps/james.sar.
WARN 2009-10-28 09:48:43.921 [Phoenix.] (): The file conf/sqlResources.xml can not be extracted from the Sar "file:/D:/james-2.3.2/apps/james.sar" into directory D:\james-2.3.2\apps\james\conf\sqlResources.xml because there is a file in the way.
WARN 2009-10-28 09:48:43.921 [Phoenix.] (): The file conf/james-fetchmail.xml can not be extracted from the Sar "file:/D:/james-2.3.2/apps/james.sar" into directory D:\james-2.3.2\apps\james\conf\james-fetchmail.xml because there is a file in the way.
WARN 2009-10-28 09:48:43.921 [Phoenix.] (): The file conf/james-smtphandlerchain.xml can not be extracted from the Sar "file:/D:/james-2.3.2/apps/james.sar" into directory D:\james-2.3.2\apps\james\conf\james-smtphandlerchain.xml because there is a file in the way.
WARN 2009-10-28 09:48:43.921 [Phoenix.] (): The file conf/miResources.xml can not be extracted from the Sar "file:/D:/james-2.3.2/apps/james.sar" into directory D:\james-2.3.2\apps\james\conf\miResources.xml because there is a file in the way.
WARN 2009-10-28 09:48:43.921 [Phoenix.] (): The file conf/james-listmanager.xml can not be extracted from the Sar "file:/D:/james-2.3.2/apps/james.sar" into directory D:\james-2.3.2\apps\james\conf\james-listmanager.xml because there is a file in the way.
WARN 2009-10-28 09:48:43.921 [Phoenix.] (): The file conf/james-liststores.xml can not be extracted from the Sar "file:/D:/james-2.3.2/apps/james.sar" into directory D:\james-2.3.2\apps\james\conf\james-liststores.xml because there is a file in the way.
WARN 2009-10-28 09:48:43.921 [Phoenix.] (): The file conf/samples/fetchmail/maxMessageSize.xml can not be extracted from the Sar "file:/D:/james-2.3.2/apps/james.sar" into directory D:\james-2.3.2\apps\james\conf\samples\fetchmail\maxMessageSize.xml because there is a file in the way.
WARN 2009-10-28 09:48:43.921 [Phoenix.] (): The file conf/samples/fetchmail/oneAccountManyUsers.xml can not be extracted from the Sar "file:/D:/james-2.3.2/apps/james.sar" into directory D:\james-2.3.2\apps\james\conf\samples\fetchmail\oneAccountManyUsers.xml because there is a file in the way.
WARN 2009-10-28 09:48:43.921 [Phoenix.] (): The file conf/samples/fetchmail/oneAccountManyUsersDynamic.xml can not be extracted from the Sar "file:/D:/james-2.3.2/apps/james.sar" into directory D:\james-2.3.2\apps\james\conf\samples\fetchmail\oneAccountManyUsersDynamic.xml because there is a file in the way.
WARN 2009-10-28 09:48:43.921 [Phoenix.] (): The file conf/samples/fetchmail/oneAccountPerUser.xml can not be extracted from the Sar "file:/D:/james-2.3.2/apps/james.sar" into directory D:\james-2.3.2\apps\james\conf\samples\fetchmail\oneAccountPerUser.xml because there is a file in the way.
WARN 2009-10-28 09:48:43.921 [Phoenix.] (): The file conf/samples/fetchmail/oneAccountPerUserDynamic.xml can not be extracted from the Sar "file:/D:/james-2.3.2/apps/james.sar" into directory D:\james-2.3.2\apps\james\conf\samples\fetchmail\oneAccountPerUserDynamic.xml because there is a file in the way.
WARN 2009-10-28 09:48:43.921 [Phoenix.] (): The file conf/samples/fetchmail/remoteReceivedHeader.xml can not be extracted from the Sar "file:/D:/james-2.3.2/apps/james.sar" into directory D:\james-2.3.2\apps\james\conf\samples\fetchmail\remoteReceivedHeader.xml because there is a file in the way.
WARN 2009-10-28 09:48:43.921 [Phoenix.] (): The file SAR-INF/config.xml can not be extracted from the Sar "file:/D:/james-2.3.2/apps/james.sar" into directory D:\james-2.3.2\apps\james\SAR-INF\config.xml because there is a file in the way.
WARN 2009-10-28 09:48:43.921 [Phoenix.] (): The file SAR-INF/assembly.xml can not be extracted from the Sar "file:/D:/james-2.3.2/apps/james.sar" into directory D:\james-2.3.2\apps\james\SAR-INF\assembly.xml because there is a file in the way.
WARN 2009-10-28 09:48:43.921 [Phoenix.] (): The file SAR-INF/environment.xml can not be extracted from the Sar "file:/D:/james-2.3.2/apps/james.sar" into directory D:\james-2.3.2\apps\james\SAR-INF\environment.xml because there is a file in the way.
INFO 2009-10-28 09:48:44.171 [Phoenix.] (): Verifying that all key-stores have valid names.
INFO 2009-10-28 09:48:44.171 [Phoenix.] (): Verify that any keystore names used by grant or permission reference actual keystores
INFO 2009-10-28 09:48:44.171 [Phoenix.] (): Verify that if target is null then actions is null.
INFO 2009-10-28 09:48:44.484 [Phoenix.] (): Verifying that the name specified for Blocks and BlockListeners are valid.
INFO 2009-10-28 09:48:44.500 [Phoenix.] (): Verifying that the names specified for Component are valid.
INFO 2009-10-28 09:48:44.500 [Phoenix.] (): Verifying that the names specified for the Components are unique.
INFO 2009-10-28 09:48:44.500 [Phoenix.] (): Verifying that the dependency mapping is valid according to ComponentInfos.
INFO 2009-10-28 09:48:44.500 [Phoenix.] (): Verifying that the dependency mapping for every Component is valid with respect to other components.
INFO 2009-10-28 09:48:44.500 [Phoenix.] (): Verifying that there are no circular dependencies between Components.
INFO 2009-10-28 09:48:44.500 [Phoenix.] (): Verifying that the name specified for Blocks and BlockListeners are unique.
INFO 2009-10-28 09:48:44.500 [Phoenix.] (): Verifying that the specified Blocks have valid types.
INFO 2009-10-28 09:48:44.531 [Phoenix.] (): Verifying that the specified BlockListeners have valid types.
INFO 2009-10-28 09:48:44.578 [Phoenix.] (): 20 Blocks to process for phase "startup". Order of processing = [dnsserver, database-connections, mailstore, users-store, localusersrepository, spoolrepository, sockets, thread-manager, scheduler, James, mailetpackages, matcherpackages, spoolmanager, connections, remotemanager, pop3server, smtpserver, nntp-repository, nntpserver, fetchmail].
ERROR 2009-10-28 09:48:44.906 [Phoenix.] (): Component named "smtpserver" failed to pass through the Starting stage. (Reason: java.net.BindException: Address already in use: JVM_Bind).
ERROR 2009-10-28 09:48:44.906 [Phoenix.] (): There was an error running phase "startup" for Block named "smtpserver". (Reason: Component named "smtpserver" failed to pass through the Starting stage. (Reason: java.net.BindException: Address already in use: JVM_Bind).).
org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleException: Component named "smtpserver" failed to pass through the Starting stage. (Reason: java.net.BindException: Address already in use: JVM_Bind).
at org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleHelper.fail(LifecycleHelper.java:354)
at org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleHelper.startup(LifecycleHelper.java:226)
at org.apache.avalon.phoenix.components.application.DefaultApplication.startup(DefaultApplication.java:530)
at org.apache.avalon.phoenix.components.application.DefaultApplication.doRunPhase(DefaultApplication.java:478)
at org.apache.avalon.phoenix.components.application.DefaultApplication.runPhase(DefaultApplication.java:409)
at org.apache.avalon.phoenix.components.application.DefaultApplication.start(DefaultApplication.java:180)
at org.apache.avalon.framework.container.ContainerUtil.start(ContainerUtil.java:260)
rethrown from
java.net.BindException: Address already in use: JVM_Bind
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(Unknown Source)
at java.net.ServerSocket.bind(Unknown Source)
at java.net.ServerSocket.<init>(Unknown Source)
at org.apache.avalon.cornerstone.blocks.sockets.DefaultServerSocketFactory.createServerSocket(DefaultServerSocketFactory.java:74)
at org.apache.james.core.AbstractJamesService.initialize(AbstractJamesService.java:337)
at org.apache.james.smtpserver.SMTPServer.initialize(SMTPServer.java:256)
INFO 2009-10-28 09:48:44.906 [Phoenix.] (): exception while starting:Component named "smtpserver" failed to pass through the Starting stage. (Reason: java.net.BindException: Address already in use: JVM_Bind).
WARN 2009-10-28 09:48:44.906 [Phoenix.] (): Failed to start application james.
org.apache.avalon.framework.CascadingException: Failed to start application james.
at org.apache.avalon.phoenix.components.kernel.DefaultKernel.startup(DefaultKernel.java:313)
at org.apache.avalon.phoenix.components.kernel.DefaultKernel.addApplication(DefaultKernel.java:376)
at org.apache.avalon.phoenix.components.deployer.DefaultDeployer.deploy(DefaultDeployer.java:357)
at org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFile(DefaultEmbeddor.java:542)
at org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFile(DefaultEmbeddor.java:535)
at org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFiles(DefaultEmbeddor.java:520)
at org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployDefaultApplications(DefaultEmbeddor.java:509)
rethrown from
org.apache.avalon.phoenix.interfaces.ApplicationException: Component named "smtpserver" failed to pass through the Starting stage. (Reason: java.net.BindException: Address already in use: JVM_Bind).
at org.apache.avalon.phoenix.components.application.DefaultApplication.start(DefaultApplication.java:186)
at org.apache.avalon.framework.container.ContainerUtil.start(ContainerUtil.java:260)
at org.apache.avalon.phoenix.components.kernel.DefaultKernel.startup(DefaultKernel.java:295)
at org.apache.avalon.phoenix.components.kernel.DefaultKernel.addApplication(DefaultKernel.java:376)
at org.apache.avalon.phoenix.components.deployer.DefaultDeployer.deploy(DefaultDeployer.java:357)
at org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFile(DefaultEmbeddor.java:542)
at org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFile(DefaultEmbeddor.java:535)
rethrown from
org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleException: Component named "smtpserver" failed to pass through the Starting stage. (Reason: java.net.BindException: Address already in use: JVM_Bind).
at org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleHelper.fail(LifecycleHelper.java:354)
at org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleHelper.startup(LifecycleHelper.java:226)
at org.apache.avalon.phoenix.components.application.DefaultApplication.startup(DefaultApplication.java:530)
at org.apache.avalon.phoenix.components.application.DefaultApplication.doRunPhase(DefaultApplication.java:478)
at org.apache.avalon.phoenix.components.application.DefaultApplication.runPhase(DefaultApplication.java:409)
at org.apache.avalon.phoenix.components.application.DefaultApplication.start(DefaultApplication.java:180)
at org.apache.avalon.framework.container.ContainerUtil.start(ContainerUtil.java:260)
rethrown from
java.net.BindException: Address already in use: JVM_Bind
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(Unknown Source)
at java.net.ServerSocket.bind(Unknown Source)
at java.net.ServerSocket.<init>(Unknown Source)
at org.apache.avalon.cornerstone.blocks.sockets.DefaultServerSocketFactory.createServerSocket(DefaultServerSocketFactory.java:74)
at org.apache.james.core.AbstractJamesService.initialize(AbstractJamesService.java:337)
at org.apache.james.smtpserver.SMTPServer.initialize(SMTPServer.java:256)
WARN 2009-10-28 09:48:44.953 [Phoenix.] (): Error deleting Work Directory "D:\james-2.3.2\work\james-1256694523734". (Reason: File D:\james-2.3.2\work\james-1256694523734\SAR-INF\lib\mailet-api-2.3.jar unable to be deleted.)
java.io.IOException: File D:\james-2.3.2\work\james-1256694523734\SAR-INF\lib\mailet-api-2.3.jar unable to be deleted.
at org.apache.avalon.excalibur.io.FileUtil.forceDelete(FileUtil.java:743)
at org.apache.avalon.excalibur.io.FileUtil.cleanDirectory(FileUtil.java:910)
at org.apache.avalon.excalibur.io.FileUtil.deleteDirectory(FileUtil.java:866)
at org.apache.avalon.excalibur.io.FileUtil.forceDelete(FileUtil.java:735)
at org.apache.avalon.excalibur.io.FileUtil.cleanDirectory(FileUtil.java:910)
at org.apache.avalon.excalibur.io.FileUtil.deleteDirectory(FileUtil.java:866)
at org.apache.avalon.excalibur.io.FileUtil.forceDelete(FileUtil.java:735)
WARN 2009-10-28 09:48:45.125 [Phoenix.] (): Failed to stop application james as it is not initialized/started.
大家有有遇到过这种异常吗?最近我要做一个邮件系统。因此要使用一个服务器来支持运行收发邮件的功能,一开始启动服务没有问题~~可是当要改localhost为自己的域名,改完后就狂报错~~就是上面那个错误,我看了在james根目录下一个logs;里面的日志文件里面的异常,才知道是占用了端口号~~可是就是不知道占用了那么端口~~,因此在网上找找看有什么好的解决方法,找了很久都不知道个所以然,我也的机子也重启了不少次,就是还没有解决,郁闷了整个晚上,隔天还是继续找那个问题~~到最后在一个csdn论坛上找到了一个启发点就是,IIS默认是会启动开启了IIS自带的SMTP服务,就是这困扰我一晚上,呵呵,现在终于解决了,好了接下来就说说我是怎么解决这个问题的,还有一点就是可以使用 netstat doc命令来查看那么端口在启动。
上面那个异常的解决方案:
首先我们打开window的控制面板,接下就是找到管理工具双击进去,找到服务这个项,双击进去,查看服务IIS Admin这一个服务把他停掉就没事了,原因是因为IIS默认是启动smtp服务的因此就是因为这个原因困扰了我一晚,还先重装系统现在不用了~~呵呵很高兴~~这是我第一次在javaeye里发表自己的的博文,呵呵写的不是很好希望大家见谅,希望这篇文章对大家有帮助~~呵呵~~如果没有装IIS的一般不会出现这种问题~~本人是这样认为的~~.就这样~~嘻嘻
WARN 2009-10-28 09:48:43.609 [Phoenix ] (): Phoenix was not started by the daemon thus it will not be possible to restart the JVM via the Management interface.
INFO 2009-10-28 09:48:43.734 [Phoenix.] (): Installing Sar located at file:/D:/james-2.3.2/apps/james.sar.
WARN 2009-10-28 09:48:43.921 [Phoenix.] (): The file conf/sqlResources.xml can not be extracted from the Sar "file:/D:/james-2.3.2/apps/james.sar" into directory D:\james-2.3.2\apps\james\conf\sqlResources.xml because there is a file in the way.
WARN 2009-10-28 09:48:43.921 [Phoenix.] (): The file conf/james-fetchmail.xml can not be extracted from the Sar "file:/D:/james-2.3.2/apps/james.sar" into directory D:\james-2.3.2\apps\james\conf\james-fetchmail.xml because there is a file in the way.
WARN 2009-10-28 09:48:43.921 [Phoenix.] (): The file conf/james-smtphandlerchain.xml can not be extracted from the Sar "file:/D:/james-2.3.2/apps/james.sar" into directory D:\james-2.3.2\apps\james\conf\james-smtphandlerchain.xml because there is a file in the way.
WARN 2009-10-28 09:48:43.921 [Phoenix.] (): The file conf/miResources.xml can not be extracted from the Sar "file:/D:/james-2.3.2/apps/james.sar" into directory D:\james-2.3.2\apps\james\conf\miResources.xml because there is a file in the way.
WARN 2009-10-28 09:48:43.921 [Phoenix.] (): The file conf/james-listmanager.xml can not be extracted from the Sar "file:/D:/james-2.3.2/apps/james.sar" into directory D:\james-2.3.2\apps\james\conf\james-listmanager.xml because there is a file in the way.
WARN 2009-10-28 09:48:43.921 [Phoenix.] (): The file conf/james-liststores.xml can not be extracted from the Sar "file:/D:/james-2.3.2/apps/james.sar" into directory D:\james-2.3.2\apps\james\conf\james-liststores.xml because there is a file in the way.
WARN 2009-10-28 09:48:43.921 [Phoenix.] (): The file conf/samples/fetchmail/maxMessageSize.xml can not be extracted from the Sar "file:/D:/james-2.3.2/apps/james.sar" into directory D:\james-2.3.2\apps\james\conf\samples\fetchmail\maxMessageSize.xml because there is a file in the way.
WARN 2009-10-28 09:48:43.921 [Phoenix.] (): The file conf/samples/fetchmail/oneAccountManyUsers.xml can not be extracted from the Sar "file:/D:/james-2.3.2/apps/james.sar" into directory D:\james-2.3.2\apps\james\conf\samples\fetchmail\oneAccountManyUsers.xml because there is a file in the way.
WARN 2009-10-28 09:48:43.921 [Phoenix.] (): The file conf/samples/fetchmail/oneAccountManyUsersDynamic.xml can not be extracted from the Sar "file:/D:/james-2.3.2/apps/james.sar" into directory D:\james-2.3.2\apps\james\conf\samples\fetchmail\oneAccountManyUsersDynamic.xml because there is a file in the way.
WARN 2009-10-28 09:48:43.921 [Phoenix.] (): The file conf/samples/fetchmail/oneAccountPerUser.xml can not be extracted from the Sar "file:/D:/james-2.3.2/apps/james.sar" into directory D:\james-2.3.2\apps\james\conf\samples\fetchmail\oneAccountPerUser.xml because there is a file in the way.
WARN 2009-10-28 09:48:43.921 [Phoenix.] (): The file conf/samples/fetchmail/oneAccountPerUserDynamic.xml can not be extracted from the Sar "file:/D:/james-2.3.2/apps/james.sar" into directory D:\james-2.3.2\apps\james\conf\samples\fetchmail\oneAccountPerUserDynamic.xml because there is a file in the way.
WARN 2009-10-28 09:48:43.921 [Phoenix.] (): The file conf/samples/fetchmail/remoteReceivedHeader.xml can not be extracted from the Sar "file:/D:/james-2.3.2/apps/james.sar" into directory D:\james-2.3.2\apps\james\conf\samples\fetchmail\remoteReceivedHeader.xml because there is a file in the way.
WARN 2009-10-28 09:48:43.921 [Phoenix.] (): The file SAR-INF/config.xml can not be extracted from the Sar "file:/D:/james-2.3.2/apps/james.sar" into directory D:\james-2.3.2\apps\james\SAR-INF\config.xml because there is a file in the way.
WARN 2009-10-28 09:48:43.921 [Phoenix.] (): The file SAR-INF/assembly.xml can not be extracted from the Sar "file:/D:/james-2.3.2/apps/james.sar" into directory D:\james-2.3.2\apps\james\SAR-INF\assembly.xml because there is a file in the way.
WARN 2009-10-28 09:48:43.921 [Phoenix.] (): The file SAR-INF/environment.xml can not be extracted from the Sar "file:/D:/james-2.3.2/apps/james.sar" into directory D:\james-2.3.2\apps\james\SAR-INF\environment.xml because there is a file in the way.
INFO 2009-10-28 09:48:44.171 [Phoenix.] (): Verifying that all key-stores have valid names.
INFO 2009-10-28 09:48:44.171 [Phoenix.] (): Verify that any keystore names used by grant or permission reference actual keystores
INFO 2009-10-28 09:48:44.171 [Phoenix.] (): Verify that if target is null then actions is null.
INFO 2009-10-28 09:48:44.484 [Phoenix.] (): Verifying that the name specified for Blocks and BlockListeners are valid.
INFO 2009-10-28 09:48:44.500 [Phoenix.] (): Verifying that the names specified for Component are valid.
INFO 2009-10-28 09:48:44.500 [Phoenix.] (): Verifying that the names specified for the Components are unique.
INFO 2009-10-28 09:48:44.500 [Phoenix.] (): Verifying that the dependency mapping is valid according to ComponentInfos.
INFO 2009-10-28 09:48:44.500 [Phoenix.] (): Verifying that the dependency mapping for every Component is valid with respect to other components.
INFO 2009-10-28 09:48:44.500 [Phoenix.] (): Verifying that there are no circular dependencies between Components.
INFO 2009-10-28 09:48:44.500 [Phoenix.] (): Verifying that the name specified for Blocks and BlockListeners are unique.
INFO 2009-10-28 09:48:44.500 [Phoenix.] (): Verifying that the specified Blocks have valid types.
INFO 2009-10-28 09:48:44.531 [Phoenix.] (): Verifying that the specified BlockListeners have valid types.
INFO 2009-10-28 09:48:44.578 [Phoenix.] (): 20 Blocks to process for phase "startup". Order of processing = [dnsserver, database-connections, mailstore, users-store, localusersrepository, spoolrepository, sockets, thread-manager, scheduler, James, mailetpackages, matcherpackages, spoolmanager, connections, remotemanager, pop3server, smtpserver, nntp-repository, nntpserver, fetchmail].
ERROR 2009-10-28 09:48:44.906 [Phoenix.] (): Component named "smtpserver" failed to pass through the Starting stage. (Reason: java.net.BindException: Address already in use: JVM_Bind).
ERROR 2009-10-28 09:48:44.906 [Phoenix.] (): There was an error running phase "startup" for Block named "smtpserver". (Reason: Component named "smtpserver" failed to pass through the Starting stage. (Reason: java.net.BindException: Address already in use: JVM_Bind).).
org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleException: Component named "smtpserver" failed to pass through the Starting stage. (Reason: java.net.BindException: Address already in use: JVM_Bind).
at org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleHelper.fail(LifecycleHelper.java:354)
at org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleHelper.startup(LifecycleHelper.java:226)
at org.apache.avalon.phoenix.components.application.DefaultApplication.startup(DefaultApplication.java:530)
at org.apache.avalon.phoenix.components.application.DefaultApplication.doRunPhase(DefaultApplication.java:478)
at org.apache.avalon.phoenix.components.application.DefaultApplication.runPhase(DefaultApplication.java:409)
at org.apache.avalon.phoenix.components.application.DefaultApplication.start(DefaultApplication.java:180)
at org.apache.avalon.framework.container.ContainerUtil.start(ContainerUtil.java:260)
rethrown from
java.net.BindException: Address already in use: JVM_Bind
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(Unknown Source)
at java.net.ServerSocket.bind(Unknown Source)
at java.net.ServerSocket.<init>(Unknown Source)
at org.apache.avalon.cornerstone.blocks.sockets.DefaultServerSocketFactory.createServerSocket(DefaultServerSocketFactory.java:74)
at org.apache.james.core.AbstractJamesService.initialize(AbstractJamesService.java:337)
at org.apache.james.smtpserver.SMTPServer.initialize(SMTPServer.java:256)
INFO 2009-10-28 09:48:44.906 [Phoenix.] (): exception while starting:Component named "smtpserver" failed to pass through the Starting stage. (Reason: java.net.BindException: Address already in use: JVM_Bind).
WARN 2009-10-28 09:48:44.906 [Phoenix.] (): Failed to start application james.
org.apache.avalon.framework.CascadingException: Failed to start application james.
at org.apache.avalon.phoenix.components.kernel.DefaultKernel.startup(DefaultKernel.java:313)
at org.apache.avalon.phoenix.components.kernel.DefaultKernel.addApplication(DefaultKernel.java:376)
at org.apache.avalon.phoenix.components.deployer.DefaultDeployer.deploy(DefaultDeployer.java:357)
at org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFile(DefaultEmbeddor.java:542)
at org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFile(DefaultEmbeddor.java:535)
at org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFiles(DefaultEmbeddor.java:520)
at org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployDefaultApplications(DefaultEmbeddor.java:509)
rethrown from
org.apache.avalon.phoenix.interfaces.ApplicationException: Component named "smtpserver" failed to pass through the Starting stage. (Reason: java.net.BindException: Address already in use: JVM_Bind).
at org.apache.avalon.phoenix.components.application.DefaultApplication.start(DefaultApplication.java:186)
at org.apache.avalon.framework.container.ContainerUtil.start(ContainerUtil.java:260)
at org.apache.avalon.phoenix.components.kernel.DefaultKernel.startup(DefaultKernel.java:295)
at org.apache.avalon.phoenix.components.kernel.DefaultKernel.addApplication(DefaultKernel.java:376)
at org.apache.avalon.phoenix.components.deployer.DefaultDeployer.deploy(DefaultDeployer.java:357)
at org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFile(DefaultEmbeddor.java:542)
at org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFile(DefaultEmbeddor.java:535)
rethrown from
org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleException: Component named "smtpserver" failed to pass through the Starting stage. (Reason: java.net.BindException: Address already in use: JVM_Bind).
at org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleHelper.fail(LifecycleHelper.java:354)
at org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleHelper.startup(LifecycleHelper.java:226)
at org.apache.avalon.phoenix.components.application.DefaultApplication.startup(DefaultApplication.java:530)
at org.apache.avalon.phoenix.components.application.DefaultApplication.doRunPhase(DefaultApplication.java:478)
at org.apache.avalon.phoenix.components.application.DefaultApplication.runPhase(DefaultApplication.java:409)
at org.apache.avalon.phoenix.components.application.DefaultApplication.start(DefaultApplication.java:180)
at org.apache.avalon.framework.container.ContainerUtil.start(ContainerUtil.java:260)
rethrown from
java.net.BindException: Address already in use: JVM_Bind
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(Unknown Source)
at java.net.ServerSocket.bind(Unknown Source)
at java.net.ServerSocket.<init>(Unknown Source)
at org.apache.avalon.cornerstone.blocks.sockets.DefaultServerSocketFactory.createServerSocket(DefaultServerSocketFactory.java:74)
at org.apache.james.core.AbstractJamesService.initialize(AbstractJamesService.java:337)
at org.apache.james.smtpserver.SMTPServer.initialize(SMTPServer.java:256)
WARN 2009-10-28 09:48:44.953 [Phoenix.] (): Error deleting Work Directory "D:\james-2.3.2\work\james-1256694523734". (Reason: File D:\james-2.3.2\work\james-1256694523734\SAR-INF\lib\mailet-api-2.3.jar unable to be deleted.)
java.io.IOException: File D:\james-2.3.2\work\james-1256694523734\SAR-INF\lib\mailet-api-2.3.jar unable to be deleted.
at org.apache.avalon.excalibur.io.FileUtil.forceDelete(FileUtil.java:743)
at org.apache.avalon.excalibur.io.FileUtil.cleanDirectory(FileUtil.java:910)
at org.apache.avalon.excalibur.io.FileUtil.deleteDirectory(FileUtil.java:866)
at org.apache.avalon.excalibur.io.FileUtil.forceDelete(FileUtil.java:735)
at org.apache.avalon.excalibur.io.FileUtil.cleanDirectory(FileUtil.java:910)
at org.apache.avalon.excalibur.io.FileUtil.deleteDirectory(FileUtil.java:866)
at org.apache.avalon.excalibur.io.FileUtil.forceDelete(FileUtil.java:735)
WARN 2009-10-28 09:48:45.125 [Phoenix.] (): Failed to stop application james as it is not initialized/started.
大家有有遇到过这种异常吗?最近我要做一个邮件系统。因此要使用一个服务器来支持运行收发邮件的功能,一开始启动服务没有问题~~可是当要改localhost为自己的域名,改完后就狂报错~~就是上面那个错误,我看了在james根目录下一个logs;里面的日志文件里面的异常,才知道是占用了端口号~~可是就是不知道占用了那么端口~~,因此在网上找找看有什么好的解决方法,找了很久都不知道个所以然,我也的机子也重启了不少次,就是还没有解决,郁闷了整个晚上,隔天还是继续找那个问题~~到最后在一个csdn论坛上找到了一个启发点就是,IIS默认是会启动开启了IIS自带的SMTP服务,就是这困扰我一晚上,呵呵,现在终于解决了,好了接下来就说说我是怎么解决这个问题的,还有一点就是可以使用 netstat doc命令来查看那么端口在启动。
上面那个异常的解决方案:
首先我们打开window的控制面板,接下就是找到管理工具双击进去,找到服务这个项,双击进去,查看服务IIS Admin这一个服务把他停掉就没事了,原因是因为IIS默认是启动smtp服务的因此就是因为这个原因困扰了我一晚,还先重装系统现在不用了~~呵呵很高兴~~这是我第一次在javaeye里发表自己的的博文,呵呵写的不是很好希望大家见谅,希望这篇文章对大家有帮助~~呵呵~~如果没有装IIS的一般不会出现这种问题~~本人是这样认为的~~.就这样~~嘻嘻
评论
3 楼
黑白配
2014-03-28
我一定要赞 因为我找了一下午 不知道是哪个端口
2 楼
a545807638
2011-06-15
好厉害
1 楼
695w
2009-11-18
嗯,写的不错,我查了半天也没看到哪个把端口占了,呵呵,谢谢你的分享!
相关推荐
Dan Jurafsky and James H. Martin August 28, 2017 自然语言处理经典书籍
英文原版,James W.Nilsson / Susan A.Riedel 英文原版,James W.Nilsson / Susan A.Riedel
James R. Munkres - Topology.djvu 拓扑方面很好的一本书
[算法]Data Structures, Algorithms and Program Style Using C - James F. Korsh.chm
[James B.Tsui]Digital Techniques for Wideband Receivers,中文名为“款带数字接收机”还是英文原版的好
美国智库战略与国际研究中心(CSIS)James A.Lewis的演讲主题为《网络安全神话传说与现实》,他认为网络已成为全球经济中最重要的基础设施,但互联网设计并不安全:90%的成功攻击仅需要基本的技能,仅有3%的攻击需要...
James B. Rawlings, David Q. Mayne, Moritz M. Diehl. Chapter 1 is introductory. It is intended for graduate students in engineering who have not yet had a systems course. But it serves a second ...
James Kennedy. The Essential Particle Swarm.pdf"James Kennedy. The Essential Particle Swarm.pdf
学习电路课程的精品教材。此文件为3个压缩包之一,请下载其它两个,并在同一目录下解压。
《Python编程入门经典》.((美)James W. Payne)《Python编程入门经典》.((美)James W. Payne)《Python编程入门经典》.((美)James W. Payne)
经典微分方程的教材,适合初学者 Part I First order differential equations Part II Second order linear equations with constant coefficients Part III Linear second order equations with ...
james、activation.jar、james-2.3.2.jar、mail.jarjames、activation.jar、james-2.3.2.jar、mail.jarjames、activation.jar、james-2.3.2.jar、mail.jarjames、activation.jar、james-2.3.2.jar、mail.jarjames、...
Analog BiCMOS Design--James C. Daly Analog BiCMOS Design--James C. Daly 英文文字版
SUMS13 Hyperbolic Geometry, James W. Anderson (1999).zip
Characteristic Classes_John W.Milnor, James D.Stasheff
这是SQL完全手册(第三版),虽然现市面上已出了第四版,但本书也能教你很好地学会SQL。
calculus eighth edition James Stewart James Stewart eighth edition
Comment on James J. Heckman, `Instrumental Variables A study of Implicit Behavio
Beginning Python Using Python 2.6 and Python 3.1 - James W. Payne.pdf )
James W. Miskin关于集成学习的代码