eclipse ideで私のjboss設定に問題があります:
jboss-service.xmlでJbossの設定を変更しなければならなかったのは、デフォルトのポートがすでに使用されていたからです)。
eclipseでのサーバー構成の変更は考慮されていませんでした。サーバーのプロパティのjndiポートは開始アクションで考慮されていないようです。
JBOSS/default/confリポジトリのjboss-service.xmlを変更しました。Eclipse上のJboss設定
<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>
この変更はJBossの開始時には十分に考慮されていますが、通常は停止できません。停止アクションは1099ポートを保持しているため、サーバーを停止する代わりにJavaプロセスを強制終了します。
構成:JBossの3.2.5と3.4.0