facebook

JRebel messed up myEclipse – Incorrect VM Arguments..etc

  1. MyEclipse Archived
  2.  > 
  3. Application Servers and Deployment
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #323506 Reply

    ke3pup
    Member

    I have with myEclipse where my web application is failing to start as there is invalid arguments in the Run/Debug configuration i am unable to edit.

    Problem started after i installed JRebel for MyEclipse and after a short play i uninstalled it and restarted myEclipse.

    Ever since uninstallation of JRebel I am receiving following error: java.lang.NoClassDefFoundError: ${jrebel_args/server/myeclipse:tomcat6Server} Exception in thread “main”

    Digging into the Run configuration i can see the following VM Arguments: -Dcatalina.home=C:”/apache-tomcat-6.0.33″ -Dcatalina.base=C:”/apache-tomcat-6.0.33″ -Djava.endorsed.dirs=C:”/apache-tomcat-6.0.33/common/endorsed” -Djava.io.tmpdir=C:”/apache-tomcat-6.0.33/temp” -Djava.library.path=C:”/Program Files/Java/jdk1.5.0_19/bin;C:/apache-tomcat-6.0.33/bin” -Dsun.io.useCanonCaches=false -Drebel.log=true ${jrebel_args.server.myeclipse:”tomcat6Server}”

    Now i know i can just delete the offending line and things are ok, but the lines gets applied everytime i create a new runtime configuration via:

    Configure Server connector -> Tomcat -> Tomcat 6.x -> Lunch -> Create Lunch Configuration

    which produces a lunch configuration with following VM Arguments: -Dcatalina.home=C:”/apache-tomcat-6.0.33″ -Dcatalina.base=C:”/apache-tomcat-6.0.33″ -Djava.endorsed.dirs=C:”/apache-tomcat-6.0.33/common/endorsed” -Djava.io.tmpdir=C:”/apache-tomcat-6.0.33/temp” -Djava.library.path=C:”/Program Files/Java/jdk1.5.0_19/bin;C:/apache-tomcat-6.0.33/bin” -Dsun.io.useCanonCaches=false -Drebel.log=true ${jrebel_args.server.myeclipse:”tomcat6Server}”

    In this case I can edit VM Arguments and delete what shouldn’t have been inserted. But in case of creating “MyEclipse Server Application” run configuration where the Arguments tab is not visible, i am not able to edit the offending line and hence i always get the error.

    Not sure what’s going on! Even the hot Deploy function is no longer working. Can anyone suggest ways to fix this? thanks

    #323521 Reply

    support-joy
    Member

    ke3pup,

    I could replicate this issue. I believe you did the following –
    1. Installed JRebel
    2. Enabled JRebel settings on Tomcat 6.x
    3. Removed JRebel plugin(you did this without un-checking the jrebel settings on Tomcat 6.x)

    I have a crude fix for this –
    1. Install jrebel
    2. Uncheck the jrebel settings – “Enable JRebel agent” and “Enable debug logging” under Window > preferences > MyEclipse > Servers > Tomcat > Tomcat 6.x.
    3. Click on [Apply] and [OK].
    4. Un-install JRebel

    I have escalated this to dev team member. They would get back to you on this.

    #323554 Reply

    ke3pup
    Member

    @support-joy wrote:

    ke3pup,

    I have a crude fix for this –
    1. Install jrebel
    2. Uncheck the jrebel settings – “Enable JRebel agent” and “Enable debug logging” under Window > preferences > MyEclipse > Servers > Tomcat > Tomcat 6.x.
    3. Click on [Apply] and [OK].
    4. Un-install JRebel
    ……………
    .

    Thanks for the suggested fix. I did as you said and worked.

    Another thing i noticed is that now when i install/uninstall a plugin when myeclipse prompts me to Restart , after clicking Restart, myEclipse closes and that’s it, It doesn’t relaunch itself. Looking into Task Manager i can see that myEclipse is still sitting there using about %25 of cpu.

    #323563 Reply

    ke3pup
    Member

    Another very side effect i can see now.

    when i make changes to my code and press save i get the following error in a popup message:

    “Errors occurred during the build.
    Errors running builder ‘DeploymentBuilder’ on project ‘Customer_Build2’.
    java.lang.NullPointerException”

    this is after having followed your instructions to fix the initial issue. would you be able to tell me if this can be fixed? It’s extremly annoying having to deal with the popup window every time i press Ctrl-Save.

    any help would be appreciated.

    #323564 Reply

    ke3pup
    Member

    disabling “DeloymentBuilder” in project Properties fixes the Popup error message. But when i disable it , it says “This is an advance Operation. Disabling project builder can have many side-effects. Continue?”

    What are the side-effects? Enabling DeploymentBuilder back on immediately causes the errors to popup again.

    #323565 Reply

    support-joy
    Member

    ke3pup,

    Good to hear you are all set with JRebel issue.

    To help me investigate other issues, please provide below information –
    1. Open MyEclipse IDE, from menu options click on MyEclipse > Installation Summary > Installation Details > [copy to clipboard] and paste the same here
    2. Clear your .log file located at [your workspace dir]/.metadata/.log, replicate the issue and attach file here
    3. Attach screenshot of the issue you are seeing to help me get a visual
    4. What is the type of project you are working on? What are the code changes which result in the error message? Could you give me detailed steps to replicate the issue.
    5.

    disabling “DeloymentBuilder” in project Properties fixes the Popup error message. But when i disable it , it says “This is an advance Operation. Disabling project builder can have many side-effects. Continue?”

    Please attach a screenshot
    6. Have you added any third party plugins? If yes, please list them here with details such as update sites / weblink to download the plugins
    7. Also attach screenshot of MyEclipse Configuration Center > Software tab

    #337922 Reply

    Haggi
    Participant

    look at the settings folder within your workspace

    <workspace>\.metadata\.plugins\org.eclipse.core.runtime\.settings

    open the app server preferences file (ex.: com.genuitec.eclipse.easie.tomcat7.prefs)

    look at OPT_JVM_ARGS_APP and remove the jrebel variable ${jrebel_args.server.myeclipse\:tomcat7Server}

    same for all other app servers like jboss etc.

    #337923 Reply

    Haggi
    Participant

    you have to restart the MyEclipse.

Viewing 8 posts - 1 through 8 (of 8 total)
Reply To: JRebel messed up myEclipse – Incorrect VM Arguments..etc

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