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 |
Stefan 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 |
Lukas Dziadkowiec 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.
|
|
| |
Goto Forum:
Current Time: Wed Apr 24 14:21:06 GMT 2024
Powered by FUDForum. Page generated in 0.03971 seconds
|