Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » 3rd party jar, war deployment
3rd party jar, war deployment [message #127477] Tue, 07 April 2009 09:45 Go to next message
Lukas Dziadkowiec is currently offline Lukas DziadkowiecFriend
Messages: 12
Registered: July 2009
Junior Member
Hi,
anybody managed to work rap application using 3rd party jar file (not
bundle) ?
I have completely working development environment under eclipse 3.4.2.
I have followed http://rapblog.innoopract.com/2007_12_01_archive.html
tutorial and managed to successfully deploy working rap project under
jetty.

Now I would like to reference jdom-1.1.jar.
I added jar/jdom-1.1.jar into calc.ui.rap/lib directory.

added to MANIFEST.MF
Bundle-ClassPath: lib/jdom-1.1.jar
Export-Package: org.jdom

added to build.properties
bin.includes = lib/jdom-1.1.jar

When I build war feature, deploy and run it I get error.
2009-04-07 09:59:53.393::WARN: /calc/rap
java.lang.IllegalArgumentException: An entry point named 'default' does
not exist.
at
org.eclipse.rwt.internal.lifecycle.EntryPointManager.createU I(EntryPointManager.java:77)
at
org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.createUI(RWT LifeCycle.java:228)
at
org.eclipse.rwt.internal.lifecycle.RWTLifeCycle$UIThreadCont roller.run(RWTLifeCycle.java:116)
at java.lang.Thread.run(Unknown Source)

When I dereference this jar I have working appl again.

So,
Anybody know how to use external jar in rap war application ?
Thank you very much for any hints.
Re: 3rd party jar, war deployment [message #127501 is a reply to message #127477] Tue, 07 April 2009 12:17 Go to previous messageGo to next message
Stefan   is currently offline Stefan Friend
Messages: 316
Registered: July 2009
Senior Member
Lukas,
I cannot recommend having libs inside a bundle. Instead, try to get an
OSGi bundle for your 3rd party lib to leverage OSGi feature like
explicite dependencies, etc.

You can find tons of OSGi bundles in Eclipse orbit [1] or in the Spring
DM bundle repository [2].

Before building your app, make sure to add these bundles to your feature.

Regards,
Stefan.

[1] http://www.eclipse.org/orbit/
[2] http://www.springsource.com/repository/app/


Lukas Dziadkowiec schrieb:
> Hi,
> anybody managed to work rap application using 3rd party jar file (not
> bundle) ?
> I have completely working development environment under eclipse 3.4.2. I
> have followed http://rapblog.innoopract.com/2007_12_01_archive.html
> tutorial and managed to successfully deploy working rap project under
> jetty.
>
> Now I would like to reference jdom-1.1.jar.
> I added jar/jdom-1.1.jar into calc.ui.rap/lib directory.
>
> added to MANIFEST.MF
> Bundle-ClassPath: lib/jdom-1.1.jar
> Export-Package: org.jdom
>
> added to build.properties
> bin.includes = lib/jdom-1.1.jar
>
> When I build war feature, deploy and run it I get error.
> 2009-04-07 09:59:53.393::WARN: /calc/rap
> java.lang.IllegalArgumentException: An entry point named 'default' does
> not exist.
> at
> org.eclipse.rwt.internal.lifecycle.EntryPointManager.createU I(EntryPointManager.java:77)
>
> at
> org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.createUI(RWT LifeCycle.java:228)
>
> at
> org.eclipse.rwt.internal.lifecycle.RWTLifeCycle$UIThreadCont roller.run(RWTLifeCycle.java:116)
>
> at java.lang.Thread.run(Unknown Source)
>
> When I dereference this jar I have working appl again.
>
> So,
> Anybody know how to use external jar in rap war application ?
> Thank you very much for any hints.
>
Re: 3rd party jar, war deployment [message #127762 is a reply to message #127501] Thu, 09 April 2009 17:25 Go to previous messageGo to next message
Lukas Dziadkowiec is currently offline Lukas DziadkowiecFriend
Messages: 12
Registered: July 2009
Junior Member
Hi Stefan,
thank you for your directions, I will surely migrate common jars into
bundle in our project, however there are jars, that I cannot migrate that
easily, like proprietary AS400 jars. Our project is quite large and rap
web interface will be integrated within. I cannot migrate whole project
right now, there is many subsystems relied on old file structure.
I have successfully deployed rap in war few minutes ago. There were
problems in branding, so some rap bundles refuses to start.
I reference jars and classes by their relative paths in MANIFEST.MF

Bundle-ClassPath: .,
../common-library,
../common-library/libs/saxon9-xpath.jar,
../jclient,
../jclient/libs/ojalgo-25.1.jar,
........................

build.properties
bin.includes = META-INF/,\
plugin.xml,\
icons/,\
resources/,\
theme1/,\
resources/,\
configuration.properties,\
.,\
../common-library/libs/saxon9-xpath.jar,\
../jclient/libs/ojalgo-25.1.jar
source.. = src/

Another problem was, that I referenced sources and jars in "source"
section too, which was wrong.
Re: 3rd party jar, war deployment [message #127928 is a reply to message #127762] Tue, 14 April 2009 13:00 Go to previous message
Stefan Hansel is currently offline Stefan HanselFriend
Messages: 103
Registered: July 2009
Senior Member
For the same reasons (for instance we don't want to convert DB-Drivers to
OSGI-Bundles),
we decided to deploy our applications as a standalone war.

If you don't depend on OSGI much, this could be an alternative:
http://wiki.eclipse.org/RAP/FAQ#How_do_I_use_a_RWT_standalon e_application_in_Tomcat
OSGI of course isn't available then.
Previous Topic:Composite as a TreeItem
Next Topic:Updating all users' view using server-push
Goto Forum:
  


Current Time: Sun Dec 05 21:52:50 GMT 2021

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

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

Back to the top