简体   繁体   English

Eclipse 3.4 上的 Jboss 配置:停止问题

[英]Jboss configuration on Eclipse 3.4 : stopping issue

I have a problem with my jboss configuration on eclipse ide:我在 eclipse ide 上的 jboss 配置有问题:
I had to change the Jboss configuration in jboss-service.xml because the default port used was already in use (1099 port).我不得不更改 jboss-service.xml 中的 Jboss 配置,因为使用的默认端口已经在使用中(1099 端口)。
A server configuration change on eclipse wasn't taken into account: It seems to me that jndi port in server properties isn't taken into account on start action.未考虑 eclipse 上的服务器配置更改:在我看来,在启动操作时未考虑服务器属性中的 jndi 端口。
So I 've modified jboss-service.xml in JBOSS/default/conf repository.所以我在 JBOSS/default/conf 存储库中修改了 jboss-service.xml。

<code>
   <!-- ==================================================================== -->
   <!-- JNDI                                                                 -->
   <!-- ==================================================================== -->

   <mbean code="org.jboss.naming.NamingService"
      name="jboss:service=Naming">
      <!-- The listening port for the bootstrap JNP service. Set this to -1
        to run the NamingService without the JNP invoker listening port.
      -->
      <attribute name="Port">1199</attribute>
      <!-- The bootstrap JNP server bind address. This also sets the default
      RMI service bind address. Empty == all addresses
       -->
      <attribute name="BindAddress">${jboss.bind.address}</attribute>
      <!-- The port of the RMI naming service, 0 == anonymous -->
      <attribute name="RmiPort">1198</attribute>
      <!-- The RMI service bind address. Empty == all addresses
       -->
      <attribute name="RmiBindAddress">${jboss.bind.address}</attribute>
   </mbean>

   <mbean code="org.jboss.naming.JNDIView" 
        name="jboss:service=JNDIView"
        xmbean-dd="resource:xmdesc/JNDIView-xmbean.xml"> 
   </mbean>
</code>

This change is well taken into account on JBoss start but I can't stop it normally. JBoss 启动时充分考虑了此更改,但我无法正常停止。 The stop action keep 1099 port, so it kills the java process instead of stopping the server.停止操作保留 1099 端口,因此它会杀死 java 进程而不是停止服务器。

Configuration: JBoss 3.2.5 and eclipse 3.4.0配置:JBoss 3.2.5 和 eclipse 3.4.0

The server adapter that comes with JBoss Tools ( http://jboss.org/tools ) picks up the port values automatically from the xml and if that does not work you can double click the server and set the value explicitly. JBoss 工具( http://jboss.org/tools )附带的服务器适配器会自动从 xml 中获取端口值,如果该值不起作用,则可以双击服务器并设置该值。

JBoss, sometimes does not shutdown the server, so when you try to run it again the port is still in use... or by other factors like messenger or even Mozilla Firefox, if he gets ports like 1099 (jnp) you need to kill the process and try again, you can look across de ports and process in this way: JBoss,有时不会关闭服务器,因此当您尝试再次运行它时,该端口仍在使用中...进程再试一次,你可以这样查看端口和进程:

go to cmd: netstat -ano go 到 cmd:netstat -ano

look for the PID of the process using the port you need.使用您需要的端口查找进程的 PID。

go to Task Manager (Choose to show PID column if already not shown) kill the process. go 到任务管理器(如果尚未显示,请选择显示 PID 列)终止进程。

try again... But, the better way to do that is reserving ports for jboss.再试一次......但是,更好的方法是为 jboss 保留端口。 like for JNP, RMI, WEB and so.比如 JNP、RMI、WEB 等等。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM