Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » how do you get a user defined runtime to be used by a WTP EJB project.
how do you get a user defined runtime to be used by a WTP EJB project. [message #163508] Thu, 09 March 2006 22:22 Go to next message
Gary Mohr is currently offline Gary MohrFriend
Messages: 25
Registered: July 2009
Junior Member
I am running WTP 1.0.1 on WinXP.

I have created a new WTP runtime and server type. They show up and seem to
work correctly when creating a new server runtime (under
Windows->Preferences) and when creating a new server (from the servers
view). I can also start and stop the server from the servers view. The
section of the plugin.xml file that defines these follows:

<extension point="org.eclipse.wst.server.core.runtimeTypes">
<runtimeType
class=" org.eclipse.jst.server.generic.core.internal.GenericServerRu ntime "
description="%runtimeTypeDescription"
id="com.bull.eclipse.jst.server.runtime.jonas46"
name="%runtimeTypeName46"
vendor="%runtimeTypeVendor"
version="1.0">
<moduleType types="jst.web" versions="2.2, 2.3, 2.4"/>
<moduleType types="jst.ejb" versions="1.1, 2.0, 2.1"/>
<moduleType types="jst.ear" versions="1.2, 1.3, 1.4"/>
<moduleType types="jst.connector" versions="1.0, 1.5"/>
<moduleType types="jst.utility" versions="1.0" />
</runtimeType>
</extension>

<extension point="org.eclipse.wst.server.core.serverTypes">
<serverType
behaviourClass=" org.eclipse.jst.server.generic.core.internal.GenericServerBe haviour "
class="org.eclipse.jst.server.generic.core.internal.GenericServer "
description="%serverTypeDescription"
hasConfiguration="false"
id="com.bull.eclipse.jst.server.jonas46"
initialState="stopped"
launchConfigId="org.eclipse.jst.server.generic.core.launchConfigurationType "
launchModes="run,debug"
name="%serverTypeName46"
runtime="true"
runtimeTypeId="com.bull.eclipse.jst.server.runtime.jonas46"
startBeforePublish="false"
startTimeout="120000"
stopTimeout="30000"
supportsRemoteHosts="false">
</serverType>
</extension>

<extension point="org.eclipse.jst.server.generic.core.serverdefinition ">
<serverdefinition
id="com.bull.eclipse.jst.server.runtime.jonas46"
definitionfile="serverdef/jonas46.serverdef">
</serverdefinition>
</extension>

<extension point="org.eclipse.wst.server.ui.wizardFragments">
<fragment
id="org.eclipse.jst.server.generic.runtime"
typeIds="com.bull.eclipse.jst.server.runtime.jonas46"
class=" org.eclipse.jst.server.generic.ui.internal.GenericServerRunt imeWizardFragment "/>
<fragment
id="org.eclipse.jst.server.generic.server"
typeIds="com.bull.eclipse.jst.server.jonas46"
class=" org.eclipse.jst.server.generic.ui.internal.GenericServerWiza rdFragment "/>
</extension>

<extension point="org.eclipse.wst.server.ui.serverImages">
<image
id="org.eclipse.jst.generic.image"
icon="icons/obj16/JonasServer.gif"
typeIds="com.bull.eclipse.jst.server.jonas46"/>
<image
id="org.eclipse.jst.server.generic.image"
icon="icons/obj16/JonasRuntime.gif"
typeIds="com.bull.eclipse.jst.server.runtime.jonas46"/>
</extension>

<extension point="org.eclipse.jst.server.core.runtimeClasspathProviders ">
<runtimeClasspathProvider
id="com.bull.eclipse.jst.server.runtimeTarget"
runtimeTypeIds="com.bull.eclipse.jst.server.runtime.jonas*"
class=" org.eclipse.jst.server.generic.core.internal.GenericServerRu ntimeTargetHandler ">
</runtimeClasspathProvider>
</extension>

When creating a new WTP EJB project, the wizard allows the user to select
the server runtime to be used for the project. My new runtime is not shown
in the pull down list. If I click on the "new" button, it will allow me to
create a second instance of my runtime, but then neither of them will show
up in the pull down list. After the project is created my runtime appears
in the project properties "servers" page, but if I select it and say apply,
nothing seems to happen.

Is there something else that I need to do to make my new runtime so that it
can be used by this project ??

Thanks for any help

Gary
Re: how do you get a user defined runtime to be used by a WTP EJB project. [message #163934 is a reply to message #163508] Tue, 14 March 2006 16:32 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: david.schneider.unisys.com

I think you are describing a problem with early versions of WTP 1.0.1. Are
you running the latest release version of 1.0.1?
Try downloading the all-in-one release version of WTP 1.0.1

"Gary Mohr" <Gary.Mohr@bull.com> wrote in message
news:duq9sq$p5g$1@utils.eclipse.org...
>I am running WTP 1.0.1 on WinXP.
>
> I have created a new WTP runtime and server type. They show up and seem
> to work correctly when creating a new server runtime (under
> Windows->Preferences) and when creating a new server (from the servers
> view). I can also start and stop the server from the servers view. The
> section of the plugin.xml file that defines these follows:
>
> <extension point="org.eclipse.wst.server.core.runtimeTypes">
> <runtimeType
>
> class=" org.eclipse.jst.server.generic.core.internal.GenericServerRu ntime "
> description="%runtimeTypeDescription"
> id="com.bull.eclipse.jst.server.runtime.jonas46"
> name="%runtimeTypeName46"
> vendor="%runtimeTypeVendor"
> version="1.0">
> <moduleType types="jst.web" versions="2.2, 2.3, 2.4"/>
> <moduleType types="jst.ejb" versions="1.1, 2.0, 2.1"/>
> <moduleType types="jst.ear" versions="1.2, 1.3, 1.4"/>
> <moduleType types="jst.connector" versions="1.0, 1.5"/>
> <moduleType types="jst.utility" versions="1.0" />
> </runtimeType>
> </extension>
>
> <extension point="org.eclipse.wst.server.core.serverTypes">
> <serverType
>
> behaviourClass=" org.eclipse.jst.server.generic.core.internal.GenericServerBe haviour "
> class="org.eclipse.jst.server.generic.core.internal.GenericServer "
> description="%serverTypeDescription"
> hasConfiguration="false"
> id="com.bull.eclipse.jst.server.jonas46"
> initialState="stopped"
>
> launchConfigId="org.eclipse.jst.server.generic.core.launchConfigurationType "
> launchModes="run,debug"
> name="%serverTypeName46"
> runtime="true"
> runtimeTypeId="com.bull.eclipse.jst.server.runtime.jonas46"
> startBeforePublish="false"
> startTimeout="120000"
> stopTimeout="30000"
> supportsRemoteHosts="false">
> </serverType>
> </extension>
>
> <extension point="org.eclipse.jst.server.generic.core.serverdefinition ">
> <serverdefinition
> id="com.bull.eclipse.jst.server.runtime.jonas46"
> definitionfile="serverdef/jonas46.serverdef">
> </serverdefinition>
> </extension>
>
> <extension point="org.eclipse.wst.server.ui.wizardFragments">
> <fragment
> id="org.eclipse.jst.server.generic.runtime"
> typeIds="com.bull.eclipse.jst.server.runtime.jonas46"
>
> class=" org.eclipse.jst.server.generic.ui.internal.GenericServerRunt imeWizardFragment "/>
> <fragment
> id="org.eclipse.jst.server.generic.server"
> typeIds="com.bull.eclipse.jst.server.jonas46"
>
> class=" org.eclipse.jst.server.generic.ui.internal.GenericServerWiza rdFragment "/>
> </extension>
>
> <extension point="org.eclipse.wst.server.ui.serverImages">
> <image
> id="org.eclipse.jst.generic.image"
> icon="icons/obj16/JonasServer.gif"
> typeIds="com.bull.eclipse.jst.server.jonas46"/>
> <image
> id="org.eclipse.jst.server.generic.image"
> icon="icons/obj16/JonasRuntime.gif"
> typeIds="com.bull.eclipse.jst.server.runtime.jonas46"/>
> </extension>
>
> <extension point="org.eclipse.jst.server.core.runtimeClasspathProviders ">
> <runtimeClasspathProvider
> id="com.bull.eclipse.jst.server.runtimeTarget"
> runtimeTypeIds="com.bull.eclipse.jst.server.runtime.jonas*"
>
> class=" org.eclipse.jst.server.generic.core.internal.GenericServerRu ntimeTargetHandler ">
> </runtimeClasspathProvider>
> </extension>
>
> When creating a new WTP EJB project, the wizard allows the user to select
> the server runtime to be used for the project. My new runtime is not
> shown in the pull down list. If I click on the "new" button, it will
> allow me to create a second instance of my runtime, but then neither of
> them will show up in the pull down list. After the project is created my
> runtime appears in the project properties "servers" page, but if I select
> it and say apply, nothing seems to happen.
>
> Is there something else that I need to do to make my new runtime so that
> it can be used by this project ??
>
> Thanks for any help
>
> Gary
>
Re: how do you get a user defined runtime to be used by a WTP EJB project. [message #164004 is a reply to message #163934] Wed, 15 March 2006 20:59 Go to previous message
Gary Mohr is currently offline Gary MohrFriend
Messages: 25
Registered: July 2009
Junior Member
Thank you for your reply.

I have updated to the latest all-in-one package for WTP
(wtp-all-in-one-sdk-R-1.0.1-200602171228-win32.zip), but it has the same
date/time in the file name as the previous one I was running that was
installed in 4 or 5 pieces (the all-in-one was not available then). So I do
not think this made any difference.

I have added a facet to my WTP Adapter and now the new Runtime that I create
does show up as a choice when creating new projects. I am not sure what
changed to resolve this but it seems to be working consistently now so it is
time to move on to the next problem.

Thanks again for the feedback.


"Dave Schneider" <david.schneider@unisys.com> wrote in message
news:dv6ra1$jo1$1@utils.eclipse.org...
>I think you are describing a problem with early versions of WTP 1.0.1.
>Are you running the latest release version of 1.0.1?
> Try downloading the all-in-one release version of WTP 1.0.1
>
> "Gary Mohr" <Gary.Mohr@bull.com> wrote in message
> news:duq9sq$p5g$1@utils.eclipse.org...
>>I am running WTP 1.0.1 on WinXP.
>>
>> I have created a new WTP runtime and server type. They show up and seem
>> to work correctly when creating a new server runtime (under
>> Windows->Preferences) and when creating a new server (from the servers
>> view). I can also start and stop the server from the servers view. The
>> section of the plugin.xml file that defines these follows:
>>
>> <extension point="org.eclipse.wst.server.core.runtimeTypes">
>> <runtimeType
>>
>> class=" org.eclipse.jst.server.generic.core.internal.GenericServerRu ntime "
>> description="%runtimeTypeDescription"
>> id="com.bull.eclipse.jst.server.runtime.jonas46"
>> name="%runtimeTypeName46"
>> vendor="%runtimeTypeVendor"
>> version="1.0">
>> <moduleType types="jst.web" versions="2.2, 2.3, 2.4"/>
>> <moduleType types="jst.ejb" versions="1.1, 2.0, 2.1"/>
>> <moduleType types="jst.ear" versions="1.2, 1.3, 1.4"/>
>> <moduleType types="jst.connector" versions="1.0, 1.5"/>
>> <moduleType types="jst.utility" versions="1.0" />
>> </runtimeType>
>> </extension>
>>
>> <extension point="org.eclipse.wst.server.core.serverTypes">
>> <serverType
>>
>> behaviourClass=" org.eclipse.jst.server.generic.core.internal.GenericServerBe haviour "
>> class="org.eclipse.jst.server.generic.core.internal.GenericServer "
>> description="%serverTypeDescription"
>> hasConfiguration="false"
>> id="com.bull.eclipse.jst.server.jonas46"
>> initialState="stopped"
>>
>> launchConfigId="org.eclipse.jst.server.generic.core.launchConfigurationType "
>> launchModes="run,debug"
>> name="%serverTypeName46"
>> runtime="true"
>> runtimeTypeId="com.bull.eclipse.jst.server.runtime.jonas46"
>> startBeforePublish="false"
>> startTimeout="120000"
>> stopTimeout="30000"
>> supportsRemoteHosts="false">
>> </serverType>
>> </extension>
>>
>> <extension point="org.eclipse.jst.server.generic.core.serverdefinition ">
>> <serverdefinition
>> id="com.bull.eclipse.jst.server.runtime.jonas46"
>> definitionfile="serverdef/jonas46.serverdef">
>> </serverdefinition>
>> </extension>
>>
>> <extension point="org.eclipse.wst.server.ui.wizardFragments">
>> <fragment
>> id="org.eclipse.jst.server.generic.runtime"
>> typeIds="com.bull.eclipse.jst.server.runtime.jonas46"
>>
>> class=" org.eclipse.jst.server.generic.ui.internal.GenericServerRunt imeWizardFragment "/>
>> <fragment
>> id="org.eclipse.jst.server.generic.server"
>> typeIds="com.bull.eclipse.jst.server.jonas46"
>>
>> class=" org.eclipse.jst.server.generic.ui.internal.GenericServerWiza rdFragment "/>
>> </extension>
>>
>> <extension point="org.eclipse.wst.server.ui.serverImages">
>> <image
>> id="org.eclipse.jst.generic.image"
>> icon="icons/obj16/JonasServer.gif"
>> typeIds="com.bull.eclipse.jst.server.jonas46"/>
>> <image
>> id="org.eclipse.jst.server.generic.image"
>> icon="icons/obj16/JonasRuntime.gif"
>> typeIds="com.bull.eclipse.jst.server.runtime.jonas46"/>
>> </extension>
>>
>> <extension point="org.eclipse.jst.server.core.runtimeClasspathProviders ">
>> <runtimeClasspathProvider
>> id="com.bull.eclipse.jst.server.runtimeTarget"
>> runtimeTypeIds="com.bull.eclipse.jst.server.runtime.jonas*"
>>
>> class=" org.eclipse.jst.server.generic.core.internal.GenericServerRu ntimeTargetHandler ">
>> </runtimeClasspathProvider>
>> </extension>
>>
>> When creating a new WTP EJB project, the wizard allows the user to select
>> the server runtime to be used for the project. My new runtime is not
>> shown in the pull down list. If I click on the "new" button, it will
>> allow me to create a second instance of my runtime, but then neither of
>> them will show up in the pull down list. After the project is created my
>> runtime appears in the project properties "servers" page, but if I select
>> it and say apply, nothing seems to happen.
>>
>> Is there something else that I need to do to make my new runtime so that
>> it can be used by this project ??
>>
>> Thanks for any help
>>
>> Gary
>>
>
>
Previous Topic:If publishing fails, what's the best way to fix it?
Next Topic:Dali in a WTP Build?
Goto Forum:
  


Current Time: Wed Sep 18 21:25:52 GMT 2024

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

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

Back to the top