Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » GenericServerBehaviour does not support external launcher?
GenericServerBehaviour does not support external launcher? [message #228242] Tue, 24 February 2009 07:56 Go to next message
Anders Olsson is currently offline Anders OlssonFriend
Messages: 21
Registered: July 2009
Junior Member
Hello,

I'm implementing my own WST Server Adapter using Generic Server Classes
and a Serverdef file.

I'm having problems starting the server. I'm getting a NPE originating in
org.eclipse.jst.server.generic.internal.xml.Resolver line 103 (R3.0.3):
start = str.indexOf(PROP_START,end);

This is caused by the call in
org.eclipse.jst.server.generic.core.internal.GenericServerBe haviour line
226:
wc.setAttribute( IJavaLaunchConfigurationConstants.ATTR_MAIN_TYPE_NAME, getServerDefinition().getResolver().resolveProperties(this.g etServerDefinition().getStop().getMainClass()));

My start part of my server def looks like:

<start>
<external>${my.dir}/mysim --start</external>
<workingDirectory>.</workingDirectory>
<environmentVariable>
<name>MYSIM_DATA_STORE_PATH</name>
<value>${mysim.datastore}</value>
<name>MYSIM_WORKSPACE</name>
<value>${mysim.workspace}</value>
</environmentVariable>
<debugPort>9009</debugPort>
</start>

I'm guessing this NPE is caused by me not having declared a main class in
the server def start part. But according to the guide I've read, that
should not have to be done (since I'm starting an external script):
http://www.eclipse.org/webtools/community/tutorials/ServerDe finitionExplained/ServerDefinitionExplained.html

Am I using the wrong Behaviour class? Is this generic only for Java
Appservers? Is there another Generic server class structure (not in my
classpath)?

Any help would be greatly appreciated!

BR,

Anders
Re: GenericServerBehaviour does not support external launcher? [message #228268 is a reply to message #228242] Tue, 24 February 2009 12:54 Go to previous message
Anders Olsson is currently offline Anders OlssonFriend
Messages: 21
Registered: July 2009
Junior Member
My bad, I now found that a different ServerDelegate and
LaunchConfiguration has to be used for External launch.

In the org.eclipse.wst.server.core.serverTypes I changed the
BehaviourClass to:
org.eclipse.jst.server.generic.core.internal.ExternalServerB ehaviour
and the
launchConfigId to:
org.eclipse.jst.server.generic.core.ExternalLaunchConfigurat ionType

/Anders
Previous Topic:Jsp formatter/indenti problems
Next Topic:Proposed Servers View
Goto Forum:
  


Current Time: Tue Mar 19 06:08:31 GMT 2024

Powered by FUDForum. Page generated in 0.03003 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top