JBoss 4.2.2GA Run Configuration and the /conf/jboss-service.xml
Our app passes in VM parameters to JBoss to support multiple running instances on the same machine. These vm args then become a prefix for things like the jndi port. For example,
VM arg: -Dnode.port.prefix=1
/conf/jboss-service.xml
<mbean code="org.jboss.naming.NamingService"
name="jboss:service=Naming"
xmbean-dd="resource:xmdesc/NamingService-xmbean.xml">
...
<attribute name="Port">${node.port.prefix}1099</attribute>
...
To get my JBoss RunConfiguration to start I have to manually edit this file and remove our ${node.port.prefix}. Otherwise I get:
Error running JBoss 4.2.2-GA: Error running JBoss Server.
Exception occurred : java.IllegalArgumentException
Exception message : Port value out of range: 2147483647
Is IntelliJ monitoring this file and trying to make sure that the JNDI port is happy?
Thanks!
-Marc
IntelliJ 9.0 Build 93.13
jdk 1.6.0_17
Mac OS X 10.6.2
请先登录再写评论。
IntelliJ is talking with JBoss through JNDI. Therefore it reads this file to know on which port JBoss is listening for JNDI connections. While the format <attribute name="Port">${some.variable}</attribute> is supported, your combination of prefix and fix value is currently not supported.