Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » GenericServerBehaviour does not support external launcher?
GenericServerBehaviour does not support external launcher? [message #228242] Tue, 24 February 2009 02:56 Go to next message
Eclipse UserFriend
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 07:54 Go to previous message
Eclipse UserFriend
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: Sun Jul 06 21:34:42 EDT 2025

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

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

Back to the top