Posted on 2011-06-18 13:13
帅子 阅读(2085)
评论(0) 编辑 收藏 所属分类:
j2se技术专区 、
申请加入java团队 、
j2ee技术专区
错误片段:
java.lang.Exception: Port 8083 already in use.
at org.jboss.web.WebServer.start(WebServer.java:221)
at org.jboss.web.WebService.startService(WebService.java:325)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:230)
at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
需要更改:\jboss5\server\default\conf\bootstrap\bindings.xm下的8083改为没有占用端口即可,下面改为8883
<bean class="org.jboss.services.binding.ServiceBindingMetadata">
<property name="serviceName">jboss:service=WebService</property>
<property name="port">8883</property>
</bean>