Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » [RCP-JBOSS Embedded server] java.class.path problem
[RCP-JBOSS Embedded server] java.class.path problem [message #448819] Wed, 03 May 2006 14:24 Go to next message
Eclipse UserFriend
We have 2 plugins: A and B.
A contains jboss embedded server (obtained from plugin from existing jar archives wizard)
B contains our rcp + domain objects.

In B we have a statement that starts jboss embedded server. Seems that this server needs java.class.path set in the system.

In non RCP application (regular java project) the server finds java.class.path with value {PROJECT_HOME}/bin, and server starts normally. In this way it can find all java classes and xml configuration files.

In our RCP application (plugin B) the server gets in java.class.path only {ECLIPSE_HOME}/startup.jar value and server fails to deploy entities from plugin B.

We have written in A plugin's manifest.mf
Eclipse-BuddyPolicy: registered
and in B plugin's manifest file
Eclipse-RegisterBuddy: A
but without any succes.

Our only solution (but not desirable) is to put the following statement
System.setProperty("java.class.path", "{B_PROJECT_HOME}/bin");
just before starting server.
In this way we can start application only from the IDE.

How can we find the solution for this issue, keeping in mind that we have to start the server both from IDE and from a final exported product, without any hardcoded statements.

Thx in advance.
Re: [RCP-JBOSS Embedded server] java.class.path problem [message #448829 is a reply to message #448819] Thu, 04 May 2006 02:18 Go to previous message
Eclipse UserFriend
I'm working on a similar project and I have the same problem with JBoss =
=

Embedded server.
Did you find any solution? Please let me know if solve this issue.

Regards,
Cristinel Angheluta

On Wed, 03 May 2006 21:24:43 +0300, Pazargic Antonel Ernest =

<antonel.pazargic@gmail.com> wrote:

> We have 2 plugins: A and B.
> A contains jboss embedded server (obtained from plugin from existing j=
ar =

> archives wizard)
> B contains our rcp + domain objects.
>
> In B we have a statement that starts jboss embedded server. Seems that=
=

> this server needs java.class.path set in the system.
>
> In non RCP application (regular java project) the server finds =

> java.class.path with value {PROJECT_HOME}/bin, and server starts =

> normally. In this way it can find all java classes and xml configurati=
on =

> files.
>
> In our RCP application (plugin B) the server gets in java.class.path =

> only {ECLIPSE_HOME}/startup.jar value and server fails to deploy =

> entities from plugin B.
>
> We have written in A plugin's manifest.mf
> Eclipse-BuddyPolicy: registered
> and in B plugin's manifest file
> Eclipse-RegisterBuddy: A
> but without any succes.
>
> Our only solution (but not desirable) is to put the following statemen=
t
> System.setProperty("java.class.path", "{B_PROJECT_HOME}/bin");
> just before starting server.
> In this way we can start application only from the IDE.
>
> How can we find the solution for this issue, keeping in mind that we =

> have to start the server both from IDE and from a final exported =

> product, without any hardcoded statements.
>
> Thx in advance.



-- =

Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
Previous Topic:About TrimLayout and layouting in general
Next Topic:Error exporting product in eclipse 3.2 rc2
Goto Forum:
  


Current Time: Sun Aug 31 08:17:05 EDT 2025

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

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

Back to the top