Disable/change "Built-in Preview Server"?

Discussion for Jaxer newbies about how to get Jaxer up and running.

Moderator: Aptana Staff

Disable/change "Built-in Preview Server"?

Postby n1drenhere » Thu Mar 27, 2008 9:54 pm

Every time Aptana Studio starts up, the Preview Server grabs port 8000, and this is unacceptable to me.

How can I do any one of these things? (in increasing hammer size):
1. Change the port range of the preview server
2. Set the preview server not to auto-start
3. Disable the preview server
4. Disable Jaxer (will this kill the preview server?)
5. Delete the preview server in some way from disk

Thanks,
James
n1drenhere
 
Posts: 4
Joined: Thu Mar 27, 2008 9:49 pm

Postby k1awicki » Thu Mar 27, 2008 10:36 pm

Hi,

Option 1-3 are not currently possible. If you stop the internal Jaxer it will not start up the next time Studio starts but that will not impact the preview server. You could change a file on disk that would remove the preview server but the next time you updated Studio those settings would be wiped out since that is how plugin updates work in Eclipse.

I agree it is an oversight that there isn't a way to disable and we could incorporate a preference inside Studio that would let you either change the port or disable it that would persist across updates and restarts.

Would you mind opening a request at http://support.aptana.com/issues ?
Sincerely,
Kevin Sawicki
k1awicki
 
Posts: 738
Joined: Mon Dec 11, 2006 10:19 pm
Location: San Mateo, CA

Postby n1drenhere » Thu Mar 27, 2008 11:06 pm

http://support.aptana.com/asap/browse/JXR-174

In the meantime, could you specify what I need to change/delete on disk? I managed to disable the Internal Jaxer, but couldn't find the Preview Server...
n1drenhere
 
Posts: 4
Joined: Thu Mar 27, 2008 9:49 pm

Postby k1awicki » Fri Mar 28, 2008 12:14 am

There should be a plugin.xml file in the com.aptana.ide.server.jetty_VERSION folder in your plugins folder.

You want to remove the following:
Code: Select all
  <extension
         point="com.aptana.ide.server.serverProvider">
      <provider
            class="com.aptana.ide.server.jetty.server.PreviewServerProvider"
            icon="icons/html.png"
            id="com.aptana.ide.editor.html.previewProvider"
            name="HTML Preview Server Provider">
      </provider>
   </extension>


There may be multiple folder with that same name prefixed before the version, if so, pick the latest version.
Sincerely,
Kevin Sawicki
k1awicki
 
Posts: 738
Joined: Mon Dec 11, 2006 10:19 pm
Location: San Mateo, CA

Postby n1drenhere » Fri Mar 28, 2008 12:27 am

Thank you very much.
n1drenhere
 
Posts: 4
Joined: Thu Mar 27, 2008 9:49 pm

Postby n1drenhere » Fri Jul 25, 2008 5:38 pm

This workaround has gotten harder.

As of com.aptana.ide.server.jetty_1.1.6.009905, there is a jar file in the plugins folder instead of a folder with a plugin.xml. You have to edit the plugin.xml within the jar.
n1drenhere
 
Posts: 4
Joined: Thu Mar 27, 2008 9:49 pm


Return to Installing and Configuring Jaxer