[SEAM] 在eclipse里启动jboss server的时候,总说是1098端口被占用

abelzcg 2009-01-24
在学习blog这个例子,但是在eclipse里启动jboss server的时候,得到下面的错误,总说是1098端口被占用,从而导致jboss server启动不了,请大家帮我看看如何解决,谢谢!

2009-01-24 14:08:02,995 DEBUG [org.jboss.system.ServiceConfigurator] (main) RmiPort set to 1098 in jboss:service=Naming
2009-01-24 14:08:02,995 DEBUG [org.jboss.system.ServiceConfigurator] (main) RmiBindAddress set to localhost in jboss:service=Naming
2009-01-24 14:08:03,010 DEBUG [org.jboss.system.ServiceConfigurator] (main) LookupPool set to MBeanProxyExt[jboss.system:service=ThreadPool] in jboss:service=Naming
2009-01-24 14:08:03,010 DEBUG [org.jboss.system.ServiceConfigurator] (main) Naming set to MBeanProxyExt[jboss:service=NamingBeanImpl] in jboss:service=Naming
2009-01-24 14:08:03,010 DEBUG [org.jboss.system.ServiceController] (main) Creating service jboss:service=Naming
2009-01-24 14:08:03,010 DEBUG [org.jboss.naming.NamingService] (main) Creating jboss:service=Naming
2009-01-24 14:08:03,010 DEBUG [org.jboss.naming.NamingService] (main) Created jboss:service=Naming
2009-01-24 14:08:03,010 DEBUG [org.jboss.system.ServiceController] (main) starting service jboss:service=Naming
2009-01-24 14:08:03,010 DEBUG [org.jboss.naming.NamingService] (main) Starting jboss:service=Naming
2009-01-24 14:08:03,010 DEBUG [org.jboss.naming.NamingService] (main) System.setProperty, key=java.naming.factory.initial, value=org.jnp.interfaces.NamingContextFactory
2009-01-24 14:08:03,010 DEBUG [org.jboss.naming.NamingService] (main) System.setProperty, key=java.naming.factory.url.pkgs, value=org.jboss.naming:org.jnp.interfaces
2009-01-24 14:08:03,010 DEBUG [org.jboss.naming.Naming] (main) Begin start
2009-01-24 14:08:03,010 DEBUG [org.jboss.naming.Naming] (main) Creating NamingServer stub, theServer=MBeanProxyExt[jboss:service=NamingBeanImpl],rmiPort=1098,clientSocketFactory=null,serverSocketFactory=org.jboss.net.sockets.DefaultSocketFactory@8b49b677[bindAddress=localhost/127.0.0.1]
2009-01-24 14:08:03,166 DEBUG [org.jboss.naming.NamingService] (main) Starting failed jboss:service=Naming
java.rmi.server.ExportException: Port already in use: 1098; nested exception is:
java.net.BindException: Address already in use: JVM_Bind
at sun.rmi.transport.tcp.TCPTransport.listen(Unknown Source)
at sun.rmi.transport.tcp.TCPTransport.exportObject(Unknown Source)
at sun.rmi.transport.tcp.TCPEndpoint.exportObject(Unknown Source)
at sun.rmi.transport.LiveRef.exportObject(Unknown Source)
at sun.rmi.server.UnicastServerRef.exportObject(Unknown Source)
at java.rmi.server.UnicastRemoteObject.exportObject(Unknown Source)
at java.rmi.server.UnicastRemoteObject.exportObject(Unknown Source)
at org.jnp.server.Main.initJnpInvoker(Main.java:421)
at org.jnp.server.Main.start(Main.java:381)
at org.jboss.naming.NamingService.startService(NamingService.java:309)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:376)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:322)
hantsy 2009-01-24
系统运行的其它程序占用了。
用netstat命令查看一下哪个程序占用了。
dearshor 2009-01-25
Windows平台上,可用命令
netstat -aon | find "1098"

可显示正在使用 1098 端口的进程,记下其 pid,在任务管理器中结束此进程即可(如果不可以通过正常途径关闭此进程的话)

Linux平台上的命令忘记了,哪位知道可以补充一下。
abelzcg 2009-02-04
多谢!!!
我就是windows平台
Mrpublic 2009-03-03
好像在這個例子中用Oracle數據庫就有沖突

你改一下子嘛

對了 你把<S:cache>中Key屬性看懂沒呀?
abelzcg 2009-03-03
我的机器上没有安装过oracle,估计是单位的网络管理的软件的服务所占的
而且不是每次都有冲突,20次会冲突一次,冲突后重新启动机器就ok了。
wttloon 2009-03-03
我遇到过多次,分别是迅雷、QQ和电驴等占用了端口,关闭这些软件后,再启动jboss就没有问题了,然后再重新启动迅雷、QQ和电驴。
andyhan 2009-03-04
用 CurrPorts 
http://www.nirsoft.net/utils/cports.zip
abelzcg 2009-03-04

thanks!!!!!!!
Global site tag (gtag.js) - Google Analytics