Home » Eclipse Projects » Remote Application Platform (RAP) » 3rd party jar, war deployment
|Re: 3rd party jar, war deployment [message #127501 is a reply to message #127477]
||Tue, 07 April 2009 12:17
Registered: July 2009
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  or in the Spring
DM bundle repository .
Before building your app, make sure to add these bundles to your feature.
Lukas Dziadkowiec schrieb:
> 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
> 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.
> org.eclipse.rwt.internal.lifecycle.EntryPointManager.createU I(EntryPointManager.java:77)
> org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.createUI(RWT LifeCycle.java:228)
> 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.
> 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
| Lukas Dziadkowiec
Registered: July 2009
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
bin.includes = META-INF/,\
source.. = src/
Another problem was, that I referenced sources and jars in "source"
section too, which was wrong.
Current Time: Sun Dec 05 21:52:50 GMT 2021
Powered by FUDForum
. Page generated in 0.01691 seconds