IDEA 11 and JBoss 7 Problems

Hi Guys,

I've just been trying out the new Jboss 7 support in IDEA 11 and I've had a bit of trouble. Just wondering if I'm the only one out there and maybe it's because I'm doing something wrong.

I keep getting problems when I try to redeploy a web app. Such as:

ERROR [org.jboss.as.controller] (pool-2-thread-4) Operation ("add") failed - address: ([("deployment" => "myapp.war")]): java.lang.IllegalStateException: duplicate resource [("deployment" => "myapp.war")]

Also I noticed if I have other WAR's deployed I just get a message from JBoss in the logs telling me to place a .dodeploy file in order to deploy the application. Shouldn't IDEA be doing this as part of the JBoss 7 integration.


Another thing I noticed is if I use different interface settings in standalone.xml, such as when I want JBoss to be bound to my machine's static IP address. IDEA doesn't seam to be connected and gives me messages about JBoss not being available (I suspect it's still trying to use localhost instead of the configured IP address in standalone.xml).

Overall it's probably unusable right now with all the issues I'm having. I'd like to hear back from someone that's using it or the person responsible for the Jboss support to see if I can iron out the current usability.

Thanks
Johnny

6 comments

Hello,

Regarding the re-deploy issue, it looks very similar to the http://youtrack.jetbrains.net/issue/IDEA-78065, could you please confirm that you are using the JBoss 7.0.2?
We have already fixed the issue, but it is not yet included into the IDEA 11 stream, so we only may ask you to downgrade JBoss to 7.0.0 while we are working on promoting the fix to the 11.0.x.

Indeed, if you have JBoss bound to your host static IP only, IDEA would not be able to connect to it with local run configuration, since IDEA expects 'localhost' to be available.
This is the common behavior for all app servers integraions, and I am pretty sure it would never worked before 11 as well.

I would recommend you to use remote run configuration in this case (start JBoss manually, and deploy/debug the server instance with the remote run configuration)
or configure JBoss to be bound to both static IP and 'localhost'.

Regards,
Michael

0

Hi Michael, thanks for the reply.

Yes I've been using Jboss AS 7.0.2. Any idea on when the fix will be out?

I currently use Eclipse with the Jboss Tools plugin and it's able to start and stop local jboss AS even though the ip address is bound to something other than localhost. This is how I've been working. (I need this as I have to route ip traffic to my machine for others to observe my development server).

Thanks
Johnny

0

Hello,

Unfortunately the fix for 7.0.2 is not yet determined to be moved to release branch.
If it will help, I may build unofficial version of the fixed JBoss plugin and post single jar here for you to replace the released version. Please let me know.

Regarding the other problem, we can't easily remove the requirement for local run configurations to use the localhost.
Again, please consider the suggestion from previuos comment:

use remote run configuration in this case (start JBoss manually, and deploy/debug the server instance with the remote run configuration)


Regards,
Michael

0

Hello,

Here it is, just unpack it and replace the <IDEA HOME>/plugins/JBoss folder.
I would save the original contents somewhere, just in case :)

Regards,
Michael



Attachment(s):
JBoss.zip
0

I had the same problem and your patch fixed it.

Thanks.

0

Please sign in to leave a comment.