Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Starting Custom JBoss Configuration
Starting Custom JBoss Configuration [message #181773] Sun, 22 October 2006 18:00 Go to next message
Eclipse UserFriend
Originally posted by: thtsang_yh.yahoo.com.hk

I am playing with Eclipse 3.2.1 add features, like Web Tools Platform from
Callisto. I can default a JBoss server on the "Servers" view. But it seems
to allow using the default, all or minimal configurations only.

I don't want to touch any of the preexisting settings. Instead, I would
like to use my own custom setting. For this, I
1) Right click on the server and select "Open"
2) Click "Open launch configuration"
3) Go to the Arguments tab and change "Program Argument" to "-c myconfig"

However, whatever I type, it is reset to "-c default".

Is this by design? Why doesn't eclipse support custom configuration for
JBoss"
Re: Starting Custom JBoss Configuration [message #181795 is a reply to message #181773] Mon, 23 October 2006 15:40 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wknauf_NO_._INSIDE_hg-online.de

Hi Anthony,

you have to modify the JBoss plugin slightly to achieve what you want:

Edit
eclipse\plugins\org.eclipse.jst.server.generic.jboss_1.5.0.v 200606130315\servers\jboss.serverdef
and change this:

<property id="serverConfig"
label="%jboss323serverConfig"
type="select"
context="server"
default="default,all,minimal" />

to

<property id="serverConfig"
label="%jboss323serverConfig"
type="string"
context="server"
default="default" />

Now you can enter any server configuration.

Hope this helps

Wolfgang

Anthony schrieb:
> I am playing with Eclipse 3.2.1 add features, like Web Tools Platform
> from Callisto. I can default a JBoss server on the "Servers" view. But
> it seems to allow using the default, all or minimal configurations only.
> I don't want to touch any of the preexisting settings. Instead, I would
> like to use my own custom setting. For this, I
> 1) Right click on the server and select "Open"
> 2) Click "Open launch configuration"
> 3) Go to the Arguments tab and change "Program Argument" to "-c myconfig"
> However, whatever I type, it is reset to "-c default".
>
> Is this by design? Why doesn't eclipse support custom configuration for
> JBoss"
>
Re: Starting Custom JBoss Configuration [message #181799 is a reply to message #181773] Mon, 23 October 2006 15:41 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wknauf_NO_._INSIDE_hg-online.de

Hi Anthony,

you have to modify the JBoss plugin slightly to achieve what you want:

Edit
eclipse\plugins\org.eclipse.jst.server.generic.jboss_1.5.0.v 200606130315\servers\jboss.serverdef
and change this:

<property id="serverConfig"
label="%jboss323serverConfig"
type="select"
context="server"
default="default,all,minimal" />

to

<property id="serverConfig"
label="%jboss323serverConfig"
type="string"
context="server"
default="default" />

Now you can enter any server configuration.

Hope this helps

Wolfgang

Anthony schrieb:
> I am playing with Eclipse 3.2.1 add features, like Web Tools Platform
> from Callisto. I can default a JBoss server on the "Servers" view. But
> it seems to allow using the default, all or minimal configurations only.
> I don't want to touch any of the preexisting settings. Instead, I would
> like to use my own custom setting. For this, I
> 1) Right click on the server and select "Open"
> 2) Click "Open launch configuration"
> 3) Go to the Arguments tab and change "Program Argument" to "-c myconfig"
> However, whatever I type, it is reset to "-c default".
>
> Is this by design? Why doesn't eclipse support custom configuration for
> JBoss"
>
Re: Starting Custom JBoss Configuration [message #224589 is a reply to message #181799] Mon, 01 December 2008 19:00 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: nospam.nospam.com

On Mon, 23 Oct 2006 17:41:16 +0200, Wolfgang Knauf wrote:

> Hi Anthony,
>
> you have to modify the JBoss plugin slightly to achieve what you want:
>
> Edit
> eclipse\plugins\org.eclipse.jst.server.generic.jboss_1.5.0.v 200606130315\servers\jboss.serverdef
> and change this:
>
> <property id="serverConfig"
> label="%jboss323serverConfig"
> type="select"
> context="server"
> default="default,all,minimal" />
>
> to
>
> <property id="serverConfig"
> label="%jboss323serverConfig"
> type="string"
> context="server"
> default="default" />
>
> Now you can enter any server configuration.
>
> Hope this helps
>
> Wolfgang
>
> Anthony schrieb:
>> [13 quoted lines suppressed]

I am using Eclipse 3.4.1 and am trying to use my own server config. I
followed the instructions above and was able to use a different server
config. However when I expand the libs for the server it is still pointing
to the server/default dirs. Am I doing something wrong?
--
-Gary
Re: Starting Custom JBoss Configuration [message #224629 is a reply to message #224589] Tue, 02 December 2008 15:10 Go to previous message
Eclipse UserFriend
Originally posted by: wknauf_NO_._INSIDE_hg-online.de

Hi Gary,

Gary Udstrand wrote:
> I am using Eclipse 3.4.1 and am trying to use my own server config. I
> followed the instructions above and was able to use a different server
> config. However when I expand the libs for the server it is still pointing
> to the server/default dirs. Am I doing something wrong?


In the previously mentioned "jbossXXX.serverdef", search those lines:

<classpath id="jboss.project" >
<fileset dir="${serverRootDirectory}">
<include name="client/*.jar" />
<include name="server/default/lib/*.jar" />

You will have to change them to your custom config.

Best regards

Wolfgang
Previous Topic:Get XML Sended
Next Topic:Moving from Europa to Ganymede
Goto Forum:
  


Current Time: Fri Apr 26 18:44:16 GMT 2024

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

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

Back to the top