Adding JBoss 6 as application server

We are starting a new project on JBoss 6, and I have a problem adding it as an application server.
IDEA constantly warns me the the selected directory is not a valid JBoss home, though I have just unzipped it. I also tried downloading JBoss AS 7, and the result was the same.
Has anyone an idea what is wrong?

9 comments
Official comment

Hello, 

Thanks for analysis. Could you please try to rename the symlink into "jboss-as-version-x.jar" and verify that it is also detected this way. 

I have opened https://youtrack.jetbrains.com/issue/IDEA-168898 and will fix the code to accept any "jboss-as-version*" file as a version provider (and just in case will relax the corresponding WildFly pattern to "wildfly-version*").

The fix will available in the next 171 EAP. 

 

Once again, thanks for your help. 

Regards, 

Michael

 

 

Hello,

What is your exact JBoss version(s)?
What is your IDEA version?

To provide more details, please do the following:

1) replace the <IDEA home>/bin/log.xml with the attached one, or add the following lines at the end of the existing one:

<category name="#com.intellij.javaee.oss.server.JavaeePersistentDataEditor">
    <priority value="DEBUG"/> <appender-ref ref="CONSOLE-ALL"/>
  </category>

  <category name="#com.intellij.javaee.oss.jboss.server.JBossIntegration">
    <priority value="DEBUG"/> <appender-ref ref="CONSOLE-ALL"/>
  </category>

2) (re)start the IDEA
3) try to add JBoss as the application server in IDEA (reproduce the "... is not valid ..." message)
4) attach produced IDEA log (Help -> Reveal log in explorer)

Regards,
Michael



Attachment(s):
log.xml
0

What you suggested adding did not make a difference to the log file. The same thing was written with or without it. Instead I tried to change the root log level to debug, and then I got the following:

2013-02-26 13:49:36,665 [  31817]  DEBUG - ver.JavaeePersistentDataEditor -  
java.io.FileNotFoundException: C:\jboss\jboss-eap-6.0\bin\run.jar (The system cannot find the file specified)
 at java.util.zip.ZipFile.open(Native Method)
...



Nowhere does my JBoss 6.0 or JBoss 7.1 contain a run.jar. JBoss 4.2 however does contain a run.jar in the bin folder.

I use IDEA 10.5.4
0

Gaigo,

There is a difference between JBoss 6 and JBoss 6 EAP, which is actually the commercial version of JBoss 7 (that's why I asked about the exact version of JBoss you are using).


IDEA 10.5.x stream is a minor bugfix stream for IDEA 10.5 originally released in May 11, so it doesn't support neither JBoss 7 (released July 11) nor JBoss 6 EAP (released June 12), while actually supporting JBoss 6.
JBoss 7 is supported by IDEA 11+ and JBoss 6 EAP is supported by IDEA 11.1+

I would suggest you to try it with an IDEA 12.

Regards,
Michael

0

Hello,

we are using JBoss EAP 6.2 and the latest available version of Intellij IDEA (2016.3.2) in our organisation. But we are still experiencing the same issue: IDEA cannot determine JBOSS version, and complains that "The selected directory is not a valid JBoss home". There is the following message in the IDEA's log: "java.io.FileNotFoundException: File 'bin/run.jar' not found". Was there a fix for this issue, ever?

Regards,

Leonid.

0

Leonid,

It had been fixed long time ago.

I can't reproduce the issue with the fresh installation of JBoss EAP 6.2 downloaded from here, IDEA detects it as a '7.3.0.Final-redhat-14'. I guess that your installation is either modified or had been produced by applying official patches over the older version.

We have a long story of battling the officially patched servers but it seems that every patch uses slightly different patching mechanics. 

Could you please reopen IDEA-129630 or submit the new one if you have other version than 6.2.3, and: 

- attach the whole archived server home (this is the must, we can't progress otherwise)

- describe the way how to produce this installation 

- if possible, also attach the patches used to create the same installation 

You may use https://uploads.services.jetbrains.com to upload big files. 

Regards, 

Michael 

 

 

0

Michael,

thanks for your answer.

I discovered that our JBoss installation reports its version as "JBoss EAP 6.4.5.GA (AS 7.5.5.Final-redhat-3)".

The exact same version downloaded from developers.redhat.com gets detected properly by IDEA.

The directory structure of our JBoss installation seems to be somewhat different from the original JBoss provided by Red Hat, so we must be dealing with a customized installation here.

As to uploading the whole archived server home, I'm not sure our company's policy would allow it. I'll try to find out.

Regards,

Leonid.

0

The exact problem with our JBoss intallation was identified as follows:

The "modules" directory contains the module modules/system/layers/base/org/jboss/as/version/main/jboss-as-version.jar. It seems that for IDEA to detect JBoss version properly, this module has to be renamed to jboss-as-version-Final.jar. In fact, creating a symlink to the module with this name works just fine, IDEA starts detecting the version properly.

According to the information I managed to gather, our JBoss installation is the result of applying "official Red Hat update" using rpms. So, this looks like either an issue with the Red Hat JBoss rpms structure, or with IDEA. For now, we're able to work around that in our development environment, but would it be possible to fix this in IDEA?

Regards,

Leonid.

0

Hi Michael,

thanks for your answer.

The 'jboss-as-version-x.jar' works just fine, so the fix that you proposed should be sufficient.

Regards,

Leonid.

0

Please sign in to leave a comment.