facebook

How to associate VM Arguments with App Server Config?

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

    Dan
    Member

    I have followed your ed page at http://www.myeclipseide.com/documentation/quickstarts/tomcat/ to get my existing Tomcat project to run. But it needs some VM arguments to work, and I can’t figure out how to get a Tomcat debug configuration to work.

    I want to create an Integrated Sandbox target. I’ve created a new “MyEclipse Server” instance for myself configured with my arguments & alternate working directory. But it won’t allow me to launch it, as the debug button is grayed out. The top of the dialog reads “Launch configurations created from the MyEclipse server configurations at Windows > Preferences > MyEclipse > Applications Servers.” (which I don’t think is valid for my platform & verson). If I check “Add as Server” and fill out the root Tomcat directory, then it still can’t run & it reads at the top, “X Depoyment base location does not exist, please verify the deployment base directory.”

    *** Date: 
    Thursday, October 14, 2010 4:30:57 PM PDT
    
    ** System properties:
    OS=MacOSX
    OS version=10.5.8
    Java version=1.5.0_24
    
    
    *** MyEclipse details:
    MyEclipse Enterprise Workbench
    Version: 8.6
    Build id: 8.6-20100806
    
    
    *** Eclipse details:
    MyEclipse for Spring
    
    
    Version: 8.6
    
    
    
    
    
    
    Eclipse startup command=-os
    macosx
    -ws
    carbon
    -arch
    x86
    -showsplash
    -launcher
    /Library/Genuitec/MyEclipse for Spring 8.6/myeclipseforspring.app/Contents/MacOS/myeclipseforspring
    -name
    Myeclipseforspring
    --launcher.library
    /Library/Genuitec/MyEclipse for Spring 8.6/myeclipseforspring.app/Contents/MacOS//../../../../Common/plugins/org.eclipse.equinox.launcher.carbon.macosx_1.0.200.v20090520-1835/eclipse_1206.so
    -startup
    /Library/Genuitec/MyEclipse for Spring 8.6/myeclipseforspring.app/Contents/MacOS/../../../../Common/plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
    -install
    /Library/Genuitec/MyEclipse for Spring 8.6
    -configuration
    ../../../configuration
    -data
    /Users/dlamet/Documents/dev/cch-workspace
    -launcher
    /Library/Genuitec/MyEclipse for Spring 8.6/myeclipseforspring.app/Contents/MacOS/myeclipseforspring
    -install
    /Library/Genuitec/MyEclipse for Spring 8.6
    -configuration
    ../../../configuration
    -keyring
    /Users/dlamet/.eclipse_keyring
    -consoleLog
    -showlocation
    -vm
    /System/Library/Frameworks/JavaVM.framework
    #312077 Reply

    support-joy
    Member

    Dan,

    Scott has replied to your question in the ticketing system.

    For other users, I have copy-pasted scott’s reply below –

    First, I need to point out that the internally bundled version of Tomcat in our development Sandbox comes pre-configured for use as a single launch item only. You can’t create a custom launch configuration for it, per se. However, you can still set VM arguments for it anytime it runs on the JDK tab of its preference settings which you can find under “ME Menu” > Preferences > MyEclipse > Integrated Sandbox > Tomcat > JDK as shown in the attached screenshot called ME86SandBoxTomcatVMConfig.png. Once you’ve set the VM arguments you want there, using the standard “Debug as… > MyEclipse Server Application” will start the integrated Tomcat instance with the arguments you want which should allow your application to run correctly.

    If you’d like more configurability, along with the ability to create multiple launch configurations, you’ll need to install your own instance of Tomcat and configure it through our regular Tomcat connectors. I’ve done a bunch of screenshots to walk through this as follows:

    1) Download apache-tomcat-6.0.29.zip from here: http://tomcat.apache.org/download-60.cgi#6.0.29
    2) Unzip the archive and drag it into your Applications folder
    3) Open the Tomcat 6.x preference page and point the Tomcat connector to the new 6.0.29 install you just created. See ME86TomcatConfig.png. You should also set the VM arguments you want on the JDK page as well.
    4) The next time you right-click and select “Debug As… > MyEclipse Server Application…” you’ll now have a choice between the Sandbox version of Tomcat and your custom one. It will look like the screenshot called ME86DebugAsTomcat6.png
    5) At this point you can see you really don’t need a launch config to debug your Tomcat application with additional VM arguments as shown in ME86TomcatExamplesRunning.png. However, if you’d still like to create a launch configuration for other reasons you can do that by returning to the Tomcat 6.x preference page and selecting the Launch tab as shown in the screenshot called ME86TomcatCreateLaunch.png
    6) Once you create the launch configuration, you can modify it through the normal method as shown in the screenshot called ME86TomcatCustomConfig.png
    7) After your custom configuration is created it will show up in the Server View as shown in ME86TomcatCustomServerView.png. You can create as many custom launch configurations as you like, if you happen to need more.

    Attachments:
    You must be logged in to view attached files.
Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: How to associate VM Arguments with App Server Config?

This topic is marked as closed to new replies, however your posting capabilities still allow you to do so.

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