JBoss plugin- can't alter jboss-service.xml

hi everyone i have a jboss plugin problem.
im trying to run two instances of jboss on the same machine (its for testing purposes). i read that you can change the ports jboss is listening to, by uncommenting the section about ServiceBinding in the jboss-service.xml file. this seems to work fine, i am able to start two instances, which listen to different ports.
however when i alter the jboss-service.xml file (even if i just add a return or space INSIDE a commented section) intellij marks this configuration as not valid (it says: Run Configuration Error: Invalid server instance).
I can still start jboss from inside intellij, but it doesn't deploy any module and i cant stop it properly (only with the task manager)
im using intellij 4.5 (but i also tried with 5.0) and jboss 4.0.2.
is this a known bug??? or am i just stupid mising out something fundamental.
best regards joerg

6 comments

Joerg,

The only explanation for this behavior which comes to my mind is that
you're using an editor which locks the jboss-service.xml file. As soon
as you save your modifications, the plugin tries to re-read the JNDI
configuration but can't read the jboss-service.xml file because it's
still locked by the editor. If that's the case then the run
configuration should be marked as valid again after exiting from the editor.

By the way: changing ports by means of the service binding manager isn't
supported by the plugin for IDEA 4.5. You have either to use IDEA 5.0 or
to convince me to add this change to the version for 4.5 too... :)

- Martin

joergipoergi wrote:

hi everyone i have a jboss plugin problem.
im trying to run two instances of jboss on the same machine (its for testing purposes). i read that you can change the ports jboss is listening to, by uncommenting the section about ServiceBinding in the jboss-service.xml file. this seems to work fine, i am able to start two instances, which listen to different ports.
however when i alter the jboss-service.xml file (even if i just add a return or space INSIDE a commented section) intellij marks this configuration as not valid (it says: Run Configuration Error: Invalid server instance).
I can still start jboss from inside intellij, but it doesn't deploy any module and i cant stop it properly (only with the task manager)
im using intellij 4.5 (but i also tried with 5.0) and jboss 4.0.2.
is this a known bug??? or am i just stupid mising out something fundamental.
best regards joerg


--
Martin Fuhrer
Fuhrer Engineering AG
http://www.fuhrer.com

0

Hi martin!
first of all, thank you so much for your reply (and for your plugin, which really made life easier!!), allways appreciated. but unfortunatly my editor is not the problem. i've even restarted my computer just to make sure to release all the resources but not luck. jboss still gives me the same message. i use jboss 4.0.3 and idea 5.0.2 plugin is at version 2.9 (but i've tried with other combinations as well). the problem also occurs on the computer of a colleague.... maybe you could have another look.

best regards and wishes
joerg

0

Can you please send me your jboss-service.xml file?

joergipoergi wrote:

Hi martin!
first of all, thank you so much for your reply (and for your plugin, which really made life easier!!), allways appreciated. but unfortunatly my editor is not the problem. i've even restarted my computer just to make sure to release all the resources but not luck. jboss still gives me the same message. i use jboss 4.0.3 and idea 5.0.2 plugin is at version 2.9 (but i've tried with other combinations as well). the problem also occurs on the computer of a colleague.... maybe you could have another look.

best regards and wishes
joerg


--
Martin Fuhrer
Fuhrer Engineering AG
http://www.fuhrer.com

0

hi Martin!
problem is solved!!!! i managed to fix it by editing the file directly inside Intellij this did the trick. (and i think last week i was trying this with idea 4.5 ...)
so thanks again for all you support and your plugin it did get me on the right track again.



ps one more thing: in intellij 5.0 he tells me i can't deploy .sar (must be called .jar) is this something you added or intellij, cause it was no problem to add a service in v4.5. i just had to call it .sar and add all the neccessary files.

0

It's the plugin which is enforcing the .jar extension. This has been
introduced after many people having tried to deploy an exploded
directory without an extension.

In the next version of the plugin .sar will be recognized as a valid
extension too. Until then you have to wrap the sar module inside an
application module.

joergipoergi wrote:

hi Martin!
problem is solved!!!! i managed to fix it by editing the file directly inside Intellij this did the trick. (and i think last week i was trying this with idea 4.5 ...)
so thanks again for all you support and your plugin it did get me on the right track again.



ps one more thing: in intellij 5.0 he tells me i can't deploy .sar (must be called .jar) is this something you added or intellij, cause it was no problem to add a service in v4.5. i just had to call it .sar and add all the neccessary files.


--
Martin Fuhrer
Fuhrer Engineering AG
http://www.fuhrer.com

0

thanks and once again: great job!!

regards joerg

0

Please sign in to leave a comment.