Note that there are some explanatory texts on larger screens.

plurals
  1. POeclipse launch configuration for web project
    primarykey
    data
    text
    <p>So I right click on my project and choose "Run on server" and runs fine. But I cant seem to be able to move the run configuration (the <code>.launch</code> file) in my project - when I go to run configurations > Server tab I see the launch config for tomcat which if I run it launches Tomcat fine but does not display the index of my web app - which is displayed alright if I rclick on the project and choose "Run on server".</p> <p>In <code>${workspace_loc}\.metadata\.plugins\org.eclipse.debug.core\.launches</code> I have both :</p> <p><strong>Tomcat v7.0 Server at localhost.launch</strong> :</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8" standalone="no"?&gt; &lt;launchConfiguration type="org.eclipse.jst.server.tomcat.core.launchConfigurationType"&gt; &lt;listAttribute key="org.eclipse.jdt.launching.CLASSPATH"&gt; &lt;listEntry value="&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot; standalone=&amp;quot;no&amp;quot;?&amp;gt;&amp;#13;&amp;#10;&amp;lt;runtimeClasspathEntry containerPath=&amp;quot;org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.7.0_03&amp;quot; path=&amp;quot;2&amp;quot; type=&amp;quot;4&amp;quot;/&amp;gt;&amp;#13;&amp;#10;"/&gt; &lt;listEntry value="&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot; standalone=&amp;quot;no&amp;quot;?&amp;gt;&amp;#13;&amp;#10;&amp;lt;runtimeClasspathEntry externalArchive=&amp;quot;C:/_/apache-tomcat-7.0.32/bin/bootstrap.jar&amp;quot; path=&amp;quot;3&amp;quot; type=&amp;quot;2&amp;quot;/&amp;gt;&amp;#13;&amp;#10;"/&gt; &lt;listEntry value="&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot; standalone=&amp;quot;no&amp;quot;?&amp;gt;&amp;#13;&amp;#10;&amp;lt;runtimeClasspathEntry externalArchive=&amp;quot;C:/_/apache-tomcat-7.0.32/bin/tomcat-juli.jar&amp;quot; path=&amp;quot;3&amp;quot; type=&amp;quot;2&amp;quot;/&amp;gt;&amp;#13;&amp;#10;"/&gt; &lt;listEntry value="&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot; standalone=&amp;quot;no&amp;quot;?&amp;gt;&amp;#13;&amp;#10;&amp;lt;runtimeClasspathEntry externalArchive=&amp;quot;C:/Program Files/Java/jdk1.7.0_03/lib/tools.jar&amp;quot; path=&amp;quot;3&amp;quot; type=&amp;quot;2&amp;quot;/&amp;gt;&amp;#13;&amp;#10;"/&gt; &lt;/listAttribute&gt; &lt;booleanAttribute key="org.eclipse.jdt.launching.DEFAULT_CLASSPATH" value="false"/&gt; &lt;stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER" value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.7.0_03"/&gt; &lt;stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="start"/&gt; &lt;stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Dcatalina.base=&amp;quot;C:\Dropbox\eclipse_workspaces\javaEE\.metadata\.plugins\org.eclipse.wst.server.core\tmp1&amp;quot; -Dcatalina.home=&amp;quot;C:\_\apache-tomcat-7.0.32&amp;quot; -Dwtp.deploy=&amp;quot;C:\Dropbox\eclipse_workspaces\javaEE\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps&amp;quot; -Djava.endorsed.dirs=&amp;quot;C:\_\apache-tomcat-7.0.32\endorsed&amp;quot;"/&gt; &lt;stringAttribute key="server-id" value="Tomcat v7.0 Server at localhost"/&gt; &lt;/launchConfiguration&gt; </code></pre> <p>and my web app's .launch (<strong>ted2012.launch</strong>) :</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8" standalone="no"?&gt; &lt;launchConfiguration type="org.eclipse.wst.server.ui.launchConfigurationType"&gt; &lt;stringAttribute key="client-id" value="org.eclipse.wst.server.ui.web"/&gt; &lt;stringAttribute key="launchable-adapter-id" value="org.eclipse.jst.server.tomcat.web"/&gt; &lt;stringAttribute key="module-artifact" value="org.eclipse.jst.jee.server:ted2012//"/&gt; &lt;stringAttribute key="module-artifact-class" value="org.eclipse.wst.server.core.util.WebResource"/&gt; &lt;listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS"&gt; &lt;listEntry value="/ted2012"/&gt; &lt;/listAttribute&gt; &lt;listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES"&gt; &lt;listEntry value="4"/&gt; &lt;/listAttribute&gt; &lt;stringAttribute key="server-id" value="Tomcat v7.0 Server at localhost"/&gt; &lt;/launchConfiguration&gt; </code></pre> <p>which however does not appear in my launches :</p> <p><img src="https://i.stack.imgur.com/AHN6r.jpg" alt="eclipse launches"></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload