facebook

Unable to configure jboss 5 server on Yosemite

  1. MyEclipse IDE
  2.  > 
  3. Installation, Configuration & Updates
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #352414 Reply

    Mark Coyne
    Member

    I recently upgraded to Yosemite on the Mac and in the process also upgraded from MyEclipse 8 to the latest version 2015 CI.

    I am trying to set up a jboss 5 server in the environment and every time I do the system is not recognizing the java 6 jdk that I have installed on the Mac OS. I have confirmed that I have the correct jdk as javac version 1.6.0_65 is listed when I do javac -version in the terminal.

    The error I get is “JBoss 5.0 Runtime requires JDK of launching launching” which I am assuming means it is not recognizing the jdk. This is not just a problem for jboss 5, I could not get it to recognize the jdk for JBoss 7 either.

    While I can run Jboss outside the IDE with no problems, my obvious problem is that I cannot set up breakpoints and debug programs, so I really need to get this working again.

    Can anyone help?

    #352419 Reply

    support-tony
    Keymaster

    Mark,

    Sorry you’re seeing this issue. I was able to replicate it and will raise a bug report.

    A workaround is to create a new run configuration (Run->Run Configurations then select MyEclipse Server, right click, select New) and specify the JBoss runtime then alter the JRE tab to point to your Java 6 JRE. Give the configuration an appropriate name and save it. It can be run from the Run Configurations or from Run->Run History (after the first launch) or by pulling down the run icon on the toolbar and selecting the configuration. It will appear in the debug configuration list also.

    Sorry for the inconvenience and thanks for using MyEclipse 2015.

    #352427 Reply

    Mark Coyne
    Member

    I couldn’t get your solution to work. After selecting the run configuration I have to pick a server and the only options are MyEclipse Derby and MyEclipse Tomcat, I don’t have a JBoss option.

    I have managed to get around the issue for now by starting the server externally from MyEclipse with remote debug listening mode on. This can be done by uncommenting the appropriate line in the run.conf file. Then I created a remote java application in the debug configurations option under the run menu in Myeclipse that listens on the same port (8787) with a connection type of Socket Attach. This seems to instantiate the debugger for the remote server. One note for others is that this didn’t work until I exited out of MyEclipse and restarted after making the changes.

    Not as easy as having it all work in MyEclipse, but better than nothing until a fix comes. Actually it is quite a useful trick to know if you need to debug a remote server, so it wasn’t a complete waste of effort researching it!

    #352429 Reply

    support-tony
    Keymaster

    Mark,

    At least you’ve learned something in the process, which is an added bonus!

    Sorry for not including complete information in my last reply. I had thought that you may have created a JBoss runtime, with another JDK, probably the one that comes with MyEclipse. You will need to create a valid runtime in order to have the server appear in the list, to choose from. Then you can alter the JDK from the JRE tab of the run configuration, to point to your JRE defined for Java 6. Then Apply the changes and Run. It should then appear in the run history for later easy launching.

    (Note: the JRE can’t be changed in the default run configuration for the newly defined server runtime, though it appears that it can be changed – this is related to a separate bug to be fixed soon).

    Please let me know if this helps but I hope we get a fix for this in the next CI release.

    #352439 Reply

    Mark Coyne
    Member

    Nope – That is my catch-22. I got a new iMac and set everything up from scratch (which I like to do every so often, as painful as it is). So there was no existing JBoss runtime in place. The only JREs offered when setting up the runtime are the MacOS ones which are not recognized as JDKs as I mentioned.

    Is there a MyEclipse Java 6 JDK included in the MyEclipse 2015 CI download? If so, where is it located and I can try and use that.

    Otherwise I’ll just wait for the update as I do have a workaround that works right now.

    Thanks for your help

    #352462 Reply

    support-tony
    Keymaster

    Mark,

    You’d have to create the JBoss runtime (as I thought you were trying to do when you got the problem with Java 6) with the JDK shipped with MyEclipse. That has nothing to do with the Mac, as such.You can think of a runtime as the server definition, that you see in the Servers view.

    Once a valid runtime is defined then that runtime can be referenced in a new run configuration where you can override the Java 7 JRE with the Java 6 JRE, that you would have defined separately.

    I can try to provide a step by step description, with screenshots, if I haven’t explained it well enough here so far.

    Prior to Java 7, it wasn’t possible to package a JDK with MyEclipse, as the OS X version of the JDK had to be used. Now, Java 7, and above, can be downloaded from oracle and used without any problem. Consequently, we can package Java 7 and above with MyEclipse. If you need Java 6 then that has to be the Apple version.

    If you simply use the Java 7 JDK, that we package with MyEclipse, when defining the JBoss runtime, then there won’t be any problem but I’m assuming that you have to use the Java 6 JDK, for some reason.

    #352721 Reply

    Mark Coyne
    Member

    I recently installed an update to 2015CI and it looks like the server setup has been changed, but I still get a similar message when I try and select the Apple Java 6 JDK. Was this issue fixed in this current release and if not how can I track which release it will be fixed in?

    Thanks

    #352735 Reply

    support-tony
    Keymaster

    Mark,

    I’m afraid that the fix didn’t make it into last week’s release but it looks like it will make it into the next one (they are usually two to three weeks apart) as the fix is being tested now. Sorry, there is no way to track this externally.

    #353843 Reply

    support-swapna
    Moderator

    Hi,

    The fix is out with the latest MyEclipse 2015 release. Please go to Help > Check for Updates and update to the latest release.

    If you are looking for a stable release, then you can download the MyEclipse 2015 Stable 1.0 installer from here : https://www.genuitec.com/products/myeclipse/download/

    Let us know if you see any issues.

Viewing 9 posts - 1 through 9 (of 9 total)
Reply To: Unable to configure jboss 5 server on Yosemite

You must be logged in to post in the forum log in